ab9eb35c541a2904299917170593af2baaecec65.svn-base 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705
  1. <template>
  2. <!-- 问题处置-2020人饮问题编辑 -->
  3. <div style="height:100%;width:100%" id="wenTiContainer_sk">
  4. <el-container>
  5. <el-aside
  6. width="318px"
  7. style="border-right:2px solid #d5d5ff;float:left"
  8. :style="{'max-height':testHeight+'px','height':testHeight+'px'}"
  9. v-show="!rowId"
  10. >
  11. <wt-left-tree orgType="30" @treeNodeClickHandler="treeNodeClickHandler" @changeYear="changeYear"
  12. @organList="getAllTreeData"></wt-left-tree>
  13. </el-aside>
  14. <!-- 主要窗口 -->
  15. <el-main style="margin:0px;padding:0px;overflow-y:hidden;" class="shuiku" v-loading="exportLoading">
  16. <!-- <el-card> -->
  17. <div class="pages" :style="{'max-height':testHeight+'px'}">
  18. <!-- 为什么要根据rowId来判断过滤条件的显示或者隐藏? -->
  19. <div style="padding: 12px 0 0 0">
  20. <el-row type="flex" justify="space-between">
  21. <el-col :span="24">
  22. <el-form :inline="true" size="mini" class="demo-form-inline"
  23. style="padding-left: 10px;">
  24. <!--<el-form-item label="行政区划:">-->
  25. <!--<el-input-->
  26. <!--resize="none"-->
  27. <!--type="input"-->
  28. <!--:rows="3"-->
  29. <!--placeholder="请输入行政区划名称"-->
  30. <!--v-model.trim="findParams.adFullName"-->
  31. <!--clearable-->
  32. <!--&gt;</el-input>-->
  33. <!--</el-form-item>-->
  34. <el-form-item label="督查对象名称:">
  35. <el-input
  36. resize="none"
  37. type="input"
  38. :rows="3"
  39. placeholder="请输入名称"
  40. v-model.trim="findParams.nm"
  41. clearable
  42. ></el-input>
  43. </el-form-item>
  44. </el-form>
  45. </el-col>
  46. </el-row>
  47. <el-row type="flex" justify="space-between" v-show="showExpandSearchPanel">
  48. <el-col :span="24">
  49. <el-form :inline="true" size="mini" class="demo-form-inline"
  50. style="padding-left: 10px;">
  51. <el-form-item label="问题筛选:">
  52. <el-select v-model="pblscr" clearable placeholder="请选择">
  53. <el-option
  54. v-for="item in pblscrList"
  55. :key="item.value"
  56. :label="item.lable"
  57. :value="item.value"
  58. ></el-option>
  59. </el-select>
  60. </el-form-item>
  61. <el-form-item label="上报人员:">
  62. <el-input
  63. resize="none"
  64. type="input"
  65. :rows="3"
  66. placeholder="请输入名称"
  67. v-model.trim="findParams.persName"
  68. ></el-input>
  69. </el-form-item>
  70. <el-form-item label="发现时间:">
  71. <el-date-picker
  72. style="width: 200px;"
  73. v-model="value6"
  74. type="daterange"
  75. value-format="yyyy-MM-dd"
  76. range-separator="至"
  77. start-placeholder="开始日期"
  78. end-placeholder="结束日期"
  79. ></el-date-picker>
  80. </el-form-item>
  81. <el-form-item label="所在组:">
  82. <el-input
  83. resize="none"
  84. type="input"
  85. :rows="3"
  86. placeholder="请输入所在组名称"
  87. v-model.trim="pblscrGroup"
  88. clearable
  89. ></el-input>
  90. </el-form-item>
  91. <el-form-item label="是否包含多媒体文件:">
  92. <el-select v-model="findParams.hasVedio" clearable placeholder="请选择">
  93. <el-option
  94. v-for="item in hasVedio1"
  95. :key="item.value"
  96. :label="item.label"
  97. :value="item.value"
  98. ></el-option>
  99. </el-select>
  100. </el-form-item>
  101. <el-form-item label="问题督查状态:">
  102. <el-select v-model="findParams.state" clearable placeholder="请选择">
  103. <el-option
  104. v-for="item in stateList"
  105. :key="item.value"
  106. :label="item.label"
  107. :value="item.value"
  108. ></el-option>
  109. </el-select>
  110. </el-form-item>
  111. </el-form>
  112. </el-col>
  113. </el-row>
  114. <el-row type="flex" justify="space-between" style="border-top:1px solid #0014ff2e;">
  115. <el-col style='padding-bottom:10px;' :offset="11" :span="2">
  116. <el-button style="float:right;margin-right:10px;border: 1px solid #0014ff2e;
  117. border-radius: 0px 0px 5px 5px;border-top: 0px;" type="info" plain
  118. size="mini"
  119. @click="showExpandSearchPanel = !showExpandSearchPanel"
  120. >
  121. {{showExpandSearchPanel?'收起':'更多条件'}}
  122. <i class="el-icon-arrow-down el-icon--right" v-show="!showExpandSearchPanel"/>
  123. <i class="el-icon-arrow-up el-icon--right" v-show="showExpandSearchPanel"/>
  124. </el-button>
  125. </el-col>
  126. <el-col :offset="2" :span="9">
  127. <el-button
  128. style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"
  129. type="primary"
  130. icon="el-icon-search"
  131. @click="search"
  132. >&nbsp;查&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;询&nbsp;
  133. </el-button>
  134. <el-button
  135. style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"
  136. type="success"
  137. @click="submitBtn"
  138. >问题提交
  139. </el-button>
  140. <el-button
  141. style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"
  142. type="success"
  143. icon="el-icon-download"
  144. @click="exportExcel"
  145. >导出EXCEL
  146. </el-button>
  147. <el-button
  148. v-if="isGd"
  149. style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"
  150. type="success"
  151. icon="el-icon-download"
  152. @click="toForm"
  153. >导出一表一单
  154. </el-button>
  155. <shuiKuWentiPl v-if="showShuiKuTianBaoPl"
  156. :showShuiKuTianBaoPl="showShuiKuTianBaoPl"
  157. titleName="小水库"
  158. @closePlDialog="closePlDialog">
  159. </shuiKuWentiPl>
  160. </el-col>
  161. </el-row>
  162. </div>
  163. <!-- 查询展示 -->
  164. <div class="search" style="margin-top:10px;">
  165. <el-table
  166. v-loading="loading"
  167. border
  168. @row-click="openDetails"
  169. ref="multipleTable"
  170. :height="tableHeight"
  171. :data="searchResult"
  172. tooltip-effect="dark"
  173. style="width: 100%"
  174. @selection-change="handleSelectionChange"
  175. >
  176. <el-table-column
  177. type="selection"
  178. min-width="55">
  179. </el-table-column>
  180. <el-table-column align="center" type="index" label="序号" min-width="25">
  181. <template slot-scope="scope">{{ (currentPage - 1) * pageSize + (scope.$index + 1) }}
  182. </template>
  183. </el-table-column>
  184. <el-table-column
  185. header-align="center"
  186. align="center"
  187. min-width="110"
  188. prop="nm"
  189. label="督查对象名称"
  190. show-overflow-tooltip
  191. ></el-table-column>
  192. <el-table-column
  193. header-align="center"
  194. align="center"
  195. min-width="140"
  196. prop="inspPblmName"
  197. label="督查问题类别"
  198. show-overflow-tooltip
  199. ></el-table-column>
  200. <el-table-column
  201. header-align="center"
  202. align="center"
  203. min-width="100"
  204. prop="checkPoint"
  205. label="检查项目"
  206. show-overflow-tooltip>
  207. </el-table-column>
  208. <el-table-column
  209. header-align="center"
  210. align="center"
  211. min-width="150"
  212. prop="pblmDescBz"
  213. label="问题名称"
  214. show-overflow-tooltip>
  215. </el-table-column>
  216. <el-table-column
  217. header-align="center"
  218. align="center"
  219. min-width="100"
  220. prop="inspPblmDesc"
  221. label="问题描述"
  222. show-overflow-tooltip>
  223. </el-table-column>
  224. <el-table-column
  225. header-align="center"
  226. align="center"
  227. min-width="100"
  228. prop="state"
  229. label="问题督查状态">
  230. <template slot-scope="scope">
  231. <p v-if="Number(scope.row.state) === 0"><span class="inspPblmCate"
  232. style="background: #F56C6C;">未提交</span>
  233. </p>
  234. <p v-if="scope.row.state == 2"><span class="inspPblmCate"
  235. style="background: #409EFF;">已提交</span>
  236. </p>
  237. <p v-if="scope.row.state == 3"><span class="inspPblmCate"
  238. style="background: #67C23A;">已发布</span>
  239. </p>
  240. </template>
  241. </el-table-column>
  242. <el-table-column
  243. header-align="center"
  244. align="center"
  245. min-width="70"
  246. prop="persName"
  247. label="上报人"
  248. ></el-table-column>
  249. <el-table-column
  250. header-align="center"
  251. align="center"
  252. min-width="150"
  253. show-overflow-tooltip
  254. prop="orgNm"
  255. label="所在组"
  256. ></el-table-column>
  257. <el-table-column
  258. prop="collTime"
  259. label="上报时间"
  260. :formatter="timestampToTime"
  261. sortable
  262. align="center"
  263. min-width="110"
  264. show-overflow-tooltip
  265. ></el-table-column>
  266. <el-table-column
  267. header-align="center"
  268. align="center"
  269. min-width="150"
  270. prop="hasVedio"
  271. label="是否包含多媒体文件"
  272. >
  273. <template slot-scope="scope">
  274. <p v-if="scope.row.hasVedio == 1">是</p>
  275. <p v-if="scope.row.hasVedio == 0">否</p>
  276. </template>
  277. </el-table-column>
  278. <el-table-column
  279. header-align="center"
  280. align="center"
  281. min-width="150"
  282. prop="inspPblmCate"
  283. label="严重程度"
  284. >
  285. <template slot-scope="scope">
  286. <span>{{scope.row.inspPblmCate | inspPblmCate}}</span>
  287. </template>
  288. </el-table-column>
  289. <el-table-column
  290. header-align="center"
  291. align="center"
  292. min-width="150"
  293. prop="ifCasePblm"
  294. label="是否为典型问题"
  295. >
  296. <template slot-scope="scope">
  297. <span v-if="scope.row.ifCasePblm == 1">典型</span>
  298. <span v-if="scope.row.ifCasePblm == 0">非典型</span>
  299. </template>
  300. </el-table-column>
  301. <el-table-column
  302. header-align="center"
  303. align="center"
  304. min-width="100"
  305. prop="note"
  306. label="备注"
  307. show-overflow-tooltip>
  308. </el-table-column>
  309. <el-table-column
  310. fixed="right"
  311. label="操作"
  312. min-width="130"
  313. >
  314. <template slot-scope="scope">
  315. <span style="margin-right:10px;" v-if="ownPriv('manage')">
  316. <el-button icon="el-icon-s-flag" type="text" v-if="scope.row.quote == '1'"
  317. title="已被督查简报引用"
  318. @click.native.stop="changeSfYy(scope.row.pblmId,1)"></el-button>
  319. <i class="el-icon-s-flag" v-else title="未被督查简报引用"
  320. @click.native.stop="changeSfYy(scope.row.pblmId,0)"
  321. style="cursor: pointer;"></i>
  322. </span>
  323. <el-button icon="el-icon-view" title="查看详情" type="text"
  324. @click.native.stop="showDetails(scope.row.pblmId)"></el-button>
  325. <el-button icon="el-icon-edit" type="text" title="修改问题"
  326. @click.native.stop="changeSup(scope.row.pblmId)"
  327. v-if="ownPriv('manage')"></el-button>
  328. <el-button
  329. icon="el-icon-delete"
  330. type="text"
  331. v-if="ownPriv('manage')"
  332. title="删除问题" @click.native.stop="removeSuperviseOne(scope.row.pblmId)"
  333. ></el-button>
  334. </template>
  335. </el-table-column>
  336. </el-table>
  337. <!-- 分页 -->
  338. <div class="paginationWarpper">
  339. <el-pagination
  340. class="paginationCenter"
  341. background
  342. @size-change="handleSizeChange"
  343. @current-change="search"
  344. :current-page.sync="currentPage"
  345. :page-sizes="[10, 20, 50, 100]"
  346. :page-size="pageSize"
  347. layout="total, sizes, prev, pager, next, jumper"
  348. :total="total"
  349. ></el-pagination>
  350. </div>
  351. </div>
  352. <!-- 详情弹框 -->
  353. <el-dialog
  354. class="outerDialog custom_dialog"
  355. title="问题详情"
  356. width="60%"
  357. v-if="supervisionDetailsVisible"
  358. :visible.sync="supervisionDetailsVisible"
  359. >
  360. <supervision-details ref="xianqing" :problemId="currentProblemId"
  361. :objType="30"></supervision-details>
  362. <span slot="footer">
  363. <el-button style="margin-top:5px;" @click="supervisionDetailsVisible = false">返回</el-button>
  364. </span>
  365. </el-dialog>
  366. <!-- 删除的弹窗 -->
  367. <el-dialog class="deleteDialog" title="问题删除描述" :visible.sync="problemDeleteVisible">
  368. <Problem-delete
  369. ref="deleteMiaoShu"
  370. :deleteProblemId="deleteId"
  371. @deleteSuccess="deleteSuccess"
  372. ></Problem-delete>
  373. <span slot="footer">
  374. <el-button @click="problemDeleteVisible = false">返回</el-button>
  375. </span>
  376. </el-dialog>
  377. </div>
  378. </el-main>
  379. </el-container>
  380. <EditPicOnline
  381. ref="editPicWeakupEvnent"
  382. v-if="editPicDialog"
  383. :picUrl="picUrl"
  384. @cancelHandler="cancelHandler"
  385. @editPicData="editPicDataEvent"
  386. ></EditPicOnline>
  387. <!-- 修改组件 -->
  388. <problem-edit :editId="editId" @closeEditDialog="closeEditDialog" v-if="changeSupervisionVisible"
  389. :pType="pType"></problem-edit>
  390. </div>
  391. </template>
  392. <script>
  393. import {
  394. deleteFileById,
  395. findProblemPageInfo,
  396. getSupervisdByID,
  397. showDetailsXq,
  398. submitUpload,
  399. updatelist,
  400. pblmSubmit
  401. } from "@api/duChaAPI.js";
  402. import {exportModel} from "@util/gw_exportModel";
  403. import request from "@util/gw_ajax_request.js";
  404. import elaudio from "@widget/elAudioShort.vue";
  405. import inuptWithDuChaTreeNode from "@widget/inuptWithDuChaTreeNode.vue";
  406. import inputWidthDuChaNodes from "@widget/inputWithDuChaNodes.vue";
  407. import inputWidthDuChaShuiKu from "@widget/inputWith_sk.vue";
  408. import problemDialog from "./problemDialog.vue";
  409. import shuiKuWentiPl from "./problemBatchImp/tongYongWenti_piliang.vue"
  410. import wtLeftTree from "./wtcz_lefttree.vue"
  411. import { hostUrl } from "@util/global_variable.js";
  412. export default {
  413. props: ["codeId", "rowId"],
  414. components: {
  415. upload: resolve => {
  416. require(["@widget/uploadFile.vue"], resolve);
  417. },
  418. //详情页
  419. supervisionDetails: resolve => {
  420. require(["../duChaWenTi/supervisionDetails_shuiku.vue"], resolve);
  421. },
  422. // 删除描述页
  423. ProblemDelete: resolve => {
  424. require(["./problemDelete.vue"], resolve);
  425. },
  426. EditPicOnline: resolve => {
  427. require(["@widget/EditPicOnline/EditPicOnline.vue"], resolve);
  428. },
  429. // addPicDialog: resolve => {
  430. // require(["./addPicDialog.vue"], resolve);
  431. // },
  432. elaudio: elaudio,
  433. inuptWithDuChaTreeNode: inuptWithDuChaTreeNode,
  434. inputWidthDuChaNodes: inputWidthDuChaNodes,
  435. inputWidthDuChaShuiKu: inputWidthDuChaShuiKu,
  436. problemDialog: problemDialog,
  437. shuiKuWentiPl: shuiKuWentiPl,
  438. wtLeftTree: wtLeftTree,
  439. // 修改问题
  440. problemEdit: resolve => {
  441. require(["../duChaWenTi/chbhsProblemModify.vue"], resolve);
  442. },
  443. },
  444. data() {
  445. var validatePass1 = (rules1, value, callback) => {
  446. if (this.newSupervision.startTime > this.newSupervision.endTime) {
  447. callback(new Error("结束时间不能早于开始时间"));
  448. } else {
  449. callback();
  450. }
  451. };
  452. var validatePass2 = (rules1, value, callback) => {
  453. let startTime = this.changeSupervision.startTime.slice(0, 10);
  454. if (startTime > this.changeSupervision.endTime) {
  455. callback(new Error("结束时间不能早于开始时间"));
  456. } else {
  457. callback();
  458. }
  459. };
  460. var divisionList = (rules1, value, callback) => {
  461. if (this.newGroup.divisionList.length) {
  462. callback();
  463. } else {
  464. callback(new Error("至少要添加一个地区"));
  465. }
  466. };
  467. return {
  468. editPicRefresh: true,
  469. showExpandSearchPanel: false,
  470. tableHeight: window.innerHeight - 291,
  471. globoId: "",
  472. addPicPanel: false,
  473. currentDate: new Date(),
  474. deleteId: "",
  475. treeNodeArray: [],
  476. treeNodeSelectVisible: false,
  477. adNodeArray: [],
  478. adNodeSelectVisible: false,
  479. areaSelectVisible: false,
  480. rsvrNodeArray: [],
  481. rsvrNodeSelectVisible: false,
  482. skSelectVisible: false,
  483. currentProblemId: "",
  484. updateIdXiuGai: "",
  485. rules1: {
  486. inspPblmName: [
  487. {
  488. required: true,
  489. message: "请输入问题名称",
  490. trigger: "blur"
  491. },
  492. {
  493. min: 1,
  494. max: 999,
  495. message: "不超过100字符",
  496. trigger: "blur"
  497. }
  498. ],
  499. inspPblmDesc: [
  500. {
  501. required: true,
  502. message: "请输入问题描述",
  503. trigger: "blur"
  504. }
  505. ],
  506. recPers: [
  507. {
  508. required: true,
  509. message: "请输入记录人",
  510. trigger: "blur"
  511. },
  512. {
  513. min: 1,
  514. max: 999,
  515. message: "不超过100字符",
  516. trigger: "blur"
  517. }
  518. ],
  519. objType: [
  520. {
  521. required: true,
  522. message: "请选择督查对象类型",
  523. trigger: "change"
  524. }
  525. ],
  526. objId: [
  527. {
  528. required: true,
  529. message: "请选择督查对象类型",
  530. trigger: "change"
  531. }
  532. ],
  533. inspPblmType: [
  534. {
  535. required: true,
  536. message: "请选择督查问题类型",
  537. trigger: "change"
  538. }
  539. ],
  540. dataStat: [
  541. {
  542. required: true,
  543. message: "请选择数据状态",
  544. trigger: "change"
  545. }
  546. ],
  547. collTime: [
  548. {
  549. required: true,
  550. message: "请选择采集时间",
  551. trigger: "change"
  552. }
  553. ],
  554. ifCasePblm: [
  555. {
  556. required: true,
  557. message: "请选择是否典型",
  558. trigger: "change"
  559. }
  560. ],
  561. pblmStat: [
  562. {
  563. required: true,
  564. message: "请选择问题类型",
  565. trigger: "change"
  566. }
  567. ],
  568. inspPblmCate: [
  569. {
  570. required: true,
  571. message: "请选择问题程度",
  572. trigger: "change"
  573. },
  574. {
  575. trigger: "change"
  576. }
  577. ]
  578. },
  579. dxdcAsideHeight: window.innerHeight - 220,
  580. maxHeight: window.innerHeight - 120,
  581. testHeight: window.innerHeight - 120,
  582. supervisionStateList: [
  583. {
  584. value: "0",
  585. label: "暂存"
  586. },
  587. {
  588. value: "1",
  589. label: "上报"
  590. }
  591. ],
  592. supervisionState: [
  593. {
  594. value: "0",
  595. label: "一般"
  596. },
  597. {
  598. value: "1",
  599. label: "较重"
  600. },
  601. {
  602. value: "2",
  603. label: "严重"
  604. },
  605. {
  606. value: "3",
  607. label: "特别严重"
  608. }
  609. ],
  610. supervision: [
  611. {
  612. value: "1",
  613. label: "是"
  614. },
  615. {
  616. value: "0",
  617. label: "否"
  618. }
  619. ],
  620. hasVedio1: [
  621. {
  622. value: "1",
  623. label: "是"
  624. },
  625. {
  626. value: "0",
  627. label: "否"
  628. }
  629. ],
  630. findUseOrgArray: [],
  631. areaInputValue: {},
  632. memberInputValue: {},
  633. multipleSelection: [], // 已选
  634. selectionType: {
  635. remove: 0,
  636. befor: 0,
  637. now: 0,
  638. after: 0
  639. },
  640. // 根据客户点击的督查类型查找督查对象ID
  641. // 新增
  642. listobjId: [],
  643. userId: localStorage.getItem("userid"),
  644. treeData: [],
  645. // 修改督查
  646. pictureArray: [],
  647. audioArray: [],
  648. videoArray: [],
  649. fileArray: [],
  650. audiotabName: "",
  651. videotabName: "",
  652. picturetabName: "",
  653. filetabName: "",
  654. playerOptions: {
  655. height: "120",
  656. autoplay: true,
  657. muted: true,
  658. language: "en",
  659. playbackRates: [0.7, 1.0, 1.5, 2.0],
  660. sources: [
  661. {
  662. type: "video/mp4",
  663. // mp4
  664. src: "http://vjs.zencdn.net/v/oceans.mp4"
  665. // webm
  666. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  667. },
  668. {
  669. type: "video/mp4",
  670. // mp4
  671. src: "http://vjs.zencdn.net/v/oceans.mp4"
  672. // webm
  673. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  674. },
  675. {
  676. type: "video/mp4",
  677. // mp4
  678. src: "http://vjs.zencdn.net/v/oceans.mp4"
  679. // webm
  680. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  681. },
  682. {
  683. type: "video/mp4",
  684. // mp4
  685. src: "http://vjs.zencdn.net/v/oceans.mp4"
  686. // webm
  687. // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  688. }
  689. ]
  690. },
  691. changeSupervisionVisible: false,
  692. changeSupervisionLoading: false,
  693. changeSupervision: {
  694. nm: "",
  695. presId: localStorage.getItem("userid"),
  696. endTime: "",
  697. pblmId: "",
  698. objId: "",
  699. pType: "",
  700. inspGroupId: "",
  701. inspPblmName: "",
  702. inspPblmDesc: "",
  703. pblmLong: "",
  704. pblmLat: "",
  705. pblmStat: "",
  706. ifCasePblm: "",
  707. inspPblmOrgName: "",
  708. pblmPersName: "",
  709. inspPblmCate: "",
  710. reviOpin: "",
  711. reviConc: "",
  712. reviOrgGuid: "",
  713. collTime: "",
  714. recPers: "",
  715. gwComFiles: [
  716. {
  717. id: "",
  718. filePath: "",
  719. bizId: ""
  720. }
  721. ]
  722. },
  723. flash: false,
  724. // 督查类型
  725. supervisionTypeList: [
  726. {
  727. value: "1",
  728. label: "小水库"
  729. }
  730. ],
  731. // 查询
  732. value6: [],
  733. findParams: {
  734. hasVedio: "",
  735. adCode: "",
  736. pblmStat: "",
  737. nm: "",
  738. adFullName: "",
  739. startTime: "",
  740. endTime: "",
  741. pType: 30,
  742. inspPblmName: "",
  743. persId: localStorage.getItem("userid"),
  744. state: ''
  745. },
  746. stateList: [
  747. {
  748. label: '未提交',
  749. value: '0'
  750. },
  751. {
  752. label: '已提交',
  753. value: '2'
  754. },
  755. {
  756. label: '已发布',
  757. value: '3'
  758. }
  759. ],
  760. currentPage: 1, // 页码
  761. pageSize: 20, // 条数
  762. loading: false,
  763. total: 0, // 总数
  764. searchResult: [], // 结果
  765. crId: "", // 当前督查id
  766. // 督查详情
  767. userid: localStorage.getItem("userid"),
  768. supervisionDetailsVisible: false,
  769. problemDeleteVisible: false,
  770. supervisionDetails: {},
  771. pblmId: "",
  772. gwComFiles: [],
  773. pblscr: "",
  774. pblscrList: [
  775. {
  776. lable: "我的问题",
  777. value: localStorage.getItem("userid")
  778. }
  779. ],
  780. pblscrGroup: "",
  781. t1: {},
  782. t2: {},
  783. t3: {},
  784. problemList: [],
  785. currentCheckPointList: [],
  786. currentProblemDescList: [],
  787. xiangqingmiaoshu: '',
  788. wenTiLeiBie: "",
  789. jianChaXiangMu: "",
  790. actionUrl: "",
  791. fileList: [],
  792. header: {
  793. 'persId': localStorage.getItem('userid'),
  794. 'accessToken': localStorage.getItem('accessToken')
  795. },
  796. fileListLength: 0,
  797. showShuiKuTianBaoPl: false,
  798. uploadDisabled: true,
  799. exportLoading: false,
  800. datas: {},
  801. orgIds: '001',
  802. editPicDialog: false,
  803. picUrl: "",
  804. picId: "",
  805. downloadIcon: "el-icon-download",
  806. buttonLoading: false,
  807. treeAllData: [],
  808. newYear: "",
  809. editId: "",
  810. pType: 30,
  811. };
  812. },
  813. computed: {
  814. hostUrl() {
  815. return hostUrl
  816. },
  817. isGd(){
  818. if(localStorage.getItem('currentRlcode').substring(0,2)=="44"){
  819. return true;
  820. }else{
  821. return false;
  822. }
  823. }
  824. },
  825. created() {
  826. if (this.userId) {
  827. console.log("已经登录");
  828. this.search();
  829. } else {
  830. this.$router.push("/login");
  831. }
  832. this.addPicPanel = false;
  833. },
  834. activated() {
  835. },
  836. methods: {
  837. openDetails(row) {
  838. this.currentProblemId = row.pblmId;
  839. this.supervisionDetailsVisible = true;
  840. },
  841. //图片编辑
  842. editPicEvent(item) {
  843. this.picUrl = this.hostUrl + "/" + item.filePath;
  844. this.editPicDialog = true;
  845. this.editPicRefresh = false;
  846. this.picId = item.id;
  847. },
  848. cancelHandler() {
  849. this.editPicDialog = false;
  850. this.editPicRefresh = true;
  851. },
  852. editPicDataEvent(item) {
  853. request.post(`/file/updateFile?bizId=${this.changeSupervision.pblmId}&id=${this.picId}`, item, {headers: {'Content-Type': 'multipart/form-data'}}).then(res => {
  854. console.log(res);
  855. if (res.success) {
  856. this.pictureArray = [];
  857. showDetailsXq(this.updateIdXiuGai).then(res => {
  858. res.data.gwComFiles.forEach(item => {
  859. this.pictureArray.push(item);
  860. this.editPicDialog = false;
  861. this.editPicRefresh = true;
  862. });
  863. this.picturetabName = "图片资料(" + this.pictureArray.length + ")";
  864. });
  865. }
  866. });
  867. },
  868. // 操作成功反馈
  869. successInfo() {
  870. this.$message({
  871. type: "success",
  872. message: "操作成功!"
  873. });
  874. },
  875. // 操作失败反馈
  876. failInfo(val) {
  877. this.$message.error(val);
  878. },
  879. // 已选择项
  880. handleSelectionChange(val) {
  881. this.multipleSelection = val;
  882. },
  883. // 查询
  884. async search() {
  885. this.loading = true;
  886. let _self = this;
  887. let orgAllNode = this.treeAllData;
  888. _self.loading = true;
  889. let data = _self.findParams;
  890. data.startTime = _self.value6 && _self.value6.length > 0 ? _self.value6[0] : '';
  891. data.endTime = _self.value6 && _self.value6.length > 0 ? _self.value6[1] : '';
  892. data.pageNum = _self.currentPage;
  893. data.recPers = _self.pblscr;
  894. data.orgNm = _self.pblscrGroup;
  895. data.pageSize = _self.pageSize;
  896. data.villType = "";
  897. _self.findUseOrgArray = [];
  898. _self.treeNodeArray.forEach(item => {
  899. if (item.id.length < 12) {
  900. orgAllNode.forEach(orgItem => {
  901. if (orgItem.id.startsWith(item.code)) {
  902. _self.findUseOrgArray.push(orgItem.id);
  903. }
  904. });
  905. }
  906. _self.findUseOrgArray.push(item.id);
  907. });
  908. if (_self.findUseOrgArray.length > 0) {
  909. data["orgIds"] = _self.findUseOrgArray.join(",");
  910. this.orgIds = _self.findUseOrgArray.join(",");
  911. } else {
  912. data["orgIds"] = "";
  913. }
  914. if (this.rowId) {
  915. data["orgIds"] = this.rowId;
  916. }
  917. data["year"] = this.newYear;
  918. findProblemPageInfo(data).then(res => {
  919. _self.loading = false;
  920. _self.multipleSelection = [];
  921. if (res.success) {
  922. _self.searchResult = res.data.list;
  923. // console.log( "绝对是"+searchResult)
  924. _self.total = res.data.total;
  925. } else {
  926. _self.failInfo();
  927. }
  928. });
  929. },
  930. async submitBtn() {
  931. if (this.multipleSelection.length === 0) {
  932. this.$message.warning('请至少选择一条问题');
  933. return;
  934. }
  935. let newArray = this.multipleSelection.map((item) => {
  936. return {
  937. "objId": item.objId,
  938. "objType": item.objType,
  939. "state": "3"
  940. }
  941. });
  942. const {success, message} = await pblmSubmit(newArray);
  943. if (success) {
  944. this.$message.success('问题发布成功');
  945. this.search();
  946. } else {
  947. this.$message.warning(message);
  948. }
  949. },
  950. toForm(){
  951. var idArr = [];
  952. if(this.multipleSelection && this.multipleSelection.length==0){
  953. this.$message.warning("请选择数据");
  954. return false;
  955. }else{
  956. this.multipleSelection.forEach((item)=>{
  957. idArr.push(item.pblmId);
  958. })
  959. }
  960. var ids = idArr.join(",");
  961. let host = hostUrl;
  962. let nginx = '/pageofficePath/';
  963. let href = 'pageoffice://|' + host + nginx + '/pageoffice/pblm/list/word?ids='+ids+'&filename=pblm|width=1100px;height=800px;ismodal=false;||91A4EE66EC1921F376873E85D6C74FFA|A890649B44577C32CE1930797E1299F9';
  964. let a = document.createElement('a'); // 创建a标签
  965. a.setAttribute('href', href);// href链接
  966. a.click();// 自执行点击事件
  967. },
  968. async exportExcel() {
  969. this.exportLoading = true;
  970. let _self = this;
  971. let orgAllNode = _self.treeAllData;
  972. let data = _self.findParams;
  973. data.pageNum = _self.currentPage;
  974. data.pageSize = _self.pageSize;
  975. data.villType = "";
  976. _self.datas = JSON.stringify(data);
  977. _self.treeNodeArray.forEach(item => {
  978. console.log(item);
  979. if (item.id.length < 12) {
  980. orgAllNode.forEach(orgItem => {
  981. if (orgItem.id.startsWith(item.id)) {
  982. _self.findUseOrgArray.push(orgItem.id);
  983. }
  984. });
  985. } else {
  986. _self.findUseOrgArray.push(item.id);
  987. }
  988. });
  989. let url = "/pdcApi/dc/insp/pblm/page/export";
  990. let type = "post";
  991. let exportName = "超标洪水防御问题列表.xls"
  992. let result = await exportModel(type, url, exportName, this.datas);
  993. _self.exportLoading = result;
  994. },
  995. async exportWord() {
  996. let _self = this;
  997. _self.exportLoading = true;
  998. let orgAllNode = _self.treeAllData;
  999. let data = _self.findParams;
  1000. data.pageNum = _self.currentPage;
  1001. data.pageSize = _self.pageSize;
  1002. data.villType = "";
  1003. this.datas = data;
  1004. _self.treeNodeArray.forEach(item => {
  1005. if (item.id.length < 12) {
  1006. orgAllNode.forEach(orgItem => {
  1007. if (orgItem.id.startsWith(item.id)) {
  1008. _self.findUseOrgArray.push(orgItem.id);
  1009. }
  1010. });
  1011. } else {
  1012. _self.findUseOrgArray.push(item.id);
  1013. }
  1014. });
  1015. //下载word文档2
  1016. await request.post('/rever/doc', this.datas).then(res => {
  1017. if (res.success) {
  1018. console.log(this.response)
  1019. var a = document.createElement('a');
  1020. a.href = `${this.hostUrl}${res.data.downloadPath}`;
  1021. //设置文件名称
  1022. a.download = '小水库问题详情.doc';
  1023. a.click();
  1024. // window.open(`${this.hostUrl}${res.data.downloadPath}`)
  1025. _self.exportLoading = false;
  1026. } else {
  1027. _self.$mesage.error(res.message)
  1028. }
  1029. }).catch(res => {
  1030. _self.$mesage.error(res.message)
  1031. })
  1032. },
  1033. downFile(blob, fileName) {
  1034. // 非IE下载
  1035. if ("download" in document.createElement("a")) {
  1036. let link = document.createElement("a");
  1037. link.href = window.URL.createObjectURL(blob); // 创建下载的链接
  1038. link.download = fileName; // 下载后文件名
  1039. link.style.display = "none";
  1040. document.body.appendChild(link);
  1041. link.click(); // 点击下载
  1042. window.URL.revokeObjectURL(link.href); // 释放掉blob对象
  1043. document.body.removeChild(link); // 下载完成移除元素
  1044. } else {
  1045. // IE10+下载
  1046. window.navigator.msSaveBlob(blob, fileName);
  1047. }
  1048. },
  1049. // 下载模板
  1050. async downloadTemplate() {
  1051. await this.search();
  1052. await this.downloadTemplateSet();
  1053. this.uploadDisabled = false;
  1054. },
  1055. downloadTemplateSet() {
  1056. let _this = this;
  1057. _this.downloadIcon = "el-icon-loading"
  1058. // 使用POST传值下载文件,可以看到请求参数和避免请求参数过长导致请求失败
  1059. let xhr = new XMLHttpRequest();
  1060. this.findParams.orgIds = '';
  1061. let datas = JSON.stringify(this.findParams);
  1062. xhr.open('post', '/api/dc/imp/pblm/download', true);
  1063. xhr.responseType = 'blob';
  1064. // data传值方式和Content-Type要对应
  1065. let data = 'userId=' + this.userId + '&orgType=001&orgIds=' + this.orgIds + '&datas=' + datas;
  1066. xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  1067. // xhr.setRequestHeader('Content-Type', 'application/json;charset=utf-8');
  1068. xhr.setRequestHeader('persId', localStorage.getItem('userid') ? localStorage.getItem('userid') : '');
  1069. xhr.onload = function () {
  1070. if (this.status == 200) {
  1071. let blob = this.response;
  1072. let a = document.createElement('a');
  1073. let url = window.URL.createObjectURL(blob);
  1074. a.href = url;
  1075. //设置文件名称
  1076. a.download = '小水库问题.xls';
  1077. a.click();
  1078. }
  1079. _this.downloadIcon = "el-icon-download"
  1080. }
  1081. xhr.send(data);
  1082. },
  1083. showPlDialog() {
  1084. this.showShuiKuTianBaoPl = true
  1085. },
  1086. closePlDialog(val) {
  1087. this.showShuiKuTianBaoPl = false
  1088. this.search();
  1089. },
  1090. handleSizeChange(pageSize) {
  1091. this.pageSize = pageSize;
  1092. this.search();
  1093. },
  1094. // 新增
  1095. getDuChaId() {
  1096. //新增中 获取督查对象id
  1097. getSupervisdByID(this.userid, 1).then(res => {
  1098. if (res.success) {
  1099. // alert(1)
  1100. this.listobjId = res.data;
  1101. } else {
  1102. this.failInfo();
  1103. }
  1104. });
  1105. },
  1106. // 取消
  1107. removeNewSupervision(arg) {
  1108. this.gwComFiles = [];
  1109. if (arg) {
  1110. this.gwComFiles = arg;
  1111. this.$refs.uploadFile.init();
  1112. }
  1113. },
  1114. // 详情弹框
  1115. showDetails(id) {
  1116. this.currentProblemId = id;
  1117. this.supervisionDetailsVisible = true;
  1118. },
  1119. // 删除弹窗
  1120. removeSuperviseOne(id) {
  1121. this.deleteId = id;
  1122. this.problemDeleteVisible = true;
  1123. // showDetailsXq(id).then(res => {
  1124. // // console.log("123" + res.data)
  1125. // this.persNameRen = res.data.persName;
  1126. // });
  1127. },
  1128. deleteSuccess() {
  1129. this.problemDeleteVisible = false;
  1130. this.search();
  1131. this.$emit("problemCount");
  1132. },
  1133. // 修改弹窗显示
  1134. // changeSup(id) {
  1135. // this.currentProblemId = '';
  1136. // this.pictureArray = [];
  1137. // this.audioArray = [];
  1138. // this.videoArray = [];
  1139. // this.fileArray = [];
  1140. // this.updateIdXiuGai = id;
  1141. // showDetailsXq(this.updateIdXiuGai).then(res => {
  1142. // this.changeSupervision = res.data;
  1143. // this.fileList = this.changeSupervision.gwComFiles;
  1144. // this.t1['inspPblmsName'] = this.changeSupervision.inspPblmsName
  1145. // this.problemList.forEach(ele => {
  1146. // if (ele.inspPblmsName == this.t1.inspPblmsName) {
  1147. // this.problemListChange(ele)
  1148. // }
  1149. // })
  1150. // this.t2['checkPointName'] = this.changeSupervision.checkPoint
  1151. // this.currentCheckPointList.forEach(ele => {
  1152. // if (ele.checkPointName == this.t2.checkPointName) {
  1153. // this.currentCheckPointListChange(ele)
  1154. // }
  1155. // })
  1156. // this.t3['pblmDesc'] = this.changeSupervision.pblmDesc
  1157. // this.changeSupervisionVisible = true;
  1158. // res.data.gwComFiles.forEach(item => {
  1159. // if (
  1160. // item.fileExt == "mp3" ||
  1161. // item.fileExt == "MP3" ||
  1162. // item.fileExt == "m4a"
  1163. // ) {
  1164. // this.audioArray.push(item);
  1165. // } else if (
  1166. // item.fileExt == "jpg" ||
  1167. // item.fileExt == "JPG" ||
  1168. // item.fileExt == "png" ||
  1169. // item.fileExt == "PNG" ||
  1170. // item.fileExt == "JPEG" ||
  1171. // item.fileExt == "jpeg"
  1172. // ) {
  1173. // this.pictureArray.push(item);
  1174. // } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  1175. // this.videoArray.push({
  1176. // id: item.id,
  1177. // bizId: item.bizId,
  1178. // width: "130",
  1179. // height: "130",
  1180. // autoplay: false,
  1181. // muted: true,
  1182. // language: "en",
  1183. // playbackRates: [0.7, 1.0, 1.5, 2.0],
  1184. // sources: [
  1185. // {
  1186. // type: "video/mp4",
  1187. // // mp4
  1188. // src: this.hostUrl + item.filePath
  1189. // // webm
  1190. // // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
  1191. // }
  1192. // ]
  1193. // });
  1194. // } else {
  1195. // this.fileArray.push(item);
  1196. // }
  1197. // });
  1198. //
  1199. // this.picturetabName = "图片资料(" + this.pictureArray.length + ")";
  1200. // this.audiotabName = "音频资料(" + this.audioArray.length + ")";
  1201. // this.videotabName = "视频资料(" + this.videoArray.length + ")";
  1202. // this.filetabName = "其它资料(" + this.fileArray.length + ")";
  1203. // });
  1204. // },
  1205. changeSup(pblmId) {
  1206. this.editId = pblmId;
  1207. this.changeSupervisionVisible = true
  1208. },
  1209. // 提交修改信息
  1210. changeSupervisionInfo() {
  1211. this.$refs.changeSupFrom.validate(valid => {
  1212. if (valid) {
  1213. this.$nextTick(() => {
  1214. this.buttonLoading = true;
  1215. if (this.$refs.uploadFile.submitUpload(this.changeSupervision.pblmId)) {
  1216. this.removeNewSupervision();
  1217. }
  1218. setTimeout(() => {
  1219. this.changeSupervisionLoading = true;
  1220. this.changeSupervision.gwComFiles = this.gwComFiles;
  1221. let data = this.changeSupervision;
  1222. updatelist(data).then(res => {
  1223. this.pblmId = res.data.pblmId;
  1224. this.gwComFiles = res.data.gwComFiles;
  1225. this.changeSupervisionLoading = false;
  1226. if (res.success) {
  1227. this.buttonLoading = false;
  1228. this.search();
  1229. this.successInfo();
  1230. this.addPicPanel = false;
  1231. this.changeSupervisionVisible = false;
  1232. } else {
  1233. this.failInfo();
  1234. }
  1235. });
  1236. }, 1000)
  1237. })
  1238. }
  1239. });
  1240. },
  1241. // 时间格式化
  1242. timestampToTime(row, column) {
  1243. var date = new Date(row.collTime);
  1244. var Y = date.getFullYear() + "-";
  1245. var M =
  1246. (date.getMonth() + 1 < 10
  1247. ? "0" + (date.getMonth() + 1)
  1248. : date.getMonth() + 1) + "-";
  1249. var D =
  1250. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
  1251. var h =
  1252. (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":";
  1253. var m =
  1254. date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
  1255. return Y + M + D;
  1256. },
  1257. // 删除图片文件
  1258. removeFile(id, index) {
  1259. var _self = this;
  1260. this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
  1261. confirmButtonText: "确定",
  1262. cancelButtonText: "返回",
  1263. type: "warning"
  1264. }).then(
  1265. res => {
  1266. if (res === "confirm") {
  1267. deleteFileById(id, this.userId).then(res => {
  1268. if (res.success) {
  1269. this.fileListLength = 0;
  1270. this.fileList.forEach(item => {
  1271. if (
  1272. item.fileExt == "mp3" ||
  1273. item.fileExt == "MP3" ||
  1274. item.fileExt == "m4a"
  1275. ) {
  1276. this.audioArray.splice(index, 1);
  1277. } else if (
  1278. item.fileExt == "jpg" ||
  1279. item.fileExt == "JPG" ||
  1280. item.fileExt == "png" ||
  1281. item.fileExt == "PNG" ||
  1282. item.fileExt == "JPEG" ||
  1283. item.fileExt == "jpeg"
  1284. ) {
  1285. this.pictureArray.splice(index, 1);
  1286. } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
  1287. this.videoArray.splice(index, 1);
  1288. }
  1289. });
  1290. _self.changeSup(this.updateIdXiuGai);
  1291. } else {
  1292. this.failInfo();
  1293. }
  1294. });
  1295. }
  1296. },
  1297. res => {
  1298. console.log("返回");
  1299. }
  1300. );
  1301. },
  1302. changeSupervisionVisiblefalse() {
  1303. this.$nextTick(() => {
  1304. if (this.flash) {
  1305. this.flash = false;
  1306. this.search();
  1307. }
  1308. });
  1309. this.changeSupervisionVisible = false;
  1310. this.changeSupervision = {
  1311. dataStat: "",
  1312. nm: "",
  1313. endTime: "",
  1314. pblmId: "",
  1315. objId: "",
  1316. pType: "",
  1317. inspGroupId: "",
  1318. inspPblmCate: "",
  1319. inspPblmName: "",
  1320. inspPblmDesc: "",
  1321. pblmLong: "",
  1322. pblmLat: "",
  1323. pblmStat: "",
  1324. ifCasePblm: "",
  1325. inspPblmOrgName: "",
  1326. pblmPersName: "",
  1327. reviOpin: "",
  1328. reviConc: "",
  1329. reviOrgGuid: "",
  1330. collTime: "",
  1331. recPers: "",
  1332. note: "",
  1333. gwComFiles: [
  1334. {
  1335. id: "",
  1336. filePath: "",
  1337. bizId: ""
  1338. }
  1339. ]
  1340. };
  1341. // this.$refs.uploadFile.init();
  1342. this.addPicPanel = false;
  1343. },
  1344. addPic() {
  1345. this.addPicPanel = !this.addPicPanel;
  1346. },
  1347. problemListChange: function (item) {
  1348. this.t1 = item;
  1349. this.wenTiLeiBie = item.inspPblmsName;
  1350. this.currentCheckPointList = item.checkPoints;
  1351. },
  1352. currentCheckPointListChange: function (item) {
  1353. this.jianChaXiangMu = item.checkPointName;
  1354. this.currentProblemDescList = item.pblmDescs;
  1355. },
  1356. currentProblemDescListChange: function (item) {
  1357. this.xiangqingmiaoshu = item.pblmDesc;
  1358. console.log(item);
  1359. },
  1360. fileUpErr(err, file, fileList) {
  1361. this.$message.error("上传出错,请修改文件!");
  1362. this.fileList = [];
  1363. },
  1364. fileSuccess(item) {
  1365. this.fileList.push(item.data);
  1366. console.log(this.fileList);
  1367. },
  1368. // onChangeDialog() {
  1369. // this.changeSupervisionVisible = true;
  1370. // this.$refs.changeSupFrom.validate(valid => {
  1371. // if (valid) {
  1372. // this.changeSupervisionLoading = true;
  1373. // this.changeSupervision.inspPblmsName = this.wenTiLeiBie
  1374. // this.changeSupervision.checkPoint = this.jianChaXiangMu
  1375. // this.changeSupervision.inspPblmName = this.wenTiLeiBie //后台只需要这一个字段和问题id inspPblmsName和checkPoint可不传
  1376. // this.changeSupervision.inspPlbmType = this.t2.sort2;
  1377. // this.changeSupervision.pblmsTypeId = this.t2.guid;
  1378. // this.changeSupervision.gwComFiles = this.fileList;
  1379. // let data = this.changeSupervision;
  1380. // updatelist(data).then(res => {
  1381. // this.pblmId = res.data.pblmId;
  1382. // this.gwComFiles = res.data.gwComFiles;
  1383. // if (res.success) {
  1384. // if (this.$refs.uploadFile.submitUpload(data.pblmId)) {
  1385. // this.removeNewSupervision();
  1386. // this.successInfo();
  1387. // this.addPicPanel = false;
  1388. // this.changeSupervisionLoading = false;
  1389. // }
  1390. // } else {
  1391. // _self.failInfo();
  1392. // }
  1393. // });
  1394. // }
  1395. // });
  1396. // },
  1397. addFile(file, fileList) {
  1398. this.fileListLength = fileList.length;
  1399. },
  1400. UploadUrl: function () {
  1401. return `/pdcApi/file/insert?bizId=${this.changeSupervision.pblmId}`
  1402. },
  1403. beforeAvatarUpload(file) {
  1404. console.log(file);
  1405. },
  1406. //切换问题是否被督查简报调用
  1407. changeSfYy(row, val) {
  1408. this.$confirm('此问题将切换是否被督查简报引用, 是否继续?', '提示', {
  1409. confirmButtonText: '确定',
  1410. cancelButtonText: '取消',
  1411. type: 'warning'
  1412. }).then(() => {
  1413. if (val) {
  1414. request.post(`/dc/insp/pblm/update`, {
  1415. "pblmId": row,
  1416. "quote": 0
  1417. }).then(res => {
  1418. if (res.success) {
  1419. this.search();
  1420. }
  1421. })
  1422. } else {
  1423. request.post(`/dc/insp/pblm/update`, {
  1424. "pblmId": row,
  1425. "quote": 1
  1426. }).then(res => {
  1427. if (res.success) {
  1428. this.search();
  1429. }
  1430. })
  1431. }
  1432. }).catch(() => {
  1433. this.$message({
  1434. type: 'info',
  1435. message: '已取消切换'
  1436. });
  1437. });
  1438. },
  1439. treeNodeClickHandler(data) {
  1440. this.treeNodeArray = data;
  1441. },
  1442. changeYear(val) {
  1443. this.newYear = val;
  1444. this.search();
  1445. },
  1446. getAllTreeData(data) {
  1447. this.treeAllData = data;
  1448. },
  1449. closeEditDialog() {
  1450. this.changeSupervisionVisible = false
  1451. setTimeout(() => {
  1452. this.search()
  1453. }, 800)
  1454. }
  1455. },
  1456. watch: {
  1457. codeId: function () {
  1458. this.search();
  1459. },
  1460. showExpandSearchPanel: function (val) {
  1461. if (val) {
  1462. this.tableHeight = window.innerHeight - 390;
  1463. } else {
  1464. this.tableHeight = window.innerHeight - 291;
  1465. }
  1466. },
  1467. rowId(val) {
  1468. if (val) {
  1469. this.search();
  1470. }
  1471. }
  1472. },
  1473. filters: {
  1474. inspPblmCate(val) {
  1475. if (!val || val == '') {
  1476. return ''
  1477. }
  1478. if (val == '0') {
  1479. return '一般'
  1480. } else if (val == '1') {
  1481. return '较重'
  1482. } else if (val == '2') {
  1483. return '严重'
  1484. } else {
  1485. return val
  1486. }
  1487. },
  1488. }
  1489. };
  1490. </script>
  1491. <style rel="stylesheet/scss" lang="scss" scoped>
  1492. @import "./base.css";
  1493. @import url("/src/assets/iconfont/iconfont.css");
  1494. @import url("/src/assets/css/mixin.scss");
  1495. .upload-container {
  1496. width: 100%;
  1497. position: relative;
  1498. .image-uploader {
  1499. width: 35%;
  1500. float: left;
  1501. }
  1502. .image-preview {
  1503. width: 200px;
  1504. height: 200px;
  1505. position: relative;
  1506. border: 1px dashed #d9d9d9;
  1507. float: left;
  1508. // margin-left: 50px;
  1509. .image-preview-wrapper {
  1510. position: relative;
  1511. width: 100%;
  1512. height: 100%;
  1513. img {
  1514. width: 100%;
  1515. height: 100%;
  1516. }
  1517. }
  1518. .image-preview-action {
  1519. position: absolute;
  1520. width: 100%;
  1521. height: 100%;
  1522. left: 0;
  1523. top: 0;
  1524. cursor: default;
  1525. text-align: center;
  1526. color: #fff;
  1527. opacity: 0;
  1528. font-size: 20px;
  1529. background-color: rgba(0, 0, 0, 0.5);
  1530. transition: opacity 0.3s;
  1531. cursor: pointer;
  1532. text-align: center;
  1533. line-height: 200px;
  1534. .el-icon-delete {
  1535. font-size: 36px;
  1536. }
  1537. .el-icon-edit-outline {
  1538. font-size: 36px;
  1539. }
  1540. }
  1541. &:hover {
  1542. .image-preview-action {
  1543. opacity: 1;
  1544. }
  1545. }
  1546. }
  1547. .image-app-preview {
  1548. margin-bottom: 10px;
  1549. width: 40vh;
  1550. height: 180px;
  1551. position: relative;
  1552. border: 1px dashed #d9d9d9;
  1553. float: left;
  1554. // margin-left: 50px;
  1555. .app-fake-conver {
  1556. height: 44px;
  1557. position: absolute;
  1558. width: 100%; // background: rgba(0, 0, 0, .1);
  1559. text-align: center;
  1560. line-height: 64px;
  1561. color: #fff;
  1562. }
  1563. }
  1564. }
  1565. .bottom {
  1566. margin-top: 13px;
  1567. line-height: 12px;
  1568. }
  1569. .button {
  1570. padding: 0;
  1571. float: right;
  1572. }
  1573. .image {
  1574. width: 100%;
  1575. display: block;
  1576. }
  1577. .clearfix:before,
  1578. .clearfix:after {
  1579. display: table;
  1580. content: "";
  1581. }
  1582. .clearfix:after {
  1583. clear: both;
  1584. }
  1585. #wenTiContainer_sk .el-tree-node {
  1586. /* overflow: auto; */
  1587. }
  1588. #wenTiContainer_sk .el-tree-node > .el-tree-node__children {
  1589. overflow: auto;
  1590. }
  1591. .shuiku .el-date-editor.el-input {
  1592. min-width: 180px !important;
  1593. }
  1594. .shuiku .header {
  1595. padding: 0px 10px;
  1596. }
  1597. .shuiku .el-row {
  1598. margin-bottom: 5px;
  1599. }
  1600. .shuiku .content {
  1601. margin: 10px;
  1602. }
  1603. /* .search .el-table>>>.el-tooltip {
  1604. white-space: pre-wrap !important;
  1605. line-height: 30px;
  1606. font-size: 0;
  1607. } */
  1608. .shuiku .search > > > .el-table .el-button:nth-child(odd) {
  1609. margin-left: 0 !important;
  1610. }
  1611. .custom_dialog .el-dialog {
  1612. width: 60% !important;
  1613. }
  1614. .custom_dialog .scroll300 {
  1615. max-height: 60vh !important;
  1616. }
  1617. .scroll300 .el-form {
  1618. padding-top: 5px;
  1619. padding-right: 5px;
  1620. }
  1621. .shuiku .el-tag + .el-tag {
  1622. margin-left: 10px;
  1623. }
  1624. .shuiku .button-new-tag {
  1625. margin-left: 10px;
  1626. height: 29px;
  1627. line-height: 29px;
  1628. padding-top: 0;
  1629. padding-bottom: 0;
  1630. }
  1631. .shuiku .input-new-tag {
  1632. width: 90px;
  1633. margin-left: 10px;
  1634. vertical-align: bottom;
  1635. }
  1636. .inspPblmCate {
  1637. padding: 2px 10px;
  1638. border-radius: 10px;
  1639. color: #ffffff;
  1640. -webkit-border-radius: 10px;
  1641. -moz-border-radius: 10px;
  1642. border-radius: 10px;
  1643. }
  1644. #wenTiContainer_sk .el-select, #wenTiContainer_sk .el-input {
  1645. width: 140px !important;
  1646. }
  1647. </style>