a95ac6ca9e66275836afbe659aeb9aef2ffe63ef.svn-base 73 KB

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