4f845ef67dbae4f821b06af6dd9d13112e6d134d.svn-base 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  1. <template>
  2. <!-- 修改弹框 -->
  3. <el-dialog
  4. width="60%"
  5. class="outerDialog custom_dialog"
  6. title="修改督查问题"
  7. :modal=true
  8. @close="closeModal"
  9. :append-to-body=true
  10. :visible.sync="changeSupervisionVisible">
  11. <div class="scroll_wrapper">
  12. <div
  13. style="width:49%;overflow-y:auto;max-height:58vh;float:left;border:1px solid #d5d5ff;margin-right:5px;">
  14. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">基本信息</p>
  15. <el-form ref="changeSupFrom" :rules="rules1" :model="changeSupervision" label-width="120px">
  16. <el-form-item label="督查对象名称" prop="nm">
  17. <el-input v-model="changeSupervision.nm" clearable :readonly="true"></el-input>
  18. </el-form-item>
  19. <el-form-item label="问题类别" prop="inspPblmsName">
  20. <el-select v-model="t1" value-key="inspPblmsName" placeholder="请选择" @change="problemListChange">
  21. <el-option v-for="(item,index) in problemList" :key="index" :label="item.inspPblmsName"
  22. :value="item">
  23. </el-option>
  24. </el-select>
  25. </el-form-item>
  26. <el-form-item label="检查项目" prop="checkPoint" style="text-align:left">
  27. <el-select v-model="t2" placeholder="请选择" value-key="checkPointName"
  28. @change="currentCheckPointListChange">
  29. <el-option v-for="(item,index) in currentCheckPointList" :key="index"
  30. :label="item.checkPointName" :value="item">
  31. </el-option>
  32. </el-select>
  33. </el-form-item>
  34. <el-form-item label="问题描述" prop="pblmDesc" style="text-align:left">
  35. <el-select v-model="t3" placeholder="请选择" value-key="pblmDesc"
  36. @change="currentProblemDescListChange" style="max-width: 500px">
  37. <el-option v-for="(item,index) in currentProblemDescList" :key="index"
  38. :label="item.pblmDesc" :value="item" :title="item.pblmDesc"
  39. style="max-width: 500px">
  40. </el-option>
  41. </el-select>
  42. </el-form-item>
  43. <el-form-item label="详细描述" prop="inspPblmDesc">
  44. <el-input type="textarea" :rows="2" v-model="changeSupervision.inspPblmDesc"
  45. clearable></el-input>
  46. </el-form-item>
  47. <el-form-item label="是否为典型问题:">
  48. <el-select v-model="changeSupervision.ifCasePblm" clearable placeholder="请选择">
  49. <el-option
  50. v-for="item in supervision"
  51. :key="item.value"
  52. :label="item.label"
  53. :value="item.value"
  54. ></el-option>
  55. </el-select>
  56. </el-form-item>
  57. <!--<el-form-item label="严重程度:">-->
  58. <!--<el-select-->
  59. <!--v-model="changeSupervision.inspPblmCate"-->
  60. <!--disabled-->
  61. <!--clearable-->
  62. <!--disable-->
  63. <!--placeholder="请选择"-->
  64. <!--&gt;-->
  65. <!--<el-option-->
  66. <!--v-for="item in supervisionState"-->
  67. <!--:key="item.value"-->
  68. <!--:label="item.label"-->
  69. <!--:value="item.value"-->
  70. <!--&gt;</el-option>-->
  71. <!--</el-select>-->
  72. <!--</el-form-item>-->
  73. <!--<el-form-item label="备注" prop="note">-->
  74. <!--<el-input type="textarea" :rows="2" v-model.trim="changeSupervision.note" clearable></el-input>-->
  75. <!--</el-form-item>-->
  76. <el-form-item label="责任单位">
  77. <el-input v-model="changeSupervision.newVillName"></el-input>
  78. </el-form-item>
  79. <el-form-item label="上报人" prop="persName">
  80. <el-input
  81. resize="none"
  82. type="input"
  83. :rows="3"
  84. readonly
  85. placeholder="请输入"
  86. v-model.trim="changeSupervision.persName"
  87. ></el-input>
  88. </el-form-item>
  89. <el-form-item label="上报时间" prop="collTime">
  90. <el-date-picker v-model="changeSupervision.collTime" readonly type="date"></el-date-picker>
  91. </el-form-item>
  92. </el-form>
  93. </div>
  94. <div
  95. style="width: 49%;float: left;border: 1px solid rgb(213, 213, 255);margin-right: 5px;overflow-y: auto;max-height: 58vh;">
  96. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">多媒体信息</p>
  97. <el-tabs style="margin:0px 5px">
  98. <el-tab-pane :label="picturetabName">
  99. <el-row style="text-align:right;">
  100. <el-button
  101. :v-if="!addPicPanel?addPicPanel:addPicPanel"
  102. size="mini"
  103. type="text"
  104. :icon="!addPicPanel?'el-icon-circle-plus-outline':'el-icon-circle-close-outline'"
  105. @click="addPic"
  106. >{{!addPicPanel?"添加":"取消"}}
  107. </el-button>
  108. </el-row>
  109. <!-- 该上传组件之前用v-if="addPicPanel 控制显示隐藏,发现在点击编辑问题时,如果不上传图片,之间点击确认时会报错 add by lch -->
  110. <el-row v-show="addPicPanel"> <!-- v-if="addPicPanel" -->
  111. <upload
  112. ref="uploadFile"
  113. :url="`/pdcApi/file/insert?bizId=`"
  114. @uploadOver="removeNewSupervision"
  115. ></upload>
  116. </el-row>
  117. <el-row>
  118. <div style="overflow-y:auto;overflow-x:hidden;max-height:30vh;padding:10px;">
  119. <div class="upload-container" id="imgView">
  120. <div
  121. v-for="(item, index) in pictureArray"
  122. :key="index"
  123. class="image-preview image-app-preview"
  124. >
  125. <div class="image-preview-wrapper">
  126. <img :src="`${hostUrl}/${item.filePath}`">
  127. <div class="image-preview-action">
  128. <i @click="removeFile(item.id)" class="el-icon-delete"></i>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. </el-row>
  135. </el-tab-pane>
  136. <el-tab-pane :label="audiotabName">
  137. <el-table border :data="audioArray" style="width: 100%;margin: 0 auto;">
  138. <el-table-column header-align="center" align="center" label="音频">
  139. <template slot-scope="scope">
  140. <elaudio
  141. style="margin-left:15%;width:100px;height:30px;"
  142. :theUrl="`${hostUrl}/${scope.row.filePath}`"
  143. ></elaudio>
  144. </template>
  145. </el-table-column>
  146. <el-table-column header-align="center" align="center" label="操作">
  147. <template slot-scope="scope">
  148. <el-button
  149. size="mini"
  150. @click="removeFile(scope.row.id,scope.$index)"
  151. type="danger"
  152. >删除
  153. </el-button>
  154. </template>
  155. </el-table-column>
  156. </el-table>
  157. </el-tab-pane>
  158. <el-tab-pane :label="videotabName">
  159. <el-table border :data="videoArray" style="width: 100%;margin: 0 auto;">
  160. <el-table-column header-align="center" align="center" label="视频">
  161. <template slot-scope="scope">
  162. <video-player
  163. class="vjs-custom-skin"
  164. ref="videoPlayer"
  165. :options="scope.row"
  166. :playsinline="true"
  167. ></video-player>
  168. </template>
  169. </el-table-column>
  170. <el-table-column header-align="center" align="center" label="操作">
  171. <template slot-scope="scope">
  172. <el-button
  173. size="mini"
  174. @click="removeFile(scope.row.id,scope.$index)"
  175. type="danger"
  176. >删除
  177. </el-button>
  178. </template>
  179. </el-table-column>
  180. </el-table>
  181. </el-tab-pane>
  182. <el-tab-pane :label="filetabName">
  183. <el-table border :data="fileArray" style="width: 100%;margin: 0 auto;">
  184. <el-table-column header-align="center" align="center" label="文档">
  185. <template slot-scope="scope">
  186. <p>
  187. <a :href="`${hostUrl}/${scope.row.filePath}`" target="_blank" rel="noopener noreferrer">
  188. {{scope.row.fileName}}
  189. </a>
  190. </p>
  191. </template>
  192. </el-table-column>
  193. <el-table-column header-align="center" align="center" label="操作">
  194. <template slot-scope="scope">
  195. <el-button
  196. size="mini"
  197. @click="removeFile(scope.row.id,scope.$index)"
  198. type="danger"
  199. >删除</el-button>
  200. </template>
  201. </el-table-column>
  202. </el-table>
  203. </el-tab-pane>
  204. </el-tabs>
  205. </div>
  206. </div>
  207. <span slot="footer">
  208. <el-button type="primary" @click="changeSupervisionInfo" :loading="buttonLoading">保存</el-button>
  209. <el-button @click="changeSupervisionVisiblefalse">取消</el-button>
  210. </span>
  211. </el-dialog>
  212. </template>
  213. <script>
  214. import {showDetailsXq, updatelist, deleteFileById} from "../../api/duChaAPI.js";
  215. import request from "../../utils/gw_ajax_request.js";
  216. import { hostUrl } from "@util/global_variable.js";
  217. import Viewer from 'viewerjs';
  218. import 'viewerjs/dist/viewer.css';
  219. export default {
  220. props: ['editId','pType'],
  221. data() {
  222. return {
  223. changeSupervisionVisible: true,
  224. changeSupervision: {},
  225. rules1: {
  226. inspPblmName: [
  227. {
  228. required: true,
  229. message: "请输入问题名称",
  230. trigger: "blur"
  231. },
  232. {
  233. min: 1,
  234. max: 999,
  235. message: "不超过100字符",
  236. trigger: "blur"
  237. }
  238. ],
  239. inspPblmDesc: [
  240. {
  241. required: true,
  242. message: "请输入问题描述",
  243. trigger: "blur"
  244. }
  245. ],
  246. recPers: [
  247. {
  248. required: true,
  249. message: "请输入记录人",
  250. trigger: "blur"
  251. },
  252. {
  253. min: 1,
  254. max: 999,
  255. message: "不超过100字符",
  256. trigger: "blur"
  257. }
  258. ],
  259. objType: [
  260. {
  261. required: true,
  262. message: "请选择督查对象类型",
  263. trigger: "change"
  264. }
  265. ],
  266. objId: [
  267. {
  268. required: true,
  269. message: "请选择督查对象类型",
  270. trigger: "change"
  271. }
  272. ],
  273. inspPblmType: [
  274. {
  275. required: true,
  276. message: "请选择督查问题类型",
  277. trigger: "change"
  278. }
  279. ],
  280. dataStat: [
  281. {
  282. required: true,
  283. message: "请选择数据状态",
  284. trigger: "change"
  285. }
  286. ],
  287. collTime: [
  288. {
  289. required: true,
  290. message: "请选择采集时间",
  291. trigger: "change"
  292. }
  293. ],
  294. ifCasePblm: [
  295. {
  296. required: true,
  297. message: "请选择是否典型",
  298. trigger: "change"
  299. }
  300. ],
  301. pblmStat: [
  302. {
  303. required: true,
  304. message: "请选择问题类型",
  305. trigger: "change"
  306. }
  307. ],
  308. inspPblmCate: [
  309. {
  310. required: true,
  311. message: "请选择问题程度",
  312. trigger: "change"
  313. },
  314. {
  315. trigger: "change"
  316. }
  317. ]
  318. },
  319. supervisionState: [
  320. {
  321. value: "0",
  322. label: "一般"
  323. },
  324. {
  325. value: "1",
  326. label: "较重"
  327. },
  328. {
  329. value: "2",
  330. label: "严重"
  331. },
  332. {
  333. value: "3",
  334. label: "特别严重"
  335. }
  336. ],
  337. supervision: [
  338. {
  339. value: "1",
  340. label: "是"
  341. },
  342. {
  343. value: "0",
  344. label: "否"
  345. }
  346. ],
  347. addPicPanel: false,
  348. gwComFiles: [],
  349. picturetabName: "",
  350. audiotabName: "",
  351. videotabName: "",
  352. pictureArray: [],
  353. audioArray: [],
  354. videoArray: [],
  355. filetabName: "",
  356. fileArray: [],
  357. updateIdXiuGai: "",
  358. pblmId: "",
  359. t1: {},
  360. t2: {},
  361. t3: {},
  362. problemList: [],
  363. currentCheckPointList: [],
  364. currentProblemDescList: [],
  365. xiangqingmiaoshu: '',
  366. wenTiLeiBie: "",
  367. jianChaXiangMu: "",
  368. buttonLoading: false
  369. }
  370. },
  371. components: {
  372. upload: resolve => {
  373. require(["../../widgets/uploadFile.vue"], resolve);
  374. },
  375. },
  376. computed: {
  377. hostUrl() {
  378. return hostUrl
  379. },
  380. persId() {
  381. return localStorage.getItem("userid") ? localStorage.getItem("userid") : "1098101939614724096";
  382. }
  383. },
  384. mounted() {
  385. this.getproblemSmallType();
  386. },
  387. methods: {
  388. // 修改弹窗显示
  389. changeSup(id) {
  390. this.pictureArray = [];
  391. this.audioArray = [];
  392. this.videoArray = [];
  393. this.updateIdXiuGai = id;
  394. let _this = this
  395. showDetailsXq(this.updateIdXiuGai).then(res => {
  396. // if(this.usersId==)
  397. this.changeSupervision = res.data;
  398. this.gwComFiles = this.changeSupervision.gwComFiles;
  399. this.t1['inspPblmsName'] = this.changeSupervision.inspPblmsName
  400. this.problemList.forEach(ele => {
  401. if (ele.inspPblmsName == _this.t1.inspPblmsName) {
  402. _this.problemListChange(ele)
  403. }
  404. })
  405. this.t2['checkPointName'] = this.changeSupervision.checkPoint
  406. this.currentCheckPointList.forEach(ele => {
  407. if (ele.checkPointName == _this.t2.checkPointName) {
  408. _this.currentCheckPointListChange(ele)
  409. }
  410. })
  411. this.t3['pblmDesc'] = this.changeSupervision.pblmDesc
  412. res.data.gwComFiles.forEach(item => {
  413. if (
  414. item.fileExt == "mp3" ||
  415. item.fileExt == "MP3" ||
  416. item.fileExt == "m4a"
  417. ) {
  418. this.audioArray.push(item);
  419. } else if (
  420. item.fileExt == "jpg" ||
  421. item.fileExt == "JPG" ||
  422. item.fileExt == "png" ||
  423. item.fileExt == "PNG" ||
  424. item.fileExt == "JPEG" ||
  425. item.fileExt == "jpeg"
  426. ) {
  427. this.pictureArray.push(item);
  428. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  429. this.videoArray.push({
  430. id: item.id,
  431. bizId: item.bizId,
  432. width: "130",
  433. height: "130",
  434. autoplay: false,
  435. muted: true,
  436. language: "en",
  437. playbackRates: [0.7, 1.0, 1.5, 2.0],
  438. sources: [
  439. {
  440. type: "video/mp4",
  441. src: this.hostUrl + item.filePath
  442. }
  443. ]
  444. });
  445. } else {
  446. this.fileArray.push(item);
  447. }
  448. });
  449. _this.$nextTick(function(){
  450. var ViewerDom = document.getElementById('imgView');
  451. var viewer = new Viewer(ViewerDom, {})
  452. });
  453. this.picturetabName = "图片资料(" + this.pictureArray.length + ")";
  454. this.audiotabName = "音频资料(" + this.audioArray.length + ")";
  455. this.videotabName = "视频资料(" + this.videoArray.length + ")";
  456. this.filetabName = "其它资料(" + this.fileArray.length + ")";
  457. });
  458. },
  459. // 提交修改信息
  460. changeSupervisionInfo() {
  461. console.log(this)
  462. var _self = this;
  463. this.$refs.changeSupFrom.validate(valid => {
  464. if (valid) {
  465. this.$nextTick(() => {
  466. this.changeSupervisionVisible = true;
  467. this.buttonLoading = true;
  468. if (_self.$refs.uploadFile.submitUpload(this.changeSupervision.pblmId)) {
  469. _self.removeNewSupervision();
  470. }
  471. setTimeout(() => {
  472. _self.changeSupervision.inspPblmsName = _self.xiangqingmiaoshu
  473. _self.changeSupervision.checkPoint = _self.jianChaXiangMu
  474. _self.changeSupervision.inspPblmName = _self.wenTiLeiBie
  475. _self.changeSupervision.inspPlbmType = _self.t2.sort2;
  476. _self.changeSupervision.inspPblmCode = _self.t3.sn;
  477. _self.changeSupervision.pblmsTypeId = _self.t3.guid;
  478. _self.changeSupervision.gwComFiles = _self.gwComFiles;
  479. let data = _self.changeSupervision;
  480. updatelist(data).then(res => {
  481. _self.pblmId = res.data.pblmId;
  482. _self.gwComFiles = res.data.gwComFiles;
  483. if (res.success) {
  484. _self.buttonLoading = false;
  485. _self.successInfo();
  486. _self.addPicPanel = false;
  487. } else {
  488. _self.failInfo();
  489. _self.$emit('closeEditDialog')
  490. }
  491. });
  492. }, 1000)
  493. })
  494. }
  495. });
  496. },
  497. removeNewSupervision(arg) {
  498. if (arg) {
  499. var args = this.gwComFiles.concat(arg);
  500. this.gwComFiles = args;
  501. return;
  502. }
  503. },
  504. changeSupervisionVisiblefalse() {
  505. this.$emit('closeEditDialog')
  506. this.$refs.uploadFile.init();
  507. this.addPicPanel = false;
  508. },
  509. addPic() {
  510. this.addPicPanel = !this.addPicPanel;
  511. },
  512. // 删除图片文件
  513. removeFile(id, index) {
  514. // this.updateIdXiuGai = this.updateIdXiuGai;
  515. var _self = this;
  516. this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
  517. confirmButtonText: "确定",
  518. cancelButtonText: "返回",
  519. type: "warning"
  520. }).then(
  521. res => {
  522. if (res === "confirm") {
  523. deleteFileById(id, this.persId).then(res => {
  524. if (res.success) {
  525. this.changeSupervision.gwComFiles.forEach(item => {
  526. if (
  527. item.fileExt == "mp3" ||
  528. item.fileExt == "MP3" ||
  529. item.fileExt == "m4a"
  530. ) {
  531. this.audiotabName.splice(index, 1);
  532. } else if (
  533. item.fileExt == "jpg" ||
  534. item.fileExt == "JPG" ||
  535. item.fileExt == "png" ||
  536. item.fileExt == "PNG" ||
  537. item.fileExt == "JPEG" ||
  538. item.fileExt == "jpeg"
  539. ) {
  540. this.pictureArray.splice(index, 1);
  541. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  542. this.videoArray.splice(index, 1);
  543. }else{
  544. this.fileArray.splice(index,1);
  545. }
  546. });
  547. _self.changeSup(this.updateIdXiuGai);
  548. } else {
  549. this.failInfo();
  550. }
  551. });
  552. }
  553. },
  554. res => {
  555. console.log("返回");
  556. }
  557. )
  558. },
  559. // 操作成功反馈
  560. successInfo() {
  561. this.$message({
  562. type: "success",
  563. message: "操作成功!"
  564. });
  565. this.$emit('closeEditDialog')
  566. },
  567. // 操作失败反馈
  568. failInfo(val) {
  569. this.$message.error(val);
  570. },
  571. // 文件上传
  572. submitUpload() {
  573. this.$refs.upload.submit();
  574. },
  575. closeModal() {
  576. this.$emit('closeEditDialog')
  577. },
  578. getproblemSmallType() {
  579. let result = [];
  580. request.get('/dc/insp/pblms/getPblmType', {
  581. params: {
  582. type: this.pType,
  583. pguid: this.pType + '000000000000000000000000000000'
  584. }
  585. }).then(res => {
  586. if (res.success) {
  587. res.data.forEach((ele) => {
  588. let haveinspPblmsName = false;
  589. result.forEach((inspPblm) => {
  590. if (inspPblm['inspPblmsName'] == ele.inspPblmsName) {
  591. //
  592. let havechekPoint = false;
  593. inspPblm['checkPoints'].forEach((chekPoint) => {
  594. if (chekPoint['checkPointName'] == ele.checkPoint) {
  595. //
  596. chekPoint['pblmDescs'].push({
  597. pblmDesc: ele.pblmDesc,
  598. sn: ele.sn,
  599. guid: ele.guid,
  600. });
  601. havechekPoint = true;
  602. }
  603. });
  604. if (!havechekPoint) {
  605. let newCheckPoint = {};
  606. newCheckPoint['checkPointName'] = ele.checkPoint;
  607. newCheckPoint['sort2'] = ele.sort2;
  608. newCheckPoint['pblmDescs'] = [{
  609. pblmDesc: ele.pblmDesc,
  610. sn: ele.sn,
  611. guid: ele.guid,
  612. }]
  613. inspPblm['checkPoints'].push(newCheckPoint);
  614. }
  615. haveinspPblmsName = true;
  616. }
  617. });
  618. if (!haveinspPblmsName) {
  619. let haveinspPblmsObj = {};
  620. haveinspPblmsObj['inspPblmsName'] = ele.inspPblmsName;
  621. haveinspPblmsObj['sort1'] = ele.sort1;
  622. haveinspPblmsObj['checkPoints'] = [{
  623. checkPointName: ele.checkPoint,
  624. sort2: ele.sort2,
  625. pblmDescs: [{
  626. pblmDesc: ele.pblmDesc,
  627. sn: ele.sn,
  628. guid: ele.guid,
  629. }]
  630. }];
  631. result.push(haveinspPblmsObj);
  632. }
  633. })
  634. this.problemList = result;
  635. this.changeSup(this.editId)
  636. }
  637. })
  638. },
  639. getYanZhongChengDu() {
  640. request.post('/dc/insp/pblms/getPblmsByType', {
  641. inspPblmsName: this.wenTiLeiBie,
  642. checkPoint: this.jianChaXiangMu,
  643. pblmDesc: this.xiangqingmiaoshu,
  644. type: "30"
  645. }).then(res => {
  646. if (res.success) {
  647. this.changeSupervision.inspPblmCate = res.data.inspPblmCate;
  648. }
  649. })
  650. },
  651. problemListChange: function (item) {
  652. this.t1 = item
  653. this.wenTiLeiBie = item.inspPblmsName;
  654. this.currentCheckPointList = item.checkPoints;
  655. },
  656. currentCheckPointListChange: function (item) {
  657. this.jianChaXiangMu = item.checkPointName;
  658. this.currentProblemDescList = item.pblmDescs;
  659. },
  660. currentProblemDescListChange: function (item) {
  661. this.xiangqingmiaoshu = item.pblmDesc;
  662. console.log(item);
  663. },
  664. },
  665. watch: {
  666. editId(val) {
  667. this.changeSup(val)
  668. },
  669. // 't1': {
  670. // handler: function (val, oldVal) {
  671. // this.getYanZhongChengDu()
  672. // },
  673. // deep: true
  674. // },
  675. // 't2': {
  676. // handler: function (val, oldVal) {
  677. // this.getYanZhongChengDu()
  678. // },
  679. // deep: true
  680. // },
  681. 't3': {
  682. handler: function (val, oldVal) {
  683. this.getYanZhongChengDu()
  684. },
  685. deep: true
  686. },
  687. }
  688. }
  689. </script>
  690. <style scoped lang="scss">
  691. .scroll_wrapper {
  692. overflow: hidden;
  693. }
  694. .scroll_wrapper .el-form {
  695. padding-top: 5px;
  696. padding-right: 5px;
  697. }
  698. .upload-container {
  699. width: 100%;
  700. position: relative;
  701. .image-uploader {
  702. width: 35%;
  703. float: left;
  704. }
  705. .image-preview {
  706. width: 200px;
  707. height: 200px;
  708. position: relative;
  709. border: 1px dashed #d9d9d9;
  710. float: left;
  711. // margin-left: 50px;
  712. .image-preview-wrapper {
  713. position: relative;
  714. width: 100%;
  715. height: 100%;
  716. img {
  717. width: 100%;
  718. height: 100%;
  719. }
  720. }
  721. .image-preview-action {
  722. position: absolute;
  723. width: 100%;
  724. height: 30px;
  725. left: 0;
  726. bottom: 0;
  727. color: #fff;
  728. opacity: 0;
  729. font-size: 20px;
  730. background-color: rgba(0, 0, 0, 0.5);
  731. transition: opacity 0.3s;
  732. cursor: pointer;
  733. text-align: center;
  734. line-height: 30px;
  735. .el-icon-delete {
  736. font-size: 25px;
  737. }
  738. }
  739. &:hover {
  740. .image-preview-action {
  741. opacity: 1;
  742. }
  743. }
  744. }
  745. .image-app-preview {
  746. margin-bottom: 10px;
  747. width: 40vh;
  748. height: 180px;
  749. position: relative;
  750. border: 1px dashed #d9d9d9;
  751. float: left;
  752. // margin-left: 50px;
  753. .app-fake-conver {
  754. height: 44px;
  755. position: absolute;
  756. width: 100%; // background: rgba(0, 0, 0, .1);
  757. text-align: center;
  758. line-height: 64px;
  759. color: #fff;
  760. }
  761. }
  762. }
  763. </style>