28c622d4bd612602dba5fea67155e24be9f75eb9.svn-base 25 KB

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