34e9e862f29e7319d54aed9d7791c0cea80259f0.svn-base 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771
  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">
  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. export default {
  215. props: ['editId','pType'],
  216. data() {
  217. return {
  218. changeSupervisionVisible: true,
  219. changeSupervision: {},
  220. rules1: {
  221. inspPblmName: [
  222. {
  223. required: true,
  224. message: "请输入问题名称",
  225. trigger: "blur"
  226. },
  227. {
  228. min: 1,
  229. max: 999,
  230. message: "不超过100字符",
  231. trigger: "blur"
  232. }
  233. ],
  234. inspPblmDesc: [
  235. {
  236. required: true,
  237. message: "请输入问题描述",
  238. trigger: "blur"
  239. }
  240. ],
  241. recPers: [
  242. {
  243. required: true,
  244. message: "请输入记录人",
  245. trigger: "blur"
  246. },
  247. {
  248. min: 1,
  249. max: 999,
  250. message: "不超过100字符",
  251. trigger: "blur"
  252. }
  253. ],
  254. objType: [
  255. {
  256. required: true,
  257. message: "请选择督查对象类型",
  258. trigger: "change"
  259. }
  260. ],
  261. objId: [
  262. {
  263. required: true,
  264. message: "请选择督查对象类型",
  265. trigger: "change"
  266. }
  267. ],
  268. inspPblmType: [
  269. {
  270. required: true,
  271. message: "请选择督查问题类型",
  272. trigger: "change"
  273. }
  274. ],
  275. dataStat: [
  276. {
  277. required: true,
  278. message: "请选择数据状态",
  279. trigger: "change"
  280. }
  281. ],
  282. collTime: [
  283. {
  284. required: true,
  285. message: "请选择采集时间",
  286. trigger: "change"
  287. }
  288. ],
  289. ifCasePblm: [
  290. {
  291. required: true,
  292. message: "请选择是否典型",
  293. trigger: "change"
  294. }
  295. ],
  296. pblmStat: [
  297. {
  298. required: true,
  299. message: "请选择问题类型",
  300. trigger: "change"
  301. }
  302. ],
  303. inspPblmCate: [
  304. {
  305. required: true,
  306. message: "请选择问题程度",
  307. trigger: "change"
  308. },
  309. {
  310. trigger: "change"
  311. }
  312. ]
  313. },
  314. supervisionState: [
  315. {
  316. value: "0",
  317. label: "一般"
  318. },
  319. {
  320. value: "1",
  321. label: "较重"
  322. },
  323. {
  324. value: "2",
  325. label: "严重"
  326. },
  327. {
  328. value: "3",
  329. label: "特别严重"
  330. }
  331. ],
  332. supervision: [
  333. {
  334. value: "1",
  335. label: "是"
  336. },
  337. {
  338. value: "0",
  339. label: "否"
  340. }
  341. ],
  342. addPicPanel: false,
  343. gwComFiles: [],
  344. picturetabName: "",
  345. audiotabName: "",
  346. videotabName: "",
  347. pictureArray: [],
  348. audioArray: [],
  349. videoArray: [],
  350. filetabName: "",
  351. fileArray: [],
  352. updateIdXiuGai: "",
  353. pblmId: "",
  354. t1: {},
  355. t2: {},
  356. t3: {},
  357. problemList: [],
  358. currentCheckPointList: [],
  359. currentProblemDescList: [],
  360. xiangqingmiaoshu: '',
  361. wenTiLeiBie: "",
  362. jianChaXiangMu: "",
  363. buttonLoading: false
  364. }
  365. },
  366. components: {
  367. upload: resolve => {
  368. require(["../../widgets/uploadFile.vue"], resolve);
  369. },
  370. },
  371. computed: {
  372. hostUrl() {
  373. return hostUrl
  374. },
  375. persId() {
  376. return localStorage.getItem("userid") ? localStorage.getItem("userid") : "1098101939614724096";
  377. }
  378. },
  379. mounted() {
  380. this.getproblemSmallType();
  381. },
  382. methods: {
  383. // 修改弹窗显示
  384. changeSup(id) {
  385. this.pictureArray = [];
  386. this.audioArray = [];
  387. this.videoArray = [];
  388. this.updateIdXiuGai = id;
  389. let _this = this
  390. showDetailsXq(this.updateIdXiuGai).then(res => {
  391. // if(this.usersId==)
  392. this.changeSupervision = res.data;
  393. this.gwComFiles = this.changeSupervision.gwComFiles;
  394. this.t1['inspPblmsName'] = this.changeSupervision.inspPblmsName
  395. this.problemList.forEach(ele => {
  396. if (ele.inspPblmsName == _this.t1.inspPblmsName) {
  397. _this.problemListChange(ele)
  398. }
  399. })
  400. this.t2['checkPointName'] = this.changeSupervision.checkPoint
  401. this.currentCheckPointList.forEach(ele => {
  402. if (ele.checkPointName == _this.t2.checkPointName) {
  403. _this.currentCheckPointListChange(ele)
  404. }
  405. })
  406. this.t3['pblmDesc'] = this.changeSupervision.pblmDesc
  407. res.data.gwComFiles.forEach(item => {
  408. if (
  409. item.fileExt == "mp3" ||
  410. item.fileExt == "MP3" ||
  411. item.fileExt == "m4a"
  412. ) {
  413. this.audioArray.push(item);
  414. } else if (
  415. item.fileExt == "jpg" ||
  416. item.fileExt == "JPG" ||
  417. item.fileExt == "png" ||
  418. item.fileExt == "PNG" ||
  419. item.fileExt == "JPEG" ||
  420. item.fileExt == "jpeg"
  421. ) {
  422. this.pictureArray.push(item);
  423. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  424. this.videoArray.push({
  425. id: item.id,
  426. bizId: item.bizId,
  427. width: "130",
  428. height: "130",
  429. autoplay: false,
  430. muted: true,
  431. language: "en",
  432. playbackRates: [0.7, 1.0, 1.5, 2.0],
  433. sources: [
  434. {
  435. type: "video/mp4",
  436. src: this.hostUrl + item.filePath
  437. }
  438. ]
  439. });
  440. } else {
  441. this.fileArray.push(item);
  442. }
  443. });
  444. this.picturetabName = "图片资料(" + this.pictureArray.length + ")";
  445. this.audiotabName = "音频资料(" + this.audioArray.length + ")";
  446. this.videotabName = "视频资料(" + this.videoArray.length + ")";
  447. this.filetabName = "其它资料(" + this.fileArray.length + ")";
  448. });
  449. },
  450. // 提交修改信息
  451. changeSupervisionInfo() {
  452. console.log(this)
  453. var _self = this;
  454. this.$refs.changeSupFrom.validate(valid => {
  455. if (valid) {
  456. this.$nextTick(() => {
  457. this.changeSupervisionVisible = true;
  458. this.buttonLoading = true;
  459. if (_self.$refs.uploadFile.submitUpload(this.changeSupervision.pblmId)) {
  460. _self.removeNewSupervision();
  461. }
  462. setTimeout(() => {
  463. _self.changeSupervision.inspPblmsName = _self.xiangqingmiaoshu
  464. _self.changeSupervision.checkPoint = _self.jianChaXiangMu
  465. _self.changeSupervision.inspPblmName = _self.wenTiLeiBie
  466. _self.changeSupervision.inspPlbmType = _self.t2.sort2;
  467. _self.changeSupervision.inspPblmCode = _self.t3.sn;
  468. _self.changeSupervision.pblmsTypeId = _self.t3.guid;
  469. _self.changeSupervision.gwComFiles = _self.gwComFiles;
  470. let data = _self.changeSupervision;
  471. updatelist(data).then(res => {
  472. _self.pblmId = res.data.pblmId;
  473. _self.gwComFiles = res.data.gwComFiles;
  474. if (res.success) {
  475. _self.buttonLoading = false;
  476. _self.successInfo();
  477. _self.addPicPanel = false;
  478. } else {
  479. _self.failInfo();
  480. _self.$emit('closeEditDialog')
  481. }
  482. });
  483. }, 1000)
  484. })
  485. }
  486. });
  487. },
  488. removeNewSupervision(arg) {
  489. if (arg) {
  490. var args = this.gwComFiles.concat(arg);
  491. this.gwComFiles = args;
  492. return;
  493. }
  494. },
  495. changeSupervisionVisiblefalse() {
  496. this.$emit('closeEditDialog')
  497. this.$refs.uploadFile.init();
  498. this.addPicPanel = false;
  499. },
  500. addPic() {
  501. this.addPicPanel = !this.addPicPanel;
  502. },
  503. // 删除图片文件
  504. removeFile(id, index) {
  505. // this.updateIdXiuGai = this.updateIdXiuGai;
  506. var _self = this;
  507. this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
  508. confirmButtonText: "确定",
  509. cancelButtonText: "返回",
  510. type: "warning"
  511. }).then(
  512. res => {
  513. if (res === "confirm") {
  514. deleteFileById(id, this.persId).then(res => {
  515. if (res.success) {
  516. this.changeSupervision.gwComFiles.forEach(item => {
  517. if (
  518. item.fileExt == "mp3" ||
  519. item.fileExt == "MP3" ||
  520. item.fileExt == "m4a"
  521. ) {
  522. this.audiotabName.splice(index, 1);
  523. } else if (
  524. item.fileExt == "jpg" ||
  525. item.fileExt == "JPG" ||
  526. item.fileExt == "png" ||
  527. item.fileExt == "PNG" ||
  528. item.fileExt == "JPEG" ||
  529. item.fileExt == "jpeg"
  530. ) {
  531. this.pictureArray.splice(index, 1);
  532. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  533. this.videoArray.splice(index, 1);
  534. }else{
  535. this.fileArray.splice(index,1);
  536. }
  537. });
  538. _self.changeSup(this.updateIdXiuGai);
  539. } else {
  540. this.failInfo();
  541. }
  542. });
  543. }
  544. },
  545. res => {
  546. console.log("返回");
  547. }
  548. )
  549. },
  550. // 操作成功反馈
  551. successInfo() {
  552. this.$message({
  553. type: "success",
  554. message: "操作成功!"
  555. });
  556. this.$emit('closeEditDialog')
  557. },
  558. // 操作失败反馈
  559. failInfo(val) {
  560. this.$message.error(val);
  561. },
  562. // 文件上传
  563. submitUpload() {
  564. this.$refs.upload.submit();
  565. },
  566. closeModal() {
  567. this.$emit('closeEditDialog')
  568. },
  569. getproblemSmallType() {
  570. let result = [];
  571. request.get('/dc/insp/pblms/getPblmType', {
  572. params: {
  573. type: this.pType,
  574. pguid: '00000000000000000000000000000000'
  575. }
  576. }).then(res => {
  577. if (res.success) {
  578. res.data.forEach((ele) => {
  579. let haveinspPblmsName = false;
  580. result.forEach((inspPblm) => {
  581. if (inspPblm['inspPblmsName'] == ele.inspPblmsName) {
  582. //
  583. let havechekPoint = false;
  584. inspPblm['checkPoints'].forEach((chekPoint) => {
  585. if (chekPoint['checkPointName'] == ele.checkPoint) {
  586. //
  587. chekPoint['pblmDescs'].push({
  588. pblmDesc: ele.pblmDesc,
  589. sn: ele.sn,
  590. guid: ele.guid,
  591. });
  592. havechekPoint = true;
  593. }
  594. });
  595. if (!havechekPoint) {
  596. let newCheckPoint = {};
  597. newCheckPoint['checkPointName'] = ele.checkPoint;
  598. newCheckPoint['sort2'] = ele.sort2;
  599. newCheckPoint['pblmDescs'] = [{
  600. pblmDesc: ele.pblmDesc,
  601. sn: ele.sn,
  602. guid: ele.guid,
  603. }]
  604. inspPblm['checkPoints'].push(newCheckPoint);
  605. }
  606. haveinspPblmsName = true;
  607. }
  608. });
  609. if (!haveinspPblmsName) {
  610. let haveinspPblmsObj = {};
  611. haveinspPblmsObj['inspPblmsName'] = ele.inspPblmsName;
  612. haveinspPblmsObj['sort1'] = ele.sort1;
  613. haveinspPblmsObj['checkPoints'] = [{
  614. checkPointName: ele.checkPoint,
  615. sort2: ele.sort2,
  616. pblmDescs: [{
  617. pblmDesc: ele.pblmDesc,
  618. sn: ele.sn,
  619. guid: ele.guid,
  620. }]
  621. }];
  622. result.push(haveinspPblmsObj);
  623. }
  624. })
  625. this.problemList = result;
  626. this.changeSup(this.editId)
  627. }
  628. })
  629. },
  630. getYanZhongChengDu() {
  631. request.post('/dc/insp/pblms/getPblmsByType', {
  632. inspPblmsName: this.wenTiLeiBie,
  633. checkPoint: this.jianChaXiangMu,
  634. pblmDesc: this.xiangqingmiaoshu,
  635. type: "29"
  636. }).then(res => {
  637. if (res.success) {
  638. this.changeSupervision.inspPblmCate = res.data.inspPblmCate;
  639. }
  640. })
  641. },
  642. problemListChange: function (item) {
  643. this.t1 = item
  644. this.wenTiLeiBie = item.inspPblmsName;
  645. this.currentCheckPointList = item.checkPoints;
  646. },
  647. currentCheckPointListChange: function (item) {
  648. this.jianChaXiangMu = item.checkPointName;
  649. this.currentProblemDescList = item.pblmDescs;
  650. },
  651. currentProblemDescListChange: function (item) {
  652. this.xiangqingmiaoshu = item.pblmDesc;
  653. console.log(item);
  654. },
  655. },
  656. watch: {
  657. editId(val) {
  658. this.changeSup(val)
  659. },
  660. // 't1': {
  661. // handler: function (val, oldVal) {
  662. // this.getYanZhongChengDu()
  663. // },
  664. // deep: true
  665. // },
  666. // 't2': {
  667. // handler: function (val, oldVal) {
  668. // this.getYanZhongChengDu()
  669. // },
  670. // deep: true
  671. // },
  672. 't3': {
  673. handler: function (val, oldVal) {
  674. this.getYanZhongChengDu()
  675. },
  676. deep: true
  677. },
  678. }
  679. }
  680. </script>
  681. <style scoped lang="scss">
  682. .scroll_wrapper {
  683. overflow: hidden;
  684. }
  685. .scroll_wrapper .el-form {
  686. padding-top: 5px;
  687. padding-right: 5px;
  688. }
  689. .upload-container {
  690. width: 100%;
  691. position: relative;
  692. .image-uploader {
  693. width: 35%;
  694. float: left;
  695. }
  696. .image-preview {
  697. width: 200px;
  698. height: 200px;
  699. position: relative;
  700. border: 1px dashed #d9d9d9;
  701. float: left;
  702. // margin-left: 50px;
  703. .image-preview-wrapper {
  704. position: relative;
  705. width: 100%;
  706. height: 100%;
  707. img {
  708. width: 100%;
  709. height: 100%;
  710. }
  711. }
  712. .image-preview-action {
  713. position: absolute;
  714. width: 100%;
  715. height: 100%;
  716. left: 0;
  717. top: 0;
  718. color: #fff;
  719. opacity: 0;
  720. font-size: 20px;
  721. background-color: rgba(0, 0, 0, 0.5);
  722. transition: opacity 0.3s;
  723. cursor: pointer;
  724. text-align: center;
  725. line-height: 200px;
  726. .el-icon-delete {
  727. font-size: 36px;
  728. }
  729. }
  730. &:hover {
  731. .image-preview-action {
  732. opacity: 1;
  733. }
  734. }
  735. }
  736. .image-app-preview {
  737. margin-bottom: 10px;
  738. width: 40vh;
  739. height: 180px;
  740. position: relative;
  741. border: 1px dashed #d9d9d9;
  742. float: left;
  743. // margin-left: 50px;
  744. .app-fake-conver {
  745. height: 44px;
  746. position: absolute;
  747. width: 100%; // background: rgba(0, 0, 0, .1);
  748. text-align: center;
  749. line-height: 64px;
  750. color: #fff;
  751. }
  752. }
  753. }
  754. </style>