dc174726368233034e6c8e159a3a3d7618b0ec75.svn-base 34 KB

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