e5b4390bbb29ce417c9f1650483e1f5a68c51f30.svn-base 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774
  1. <template>
  2. <div style="height:100%;width:100%;">
  3. <el-container style="height:100%;width:100%;">
  4. <el-aside
  5. width="320px"
  6. style="border-right:2px solid #d5d5ff;float:left"
  7. :style="{'max-height':testHeight+'px','height':testHeight+'px'}"
  8. >
  9. <div
  10. class="tree"
  11. style="
  12. height: 100%;
  13. width: 100%;
  14. overflow: auto;
  15. display: inline-flex;"
  16. >
  17. <el-tree
  18. :highlight-current="true"
  19. style="height:100%;"
  20. :data="treeData"
  21. node-key="id"
  22. :expand-on-click-node="false"
  23. @node-click="treeNodeClickHandler"
  24. ref="jigou_tree"
  25. >
  26. <div
  27. class="custom-tree-node"
  28. slot-scope="{ node, data }"
  29. >
  30. <span style="float:left;">{{ data.pnm}}</span>
  31. </div>
  32. </el-tree>
  33. </div>
  34. </el-aside>
  35. <el-main
  36. id="dxdcListMainsk"
  37. style="padding:5px 20px;"
  38. >
  39. <el-row>
  40. <el-col :span="24">
  41. <el-form
  42. :inline="true"
  43. size="mini"
  44. class="demo-form-inline"
  45. style="padding-left: 10px;"
  46. >
  47. <el-form-item label="督查状态">
  48. <el-select
  49. v-model="dcType"
  50. clearable
  51. placeholder="督查状态"
  52. >
  53. <el-option
  54. label="未督查"
  55. value="0"
  56. ></el-option>
  57. <el-option
  58. label="督查中"
  59. value="1"
  60. ></el-option>
  61. <el-option
  62. label="已督查"
  63. value="2"
  64. ></el-option>
  65. </el-select>
  66. </el-form-item>
  67. <el-form-item label="行政区名称">
  68. <el-input
  69. v-model="adName"
  70. clearable
  71. placeholder="行政区名称"
  72. ></el-input>
  73. </el-form-item>
  74. <el-form-item label="督查对象名称">
  75. <el-input
  76. v-model="nm"
  77. placeholder="督查对象名称"
  78. clearable
  79. ></el-input>
  80. </el-form-item>
  81. <!-- <el-form-item label="检查单位">
  82. <el-select v-model="orgName" clearable placeholder="检查单位">
  83. <el-option v-for="item in lyjg" :key="item.id" :label="item.pnm" :value="item.id"></el-option>
  84. </el-select>
  85. </el-form-item> -->
  86. <el-form-item label="所在组">
  87. <el-autocomplete
  88. v-model="groupName"
  89. clearable
  90. value-key="nm"
  91. :fetch-suggestions="querySearchAsync"
  92. placeholder="请输入内容"
  93. @select="handleSelect"
  94. ></el-autocomplete>
  95. </el-form-item>
  96. <el-form-item label="督查时间">
  97. <div style="display: flex;">
  98. <el-date-picker
  99. v-model="dateRange"
  100. type="daterange"
  101. value-format="yyyy-MM-dd"
  102. style="width:100%"
  103. range-separator="至"
  104. start-placeholder="开始日期"
  105. end-placeholder="结束日期"
  106. ></el-date-picker>
  107. </div>
  108. </el-form-item>
  109. <el-form-item>
  110. <el-button
  111. type="primary"
  112. @click="onSubmit"
  113. icon="el-icon-search"
  114. >查询</el-button>
  115. </el-form-item>
  116. <!--<el-form-item style="float:right">-->
  117. <!--<el-button type="success" style="float:right;margin-left:5px"-->
  118. <!--@click="showPlDialog"-->
  119. <!--icon="el-icon-upload2"-->
  120. <!--:disabled="uploadDisabled"-->
  121. <!--&gt;批量填报</el-button>-->
  122. <!--<el-button type="success" style="float:right;"-->
  123. <!--@click="downloadTemplate"-->
  124. <!--:icon="downIcon"-->
  125. <!--&gt;下载模板</el-button>-->
  126. <!--</el-form-item>-->
  127. <TongYongTianBaoPl
  128. v-if="showTianBaoPl"
  129. :showTianBaoPl="showTianBaoPl"
  130. titleName="水源地"
  131. @closePlDialog="closePlDialog"
  132. >
  133. </TongYongTianBaoPl>
  134. <!-- <el-button type="success" style="float:right;margin-left:5px"
  135. @click="showPlDialog"
  136. icon="el-icon-upload2"
  137. :disabled="disabled"
  138. >批量填报</el-button> -->
  139. <!-- 水源地批量导入弹窗(报表) -->
  140. <!-- <dctb-sz-pl v-if="showSpeTianBaoPl" :id="this.currentNodeId" @closePlDialog="closePlDialog"
  141. ></dctb-sz-pl> -->
  142. </el-form>
  143. </el-col>
  144. </el-row>
  145. <el-table
  146. ref="table"
  147. border
  148. :data="skDataList"
  149. style="width: 100%"
  150. :height="tableHeight"
  151. v-loading="expLoading"
  152. >
  153. <el-table-column
  154. show-overflow-tooltip
  155. prop="nm"
  156. label="督查对象名称"
  157. min-width="130"
  158. align="center"
  159. ></el-table-column>
  160. <el-table-column
  161. prop="province"
  162. label="省" v-if="isXj"
  163. show-overflow-tooltip
  164. min-width="100"
  165. align="center"
  166. ></el-table-column>
  167. <el-table-column
  168. prop="city"
  169. :label="ownAdName"
  170. show-overflow-tooltip
  171. min-width="100"
  172. align="center"
  173. ></el-table-column>
  174. <el-table-column
  175. prop="country"
  176. label="县"
  177. v-if="isXj"
  178. show-overflow-tooltip
  179. min-width="100"
  180. align="center"
  181. ></el-table-column>
  182. <!--<el-table-column-->
  183. <!--prop="riverName"-->
  184. <!--label="检查单位"-->
  185. <!--show-overflow-tooltip-->
  186. <!--min-width="120"-->
  187. <!--align="center"-->
  188. <!--&gt;</el-table-column>-->
  189. <el-table-column
  190. prop="groupName"
  191. label="所在组"
  192. show-overflow-tooltip
  193. min-width="150"
  194. align="center"
  195. ></el-table-column>
  196. <el-table-column
  197. prop="state"
  198. label="督查状态"
  199. align="center"
  200. min-width="130"
  201. >
  202. <template slot-scope="scope">
  203. <span
  204. style="padding: 3px 10px;background:#F56C6C;border-radius:15px;color:rgba(255,255,255,1)"
  205. v-if="scope.row.state == 0"
  206. >未督查</span>
  207. <span
  208. style="padding: 3px 10px;background:#FBB56D;border-radius:15px;color:rgba(255,255,255,1)"
  209. v-if="scope.row.state == 1"
  210. >督查中</span>
  211. <span
  212. style="padding: 3px 10px;background:#63C25E;border-radius:15px;color:rgba(255,255,255,1)"
  213. v-if="scope.row.state == 2"
  214. >已督查</span>
  215. </template>
  216. </el-table-column>
  217. <el-table-column
  218. prop="location"
  219. show-overflow-tooltip
  220. min-width="200"
  221. label="详细地址"
  222. ></el-table-column>
  223. <!--<el-table-column show-overflow-tooltip prop="insName" min-width="180" label="管理单位"></el-table-column>-->
  224. <el-table-column
  225. prop="intm"
  226. label="创建时间"
  227. show-overflow-tooltip
  228. min-width="120"
  229. align="center"
  230. ></el-table-column>
  231. <!--<el-table-column-->
  232. <!--prop="upTm"-->
  233. <!--label="更新时间"-->
  234. <!--align="center"-->
  235. <!--:formatter="formatDate"-->
  236. <!--min-width="120"-->
  237. <!--&gt;</el-table-column>-->
  238. <el-table-column
  239. prop="wrsInfoStat"
  240. label="2020年度水资源管理工作年中检查表填报状态"
  241. align="center"
  242. min-width="220"
  243. >
  244. <template slot-scope="scope">
  245. <p
  246. style="cursor:pointer;color:#F56C6C;"
  247. v-if="scope.row.wrsInfoStat == 0 || !scope.row.wrsInfoStat"
  248. >待填报</p>
  249. <p
  250. style="cursor:pointer;color:#fbb56d"
  251. v-if="scope.row.wrsInfoStat == 1"
  252. >未完成</p>
  253. <p
  254. style="cursor:pointer;color:#67C23A"
  255. v-if="scope.row.wrsInfoStat == 2"
  256. >已完成</p>
  257. </template>
  258. </el-table-column>
  259. <el-table-column
  260. prop="wswmInfoStat"
  261. label="2020年度节约用水管理情况检查表填报状态"
  262. align="center"
  263. min-width="220"
  264. >
  265. <template slot-scope="scope">
  266. <p
  267. style="cursor:pointer;color:#F56C6C;"
  268. v-if="scope.row.wswmInfoStat == 0 || !scope.row.wswmInfoStat"
  269. >待填报</p>
  270. <p
  271. style="cursor:pointer;color:#fbb56d"
  272. v-if="scope.row.wswmInfoStat == 1"
  273. >未完成</p>
  274. <p
  275. style="cursor:pointer;color:#67C23A"
  276. v-if="scope.row.wswmInfoStat == 2"
  277. >已完成</p>
  278. </template>
  279. </el-table-column>
  280. <!-- <el-table-column-->
  281. <!-- prop="wswmInfoStat"-->
  282. <!-- label="2019年节水管理情况遗留问题复核状态"-->
  283. <!-- align="center"-->
  284. <!-- min-width="220"-->
  285. <!-- >-->
  286. <!-- <template slot-scope="scope">-->
  287. <!-- <span-->
  288. <!-- style="padding: 3px 10px;background:#F56C6C;border-radius:15px;color:rgba(255,255,255,1)"-->
  289. <!-- v-if="scope.row.yLState == -1 ||-->
  290. <!-- !scope.row.yLState"-->
  291. <!-- >未复核</span>-->
  292. <!-- <span-->
  293. <!-- style="padding: 3px 10px;background:#FBB56D;border-radius:15px;color:rgba(255,255,255,1)"-->
  294. <!-- v-if="scope.row.yLState == 1"-->
  295. <!-- >已复核</span>-->
  296. <!-- <span-->
  297. <!-- style="padding: 3px 10px;background:#63C25E;border-radius:15px;color:rgba(255,255,255,1)"-->
  298. <!-- v-if="scope.row.yLState == 2"-->
  299. <!-- >已复核</span>-->
  300. <!-- </template>-->
  301. <!-- </el-table-column>-->
  302. <el-table-column
  303. align="center"
  304. label="操作"
  305. min-width="250"
  306. v-if="ownPriv('manage')"
  307. fixed="right"
  308. >
  309. <template slot-scope="scope">
  310. <el-button
  311. size="mini"
  312. type="success"
  313. plain
  314. @click="toAddMember('编辑',scope.row)"
  315. >编辑</el-button>
  316. <el-button
  317. size="mini"
  318. type="danger"
  319. plain
  320. @click="deleteMember(scope.row)"
  321. >删除</el-button>
  322. <el-button
  323. size="mini"
  324. type="danger"
  325. plain
  326. @click="submitHandler(scope.row)"
  327. >提交</el-button>
  328. </template>
  329. </el-table-column>
  330. </el-table>
  331. <el-pagination
  332. background
  333. :pager-count="5"
  334. :current-page="pageIndex"
  335. :page-size="pageSize"
  336. :page-sizes="[10, 20, 30, 40, 50, 100]"
  337. layout="sizes, total, prev, pager, next"
  338. :total="total"
  339. @current-change="pageIndexChange"
  340. @size-change="handleSizeChange"
  341. ></el-pagination>
  342. </el-main>
  343. <twozxdc
  344. v-if="showSpeTianBao"
  345. :rowData="rowData"
  346. :currentObjectRgstrId="currentObjectRgstrId"
  347. :currentResCode="currentResCode"
  348. :currentAdcode="currentAdcode"
  349. :currentObjectId="currentObjectId"
  350. :currentObjectName="currentObjectName"
  351. :showOrEdit="showOrEdit"
  352. :gdX="gdX"
  353. :gdY="gdY"
  354. :adName="adName"
  355. :location="location"
  356. :swhsId="swhsId"
  357. :baseForm="baseForm"
  358. @cancelHandler="cancelHandler"
  359. @addShuiKuSuccess="addShuiKuSuccess"
  360. ></twozxdc>
  361. </el-container>
  362. </div>
  363. </template>
  364. <script>
  365. import request from "../../utils/gw_ajax_request.js";
  366. import { dateFormat } from "../../utils/gw_date.js";
  367. import { deleteDcdxByObjid, getList_slfp, getList_anninsp } from "../../api/duChaTianBao.js";
  368. import provTreeList from "../../widgets/provTreeList.vue";
  369. import twozxdc from "../duChaTianBao/2020zxdcszyjs/twozxdc.vue";
  370. import TongYongTianBaoPl from "../duChaTianBao/dctbBatchImp/tongYongTianbao_piliang.vue";
  371. import { exportModel } from "@util/gw_exportModel";
  372. export default {
  373. components: {
  374. provTreeList: provTreeList,
  375. twozxdc: twozxdc,
  376. TongYongTianBaoPl: TongYongTianBaoPl,
  377. },
  378. props: [],
  379. data () {
  380. return {
  381. dateRange: [],
  382. nm: "",
  383. lyjg: [],
  384. engScales: [
  385. { id: "1", name: "大型" },
  386. { id: "2", name: "中型" },
  387. { id: "3", name: "小型" },
  388. { id: "4", name: "其他" },
  389. ],
  390. engScale: "",
  391. orgName: "",
  392. groupName: "",
  393. groupId: "",
  394. groups: [],
  395. sttm: "",
  396. entm: "",
  397. adName: "",
  398. treeData: [],
  399. dxdcMainHeight: window.innerHeight - 345,
  400. testHeight: window.innerHeight - 111,
  401. skDataList: [],
  402. pageIndex: 1,
  403. pageSize: 20,
  404. total: 0,
  405. tableHeight: 0,
  406. currentResCode: "",
  407. currentResName: "",
  408. currentObjectId: "",
  409. currentObjectRgstrId: "",
  410. currentObjectInfoObject: null,
  411. showSpeTianBao: false,
  412. currentAdCode: "",
  413. currentNodeId: "",
  414. rsvrName: "",
  415. dcType: "",
  416. rowData: "",
  417. uploadDisabled: true,
  418. showTianBaoPl: false,
  419. downIcon: "el-icon-download",
  420. expLoading: false,
  421. currentEngScale: "",
  422. currentGroupId: "",
  423. currentAdcode: "",
  424. currentObjectName: "",
  425. showOrEdit: "",
  426. gdX: 0,
  427. gdY: 0,
  428. location: '',
  429. baseForm: {},
  430. problemLastYearVisible: false,
  431. swhsId: '',
  432. swhsCode: ''
  433. };
  434. },
  435. computed: {
  436. persId () {
  437. return localStorage.getItem("userid")
  438. ? localStorage.getItem("userid")
  439. : "1098101939614724096";
  440. },
  441. isAdmin: function () {
  442. return localStorage.getItem("isAdmin")
  443. ? localStorage.getItem("isAdmin")
  444. : "";
  445. }
  446. },
  447. mounted () {
  448. // this.getLeftTreeData();
  449. this.$nextTick(function () {
  450. this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 50;
  451. let _self = this;
  452. window.onresize = function () {
  453. _self.tableHeight = window.innerHeight - _self.$refs.table.$el.offsetTop - 50
  454. }
  455. })
  456. this.getSkDataList();
  457. this.getAllGroup();
  458. // let h = document.getElementById("dxdcListMainsk").offsetHeight;
  459. // this.tableHeight = h - 100;
  460. // console.log("tableHeight" + this.tableHeight);
  461. },
  462. activated () {
  463. this.getLeftTreeData();
  464. this.currentNodeId = "";
  465. this.rsvrName = "";
  466. this.dcType = "";
  467. this.getSkDataList();
  468. },
  469. watch: {
  470. currentNodeId (n, o) {
  471. this.getSkDataList();
  472. },
  473. groupName (n, o) {
  474. if (n == "") {
  475. this.groupId = "";
  476. }
  477. }
  478. },
  479. methods: {
  480. //获取所有的组
  481. getAllGroup () {
  482. var _self = this;
  483. request.get("/dc/user/getGroupByPersid", {
  484. params: { persid: this.persId, ptype: "14" }
  485. }).then(res => {
  486. if (res.success) {
  487. _self.groups = res.data;
  488. }
  489. });
  490. },
  491. querySearchAsync (queryString, cb) {
  492. var restaurants = this.groups;
  493. var results = queryString
  494. ? restaurants.filter(this.createStateFilter(queryString))
  495. : restaurants;
  496. clearTimeout(this.timeout);
  497. this.timeout = setTimeout(() => {
  498. cb(results);
  499. }, 1500 * Math.random());
  500. },
  501. createStateFilter (queryString) {
  502. return state => {
  503. return state.nm.toLowerCase().indexOf(queryString.toLowerCase()) != -1;
  504. };
  505. },
  506. handleSelect (item) {
  507. console.log(item);
  508. this.groupId = item.id;
  509. },
  510. getLeftTreeData () {
  511. var _self = this;
  512. _self.lyjg = [];
  513. request
  514. .get("/dc/organization/base/getAllNode", {
  515. params: { userId: this.persId, orgType: "101" }
  516. })
  517. .then(res => {
  518. let data = res.data;
  519. data.forEach(ele => {
  520. if (ele.pid == null || ele.pid == "") {
  521. ele.pid = "101";
  522. }
  523. if (ele.id.length == 6) {
  524. _self.lyjg.push(ele);
  525. }
  526. });
  527. data = _self.getTrees(data);
  528. _self.treeData = data;
  529. // _self.duChaType = _self.treeData[0].id.substring(2,3);
  530. });
  531. },
  532. //格式化树形数据
  533. getTrees (list) {
  534. //@wxcwater重写方法 适应多个树
  535. let highLevelLength = 99; //预设最大节点id长度,目前最大应该为12,所以设置为99保证正常
  536. let _self = this;
  537. list.forEach((item, index) => {
  538. item["pidLength"] = item.pid && item.pid != "" ? item.pid.length : 0;
  539. if (highLevelLength > item.pidLength) {
  540. highLevelLength = item.pidLength;
  541. }
  542. });
  543. let heightLevelNode = [];
  544. list.forEach((item, index) => {
  545. if (highLevelLength >= item.pidLength) {
  546. heightLevelNode.push(item);
  547. }
  548. });
  549. list.forEach((item, index) => {
  550. heightLevelNode.forEach(pItem => {
  551. _self.addTreeNode(pItem, item);
  552. });
  553. });
  554. return heightLevelNode;
  555. },
  556. addTreeNode: function (treeNode, leafNode) {
  557. let _self = this;
  558. if (!treeNode.hasOwnProperty("children")) {
  559. treeNode["children"] = [];
  560. }
  561. if (leafNode.pid == treeNode.id) {
  562. treeNode.children.push(leafNode);
  563. return;
  564. }
  565. treeNode.children.forEach(item => {
  566. _self.addTreeNode(item, leafNode);
  567. });
  568. },
  569. treeNodeClickHandler: function (data, node, tree) {
  570. this.currentNodeId = data.id;
  571. },
  572. provTreeSelectChangeHandler: function (params) {
  573. this.currentAdCode = params.likeCode;
  574. this.getSkDataList();
  575. },
  576. formatDate (row, column) {
  577. if (row.upTm) {
  578. return dateFormat(row.upTm, "yyyy-MM-dd");
  579. }
  580. if (row.intm) {
  581. return dateFormat(row.intm, "yyyy-MM-dd");
  582. }
  583. },
  584. formatGateType: function (row, column) {
  585. return row.type == "1" ? '水库'
  586. : row.type == "2" ? '湖泊'
  587. : row.type == "3" ? '河流'
  588. : row.type == "9" ? '其他' : '';
  589. },
  590. formatEngScal: function (row, column) {
  591. return row.engScal == "1" ? '大型'
  592. : row.engScal == "2" ? '中型'
  593. : row.engScal == "3" ? '小型' : '其他'
  594. },
  595. getSkDataList: function () {
  596. console.log("保存后更新");
  597. const _self = this;
  598. getList_anninsp(
  599. _self.persId,
  600. _self.pageSize,
  601. _self.pageIndex,
  602. _self.nm,
  603. _self.dcType,
  604. _self.adName != null ? '' : '',
  605. _self.dateRange && _self.dateRange.length > 1 ? _self.dateRange[0] : null,
  606. _self.dateRange && _self.dateRange.length > 1 ? _self.dateRange[1] : null,
  607. _self.groupId,
  608. _self.currentNodeId
  609. ).then(res => {
  610. _self.skDataList = res.data.list;
  611. _self.total = res.data.total;
  612. });
  613. },
  614. onSubmit () {
  615. this.getSkDataList();
  616. },
  617. toAddMember (type, rowData) {
  618. var _self = this;
  619. this.rowData = rowData;
  620. _self.showOrEdit = 'edit';
  621. _self.swhsId = rowData.code;
  622. _self.currentObjectName = rowData.nm;
  623. _self.currentResCode = rowData.code;
  624. _self.currentObjectRgstrId = rowData.id;
  625. _self.currentObjectId = rowData.objId;
  626. _self.showSpeTianBao = true;
  627. _self.gdX = rowData.gdX;
  628. _self.gdY = rowData.gdY;
  629. _self.adName = rowData.country;
  630. _self.location = rowData.location;
  631. },
  632. cancelHandler () {
  633. this.showSpeTianBao = false;
  634. },
  635. addShuiKuSuccess () {
  636. this.getSkDataList();
  637. },
  638. deleteMember (val) {
  639. console.log(val);
  640. var _self = this;
  641. this.$confirm('此操作将 “' + val.nm + '” 从督查对象列表中删除,是否继续?', '提示', {
  642. confirmButtonText: '确定',
  643. cancelButtonText: '取消',
  644. type: 'warning'
  645. }).then(() => {
  646. deleteDcdxByObjid(val.objId, 14).then(res => {
  647. if (res.success) {
  648. this.$message({
  649. type: 'success',
  650. message: '删除成功!'
  651. });
  652. };
  653. this.getSkDataList();
  654. }
  655. );
  656. }).catch(() => {
  657. this.$message({
  658. type: 'info',
  659. message: '已取消删除'
  660. });
  661. });
  662. },
  663. submitHandler (rowData) {
  664. console.log(rowData);
  665. var _self = this;
  666. if (!rowData.wrsInfoStat) {
  667. this.$message({
  668. message: "请填写2020年度水资源管理工作年中检查表!",
  669. type: "warning"
  670. });
  671. return;
  672. }
  673. if (!rowData.wswmInfoStat) {
  674. this.$message({
  675. message: "请填写2020年度节约用水管理情况检查表!",
  676. type: "warning"
  677. });
  678. return;
  679. }
  680. this.$confirm("请确认所有信息填报完毕?", "提示", {
  681. confirmButtonText: "确定",
  682. cancelButtonText: "取消",
  683. type: "warning"
  684. }).then(() => {
  685. let formObj = {
  686. id: rowData.id,
  687. state: "2"
  688. };
  689. request.post("/bis/insp/wint/rgstr/updateWintRgstrState", formObj).then(res => {
  690. if (res.success) {
  691. _self.addShuiKuSuccess();
  692. _self.$message.success("提交成功");
  693. } else {
  694. _self.cancelHandler();
  695. }
  696. });
  697. }).catch(() => { });
  698. },
  699. pageIndexChange (val) {
  700. console.log(val);
  701. this.pageIndex = val;
  702. this.getSkDataList();
  703. },
  704. handleSizeChange (val) {
  705. this.pageSize = val;
  706. this.getSkDataList();
  707. },
  708. // 下载模板
  709. async downloadTemplate () {
  710. await this.downloadTemplateSet();
  711. this.uploadDisabled = false;
  712. },
  713. async downloadTemplateSet () {
  714. let url = '/pdcApi/dc/imp/dcInfo/download?userId=' + this.persId + '&orgType=013&orgIds=' + this.groupId;
  715. let downloadName = "水源地督查填报表.xls";
  716. let type = "get";
  717. await exportModel(type, url, downloadName);
  718. },
  719. showPlDialog () {
  720. this.showTianBaoPl = true
  721. },
  722. closePlDialog (val) {
  723. this.showTianBaoPl = false
  724. this.getSkDataList();
  725. },
  726. }
  727. }
  728. </script>
  729. <style>
  730. #dcdxHeader {
  731. padding: 15px 20px;
  732. }
  733. #dxdcFooter {
  734. text-align: center;
  735. }
  736. #dxdcAside {
  737. border: 1px solid #d5d5ff;
  738. }
  739. .el-table .warning-row {
  740. background: oldlace;
  741. }
  742. .el-table .success-row {
  743. background: #f0f9eb;
  744. }
  745. </style>