d0a5fde50cb0f2f178f29662145f7eba750d9d39.svn-base 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251
  1. <template>
  2. <!-- 修改弹框 -->
  3. <el-dialog
  4. width="90%"
  5. class="outerDialog modify_problem_dialog"
  6. title="修改稽察问题"
  7. @close="closeModal"
  8. :close-on-click-modal="false"
  9. :visible.sync="changeSupervisionVisible">
  10. <div class="scroll_wrapper">
  11. <div
  12. style="width:49%;overflow-y:auto;max-height:62vh;float:left;border:1px solid #d5d5ff;margin-right:5px;">
  13. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">基本信息</p>
  14. <el-form ref="changeSupFrom" :model="changeSupervision" :rules="rules" label-width="140px">
  15. <el-form-item label="选择问题">
  16. <el-select v-model="keyword" filterable popper-class="problem_select" placeholder="请选择" disabled @change="changeSelect">
  17. <el-option
  18. v-for="item in problemList"
  19. :key="item.id"
  20. :label="item.pblmsDesc"
  21. :value="item.id">
  22. </el-option>
  23. </el-select>
  24. </el-form-item>
  25. <el-form-item label="问题描述">
  26. <el-input v-model="changeSupervision.pblmsDesc" readonly rows="5" type="textarea"></el-input>
  27. </el-form-item>
  28. <el-form-item label="法规条款">
  29. <el-input v-model="changeSupervision.relativeLaw" @input="updateView($event)" rows="5" type="textarea" autocomplete="off"></el-input>
  30. </el-form-item>
  31. <el-form-item label="法规内容">
  32. <el-input v-model="changeSupervision.lawContent" @input="updateView($event)" rows="5" type="textarea" autocomplete="off"></el-input>
  33. </el-form-item>
  34. <el-form-item label="备注">
  35. <el-input v-model="changeSupervision.note" readonly rows="1" type="textarea" autocomplete="off"></el-input>
  36. </el-form-item>
  37. <p class="item_title">
  38. <i class="el-icon-caret-right"></i>
  39. <span>责任主体</span>
  40. <span class="el-icon-circle-plus" title="添加单位" @click="addUnit"></span>
  41. <!-- <span class="hrs"></span> -->
  42. </p>
  43. <div v-for="(unit,index) in unitArray" :key="index">
  44. <el-form-item label="单位性质">
  45. <el-select v-model="unit.subId" placeholder="请选择" :disabled="disabled" @change="natureChange(val,index)">
  46. <el-option
  47. v-for="item in objSubjectList"
  48. :key="item.id"
  49. :label="item.subName"
  50. :value="item.id">
  51. </el-option>
  52. </el-select>
  53. <span class="el-icon-remove" title="删除单位" v-if="index != 0" @click="removeUnit(index)"></span>
  54. </el-form-item>
  55. <el-form-item label="单位名称">
  56. <el-select v-model="unit.unitNm" popper-class="problem_select" :disabled="disabled" @change="unitSelect" placeholder="请选择">
  57. <el-option
  58. v-for="item in unitNameList"
  59. :key="item.id"
  60. :label="item.sctnName ? `${item.sysNm}(${item.sctnName})` : item.sysNm"
  61. :value="item.sysNm">
  62. </el-option>
  63. </el-select>
  64. <!-- <el-input v-model="unit.unitNm" autocomplete="off"></el-input> -->
  65. </el-form-item>
  66. </div>
  67. <el-form-item label="">
  68. </el-form-item>
  69. <el-form-item label="排序序号" prop="sn">
  70. <el-input v-model="changeSupervision.sn" autocomplete="off"></el-input>
  71. </el-form-item>
  72. <el-form-item label="发现问题">
  73. <el-input v-model="changeSupervision.pblmNm" :disabled="disabled" autocomplete="off"></el-input>
  74. </el-form-item>
  75. <el-form-item label="问题分类" prop="pblmTypeDesc">
  76. <!-- pblmQlttvCd -->
  77. <el-select v-model="changeSupervision.pblmTypeDesc" filterable popper-class="problem_select" style="width: 88%" placeholder="请选择">
  78. <el-option
  79. v-for="(item,index) in problemDxList"
  80. :key="index"
  81. :label="item"
  82. :value="item">
  83. </el-option>
  84. </el-select>
  85. </el-form-item>
  86. <el-form-item label="问题阐述">
  87. <el-input v-model="changeSupervision.pblmDesc" rows="5" type="textarea" :disabled="disabled" autocomplete="off"></el-input>
  88. </el-form-item>
  89. <el-form-item label="问题严重性" prop="pblmPasi">
  90. <el-select v-if="isGd || isSc || isSd" v-model="changeSupervision.pblmPasi" :disabled="disabled" placeholder="请选择">
  91. <el-option label="一般" value="0"></el-option>
  92. <el-option label="较重" value="1"></el-option>
  93. <el-option label="严重" value="2"></el-option>
  94. </el-select>
  95. <el-select v-if="!isGd && !isSc && !isSd" v-model="changeSupervision.pblmPasi" :disabled="disabled" placeholder="请选择" @change="changeRules">
  96. <el-option
  97. v-for="item in cateObjList"
  98. :key="item.cate"
  99. :label="item.desc"
  100. :value="item.cate">
  101. </el-option>
  102. </el-select>
  103. </el-form-item>
  104. <!-- <el-form-item label="问题严重性">-->
  105. <!-- <el-select v-model="changeSupervision.pblmPasi" :disabled="disabled" placeholder="请选择">-->
  106. <!-- <el-option-->
  107. <!-- v-for="item in cateObjList"-->
  108. <!-- :key="item.cate"-->
  109. <!-- :label="item.desc"-->
  110. <!-- :value="item.cate">-->
  111. <!-- </el-option>-->
  112. <!-- </el-select>-->
  113. <!-- </el-form-item>-->
  114. <el-form-item label="问题是否典型">
  115. <el-radio v-model="changeSupervision.ifCasePblm" :disabled="disabled" label="1">是</el-radio>
  116. <el-radio v-model="changeSupervision.ifCasePblm" :disabled="disabled" label="0">否</el-radio>
  117. </el-form-item>
  118. <el-form-item label="主要原因分析" prop="pblmReason">
  119. <el-input v-model="changeSupervision.pblmReason" rows="5" type="textarea" :disabled="disabled" autocomplete="off"></el-input>
  120. </el-form-item>
  121. <el-form-item label="整改意见及建议" prop="pblmSggtn">
  122. <el-input v-model="changeSupervision.pblmSggtn" rows="5" type="textarea" :disabled="disabled" autocomplete="off"></el-input>
  123. </el-form-item>
  124. <el-form-item label="稽察组长复核意见">
  125. <el-input v-model="changeSupervision.spclRvwOptn" rows="5" type="textarea" autocomplete="off"></el-input>
  126. </el-form-item>
  127. <el-form-item v-if="isRevision=='1'" label="问题修改理由" >
  128. <el-input v-model="changeSupervision.pblmRevision" rows="5" type="textarea" autocomplete="off"></el-input>
  129. </el-form-item>
  130. </el-form>
  131. </div>
  132. <div
  133. style="width: 49%;float: left;border: 1px solid rgb(213, 213, 255);margin-right: 5px;overflow-y: auto;max-height: 62vh;">
  134. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">问题多媒体信息</p>
  135. <el-tabs style="margin:0px 5px">
  136. <el-tab-pane :label="picturetabName">
  137. <el-row style="text-align:right;">
  138. <el-button
  139. :v-if="!addPicPanel?addPicPanel:addPicPanel"
  140. size="mini"
  141. type="text"
  142. :icon="!addPicPanel?'el-icon-circle-plus-outline':'el-icon-circle-close-outline'"
  143. @click="addPic(0)"
  144. >{{!addPicPanel?"添加":"取消"}}</el-button>
  145. </el-row>
  146. <el-row v-show="addPicPanel">
  147. <upload
  148. ref="uploadFile"
  149. :url="`/pdcApi/file/insert?bizId=`"
  150. @uploadOver="removeNewSupervision"
  151. ></upload>
  152. </el-row>
  153. <el-row>
  154. <div style="overflow-y:auto;overflow-x:hidden;max-height:42vh;padding:10px;">
  155. <div class="upload-container">
  156. <viewer :images="pictureArray">
  157. <draggable v-model="pictureArray" :options="{group:'image'}" @change="dragChange">
  158. <div
  159. v-if="editPicRefresh"
  160. v-for="(item, index) in pictureArray"
  161. :key="index"
  162. class="image-preview image-app-preview">
  163. <div class="image-preview-wrapper">
  164. <img :src="`${hostUrl}/${item.filePath}?d=${new Date().getTime()}`">
  165. <div class="image-preview-action">
  166. <!-- <i @click="previewFile(item.filePath)" class="el-icon-zoom-in"></i> -->
  167. <i @click="removeFile(item.id)" class="el-icon-delete"></i>
  168. <i @click="editPicEvent(item)" class="el-icon-edit-outline"></i>
  169. </div>
  170. </div>
  171. </div>
  172. </draggable>
  173. </viewer>
  174. <el-dialog :visible.sync="previewDialogVisible" class="pic_dialog" append-to-body width="60%">
  175. <div style="width: 500px;height: 460px;margin: 0 auto;position: relative;display: flex;justify-content:center;align-items:center">
  176. <img :src="dialogImageUrl" alt="" :style="rotateDeg" style="max-width: 100%;max-height:460px;">
  177. <p style="position:absolute;bottom: 0;right: 30px;"><i class="el-icon-refresh-right" title="旋转" @click="picRotate"></i></p>
  178. </div>
  179. </el-dialog>
  180. </div>
  181. </div>
  182. </el-row>
  183. </el-tab-pane>
  184. <el-tab-pane :label="audiotabName">
  185. <el-table border :data="audioArray" style="width: 100%;margin: 0 auto;">
  186. <el-table-column header-align="center" align="center" label="音频">
  187. <template slot-scope="scope">
  188. <elaudio
  189. style="margin-left:15%;width:100px;height:30px;"
  190. :theUrl="`${hostUrl}/${scope.row.filePath}`"
  191. ></elaudio>
  192. </template>
  193. </el-table-column>
  194. <el-table-column header-align="center" align="center" label="操作">
  195. <template slot-scope="scope">
  196. <el-button
  197. size="mini"
  198. @click="removeFile(scope.row.id,scope.$index)"
  199. type="danger"
  200. >删除</el-button>
  201. </template>
  202. </el-table-column>
  203. </el-table>
  204. </el-tab-pane>
  205. <el-tab-pane :label="videotabName">
  206. <el-table border :data="videoArray" style="width: 100%;margin: 0 auto;">
  207. <el-table-column header-align="center" align="center" label="视频">
  208. <template slot-scope="scope">
  209. <video-player
  210. class="vjs-custom-skin"
  211. ref="videoPlayer"
  212. :options="scope.row"
  213. :playsinline="true"
  214. ></video-player>
  215. </template>
  216. </el-table-column>
  217. <el-table-column header-align="center" align="center" label="操作">
  218. <template slot-scope="scope">
  219. <el-button
  220. size="mini"
  221. @click="removeFile(scope.row.id,scope.$index)"
  222. type="danger"
  223. >删除</el-button>
  224. </template>
  225. </el-table-column>
  226. </el-table>
  227. </el-tab-pane>
  228. <el-tab-pane :label="filetabName">
  229. <el-table border :data="fileArray" style="width: 100%;margin: 0 auto;">
  230. <el-table-column header-align="center" align="center" label="文档">
  231. <template slot-scope="scope">
  232. <p>
  233. <a :href="`${hostUrl}/${scope.row.filePath}`" target="_blank" rel="noopener noreferrer">
  234. {{scope.row.fileName}}
  235. </a>
  236. </p>
  237. </template>
  238. </el-table-column>
  239. <el-table-column header-align="center" align="center" label="操作">
  240. <template slot-scope="scope">
  241. <el-button
  242. size="mini"
  243. @click="removeFile(scope.row.id,scope.$index)"
  244. type="danger"
  245. >删除</el-button>
  246. </template>
  247. </el-table-column>
  248. </el-table>
  249. </el-tab-pane>
  250. </el-tabs>
  251. </div>
  252. <div v-if="isRevision=='1'" style="width: 49%;float: left;border: 1px solid rgb(213, 213, 255);margin-right: 5px;padding-top: 10px;overflow-y: auto;max-height: 62vh;">
  253. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">问题修改理由佐证多媒体信息</p>
  254. <el-tabs style="margin:0px 5px">
  255. <el-tab-pane :label="picturetabNameq">
  256. <el-row style="text-align:right;">
  257. <el-button
  258. :v-if="!addPicPanel2?addPicPanel2:addPicPanel2"
  259. size="mini"
  260. type="text"
  261. :icon="!addPicPanel2?'el-icon-circle-plus-outline':'el-icon-circle-close-outline'"
  262. @click="addPic(1)"
  263. >{{!addPicPanel2?"添加":"取消"}}</el-button>
  264. </el-row>
  265. <el-row v-show="addPicPanel2">
  266. <upload2
  267. ref="uploadFile2"
  268. :url="`/pdcApi/file/insert?bizId=`"
  269. @uploadOver="removeNewSupervision"
  270. ></upload2>
  271. </el-row>
  272. <el-row>
  273. <div style="overflow-y:auto;overflow-x:hidden;max-height:42vh;padding:10px;">
  274. <div class="upload-container">
  275. <viewer :images="pictureArrayq">
  276. <draggable v-model="pictureArrayq" :options="{group:'image'}" @change="dragChangeq">
  277. <div
  278. v-if="editPicRefresh"
  279. v-for="(item, index) in pictureArrayq"
  280. :key="index"
  281. class="image-preview image-app-preview">
  282. <div class="image-preview-wrapper">
  283. <img :src="`${hostUrl}/${item.filePath}`">
  284. <div class="image-preview-action">
  285. <!-- <i @click="previewFile(item.filePath)" class="el-icon-zoom-in"></i> -->
  286. <i @click="removeFile2(item.id)" class="el-icon-delete"></i>
  287. <i @click="editPicEvent(item)" class="el-icon-edit-outline"></i>
  288. </div>
  289. </div>
  290. </div>
  291. </draggable>
  292. </viewer>
  293. <el-dialog :visible.sync="previewDialogVisible" class="pic_dialog" append-to-body width="60%">
  294. <div style="width: 500px;height: 460px;margin: 0 auto;position: relative;display: flex;justify-content:center;align-items:center">
  295. <img :src="dialogImageUrl" alt="" :style="rotateDeg" style="max-width: 100%;max-height:460px;">
  296. <p style="position:absolute;bottom: 0;right: 30px;"><i class="el-icon-refresh-right" title="旋转" @click="picRotate"></i></p>
  297. </div>
  298. </el-dialog>
  299. </div>
  300. </div>
  301. </el-row>
  302. </el-tab-pane>
  303. <el-tab-pane :label="audiotabNameq">
  304. <el-table border :data="audioArrayq" style="width: 100%;margin: 0 auto;">
  305. <el-table-column header-align="center" align="center" label="音频">
  306. <template slot-scope="scope">
  307. <elaudio
  308. style="margin-left:15%;width:100px;height:30px;"
  309. :theUrl="`${hostUrl}/${scope.row.filePath}`"
  310. ></elaudio>
  311. </template>
  312. </el-table-column>
  313. <el-table-column header-align="center" align="center" label="操作">
  314. <template slot-scope="scope">
  315. <el-button
  316. size="mini"
  317. @click="removeFile2(scope.row.id,scope.$index)"
  318. type="danger"
  319. >删除</el-button>
  320. </template>
  321. </el-table-column>
  322. </el-table>
  323. </el-tab-pane>
  324. <el-tab-pane :label="videotabNameq">
  325. <el-table border :data="videoArrayq" style="width: 100%;margin: 0 auto;">
  326. <el-table-column header-align="center" align="center" label="视频">
  327. <template slot-scope="scope">
  328. <video-player
  329. class="vjs-custom-skin"
  330. ref="videoPlayer"
  331. :options="scope.row"
  332. :playsinline="true"
  333. ></video-player>
  334. </template>
  335. </el-table-column>
  336. <el-table-column header-align="center" align="center" label="操作">
  337. <template slot-scope="scope">
  338. <el-button
  339. size="mini"
  340. @click="removeFile2(scope.row.id,scope.$index)"
  341. type="danger"
  342. >删除</el-button>
  343. </template>
  344. </el-table-column>
  345. </el-table>
  346. </el-tab-pane>
  347. <el-tab-pane :label="filetabNameq">
  348. <el-table border :data="fileArrayq" style="width: 100%;margin: 0 auto;">
  349. <el-table-column header-align="center" align="center" label="文档">
  350. <template slot-scope="scope">
  351. <p>
  352. <a :href="`${hostUrl}/${scope.row.filePath}`" target="_blank" rel="noopener noreferrer">
  353. {{scope.row.fileName}}
  354. </a>
  355. </p>
  356. </template>
  357. </el-table-column>
  358. <el-table-column header-align="center" align="center" label="操作">
  359. <template slot-scope="scope">
  360. <el-button
  361. size="mini"
  362. @click="removeFile2(scope.row.id,scope.$index)"
  363. type="danger"
  364. >删除</el-button>
  365. </template>
  366. </el-table-column>
  367. </el-table>
  368. </el-tab-pane>
  369. </el-tabs>
  370. </div>
  371. </div>
  372. <span slot="footer">
  373. <el-button type="primary" @click="submitProblem">保存</el-button>
  374. <el-button @click="closeModal">取消</el-button>
  375. </span>
  376. <div v-if="editPicDialog">
  377. <EditPicOnline
  378. ref="editPicWeakupEvnent"
  379. :picUrl="picUrl"
  380. @cancelHandler="cancelHandler"
  381. @editPicData="editPicDataEvent"
  382. ></EditPicOnline>
  383. </div>
  384. </el-dialog>
  385. </template>
  386. <script>
  387. import draggable from "vuedraggable";
  388. import {updatelist,deleteFileById} from "@api/duChaAPI.js";
  389. import {showDetailsXq,getProblemNatureApi,submitProblemApi,getSelectProblemList,getUnitNameListApi,getProblemDxListApi} from "@api/InspectionReport.js";
  390. import request from "@util/gw_ajax_request.js";
  391. import elaudio from "@widget/elAudioShort.vue";
  392. import {hostUrl} from '@util/global_variable.js'
  393. export default {
  394. props: ['problemId','pertype','listType','isRevision'],//isRevision是否存在问题修改理由
  395. data(){
  396. var checkSn = (rule, value, callback) => {
  397. if (value && value<0) {
  398. return callback(new Error('序号应大于0'));
  399. }
  400. setTimeout(() => {
  401. if (value && (!(/(^[1-9]\d*$)/.test(value)) || value<0)) {
  402. callback(new Error('请输入大于0的正整数'));
  403. } else {
  404. callback();
  405. }
  406. }, 1000);
  407. };
  408. return{
  409. changeSupervisionVisible: true,
  410. changeSupervisionLoading: false,
  411. changeSupervision: {},
  412. supervision: [
  413. {
  414. value: "1",
  415. label: "是"
  416. },
  417. {
  418. value: "0",
  419. label: "否"
  420. }
  421. ],
  422. addPicPanel: false,
  423. gwComFileList: [],
  424. picturetabName: "",
  425. picturetabNameq: "",
  426. audiotabName: "",
  427. audiotabNameq: "",
  428. videotabName: "",
  429. videotabNameq: "",
  430. filetabName: "",
  431. filetabNameq: "",
  432. pictureArray: [],
  433. pictureArrayq: [],
  434. audioArray: [],
  435. audioArrayq: [],
  436. videoArray: [],
  437. videoArrayq: [],
  438. fileArray: [],
  439. fileArrayq: [],
  440. //问题修改理由取证资源
  441. addPicPanel2: false,
  442. updateIdXiuGai: "",
  443. pblmId: "",
  444. //稽察添加问题用到的参数
  445. keyword: '',
  446. problemList: [],
  447. problemInfo: {},
  448. gwComFileList: [],
  449. cateObjList:[],//严重程度列表
  450. objSubjectList: [], //单位性质列表
  451. unitNameList: [], //单位名称列表
  452. unitArray: [
  453. {
  454. unitNm:'',
  455. subId:''
  456. }
  457. ],
  458. //为稽察组长时禁用
  459. disabled: false,
  460. rules: {
  461. sn: [
  462. { validator: checkSn, trigger: 'blur' }
  463. ],
  464. pblmTypeDesc: [
  465. { required: true, message: '请选择问题类别', trigger: 'change'}
  466. ],
  467. pblmPasi: [
  468. { required: true, message: '请选择问题严重性', trigger: 'change'}
  469. ],
  470. pblmReason: [
  471. { required: true, message: '请输入主要原因分析', trigger: 'change' }
  472. ],
  473. pblmSggtn: [
  474. { required: true, message: '请输入意见及建议', trigger: 'change' }
  475. ]
  476. },
  477. dialogImageUrl: '',
  478. previewDialogVisible: false,
  479. rotateDeg: {'transform': 'rotate(0deg)'},
  480. editPicDialog:false,
  481. editPicRefresh:true,
  482. picUrl:"",
  483. picId:"",
  484. problemDxList: [], //问题分类列表
  485. relCode: '',
  486. }
  487. },
  488. components:{
  489. elaudio: elaudio,
  490. draggable,
  491. upload: resolve => {
  492. require(["@widget/uploadFileWithPic.vue"], resolve);
  493. },
  494. upload2: resolve => {
  495. require(["@widget/uploadFileWithPic.vue"], resolve);
  496. },
  497. EditPicOnline: resolve => {
  498. require(["@widget/EditPicOnline/EditPicOnline.vue"], resolve);
  499. },
  500. },
  501. computed:{
  502. hostUrl(){
  503. console.log(hostUrl)
  504. // return window.location.href.indexOf('localhost') > -1 || window.location.href.indexOf("10.1.102.64") > -1 ? 'http://10.1.102.240:8200' : `${window.location.protocol}//${window.location.hostname}`
  505. return hostUrl
  506. },
  507. persId() {
  508. return localStorage.getItem("userid") ? localStorage.getItem("userid") : "1098101939614724096";
  509. },
  510. isGd(){
  511. if(localStorage.getItem('currentRlcode').substring(0,2)=="44"){
  512. return true;
  513. }else{
  514. return false;
  515. }
  516. },
  517. isSc(){
  518. if(localStorage.getItem('currentRlcode').substring(0,2)=="51"){
  519. return true;
  520. }else{
  521. return false;
  522. }
  523. },
  524. isSd(){
  525. if(localStorage.getItem('currentRlcode').substring(0,2)=="37"){
  526. return true;
  527. }else{
  528. return false;
  529. }
  530. },
  531. isHb(){
  532. if(localStorage.getItem('currentRlcode').substring(0,2)=="42"){
  533. return true;
  534. }else{
  535. return false;
  536. }
  537. }
  538. },
  539. mounted(){
  540. this.getProblemList();
  541. this.changeSup(this.problemId)
  542. if(this.pertype == 20){
  543. this.disabled = true
  544. }
  545. },
  546. methods:{
  547. changeRules(){
  548. if(this.isHb){
  549. if(this.changeSupervision.pblmPasi=="0"){
  550. this.rules["pblmReason"][0].required = false;
  551. this.rules["pblmSggtn"][0].required = false;
  552. }else{
  553. this.rules["pblmReason"][0].required = true;
  554. this.rules["pblmSggtn"][0].required = true;
  555. }
  556. }
  557. },
  558. updateView(){
  559. this.$forceUpdate();
  560. },
  561. editPicEvent(item){
  562. this.picUrl = this.hostUrl + "/" + item.filePath+"?d="+new Date().getTime();
  563. this.editPicDialog = true;
  564. this.editPicRefresh = false;
  565. this.picId = item.id;
  566. },
  567. cancelHandler() {
  568. this.editPicDialog = false;
  569. this.editPicRefresh = true;
  570. },
  571. editPicDataEvent(item){
  572. request.post(`/file/updateFile?bizId=${this.changeSupervision.pblmId}&id=${this.picId}`,item,{headers:{'Content-Type': 'multipart/form-data'}}).then(res => {
  573. console.log(res);
  574. if(res.success){
  575. this.pictureArray = [];
  576. this.changeSup(this.updateIdXiuGai);
  577. this.editPicDialog = false;
  578. this.editPicRefresh = true;
  579. this.$message.success('修改成功');
  580. // showDetailsXq(this.updateIdXiuGai).then(res => {
  581. // res.data.gwComFileList.forEach(item => {
  582. // this.pictureArray.push(item);
  583. // this.editPicDialog = false;
  584. // this.editPicRefresh = true;
  585. // this.$message.success('修改成功');
  586. // });
  587. // this.picturetabName = "图片资料(" + this.pictureArray.length + ")";
  588. // });
  589. }else{
  590. this.$message.warning('修改失败');
  591. }
  592. });
  593. },
  594. // 修改弹窗显示
  595. changeSup(id) {
  596. this.pictureArray = [];
  597. this.audioArray = [];
  598. this.videoArray = [];
  599. this.fileArray = [];
  600. this.pictureArrayq = [];
  601. this.audioArrayq = [];
  602. this.videoArrayq = [];
  603. this.fileArrayq = [];
  604. this.updateIdXiuGai = id;
  605. request.get(`/tac/province/pblm/info/${id}`).then(res => {
  606. // if(this.usersId==)
  607. this.changeSupervision = res.data;
  608. this.changeRules()
  609. this.keyword = this.changeSupervision.tacObjPblmstb ? this.changeSupervision.tacObjPblmstb.id : ''
  610. if(this.changeSupervision.pblmSubjectList){
  611. this.unitArray = this.changeSupervision.pblmSubjectList
  612. }
  613. if(this.changeSupervision.tacObjPblmstb){
  614. this.objSubjectList = this.changeSupervision.tacObjPblmstb.objSubjectList
  615. this.cateObjList = this.changeSupervision.tacObjPblmstb.cateObjList
  616. this.changeSupervision.pblmsDesc = this.changeSupervision.tacObjPblmstb.pblmsDesc
  617. // this.changeSupervision.relativeLaw = this.changeSupervision.tacObjPblmstb.relativeLaw
  618. // this.changeSupervision.lawContent = this.changeSupervision.tacObjPblmstb.lawContent
  619. this.changeSupervision.note = this.changeSupervision.tacObjPblmstb.note
  620. }
  621. this.changeSupervision.pblmQlttvCd = this.changeSupervision.pblmQlttvCd ? this.changeSupervision.pblmQlttvCd.toString() : '';
  622. // this.relCode = this.changeSupervision.lawContent.substr(0,3) by 20200420 thy 统一取class2字段
  623. this.relCode = this.changeSupervision.tacObjPblmstb.class2;
  624. if(this.unitArray.length){
  625. this.unitArray.forEach((ele,index)=>{
  626. this.getUnitNameList(index)
  627. })
  628. }
  629. res.data.gwComFileList.forEach(item => {
  630. if (
  631. item.fileExt == "mp3" ||
  632. item.fileExt == "MP3" ||
  633. item.fileExt == "m4a"
  634. ) {
  635. this.audioArray.push(item);
  636. } else if (
  637. item.fileExt == "jpg" ||
  638. item.fileExt == "JPG" ||
  639. item.fileExt == "png" ||
  640. item.fileExt == "PNG" ||
  641. item.fileExt == "JPEG" ||
  642. item.fileExt == "jpeg"
  643. ) {
  644. this.pictureArray.push(item);
  645. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  646. this.videoArray.push({
  647. width: "130",
  648. height: "130",
  649. autoplay: false,
  650. muted: true,
  651. language: "en",
  652. playbackRates: [0.7, 1.0, 1.5, 2.0],
  653. sources: [
  654. {
  655. type: "video/mp4",
  656. src: this.hostUrl + item.filePath
  657. }
  658. ],
  659. id: item.id
  660. });
  661. } else {
  662. this.fileArray.push(item);
  663. }
  664. });
  665. if(res.data.revisionFileList){
  666. res.data.revisionFileList.forEach(item => {
  667. if (
  668. item.fileExt == "mp3" ||
  669. item.fileExt == "MP3" ||
  670. item.fileExt == "m4a"
  671. ) {
  672. this.audioArrayq.push(item);
  673. } else if (
  674. item.fileExt == "jpg" ||
  675. item.fileExt == "JPG" ||
  676. item.fileExt == "png" ||
  677. item.fileExt == "PNG" ||
  678. item.fileExt == "JPEG" ||
  679. item.fileExt == "jpeg"
  680. ) {
  681. this.pictureArrayq.push(item);
  682. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  683. this.videoArrayq.push({
  684. width: "130",
  685. height: "130",
  686. autoplay: false,
  687. muted: true,
  688. language: "en",
  689. playbackRates: [0.7, 1.0, 1.5, 2.0],
  690. sources: [
  691. {
  692. type: "video/mp4",
  693. src: this.hostUrl + item.filePath
  694. }
  695. ],
  696. id: item.id
  697. });
  698. } else {
  699. this.fileArrayq.push(item);
  700. }
  701. });
  702. this.picturetabNameq = "图片资料(" + this.pictureArrayq.length + ")";
  703. this.audiotabNameq = "音频资料(" + this.audioArrayq.length + ")";
  704. this.videotabNameq = "视频资料(" + this.videoArrayq.length + ")";
  705. this.filetabNameq = "其它资料(" + this.fileArrayq.length + ")";
  706. }
  707. this.picturetabName = "图片资料(" + this.pictureArray.length + ")";
  708. this.audiotabName = "音频资料(" + this.audioArray.length + ")";
  709. this.videotabName = "视频资料(" + this.videoArray.length + ")";
  710. this.filetabName = "其它资料(" + this.fileArray.length + ")";
  711. // this.getProblemDxList() //不通过这个方法获取问题定性列表了,直接在上面取pblmTypeDesc和pblmTypeDesc2的值
  712. this.changeSelectForDesc(this.keyword)
  713. });
  714. },
  715. getProblemDxList(){
  716. getProblemDxListApi(this.relCode,this.listType).then(res=>{
  717. if(res.success){
  718. this.problemDxList = res.data
  719. }else{
  720. this.$message.error(res.message)
  721. }
  722. }).catch(err=>{
  723. this.$message.error(err)
  724. })
  725. },
  726. // 提交修改信息
  727. submitProblem(){
  728. this.$refs['changeSupFrom'].validate((valid) => {
  729. if(valid){
  730. let unitNames = []
  731. let subIds = [];
  732. this.unitArray = this.uniArr(this.unitArray);
  733. this.unitArray.forEach(ele=>{
  734. unitNames.push(ele.unitNm);
  735. subIds.push(ele.subId);
  736. })
  737. unitNames = unitNames.filter(function (s) {
  738. return s && s.trim();
  739. });
  740. subIds = subIds.filter(function (s) {
  741. return s && s.trim();
  742. });
  743. if((unitNames.length!=subIds.length) && unitNames.length!=0 && subIds.length!=0){
  744. this.$message.warning("对应的单位性质或单位名称其中一个不能为空");
  745. return false;
  746. }
  747. //问题严重性为一般和较重时修改问题是否典型隐藏 默认为否
  748. // if(this.changeSupervision.pblmPasi != '2' || this.changeSupervision.ifCasePblm == ''){
  749. // this.changeSupervision.ifCasePblm = '0'
  750. // }
  751. this.changeSupervision.subjectNames = unitNames.join(',')
  752. this.changeSupervision.subjectIds = subIds.join(",")
  753. this.changeSupervision.pblmSubjectList = this.unitArray
  754. this.changeSupervision.pblmstdId = this.keyword
  755. if(this.changeSupervision.sn == ''){
  756. this.changeSupervision.sn = 0
  757. }
  758. if(this.changeSupervision.pblmReason && this.changeSupervision.pblmReason.length >= 500){
  759. this.$message.warning('主要原因分析需字数小于500字!');
  760. return;
  761. }
  762. if(this.changeSupervision.pblmSggtn && this.changeSupervision.pblmSggtn.length >= 1000){
  763. this.$message.warning('整改意见及建议字数需小于1000字!');
  764. return;
  765. }
  766. if(this.changeSupervision.spclRvwOptn && this.changeSupervision.spclRvwOptn.length >= 500){
  767. this.$message.warning('稽察组长意见字数需小于500字!');
  768. return;
  769. }
  770. request.post(`/tac/province/pblm/info`,this.changeSupervision).then(res => {
  771. if(res.success){
  772. this.gwComFileList = [];
  773. if (this.$refs.uploadFile.submitUpload(res.data.id,res.data.gwComFileList.length) && this.isRevision == '1' && this.$refs.uploadFile2.submitUpload(res.data.pblmRevisionProof,res.data.revisionFileList.length)) {
  774. }
  775. this.$message.success('修改成功')
  776. setTimeout(()=>{
  777. this.removeNewSupervision()
  778. })
  779. }else{
  780. this.$message.error(res.message)
  781. }
  782. }).catch(err => {
  783. this.$message.error(err)
  784. })
  785. // submitProblemApi(this.changeSupervision).then(res=>{
  786. // if(res.success){
  787. // this.gwComFileList = [];
  788. // if (this.$refs.uploadFile.submitUpload(res.data.id,res.data.gwComFileList.length)) {
  789. // this.removeNewSupervision();
  790. // }
  791. // this.$message.success('修改成功')
  792. // }else{
  793. // this.$message.error(res.message)
  794. // }
  795. // }).catch(err=>{
  796. // this.$message.error(err)
  797. // })
  798. }
  799. })
  800. },
  801. uniArr(tempArr) {
  802. var newTempArr = [];
  803. if(tempArr && tempArr.length>0){
  804. tempArr.forEach((item,index)=>{
  805. if(item.unitNm || item.subId){
  806. newTempArr.push(item);
  807. }
  808. })
  809. for (let i = 0; i < newTempArr.length; i++) {
  810. for (let j = i + 1; j < newTempArr.length; j++) {
  811. if ((newTempArr[i].unitNm == newTempArr[j].unitNm) && (newTempArr[i].subId == newTempArr[j].subId)) {
  812. newTempArr.splice(j, 1);
  813. j--;
  814. };
  815. };
  816. };
  817. return newTempArr;
  818. }else{
  819. return [];
  820. }
  821. },
  822. unitSelect(){
  823. let _this = this
  824. let unitIds = []
  825. this.unitArray.forEach((ele,index)=>{
  826. _this.unitNameList.forEach(element=>{
  827. if(ele.unitNm == element.sysNm){
  828. this.unitArray[index].unitId = element.id
  829. }
  830. })
  831. unitIds.push(ele.unitId)
  832. })
  833. // this.changeSupervision.subjectIds = unitIds.join(',')
  834. },
  835. getProblemList(id){
  836. // request.get(`/tac/province/pblm/info/${id}`)
  837. // .then(res => {
  838. // if(res.success){
  839. // }
  840. // })
  841. getSelectProblemList(this.keyword,this.listType).then(res=>{
  842. if(res.success){
  843. this.problemList = res.data.list
  844. }else{
  845. this.$message.error(res.message)
  846. }
  847. }).catch(err=>{
  848. this.$message.error(err)
  849. })
  850. },
  851. changeSelect(val){
  852. getProblemNatureApi(val).then(res=>{
  853. if(res.success){
  854. this.problemInfo = res.data
  855. this.changeSupervision.pblmsDesc = this.problemInfo.pblmsDesc
  856. this.changeSupervision.relativeLaw = this.problemInfo.relativeLaw
  857. this.changeSupervision.lawContent = this.problemInfo.lawContent
  858. this.changeSupervision.note = this.problemInfo.note
  859. this.objSubjectList = this.problemInfo.objSubjectList
  860. this.cateObjList = this.problemInfo.cateObjList
  861. this.changeSupervision.pblmPasi = this.cateObjList[0].cate
  862. this.changeSupervision.pblmNm = this.problemInfo.pblmsDesc //发现问题项的内容默认为问题描述内容 可更改
  863. this.relCode = this.problemInfo.class2 //获取问题分类列表需要的问题标准序号
  864. this.changeSupervision.pblmTypeDesc = ''
  865. this.problemDxList = []
  866. if(this.problemInfo.pblmTypeDesc){
  867. this.problemDxList.push(this.problemInfo.pblmTypeDesc)
  868. }
  869. if(this.problemInfo.pblmTypeDesc2){
  870. this.problemDxList.push(this.problemInfo.pblmTypeDesc2)
  871. }
  872. // this.getProblemDxList()
  873. }else{
  874. this.$message.error(res.message)
  875. }
  876. }).catch(err=>{
  877. this.$message.error(err)
  878. })
  879. },
  880. // 为了获取问题类别列表
  881. changeSelectForDesc(val){
  882. getProblemNatureApi(val).then(res=>{
  883. if(res.success){
  884. this.problemDxList = []
  885. if(res.data.pblmTypeDesc){
  886. this.problemDxList.push(res.data.pblmTypeDesc)
  887. }
  888. if(res.data.pblmTypeDesc2){
  889. this.problemDxList.push(res.data.pblmTypeDesc2)
  890. }
  891. }else{
  892. this.$message.error(res.message)
  893. }
  894. }).catch(err=>{
  895. this.$message.error(err)
  896. })
  897. },
  898. addUnit(){
  899. this.unitArray.push({unitNm:'',unitId: '',subId:'',subName:''})
  900. },
  901. removeUnit(index){
  902. this.unitArray.splice(index,1)
  903. },
  904. getUnitNameList(index){
  905. let subId = this.unitArray[index].subId ? this.unitArray[index].subId : ''
  906. let paramsObj = {
  907. rgstrId: this.changeSupervision.rgstrId,
  908. sysType: subId
  909. }
  910. if(subId){
  911. getUnitNameListApi(paramsObj).then(res=>{
  912. if(res.success){
  913. this.unitNameList = res.data
  914. if(!this.unitNameList.length){
  915. this.unitArray[index].unitNm = '' //单位性质切换时没有单位数据清空单位名称
  916. }
  917. }else{
  918. this.$message.error(res.message)
  919. }
  920. }).catch(err=>{
  921. this.$message.error(err)
  922. })
  923. }
  924. },
  925. natureChange(val,index){
  926. this.unitArray.forEach((ele,index)=>{
  927. this.objSubjectList.forEach(element=>{
  928. if(ele.subId == element.id){
  929. this.unitArray[index].subName = element.subName
  930. }
  931. })
  932. })
  933. let subIds = []
  934. this.unitArray.forEach((ele,index)=>{
  935. subIds.push(ele.subId)
  936. })
  937. this.changeSupervision.subjectIds = subIds.join(',')
  938. this.getUnitNameList(index)
  939. },
  940. removeNewSupervision(arg) {
  941. if (arg) {
  942. var args = this.gwComFileList.concat(arg);
  943. }
  944. this.changeSup(this.problemId)
  945. this.$emit('dialogClose')
  946. this.gwComFileList = [];
  947. },
  948. changeSupervisionVisiblefalse() {
  949. this.$emit('closeEditDialog')
  950. this.$refs.uploadFile.init();
  951. this.addPicPanel = false;
  952. },
  953. addPic(value) {
  954. console.log(value)
  955. if (value===1)
  956. this.addPicPanel2 = !this.addPicPanel2;
  957. else
  958. this.addPicPanel = !this.addPicPanel;
  959. },
  960. // 删除图片文件
  961. removeFile(id, index) {
  962. // this.updateIdXiuGai = this.updateIdXiuGai;
  963. var _self = this;
  964. this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
  965. confirmButtonText: "确定",
  966. cancelButtonText: "返回",
  967. type: "warning"
  968. }).then(
  969. res => {
  970. if (res === "confirm") {
  971. deleteFileById(id, this.persId).then(res => {
  972. if (res.success) {
  973. this.changeSupervision.gwComFileList.forEach(item => {
  974. if (
  975. item.fileExt == "mp3" ||
  976. item.fileExt == "MP3" ||
  977. item.fileExt == "m4a"
  978. ) {
  979. this.audioArray.splice(index, 1);
  980. } else if (
  981. item.fileExt == "jpg" ||
  982. item.fileExt == "JPG" ||
  983. item.fileExt == "png" ||
  984. item.fileExt == "PNG" ||
  985. item.fileExt == "JPEG" ||
  986. item.fileExt == "jpeg"
  987. ) {
  988. this.pictureArray.splice(index, 1);
  989. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  990. this.videoArray.splice(index, 1);
  991. }
  992. });
  993. _self.changeSup(this.updateIdXiuGai);
  994. } else {
  995. this.failInfo();
  996. }
  997. });
  998. }
  999. },
  1000. res => {
  1001. console.log("返回");
  1002. }
  1003. )
  1004. },
  1005. removeFile2(id, index) {
  1006. // this.updateIdXiuGai = this.updateIdXiuGai;
  1007. var _self = this;
  1008. this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
  1009. confirmButtonText: "确定",
  1010. cancelButtonText: "返回",
  1011. type: "warning"
  1012. }).then(
  1013. res => {
  1014. if (res === "confirm") {
  1015. deleteFileById(id, this.persId).then(res => {
  1016. if (res.success) {
  1017. this.changeSupervision.revisionFileList.forEach(item => {
  1018. if (
  1019. item.fileExt == "mp3" ||
  1020. item.fileExt == "MP3" ||
  1021. item.fileExt == "m4a"
  1022. ) {
  1023. this.audioArrayq.splice(index, 1);
  1024. } else if (
  1025. item.fileExt == "jpg" ||
  1026. item.fileExt == "JPG" ||
  1027. item.fileExt == "png" ||
  1028. item.fileExt == "PNG" ||
  1029. item.fileExt == "JPEG" ||
  1030. item.fileExt == "jpeg"
  1031. ) {
  1032. this.pictureArrayq.splice(index, 1);
  1033. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  1034. this.videoArrayq.splice(index, 1);
  1035. }
  1036. });
  1037. _self.changeSup(this.updateIdXiuGai);
  1038. } else {
  1039. this.failInfo();
  1040. }
  1041. });
  1042. }
  1043. },
  1044. res => {
  1045. console.log("返回");
  1046. }
  1047. )
  1048. },
  1049. // 操作成功反馈
  1050. successInfo() {
  1051. this.$message({
  1052. type: "success",
  1053. message: "操作成功!"
  1054. });
  1055. },
  1056. // 操作失败反馈
  1057. failInfo(val) {
  1058. this.$message.error(val);
  1059. },
  1060. // 文件上传
  1061. // submitUpload() {
  1062. // this.$refs.upload.submit();
  1063. // },
  1064. closeModal(){
  1065. this.$emit('dialogClose')
  1066. },
  1067. dragChange(val){
  1068. console.log(val)
  1069. // let oldIndex = val.moved.oldIndex
  1070. // let newIndex = val.moved.newIndex
  1071. // let oldItem = this.changeSupervision.gwComFileList[oldIndex]
  1072. // let newItem = this.changeSupervision.gwComFileList[newIndex]
  1073. // this.changeSupervision.gwComFileList[oldIndex] = newItem
  1074. // this.changeSupervision.gwComFileList[newIndex] = oldItem
  1075. console.log(this.pictureArray)
  1076. let gwComFileList = []
  1077. gwComFileList = gwComFileList.concat(this.pictureArray).concat(this.audioArray).concat(this.videoArray).concat(this.fileArray)
  1078. this.changeSupervision.gwComFileList = gwComFileList
  1079. console.log(this.changeSupervision.gwComFileList)
  1080. },
  1081. dragChangeq(val){
  1082. console.log(val)
  1083. // let oldIndex = val.moved.oldIndex
  1084. // let newIndex = val.moved.newIndex
  1085. // let oldItem = this.changeSupervision.gwComFileList[oldIndex]
  1086. // let newItem = this.changeSupervision.gwComFileList[newIndex]
  1087. // this.changeSupervision.gwComFileList[oldIndex] = newItem
  1088. // this.changeSupervision.gwComFileList[newIndex] = oldItem
  1089. console.log(this.pictureArrayq)
  1090. let revisionFileList = []
  1091. revisionFileList = revisionFileList.concat(this.pictureArrayq).concat(this.audioArrayq).concat(this.videoArrayq).concat(this.fileArrayq)
  1092. this.changeSupervision.revisionFileList = revisionFileList
  1093. console.log(this.changeSupervision.revisionFileList)
  1094. },
  1095. previewFile(url){
  1096. this.dialogImageUrl = `${this.hostUrl}/${url}`
  1097. this.previewDialogVisible = true
  1098. },
  1099. picRotate(){
  1100. if(this.rotateDeg.transform == 'rotate(0deg)'){
  1101. this.rotateDeg = {'transform': 'rotate(90deg)'}
  1102. }else if(this.rotateDeg.transform == 'rotate(90deg)'){
  1103. this.rotateDeg = {'transform': 'rotate(180deg)'}
  1104. }else if(this.rotateDeg.transform == 'rotate(180deg)'){
  1105. this.rotateDeg = {'transform': 'rotate(270deg)'}
  1106. }else if(this.rotateDeg.transform == 'rotate(270deg)'){
  1107. this.rotateDeg = {'transform': 'rotate(360deg)'}
  1108. }else if(this.rotateDeg.transform == 'rotate(360deg)'){
  1109. this.rotateDeg = {'transform': 'rotate(90deg)'}
  1110. }
  1111. }
  1112. },
  1113. watch:{
  1114. problemId(val){
  1115. this.changeSup(val)
  1116. },
  1117. pertype(val){
  1118. if(val == 20){
  1119. this.disabled = true
  1120. }
  1121. }
  1122. }
  1123. }
  1124. </script>
  1125. <style lang="scss">
  1126. .scroll_wrapper{
  1127. overflow: hidden;
  1128. }
  1129. .scroll_wrapper .el-form{
  1130. padding-top: 5px;
  1131. padding-right: 5px;
  1132. }
  1133. .upload-container {
  1134. width: 100%;
  1135. position: relative;
  1136. .image-uploader {
  1137. width: 35%;
  1138. float: left;
  1139. }
  1140. .image-preview {
  1141. width: 200px;
  1142. height: 200px;
  1143. position: relative;
  1144. border: 1px dashed #d9d9d9;
  1145. float: left;
  1146. // margin-left: 50px;
  1147. .image-preview-wrapper {
  1148. position: relative;
  1149. width: 100%;
  1150. height: 100%;
  1151. img {
  1152. width: 100%;
  1153. height: 100%;
  1154. }
  1155. }
  1156. .image-preview-action {
  1157. position: absolute;
  1158. width: 100%;
  1159. height: 40px;
  1160. left: 0;
  1161. bottom: 0;
  1162. color: #fff;
  1163. opacity: 0;
  1164. font-size: 20px;
  1165. background-color: rgba(0, 0, 0, 0.5);
  1166. transition: opacity 0.3s;
  1167. cursor: pointer;
  1168. text-align: center;
  1169. line-height: 40px;
  1170. .el-icon-delete,.el-icon-zoom-in{
  1171. font-size: 22px;
  1172. margin: 0 5px;
  1173. }
  1174. }
  1175. &:hover {
  1176. .image-preview-action {
  1177. opacity: 1;
  1178. }
  1179. }
  1180. }
  1181. .image-app-preview {
  1182. margin-bottom: 10px;
  1183. margin-right: 6px;
  1184. width: 40vh;
  1185. height: 180px;
  1186. position: relative;
  1187. border: 1px dashed #d9d9d9;
  1188. float: left;
  1189. // margin-left: 50px;
  1190. .app-fake-conver {
  1191. height: 44px;
  1192. position: absolute;
  1193. width: 100%; // background: rgba(0, 0, 0, .1);
  1194. text-align: center;
  1195. line-height: 64px;
  1196. color: #fff;
  1197. }
  1198. }
  1199. }
  1200. .problem_select .el-select-dropdown__item{
  1201. width: 500px;
  1202. }
  1203. .modify_problem_dialog{
  1204. .el-dialog__body{
  1205. font-size: 15px;
  1206. }
  1207. .el-form-item__label{
  1208. font-size: 15px;
  1209. color: #333;
  1210. }
  1211. .el-input--mini{
  1212. font-size: 13px;
  1213. }
  1214. .el-button--mini{
  1215. font-size: 14px;
  1216. }
  1217. .el-icon-circle-plus,.el-icon-remove{
  1218. margin-left: 10px;
  1219. color: #009fff;
  1220. cursor: pointer;
  1221. }
  1222. .el-icon-remove{
  1223. color: red;
  1224. }
  1225. }
  1226. .el-icon-refresh-right{
  1227. font-size: 36px;
  1228. cursor: pointer;
  1229. }
  1230. .pic_dialog .el-dialog{
  1231. margin-top: 10vh !important;
  1232. }
  1233. .viewer-container{
  1234. z-index: 9999 !important;
  1235. }
  1236. </style>