c898a5cc6e8b31e006bfd9c49b83898dbd55852a.svn-base 72 KB

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