2af048dcf375387fdb04c1143657655a8d7eb202.svn-base 72 KB

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