7820d53f440fb42f452dfdfc8ca6f0ffc4c835ea.svn-base 73 KB

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