24bd480d1e631b83e24db7fd9e4ceff6f4de9be0.svn-base 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  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-->
  49. <!-- v-model="changeSupervision.inspPblmCate"-->
  50. <!-- clearable-->
  51. <!-- disabled-->
  52. <!-- placeholder="请选择"-->
  53. <!-- >-->
  54. <!-- <el-option-->
  55. <!-- v-for="item in supervisionState"-->
  56. <!-- :key="item.value"-->
  57. <!-- :label="item.label"-->
  58. <!-- :value="item.value"-->
  59. <!-- ></el-option>-->
  60. <!-- </el-select>-->
  61. <!-- </el-form-item>-->
  62. <el-form-item label="是否为典型问题:">
  63. <el-select v-model="changeSupervision.ifCasePblm" clearable placeholder="请选择">
  64. <el-option
  65. v-for="item in supervision"
  66. :key="item.value"
  67. :label="item.label"
  68. :value="item.value"
  69. ></el-option>
  70. </el-select>
  71. </el-form-item>
  72. <el-form-item label="原因分析" style="text-align:left">
  73. <el-input v-model="changeSupervision.pblmReason" type="textarea" :rows="4" placeholder="原因分析"></el-input>
  74. </el-form-item>
  75. <el-form-item label="整改建议" style="text-align:left">
  76. <el-input v-model="changeSupervision.pblmSggtn" type="textarea" :rows="4" placeholder="整改建议"></el-input>
  77. </el-form-item>
  78. <el-form-item label="备注" prop="note">
  79. <el-input type="textarea" :rows="2" v-model.trim="changeSupervision.note" clearable></el-input>
  80. </el-form-item>
  81. <el-form-item label="上报人" prop="persName">
  82. <el-input
  83. resize="none"
  84. type="input"
  85. :rows="3"
  86. readonly
  87. placeholder="请输入"
  88. v-model.trim="changeSupervision.persName"
  89. ></el-input>
  90. </el-form-item>
  91. <el-form-item label="上报时间" prop="collTime">
  92. <el-date-picker v-model="changeSupervision.collTime" readonly type="date"></el-date-picker>
  93. </el-form-item>
  94. </el-form>
  95. </div>
  96. <div
  97. style="width: 49%;float: left;border: 1px solid rgb(213, 213, 255);margin-right: 5px;overflow-y: auto;max-height: 58vh;">
  98. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">多媒体信息</p>
  99. <el-tabs style="margin:0px 5px">
  100. <el-tab-pane :label="picturetabName">
  101. <el-row style="text-align:right;">
  102. <el-button
  103. :v-if="!addPicPanel?addPicPanel:addPicPanel"
  104. size="mini"
  105. type="text"
  106. :icon="!addPicPanel?'el-icon-circle-plus-outline':'el-icon-circle-close-outline'"
  107. @click="addPic"
  108. >{{!addPicPanel?"添加":"取消"}}
  109. </el-button>
  110. </el-row>
  111. <!-- 该上传组件之前用v-if="addPicPanel 控制显示隐藏,发现在点击编辑问题时,如果不上传图片,之间点击确认时会报错 add by lch -->
  112. <el-row v-show="addPicPanel"> <!-- v-if="addPicPanel" -->
  113. <upload
  114. ref="uploadFile"
  115. :url="`/pdcApi/file/insert?bizId=`"
  116. @uploadOver="removeNewSupervision"
  117. ></upload>
  118. </el-row>
  119. <el-row>
  120. <div style="overflow-y:auto;overflow-x:hidden;max-height:30vh;padding:10px;">
  121. <div class="upload-container">
  122. <div
  123. v-for="(item, index) in pictureArray"
  124. :key="index"
  125. class="image-preview image-app-preview"
  126. >
  127. <div class="image-preview-wrapper">
  128. <img :src="`${hostUrl}/${item.filePath}`">
  129. <div class="image-preview-action">
  130. <i @click="removeFile(item.id)" class="el-icon-delete"></i>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </el-row>
  137. </el-tab-pane>
  138. <el-tab-pane :label="audiotabName">
  139. <el-table border :data="audioArray" style="width: 100%;margin: 0 auto;">
  140. <el-table-column header-align="center" align="center" label="音频">
  141. <template slot-scope="scope">
  142. <elaudio
  143. style="margin-left:15%;width:100px;height:30px;"
  144. :theUrl="`${hostUrl}/${scope.row.filePath}`"
  145. ></elaudio>
  146. </template>
  147. </el-table-column>
  148. <el-table-column header-align="center" align="center" label="操作">
  149. <template slot-scope="scope">
  150. <el-button
  151. size="mini"
  152. @click="removeFile(scope.row.id,scope.$index)"
  153. type="danger"
  154. >删除
  155. </el-button>
  156. </template>
  157. </el-table-column>
  158. </el-table>
  159. </el-tab-pane>
  160. <el-tab-pane :label="videotabName">
  161. <el-table border :data="videoArray" style="width: 100%;margin: 0 auto;">
  162. <el-table-column header-align="center" align="center" label="视频">
  163. <template slot-scope="scope">
  164. <video-player
  165. class="vjs-custom-skin"
  166. ref="videoPlayer"
  167. :options="scope.row"
  168. :playsinline="true"
  169. ></video-player>
  170. </template>
  171. </el-table-column>
  172. <el-table-column header-align="center" align="center" label="操作">
  173. <template slot-scope="scope">
  174. <el-button
  175. size="mini"
  176. @click="removeFile(scope.row.id,scope.$index)"
  177. type="danger"
  178. >删除
  179. </el-button>
  180. </template>
  181. </el-table-column>
  182. </el-table>
  183. </el-tab-pane>
  184. <el-tab-pane :label="filetabName">
  185. <el-table border :data="fileArray" style="width: 100%;margin: 0 auto;">
  186. <el-table-column header-align="center" align="center" label="文档">
  187. <template slot-scope="scope">
  188. <p>
  189. <a :href="`${hostUrl}/${scope.row.filePath}`" target="_blank" rel="noopener noreferrer">
  190. {{scope.row.fileName}}
  191. </a>
  192. </p>
  193. </template>
  194. </el-table-column>
  195. <el-table-column header-align="center" align="center" label="操作">
  196. <template slot-scope="scope">
  197. <el-button
  198. size="mini"
  199. @click="removeFile(scope.row.id,scope.$index)"
  200. type="danger"
  201. >删除</el-button>
  202. </template>
  203. </el-table-column>
  204. </el-table>
  205. </el-tab-pane>
  206. </el-tabs>
  207. </div>
  208. </div>
  209. <span slot="footer">
  210. <el-button type="primary" @click="changeSupervisionInfo" :loading="buttonLoading">保存</el-button>
  211. <el-button @click="changeSupervisionVisiblefalse">取消</el-button>
  212. </span>
  213. </el-dialog>
  214. </template>
  215. <script>
  216. import {showDetailsXq, updatelist, deleteFileById} from "../../api/duChaAPI.js";
  217. import request from "../../utils/gw_ajax_request.js";
  218. import { hostUrl } from "@util/global_variable.js";
  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.picturetabName = "图片资料(" + this.pictureArray.length + ")";
  450. this.audiotabName = "音频资料(" + this.audioArray.length + ")";
  451. this.videotabName = "视频资料(" + this.videoArray.length + ")";
  452. this.filetabName = "其它资料(" + this.fileArray.length + ")";
  453. });
  454. },
  455. // 提交修改信息
  456. changeSupervisionInfo() {
  457. console.log(this)
  458. var _self = this;
  459. this.$refs.changeSupFrom.validate(valid => {
  460. if (valid) {
  461. this.$nextTick(() => {
  462. this.changeSupervisionVisible = true;
  463. this.buttonLoading = true;
  464. if (_self.$refs.uploadFile.submitUpload(this.changeSupervision.pblmId)) {
  465. _self.removeNewSupervision();
  466. }
  467. setTimeout(() => {
  468. _self.changeSupervision.inspPblmsName = _self.xiangqingmiaoshu
  469. _self.changeSupervision.checkPoint = _self.jianChaXiangMu
  470. _self.changeSupervision.inspPblmName = _self.wenTiLeiBie
  471. _self.changeSupervision.inspPlbmType = _self.t2.sort2;
  472. _self.changeSupervision.inspPblmCode = _self.t3.sn;
  473. _self.changeSupervision.pblmsTypeId = _self.t3.guid;
  474. _self.changeSupervision.gwComFiles = _self.gwComFiles;
  475. let data = _self.changeSupervision;
  476. updatelist(data).then(res => {
  477. _self.pblmId = res.data.pblmId;
  478. _self.gwComFiles = res.data.gwComFiles;
  479. if (res.success) {
  480. _self.buttonLoading = false;
  481. _self.successInfo();
  482. _self.addPicPanel = false;
  483. } else {
  484. _self.failInfo();
  485. _self.$emit('closeEditDialog')
  486. }
  487. });
  488. }, 1000)
  489. })
  490. }
  491. });
  492. },
  493. removeNewSupervision(arg) {
  494. if (arg) {
  495. var args = this.gwComFiles.concat(arg);
  496. this.gwComFiles = args;
  497. return;
  498. }
  499. },
  500. changeSupervisionVisiblefalse() {
  501. this.$emit('closeEditDialog')
  502. this.$refs.uploadFile.init();
  503. this.addPicPanel = false;
  504. },
  505. addPic() {
  506. this.addPicPanel = !this.addPicPanel;
  507. },
  508. // 删除图片文件
  509. removeFile(id, index) {
  510. // this.updateIdXiuGai = this.updateIdXiuGai;
  511. var _self = this;
  512. this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
  513. confirmButtonText: "确定",
  514. cancelButtonText: "返回",
  515. type: "warning"
  516. }).then(
  517. res => {
  518. if (res === "confirm") {
  519. deleteFileById(id, this.persId).then(res => {
  520. if (res.success) {
  521. this.changeSupervision.gwComFiles.forEach(item => {
  522. if (
  523. item.fileExt == "mp3" ||
  524. item.fileExt == "MP3" ||
  525. item.fileExt == "m4a"
  526. ) {
  527. this.audiotabName.splice(index, 1);
  528. } else if (
  529. item.fileExt == "jpg" ||
  530. item.fileExt == "JPG" ||
  531. item.fileExt == "png" ||
  532. item.fileExt == "PNG" ||
  533. item.fileExt == "JPEG" ||
  534. item.fileExt == "jpeg"
  535. ) {
  536. this.pictureArray.splice(index, 1);
  537. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  538. this.videoArray.splice(index, 1);
  539. }else{
  540. this.fileArray.splice(index,1);
  541. }
  542. });
  543. _self.changeSup(this.updateIdXiuGai);
  544. } else {
  545. this.failInfo();
  546. }
  547. });
  548. }
  549. },
  550. res => {
  551. console.log("返回");
  552. }
  553. )
  554. },
  555. // 操作成功反馈
  556. successInfo() {
  557. this.$message({
  558. type: "success",
  559. message: "操作成功!"
  560. });
  561. this.$emit('closeEditDialog')
  562. },
  563. // 操作失败反馈
  564. failInfo(val) {
  565. this.$message.error(val);
  566. },
  567. // 文件上传
  568. submitUpload() {
  569. this.$refs.upload.submit();
  570. },
  571. closeModal() {
  572. this.$emit('closeEditDialog')
  573. },
  574. getproblemSmallType() {
  575. let result = [];
  576. request.get('/dc/insp/pblms/getPblmType', {
  577. params: {
  578. type: this.pType,
  579. pguid: '00000000000000000000000000000000'
  580. }
  581. }).then(res => {
  582. if (res.success) {
  583. res.data.forEach((ele) => {
  584. let haveinspPblmsName = false;
  585. result.forEach((inspPblm) => {
  586. if (inspPblm['inspPblmsName'] == ele.inspPblmsName) {
  587. //
  588. let havechekPoint = false;
  589. inspPblm['checkPoints'].forEach((chekPoint) => {
  590. if (chekPoint['checkPointName'] == ele.checkPoint) {
  591. //
  592. chekPoint['pblmDescs'].push({
  593. pblmDesc: ele.pblmDesc,
  594. sn: ele.sn,
  595. guid: ele.guid,
  596. });
  597. havechekPoint = true;
  598. }
  599. });
  600. if (!havechekPoint) {
  601. let newCheckPoint = {};
  602. newCheckPoint['checkPointName'] = ele.checkPoint;
  603. newCheckPoint['sort2'] = ele.sort2;
  604. newCheckPoint['pblmDescs'] = [{
  605. pblmDesc: ele.pblmDesc,
  606. sn: ele.sn,
  607. guid: ele.guid,
  608. }]
  609. inspPblm['checkPoints'].push(newCheckPoint);
  610. }
  611. haveinspPblmsName = true;
  612. }
  613. });
  614. if (!haveinspPblmsName) {
  615. let haveinspPblmsObj = {};
  616. haveinspPblmsObj['inspPblmsName'] = ele.inspPblmsName;
  617. haveinspPblmsObj['sort1'] = ele.sort1;
  618. haveinspPblmsObj['checkPoints'] = [{
  619. checkPointName: ele.checkPoint,
  620. sort2: ele.sort2,
  621. pblmDescs: [{
  622. pblmDesc: ele.pblmDesc,
  623. sn: ele.sn,
  624. guid: ele.guid,
  625. }]
  626. }];
  627. result.push(haveinspPblmsObj);
  628. }
  629. })
  630. this.problemList = result;
  631. this.changeSup(this.editId)
  632. }
  633. })
  634. },
  635. getYanZhongChengDu() {
  636. request.post('/dc/insp/pblms/getPblmsByType', {
  637. inspPblmsName: this.wenTiLeiBie,
  638. checkPoint: this.jianChaXiangMu,
  639. pblmDesc: this.xiangqingmiaoshu,
  640. type: "91"
  641. }).then(res => {
  642. if (res.success) {
  643. this.changeSupervision.inspPblmCate = res.data.inspPblmCate;
  644. }
  645. })
  646. },
  647. problemListChange: function (item) {
  648. this.t1 = item
  649. this.wenTiLeiBie = item.inspPblmsName;
  650. this.currentCheckPointList = item.checkPoints;
  651. },
  652. currentCheckPointListChange: function (item) {
  653. this.jianChaXiangMu = item.checkPointName;
  654. this.currentProblemDescList = item.pblmDescs;
  655. },
  656. currentProblemDescListChange: function (item) {
  657. this.xiangqingmiaoshu = item.pblmDesc;
  658. console.log(item);
  659. },
  660. },
  661. watch: {
  662. editId(val) {
  663. this.changeSup(val)
  664. },
  665. // 't1': {
  666. // handler: function (val, oldVal) {
  667. // this.getYanZhongChengDu()
  668. // },
  669. // deep: true
  670. // },
  671. // 't2': {
  672. // handler: function (val, oldVal) {
  673. // this.getYanZhongChengDu()
  674. // },
  675. // deep: true
  676. // },
  677. 't3': {
  678. handler: function (val, oldVal) {
  679. this.getYanZhongChengDu()
  680. },
  681. deep: true
  682. },
  683. }
  684. }
  685. </script>
  686. <style scoped lang="scss">
  687. .scroll_wrapper {
  688. overflow: hidden;
  689. }
  690. .scroll_wrapper .el-form {
  691. padding-top: 5px;
  692. padding-right: 5px;
  693. }
  694. .upload-container {
  695. width: 100%;
  696. position: relative;
  697. .image-uploader {
  698. width: 35%;
  699. float: left;
  700. }
  701. .image-preview {
  702. width: 200px;
  703. height: 200px;
  704. position: relative;
  705. border: 1px dashed #d9d9d9;
  706. float: left;
  707. // margin-left: 50px;
  708. .image-preview-wrapper {
  709. position: relative;
  710. width: 100%;
  711. height: 100%;
  712. img {
  713. width: 100%;
  714. height: 100%;
  715. }
  716. }
  717. .image-preview-action {
  718. position: absolute;
  719. width: 100%;
  720. height: 100%;
  721. left: 0;
  722. top: 0;
  723. color: #fff;
  724. opacity: 0;
  725. font-size: 20px;
  726. background-color: rgba(0, 0, 0, 0.5);
  727. transition: opacity 0.3s;
  728. cursor: pointer;
  729. text-align: center;
  730. line-height: 200px;
  731. .el-icon-delete {
  732. font-size: 36px;
  733. }
  734. }
  735. &:hover {
  736. .image-preview-action {
  737. opacity: 1;
  738. }
  739. }
  740. }
  741. .image-app-preview {
  742. margin-bottom: 10px;
  743. width: 40vh;
  744. height: 180px;
  745. position: relative;
  746. border: 1px dashed #d9d9d9;
  747. float: left;
  748. // margin-left: 50px;
  749. .app-fake-conver {
  750. height: 44px;
  751. position: absolute;
  752. width: 100%; // background: rgba(0, 0, 0, .1);
  753. text-align: center;
  754. line-height: 64px;
  755. color: #fff;
  756. }
  757. }
  758. }
  759. </style>