6e6d95c15cfd86d98849688e5de55a6b2bce1295.svn-base 86 KB

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