b8c04f8fd1ef0890d3f3fafe5035d2cda335ad2a.svn-base 73 KB

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