16b43a1728fec7d81942c3e5a4eda2a79b7a9e42.svn-base 25 KB

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