ea89a795cf0536c00b0822743bfba7cb53c32065.svn-base 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936
  1. <!-- -->
  2. <template>
  3. <div>
  4. <el-dialog
  5. width="65%"
  6. :title="'督查已填报问题列表'"
  7. :modal="true"
  8. :append-to-body="true"
  9. :before-close="closeProblemList"
  10. :visible.sync="proListFlag"
  11. >
  12. <el-button v-if="formIsShow" @click="addProblem" type="primary" style="float: right;margin-bottom: 10px">添加问题</el-button>
  13. <!-- 查询展示 -->
  14. <div v-if="formIsShow" :style="{'height':testHeight1+'px'}">
  15. <el-table
  16. border
  17. :height="tableHeight"
  18. ref="multipleTable"
  19. :data="searchResult"
  20. tooltip-effect="dark"
  21. style="width: 100%"
  22. >
  23. <el-table-column align="center" type="index" label="序号" min-width="25" fixed>
  24. <template slot-scope="scope">{{ (currentPage - 1) * pageSize + (scope.$index + 1) }}</template>
  25. </el-table-column>
  26. <!-- <el-table-column
  27. header-align="center"
  28. align="center"
  29. min-width="100"
  30. prop="nm"
  31. label="督查对象名称"
  32. show-overflow-tooltip
  33. ></el-table-column> -->
  34. <el-table-column
  35. header-align="center"
  36. align="center"
  37. min-width="180"
  38. prop="inspPblmName"
  39. label="问题类别"
  40. show-overflow-tooltip
  41. ></el-table-column>
  42. <el-table-column
  43. header-align="center"
  44. align="center"
  45. min-width="150"
  46. prop="checkPoint"
  47. label="检查事项"
  48. show-overflow-tooltip
  49. ></el-table-column>
  50. <el-table-column
  51. header-align="center"
  52. align="center"
  53. min-width="180"
  54. prop="pblmDesc"
  55. label="问题描述"
  56. show-overflow-tooltip
  57. ></el-table-column>
  58. <!-- <el-table-column
  59. header-align="center"
  60. align="center"
  61. min-width="60"
  62. prop="persName"
  63. label="上报人"
  64. ></el-table-column> -->
  65. <el-table-column
  66. prop="collTime"
  67. label="上报时间"
  68. :formatter="timestampToTime"
  69. sortable
  70. align="center"
  71. min-width="100"
  72. show-overflow-tooltip
  73. ></el-table-column>
  74. <el-table-column
  75. align="center"
  76. prop
  77. min-width="130"
  78. label="操作"
  79. fixed="right"
  80. >
  81. <template slot-scope="scope">
  82. <el-button icon="el-icon-view" title="查看详情"type="text" @click="showDetails(scope.row.pblmId)"></el-button>
  83. <el-button v-if="ownPriv('manage')" icon="el-icon-edit" type="text" title="修改问题" @click="changeSup(scope.row.pblmId)"></el-button>
  84. <el-button v-if="ownPriv('manage')"
  85. icon="el-icon-delete"
  86. type="text"
  87. title="删除问题" @click="removeSuperviseOne(scope.row.pblmId)"
  88. ></el-button>
  89. </template>
  90. </el-table-column>
  91. </el-table>
  92. <!-- 分页 -->
  93. <!-- <div>
  94. <el-pagination
  95. class="paginationCenter"
  96. background
  97. @size-change="handleSizeChange"
  98. @current-change="search"
  99. :current-page.sync="currentPage"
  100. :page-sizes="[10, 20, 50, 100]"
  101. :page-size="pageSize"
  102. layout="total, sizes, prev, pager, next, jumper"
  103. :total="total"
  104. ></el-pagination>
  105. </div> -->
  106. </div>
  107. <div v-if="!formIsShow" class="popupContentClass" :style="{'height':testHeight1+'px'}">
  108. <el-table
  109. border
  110. :height="tableHeight"
  111. ref="multipleTable"
  112. :data="searchResult"
  113. tooltip-effect="dark"
  114. style="width: 100%"
  115. >
  116. <el-table-column align="center" type="index" label="序号" min-width="50">
  117. <template slot-scope="scope">{{ (currentPage - 1) * pageSize + (scope.$index + 1) }}</template>
  118. </el-table-column>
  119. <!-- <el-table-column
  120. header-align="center"
  121. align="center"
  122. min-width="130"
  123. prop="nm"
  124. label="督查水源地名称"
  125. show-overflow-tooltip
  126. ></el-table-column> -->
  127. <el-table-column
  128. header-align="center"
  129. align="center"
  130. min-width="180"
  131. prop="inspPblmName"
  132. label="问题类别"
  133. show-overflow-tooltip
  134. ></el-table-column>
  135. <!--<el-table-column-->
  136. <!--header-align="center"-->
  137. <!--align="center"-->
  138. <!--min-width="150"-->
  139. <!--prop="inspPblmName"-->
  140. <!--label="检查事项"-->
  141. <!--show-overflow-tooltip-->
  142. <!--&gt;</el-table-column>-->
  143. <el-table-column
  144. header-align="center"
  145. align="center"
  146. min-width="180"
  147. prop="inspPblmDesc"
  148. label="详细描述"
  149. show-overflow-tooltip
  150. ></el-table-column>
  151. <!-- <el-table-column
  152. header-align="center"
  153. align="center"
  154. min-width="100"
  155. prop="persName"
  156. label="上报人"
  157. ></el-table-column> -->
  158. <el-table-column
  159. prop="collTime"
  160. label="上报时间"
  161. :formatter="timestampToTime"
  162. sortable
  163. align="center"
  164. min-width="120"
  165. show-overflow-tooltip
  166. ></el-table-column>
  167. <el-table-column
  168. align="center"
  169. prop
  170. min-width="130"
  171. label="操作"
  172. fixed="right"
  173. >
  174. <template slot-scope="scope">
  175. <el-button icon="el-icon-view" title="查看详情"type="text" @click="showDetails(scope.row.pblmId)"></el-button>
  176. <el-button v-if="ownPriv('manage') && formIsShow" icon="el-icon-edit" type="text" title="修改问题" @click="changeSup(scope.row.pblmId)"></el-button>
  177. <el-button v-if="ownPriv('manage') && formIsShow"
  178. icon="el-icon-delete"
  179. type="text"
  180. title="删除问题" @click="removeSuperviseOne(scope.row.pblmId)"
  181. ></el-button>
  182. </template>
  183. </el-table-column>
  184. </el-table>
  185. <!-- 分页 -->
  186. <div>
  187. <el-pagination
  188. class="paginationCenter"
  189. background
  190. @size-change="handleSizeChange"
  191. @current-change="search"
  192. :current-page.sync="currentPage"
  193. :page-sizes="[10, 20, 50, 100]"
  194. :page-size="pageSize"
  195. layout="total, sizes, prev, pager, next, jumper"
  196. :total="total"
  197. ></el-pagination>
  198. </div>
  199. </div>
  200. <!-- 详情弹框 -->
  201. <el-dialog
  202. class="outerDialog custom_dialog"
  203. title="问题详情"
  204. :visible.sync="supervisionDetailsVisible"
  205. v-if="supervisionDetailsVisible"
  206. :append-to-body="true"
  207. >
  208. <supervision-details ref="xianqing" :problemId="currentProblemId" :objType="15"></supervision-details>
  209. <span slot="footer">
  210. <el-button style="margin-top:5px;" @click="supervisionDetailsVisible = false">返回</el-button>
  211. </span>
  212. </el-dialog>
  213. <problemEdit :editId="updateIdXiuGai" v-if="problemEditDialog" @closeEditDialog="closeEditDialog"></problemEdit>
  214. <!-- 删除的弹窗 -->
  215. <el-dialog class="deleteDialog" title="问题删除描述" :visible.sync="problemDeleteVisible" :append-to-body="true">
  216. <Problem-delete
  217. ref="deleteMiaoShu"
  218. :deleteProblemId="deleteId"
  219. @deleteSuccess="deleteSuccess"
  220. ></Problem-delete>
  221. <span slot="footer">
  222. <el-button @click="problemDeleteVisible = false">返回</el-button>
  223. </span>
  224. </el-dialog>
  225. <problem-dialog
  226. v-if="showAddProblemDialog"
  227. :objType="15"
  228. :villType="15"
  229. :objId="currentObjectId"
  230. :objName="currentObjectName"
  231. :problemMiddleType="'节水管理与评价'"
  232. :problData="problData"
  233. :currentGroupId="currentGroupId"
  234. @closeDialog="closePlDialog"
  235. :currentObjectRgstrId="currentObjectRgstrId"
  236. ></problem-dialog>
  237. </el-dialog>
  238. </div>
  239. </template>
  240. <script>
  241. //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
  242. //例如:import 《组件名称》 from '《组件路径》';
  243. import {
  244. findPageInfo,
  245. submitUpload,
  246. deleteFileById,
  247. updatelist,
  248. } from "../../api/duChaAPI.js";
  249. import request from "../../utils/gw_ajax_request.js";
  250. //import problemDialog from "../duChaWenTi/addProblem/problem_dialog"; // 原来的
  251. //import problemDialog from "../addProlemMidForm/problem_dialog";
  252. import problemDialog from "../duChaWenTi/problemDialog.vue";
  253. import problemEdit from "../duChaWenTi/fenshuiJguankongProblemModify"
  254. import { hostUrl } from "@util/global_variable.js";
  255. export default {
  256. //import引入的组件需要注入到对象中才能使用
  257. components: {
  258. //详情页
  259. supervisionDetails: resolve => {
  260. require(["../duChaWenTi/supervisionDetails_shuiku.vue"], resolve);
  261. },
  262. upload: resolve => {
  263. require(["../../widgets/uploadFile.vue"], resolve);
  264. },
  265. // 删除描述页
  266. ProblemDelete: resolve => {
  267. require(["../duChaWenTi/problemDelete.vue"], resolve);
  268. },
  269. problemEdit:problemEdit,
  270. problemDialog: problemDialog
  271. },
  272. props: ["activedName","currentResCode","currentObjectRgstrId","currentObjectName","szRuls","currentObjectId","showOrEdit","swhsId","showProblemList", "problData","currentGroupId"],
  273. data() {
  274. //这里存放数据
  275. return {
  276. tableHeight: window.innerHeight * 0.5,
  277. testHeight1: window.innerHeight * 0.6,
  278. supervisionState: [
  279. {
  280. value: "0",
  281. label: "一般"
  282. },
  283. {
  284. value: "1",
  285. label: "较重"
  286. },
  287. {
  288. value: "2",
  289. label: "严重"
  290. },
  291. {
  292. value: "3",
  293. label: "特别严重"
  294. }
  295. ],
  296. supervision: [
  297. {
  298. value: "1",
  299. label: "是"
  300. },
  301. {
  302. value: "0",
  303. label: "否"
  304. }
  305. ],
  306. updateIdXiuGai: "",
  307. pblmId: "",
  308. addPicPanel: false,
  309. supervisionDetailsVisible:false,
  310. currentProblemId: "",
  311. currentPage: 1, // 页码
  312. pageSize: 20,
  313. loading: false,
  314. total: 0, // 总数
  315. searchResult: [], // 结果
  316. userId: localStorage.getItem("userid"),
  317. pictureArray: [],
  318. audioArray: [],
  319. videoArray: [],
  320. audiotabName: "",
  321. videotabName: "",
  322. picturetabName: "",
  323. deleteId: "",
  324. playerOptions: {
  325. height: "120",
  326. autoplay: true,
  327. muted: true,
  328. language: "en",
  329. playbackRates: [0.7, 1.0, 1.5, 2.0],
  330. sources: [
  331. {
  332. type: "video/mp4",
  333. // mp4
  334. src: "http://vjs.zencdn.net/v/oceans.mp4"
  335. // webm
  336. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  337. },
  338. {
  339. type: "video/mp4",
  340. // mp4
  341. src: "http://vjs.zencdn.net/v/oceans.mp4"
  342. // webm
  343. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  344. },
  345. {
  346. type: "video/mp4",
  347. // mp4
  348. src: "http://vjs.zencdn.net/v/oceans.mp4"
  349. // webm
  350. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  351. },
  352. {
  353. type: "video/mp4",
  354. // mp4
  355. src: "http://vjs.zencdn.net/v/oceans.mp4"
  356. // webm
  357. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  358. }
  359. ]
  360. },
  361. changeSupervisionVisible: false,
  362. changeSupervisionLoading: false,
  363. changeSupervision: {
  364. nm: "",
  365. presId: localStorage.getItem("userid"),
  366. endTime: "",
  367. pblmId: "",
  368. objId: "",
  369. objType: "",
  370. inspGroupId: "",
  371. inspPblmName: "",
  372. inspPblmDesc: "",
  373. pblmLong: "",
  374. pblmLat: "",
  375. pblmStat: "",
  376. ifCasePblm: "",
  377. inspPblmOrgName: "",
  378. pblmPersName: "",
  379. inspPblmCate: "",
  380. reviOpin: "",
  381. reviConc: "",
  382. reviOrgGuid: "",
  383. collTime: "",
  384. recPers: "",
  385. gwComFiles: [
  386. {
  387. id: "",
  388. filePath: "",
  389. bizId: ""
  390. }
  391. ]
  392. },
  393. // 文件弹框
  394. fileList: [], // 当前文件列表
  395. flash: false,
  396. // 督查类型
  397. supervisionTypeList: [
  398. {
  399. value: "1",
  400. label: "小水库"
  401. }
  402. ],
  403. leibie: [],
  404. // 查询
  405. value6: [],
  406. findParams: {
  407. hasVedio:"",
  408. adCode: "",
  409. pblmStat: "",
  410. inspPblmCate: "",
  411. ifCasePblm: "",
  412. nm: "",
  413. rsName: "",
  414. adFullName: "",
  415. startTime: "",
  416. endTime: "",
  417. objType: 1,
  418. inspPblmName: "",
  419. persId: localStorage.getItem("userid")
  420. },
  421. currentPage: 1, // 页码
  422. pageSize: 20, // 条数
  423. loading: false,
  424. total: 0, // 总数
  425. searchResult: [], // 结果
  426. crId: "", // 当前督查id
  427. // 督查详情
  428. userid: localStorage.getItem("userid"),
  429. supervisionDetailsVisible: false,
  430. problemDeleteVisible: false,
  431. supervisionDetails: {},
  432. pblmId: "",
  433. gwComFiles: [],
  434. pblscr: "",
  435. pblscrList: [
  436. {
  437. lable: "我的问题",
  438. value: localStorage.getItem("userid")
  439. }
  440. ],
  441. pblscrGroup: "",
  442. showAddProblemDialog: false,
  443. formIsShow: true,
  444. problemEditDialog: false,
  445. proListFlag:""
  446. };
  447. },
  448. //监听属性 类似于data概念
  449. computed: {
  450. hostUrl(){
  451. return hostUrl
  452. }
  453. },
  454. //生命周期 - 创建完成(可以访问当前this实例)
  455. created() {
  456. if (this.showOrEdit === "show") {
  457. this.formIsShow = false;
  458. } else {
  459. this.formIsShow = true;
  460. }
  461. this.addPicPanel = false;
  462. if (this.userId) {
  463. console.log("已经登录");
  464. this.search();
  465. } else {
  466. this.$router.push("/login");
  467. }
  468. },
  469. //生命周期 - 挂载完成(可以访问DOM元素)
  470. mounted() {
  471. // this.search();
  472. },
  473. //监控data中的数据变化
  474. watch: {
  475. activedName(n,o) {
  476. if(n == '问题清单'){
  477. this.search();
  478. }
  479. },
  480. // currentResCode(oldValue,newValue){
  481. // this.currentResCode = newValue;
  482. // this.search();
  483. // }
  484. },
  485. //方法集合
  486. methods: {
  487. handleSizeChange(pageSize) {
  488. this.pageSize = pageSize;
  489. this.search();
  490. },
  491. // 查询
  492. search() {
  493. this.loading = true;
  494. let _self = this;
  495. let data = {};
  496. // data["gateName"] = "";
  497. // data["inspPblmName"] = "";
  498. data["objType"] = "15";
  499. // data["presId"] = _self.userId;
  500. // data["pageNum"] = _self.currentPage;
  501. // data["regid"] = _self.currentObjectRgstrId;
  502. // data["pageSize"] = _self.pageSize;
  503. data["villType"] = "15";
  504. data["objId"] = _self.currentObjectId;
  505. // data["codes"] = _self.currentResCode;
  506. let quesId = this.problData;
  507. request
  508. .get(`/dc/insp/pblm/getPblmList/${quesId}/${data.objType}/${data.objId}`).then(res => {
  509. _self.loading = false;
  510. if (res.success) {
  511. _self.searchResult = res.data;
  512. //_self.total = res.data.total;
  513. } else {
  514. this.$message("暂无数据");
  515. }
  516. })
  517. },
  518. //add by lch 关闭问题列表
  519. closeProblemList() {
  520. if (this.showProblemList){
  521. this.proListFlag = false;
  522. this.$emit('dialogFormVisible',this.proListFlag)
  523. }
  524. },
  525. timestampToTime(row, column) {
  526. var date = new Date(row.collTime);
  527. var Y = date.getFullYear() + "-";
  528. var M =
  529. (date.getMonth() + 1 < 10
  530. ? "0" + (date.getMonth() + 1)
  531. : date.getMonth() + 1) + "-";
  532. var D =
  533. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
  534. var h =
  535. (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":";
  536. var m =
  537. date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
  538. return Y + M + D + h + m;
  539. },
  540. // 详情弹框
  541. showDetails(id) {
  542. this.currentProblemId = id;
  543. this.supervisionDetailsVisible = true;
  544. },
  545. // 修改弹窗显示
  546. changeSup(id) {
  547. this.updateIdXiuGai = id;
  548. this.problemEditDialog = true;
  549. },
  550. closeEditDialog(){
  551. this.problemEditDialog = false;
  552. this.currentProblemId = "";
  553. this.search();
  554. },
  555. // 提交修改信息
  556. changeSupervisionInfo() {
  557. this.changeSupervisionVisible = true;
  558. this.$refs.changeSupFrom.validate(valid => {
  559. if (valid) {
  560. this.changeSupervisionLoading = true;
  561. let data = this.changeSupervision;
  562. if (!this.changeSupervision.inspPblmDesc) {
  563. this.$message.warning('请填写详细描述');
  564. return
  565. }
  566. updatelist(data).then(res => {
  567. this.pblmId = res.data.pblmId;
  568. this.gwComFiles = res.data.gwComFiles;
  569. if (res.success) {
  570. this.removeNewSupervision();
  571. this.successInfo();
  572. if (this.$refs.uploadFile.submitUpload(data.pblmId)) {
  573. this.removeNewSupervision();
  574. this.successInfo();
  575. this.addPicPanel = false;
  576. this.changeSupervisionLoading = false;
  577. }
  578. } else {
  579. this.failInfo();
  580. }
  581. });
  582. }
  583. });
  584. },
  585. removeNewSupervision(arg) {
  586. if (arg) {
  587. console.log(arg);
  588. var args = this.gwComFiles.concat(arg);
  589. this.updatefilelist(args);
  590. }
  591. this.search();
  592. this.gwComFiles = [];
  593. this.newSupervisionVisible = false;
  594. this.changeSupervisionVisible = false;
  595. this.newSupervision = {
  596. id: "",
  597. checkPoint: "",
  598. presId: localStorage.getItem("userid"),
  599. dataStat: "",
  600. nm: "",
  601. endTime: "",
  602. pblmId: "",
  603. objId: "",
  604. objType: "",
  605. inspGroupId: "",
  606. inspPblmCate: "",
  607. inspPblmName: "",
  608. inspPblmDesc: "",
  609. pblmLong: "",
  610. pblmLat: "",
  611. pblmStat: "",
  612. ifCasePblm: "",
  613. inspPblmOrgName: "",
  614. pblmPersName: "",
  615. inspPblmCate: "",
  616. reviOpin: "",
  617. reviConc: "",
  618. reviOrgGuid: "",
  619. collTime: "",
  620. recPers: "",
  621. note: ""
  622. };
  623. // this.$refs.uploadFile.init();
  624. },
  625. // 删除图片文件
  626. removeFile(id, index) {
  627. // this.updateIdXiuGai = this.updateIdXiuGai;
  628. var _self = this;
  629. this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
  630. confirmButtonText: "确定",
  631. cancelButtonText: "返回",
  632. type: "warning"
  633. }).then(
  634. res => {
  635. if (res === "confirm") {
  636. deleteFileById(id, this.userId).then(res => {
  637. if (res.success) {
  638. // this.changeSupervision.gwComFiles.splice(index, 1);
  639. this.changeSupervision.gwComFiles.forEach(item => {
  640. if (
  641. item.fileExt == "mp3" ||
  642. item.fileExt == "MP3" ||
  643. item.fileExt == "m4a"
  644. ) {
  645. this.audiotabName.splice(index, 1);
  646. } else if (
  647. item.fileExt == "jpg" ||
  648. item.fileExt == "JPG" ||
  649. item.fileExt == "png" ||
  650. item.fileExt == "PNG" ||
  651. item.fileExt == "JPEG" ||
  652. item.fileExt == "jpeg"
  653. ) {
  654. this.pictureArray.splice(index, 1);
  655. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  656. this.videoArray.splice(index, 1);
  657. }
  658. });
  659. _self.changeSup(this.updateIdXiuGai);
  660. } else {
  661. this.failInfo();
  662. }
  663. });
  664. }
  665. },
  666. res => {
  667. console.log("返回");
  668. }
  669. );
  670. },
  671. // 操作成功反馈
  672. successInfo() {
  673. this.$message({
  674. type: "success",
  675. message: "操作成功!"
  676. });
  677. },
  678. // 操作失败反馈
  679. failInfo(val) {
  680. this.$message.error(val);
  681. },
  682. // 清空选择
  683. toggleSelection(rows) {
  684. this.$refs.multipleTable.clearSelection();
  685. },
  686. // 已选择项
  687. handleSelectionChange(val) {
  688. this.multipleSelection = val;
  689. },
  690. // 文件上传
  691. submitUpload() {
  692. this.$refs.upload.submit();
  693. },
  694. handleRemove(file, fileList) {
  695. console.log(file, fileList);
  696. },
  697. handlePreview(file) {
  698. console.log(file);
  699. },
  700. addPic() {
  701. this.addPicPanel = !this.addPicPanel;
  702. },
  703. // 删除弹窗
  704. removeSuperviseOne(id) {
  705. this.deleteId = id;
  706. this.problemDeleteVisible = true;
  707. },
  708. deleteSuccess() {
  709. this.problemDeleteVisible = false;
  710. this.search();
  711. },
  712. changeSupervisionVisiblefalse() {
  713. this.$nextTick(() => {
  714. if (this.flash) {
  715. this.flash = false;
  716. this.search();
  717. }
  718. });
  719. this.changeSupervisionVisible = false;
  720. this.changeSupervision = {
  721. dataStat: "",
  722. nm: "",
  723. endTime: "",
  724. pblmId: "",
  725. objId: "",
  726. objType: "",
  727. inspGroupId: "",
  728. inspPblmCate: "",
  729. inspPblmName: "",
  730. inspPblmDesc: "",
  731. pblmLong: "",
  732. pblmLat: "",
  733. pblmStat: "",
  734. ifCasePblm: "",
  735. inspPblmOrgName: "",
  736. pblmPersName: "",
  737. inspPblmCate: "",
  738. reviOpin: "",
  739. reviConc: "",
  740. reviOrgGuid: "",
  741. collTime: "",
  742. recPers: "",
  743. note: "",
  744. gwComFiles: [
  745. {
  746. id: "",
  747. filePath: "",
  748. bizId: ""
  749. }
  750. ]
  751. };
  752. this.$refs.uploadFile.init();
  753. this.addPicPanel = false;
  754. },
  755. addProblem: function() {
  756. this.showAddProblemDialog = true;
  757. },
  758. closePlDialog(val) {
  759. this.showAddProblemDialog = val;
  760. this.search()
  761. }
  762. },
  763. beforeCreate() {}, //生命周期 - 创建之前
  764. beforeMount() {}, //生命周期 - 挂载之前
  765. beforeUpdate() {}, //生命周期 - 更新之前
  766. updated() {}, //生命周期 - 更新之后
  767. beforeDestroy() {}, //生命周期 - 销毁之前
  768. destroyed() {}, //生命周期 - 销毁完成
  769. activated() {} //如果页面有keep-alive缓存功能,这个函数会触发
  770. };
  771. </script>
  772. <style rel="stylesheet/scss" lang="scss" scoped>
  773. @import "../duChaWenTi/base.css";
  774. @import url("/src/assets/iconfont/iconfont.css");
  775. @import url("/src/assets/css/mixin.scss");
  776. .upload-container {
  777. width: 100%;
  778. position: relative;
  779. .image-uploader {
  780. width: 35%;
  781. float: left;
  782. }
  783. .image-preview {
  784. width: 200px;
  785. height: 200px;
  786. position: relative;
  787. border: 1px dashed #d9d9d9;
  788. float: left;
  789. // margin-left: 50px;
  790. .image-preview-wrapper {
  791. position: relative;
  792. width: 100%;
  793. height: 100%;
  794. img {
  795. width: 100%;
  796. height: 100%;
  797. }
  798. }
  799. .image-preview-action {
  800. position: absolute;
  801. width: 100%;
  802. height: 100%;
  803. left: 0;
  804. top: 0;
  805. cursor: default;
  806. text-align: center;
  807. color: #fff;
  808. opacity: 0;
  809. font-size: 20px;
  810. background-color: rgba(0, 0, 0, 0.5);
  811. transition: opacity 0.3s;
  812. cursor: pointer;
  813. text-align: center;
  814. line-height: 200px;
  815. .el-icon-delete {
  816. font-size: 36px;
  817. }
  818. }
  819. &:hover {
  820. .image-preview-action {
  821. opacity: 1;
  822. }
  823. }
  824. }
  825. .image-app-preview {
  826. margin-bottom: 10px;
  827. width: 40vh;
  828. height: 180px;
  829. position: relative;
  830. border: 1px dashed #d9d9d9;
  831. float: left;
  832. // margin-left: 50px;
  833. .app-fake-conver {
  834. height: 44px;
  835. position: absolute;
  836. width: 100%; // background: rgba(0, 0, 0, .1);
  837. text-align: center;
  838. line-height: 64px;
  839. color: #fff;
  840. }
  841. }
  842. }
  843. .bottom {
  844. margin-top: 13px;
  845. line-height: 12px;
  846. }
  847. .button {
  848. padding: 0;
  849. float: right;
  850. }
  851. .image {
  852. width: 100%;
  853. display: block;
  854. }
  855. .clearfix:before,
  856. .clearfix:after {
  857. display: table;
  858. content: "";
  859. }
  860. .clearfix:after {
  861. clear: both;
  862. }
  863. #wenTiContainer_sk .el-tree-node {
  864. /* overflow: auto; */
  865. }
  866. #wenTiContainer_sk .el-tree-node > .el-tree-node__children {
  867. overflow: auto;
  868. }
  869. .shuiku .el-date-editor.el-input {
  870. min-width: 180px !important;
  871. }
  872. .shuiku .header {
  873. padding: 0px 10px;
  874. }
  875. .shuiku .el-row {
  876. margin-bottom: 5px;
  877. }
  878. .shuiku .content {
  879. margin: 10px;
  880. }
  881. /* .search .el-table>>>.el-tooltip {
  882. white-space: pre-wrap !important;
  883. line-height: 30px;
  884. font-size: 0;
  885. } */
  886. .shuiku .search >>> .el-table .el-button:nth-child(odd) {
  887. margin-left: 0 !important;
  888. }
  889. .custom_dialog .el-dialog {
  890. width: 60% !important;
  891. }
  892. .custom_dialog .scroll300 {
  893. max-height: 60vh !important;
  894. }
  895. .shuiku .el-tag + .el-tag {
  896. margin-left: 10px;
  897. }
  898. .shuiku .button-new-tag {
  899. margin-left: 10px;
  900. height: 28px;
  901. line-height: 28px;
  902. padding-top: 0;
  903. padding-bottom: 0;
  904. }
  905. .shuiku .input-new-tag {
  906. width: 90px;
  907. margin-left: 10px;
  908. vertical-align: bottom;
  909. }
  910. </style>