8ca6c590618000b16ef2e4ee421ec2fd82eb9724.svn-base 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408
  1. <template>
  2. <div class="pblCou">
  3. <el-container v-loading="exportLoading">
  4. <el-header style="height: auto;">
  5. <el-form :inline="true" class="demo-form-inline">
  6. <el-form-item label="统计维度:" class="lableTitle">
  7. <el-radio-group v-model="type" @change="changetype">
  8. <el-radio label="addv">行政区</el-radio>
  9. <el-radio label="rvUnit" v-if="organCode!='660000000000'">流域机构</el-radio>
  10. <el-radio label="dcGrp">督查组</el-radio>
  11. <el-radio label="peoAch">人员业绩</el-radio>
  12. </el-radio-group>
  13. </el-form-item>
  14. </el-form>
  15. <el-form :inline="true" class="demo-form-inline">
  16. <el-form-item label="统计日期:" class="lableTitle">
  17. <el-date-picker
  18. v-model="dateRange"
  19. type="daterange"
  20. value-format="yyyy-MM-dd"
  21. style="width:100%"
  22. range-separator="至"
  23. start-placeholder="开始日期"
  24. end-placeholder="结束日期"
  25. @change="dateChangeHandler"
  26. ></el-date-picker>
  27. </el-form-item>
  28. <el-form-item label="督查状态:" v-if="sfState" class="lableTitle">
  29. <el-select v-model="form.state" clearable>
  30. <el-option
  31. v-for="item in stateOptions"
  32. :key="item.value"
  33. :label="item.label"
  34. :value="item.value"
  35. style="height: 5vh">
  36. </el-option>
  37. </el-select>
  38. </el-form-item>
  39. <!-- <el-form-item label="行政区/机构名称" v-if="xzqjgmc">
  40. <el-input v-model="form.name"></el-input>
  41. </el-form-item>-->
  42. <el-form-item :label="lableXzqh + ':'" v-if="xzqh" class="lableTitle">
  43. <el-input v-model="form.name" clearable @keyup.enter.native="searchData"></el-input>
  44. </el-form-item>
  45. <!--<el-form-item :label="this.type == 'addv' ? '检查单位':'检查项目'" v-if="sfly">-->
  46. <el-form-item :label="lableJcxm + ':'" v-if="sfly" class="lableTitle">
  47. <el-input v-model="form.typeName" clearable @keyup.enter.native="searchData"></el-input>
  48. </el-form-item>
  49. <el-form-item label="人员:" v-if="sfRyXm" class="lableTitle">
  50. <el-input v-model="form.persName" clearable @keyup.enter.native="searchData"></el-input>
  51. </el-form-item>
  52. <el-form-item label="机构:" v-if="sflyId" class="lableTitle">
  53. <!--<el-input v-model="form.lyId"></el-input>-->
  54. <el-select v-model="form.lyId" clearable>
  55. <el-option
  56. v-for="item in gcType"
  57. :key="item.id"
  58. :label="item.pnm"
  59. :value="item.id"
  60. style="height: 5vh"
  61. ></el-option>
  62. </el-select>
  63. </el-form-item>
  64. <el-form-item style="float:right;">
  65. <el-button type="primary" @click="searchData" icon="el-icon-search">查询</el-button>
  66. <el-button type="success" @click="exPort" icon="el-icon-upload2">导出</el-button>
  67. </el-form-item>
  68. </el-form>
  69. </el-header>
  70. <el-main>
  71. <el-tabs type="card" v-model="tableTabs" @tab-click="handleClick">
  72. <el-tab-pane v-if="totalTab" label="合计" key="1" name="total">
  73. <component
  74. :is="comHj"
  75. :sttm="sttm"
  76. :entm="entm"
  77. :orgId="orgId"
  78. :formState="form.state"
  79. :formName="form.name"
  80. :formType="form.typeName"
  81. :formPersName="form.persName"
  82. :tableHeight="tableHeight"
  83. :tableHeightRyyj="tableHeightRyyj"
  84. ref="childPlHj"
  85. ></component>
  86. </el-tab-pane>
  87. <el-tab-pane label="小水库" name="xsk">
  88. <component
  89. :is="comXsk"
  90. key="2"
  91. :sttm="sttm"
  92. :entm="entm"
  93. :orgId="orgId"
  94. :formName="form.name"
  95. :formLyId="form.lyId"
  96. :formState="form.state"
  97. :formType="form.typeName"
  98. :formPersName="form.persName"
  99. :tableHeight="tableHeight"
  100. :tableHeightRyyj="tableHeightRyyj"
  101. ref="childPlXsk"
  102. ></component>
  103. </el-tab-pane>
  104. <el-tab-pane label="人饮工程" key="3" name="rygc">
  105. <component
  106. :is="comRygc"
  107. :sttm="sttm"
  108. :entm="entm"
  109. :orgId="orgId"
  110. :formName="form.name"
  111. :formLyId="form.lyId"
  112. :formState="form.state"
  113. :formType="form.typeName"
  114. :formPersName="form.persName"
  115. :tableHeight="tableHeight"
  116. :tableHeightRyyj="tableHeightRyyj"
  117. ref="childPlRygc"
  118. ></component>
  119. </el-tab-pane>
  120. <el-tab-pane label="水毁工程" key="4" name="shgc">
  121. <component
  122. :is="comShgc"
  123. :sttm="sttm"
  124. :entm="entm"
  125. :orgId="orgId"
  126. :formName="form.name"
  127. :formLyId="form.lyId"
  128. :formType="form.typeName"
  129. :formState="form.state"
  130. :formPersName="form.persName"
  131. :tableHeight="tableHeight"
  132. :tableHeightRyyj="tableHeightRyyj"
  133. ref="childPlShgc"
  134. ></component>
  135. </el-tab-pane>
  136. <el-tab-pane label="水利工程建设" key="5" name="172gcjs">
  137. <component
  138. :is="com172gcjs"
  139. :sttm="sttm"
  140. :entm="entm"
  141. :orgId="orgId"
  142. :formName="form.name"
  143. :formLyId="form.lyId"
  144. :formType="form.typeName"
  145. :formState="form.state"
  146. :formPersName="form.persName"
  147. :tableHeight="tableHeight"
  148. :tableHeightRyyj="tableHeightRyyj"
  149. ref="childPl172gcjs"
  150. ></component>
  151. </el-tab-pane>
  152. <el-tab-pane label="水利工程运行" key="6" name="172gcyx">
  153. <component
  154. :is="com172gcyx"
  155. :sttm="sttm"
  156. :entm="entm"
  157. :orgId="orgId"
  158. :formName="form.name"
  159. :formLyId="form.lyId"
  160. :formState="form.state"
  161. :formType="form.typeName"
  162. :formPersName="form.persName"
  163. :tableHeight="tableHeight"
  164. :tableHeightRyyj="tableHeightRyyj"
  165. ref="childPl172gcyx"
  166. ></component>
  167. </el-tab-pane>
  168. <el-tab-pane label="水闸" key="7" name="sz">
  169. <component
  170. :is="comSz"
  171. :sttm="sttm"
  172. :entm="entm"
  173. :orgId="orgId"
  174. :formName="form.name"
  175. :formLyId="form.lyId"
  176. :formState="form.state"
  177. :formType="form.typeName"
  178. :formPersName="form.persName"
  179. :tableHeight="tableHeight"
  180. :tableHeightRyyj="tableHeightRyyj"
  181. ref="childPlSz"
  182. ></component>
  183. </el-tab-pane>
  184. <!-- add by Zjg 2019-11-26 -->
  185. <el-tab-pane label="特定飞检" key="9" name="tdfj" v-if="isXj">
  186. <component
  187. :is="comTdfj"
  188. :sttm="sttm"
  189. :entm="entm"
  190. :orgId="orgId"
  191. :formName="form.name"
  192. :formLyId="form.lyId"
  193. :formState="form.state"
  194. :formType="form.typeName"
  195. :formPersName="form.persName"
  196. :tableHeight="tableHeight"
  197. :tableHeightRyyj="tableHeightRyyj"
  198. ref="childPlTdfj"
  199. ></component>
  200. </el-tab-pane>
  201. <el-tab-pane label="其他检查" key="10" name="qtjc" v-if="isXj">
  202. <component
  203. :is="comQtjc"
  204. :sttm="sttm"
  205. :entm="entm"
  206. :orgId="orgId"
  207. :formName="form.name"
  208. :formLyId="form.lyId"
  209. :formState="form.state"
  210. :formType="form.typeName"
  211. :formPersName="form.persName"
  212. :tableHeight="tableHeight"
  213. :tableHeightRyyj="tableHeightRyyj"
  214. ref="childPlQtjc"
  215. ></component>
  216. </el-tab-pane>
  217. <el-tab-pane label="淤地坝" key="11" name="ycb" v-if="isXj">
  218. <component
  219. :is="comYcb"
  220. :sttm="sttm"
  221. :entm="entm"
  222. :orgId="orgId"
  223. :formName="form.name"
  224. :formLyId="form.lyId"
  225. :formState="form.state"
  226. :formType="form.typeName"
  227. :formPersName="form.persName"
  228. :tableHeight="tableHeight"
  229. :tableHeightRyyj="tableHeightRyyj"
  230. ref="childPlYcb"
  231. ></component>
  232. </el-tab-pane>
  233. <el-tab-pane label="取用水户" key="12" name="qysh" v-if="isXj">
  234. <component
  235. :is="comQysh"
  236. :sttm="sttm"
  237. :entm="entm"
  238. :orgId="orgId"
  239. :formName="form.name"
  240. :formLyId="form.lyId"
  241. :formState="form.state"
  242. :formType="form.typeName"
  243. :formPersName="form.persName"
  244. :tableHeight="tableHeight"
  245. :tableHeightRyyj="tableHeightRyyj"
  246. ref="childPlQysh"
  247. ></component>
  248. </el-tab-pane>
  249. <el-tab-pane label="水源地" key="13" name="syd">
  250. <component
  251. :is="comSyd"
  252. :sttm="sttm"
  253. :entm="entm"
  254. :orgId="orgId"
  255. :formName="form.name"
  256. :formLyId="form.lyId"
  257. :formState="form.state"
  258. :formType="form.typeName"
  259. :formPersName="form.persName"
  260. :tableHeight="tableHeight"
  261. :tableHeightRyyj="tableHeightRyyj"
  262. ref="childPlSyd"
  263. ></component>
  264. </el-tab-pane>
  265. <el-tab-pane label="分水及管控" key="14" name="xjxzq" v-if="isXj">
  266. <component
  267. :is="comXjxzq"
  268. :sttm="sttm"
  269. :entm="entm"
  270. :orgId="orgId"
  271. :formName="form.name"
  272. :formLyId="form.lyId"
  273. :formState="form.state"
  274. :formType="form.typeName"
  275. :formPersName="form.persName"
  276. :tableHeight="tableHeight"
  277. :tableHeightRyyj="tableHeightRyyj"
  278. ref="childPlXjxzq"
  279. ></component>
  280. </el-tab-pane>
  281. <el-tab-pane label="节水管理与评价" key="15" name="jsgl" v-if="isXj">
  282. <component
  283. :is="comJsgl"
  284. :sttm="sttm"
  285. :entm="entm"
  286. :orgId="orgId"
  287. :formName="form.name"
  288. :formLyId="form.lyId"
  289. :formState="form.state"
  290. :formType="form.typeName"
  291. :formPersName="form.persName"
  292. :tableHeight="tableHeight"
  293. :tableHeightRyyj="tableHeightRyyj"
  294. ref="childPlJsgl"
  295. ></component>
  296. </el-tab-pane>
  297. <el-tab-pane label="用水单位" key="16" name="ysdw">
  298. <component
  299. :is="comYsdw"
  300. :sttm="sttm"
  301. :entm="entm"
  302. :orgId="orgId"
  303. :formName="form.name"
  304. :formLyId="form.lyId"
  305. :formState="form.state"
  306. :formType="form.typeName"
  307. :formPersName="form.persName"
  308. :tableHeight="tableHeight"
  309. :tableHeightRyyj="tableHeightRyyj"
  310. ref="childPlYsdw"
  311. ></component>
  312. </el-tab-pane>
  313. <!-- add by Thy 2020年6月19日10:33:14 -->
  314. <el-tab-pane label="水库防洪" key="26" name="skfh">
  315. <component
  316. :is="comSkfh"
  317. :sttm="sttm"
  318. :entm="entm"
  319. :orgId="orgId"
  320. :formName="form.name"
  321. :formLyId="form.lyId"
  322. :formState="form.state"
  323. :formType="form.typeName"
  324. :formPersName="form.persName"
  325. :tableHeight="tableHeight"
  326. :tableHeightRyyj="tableHeightRyyj"
  327. ref="childPlSkfh"
  328. ></component>
  329. </el-tab-pane>
  330. <el-tab-pane label="山洪灾害" key="27" name="shzh">
  331. <component
  332. :is="comShzh"
  333. :sttm="sttm"
  334. :entm="entm"
  335. :orgId="orgId"
  336. :formName="form.name"
  337. :formLyId="form.lyId"
  338. :formState="form.state"
  339. :formType="form.typeName"
  340. :formPersName="form.persName"
  341. :tableHeight="tableHeight"
  342. :tableHeightRyyj="tableHeightRyyj"
  343. ref="childPlShzh"
  344. ></component>
  345. </el-tab-pane>
  346. <el-tab-pane label="堤防险工险段" key="29" name="dfxgxd" v-if="isXj">
  347. <component
  348. :is="comDfxgxd"
  349. :sttm="sttm"
  350. :entm="entm"
  351. :orgId="orgId"
  352. :formName="form.name"
  353. :formLyId="form.lyId"
  354. :formState="form.state"
  355. :formType="form.typeName"
  356. :formPersName="form.persName"
  357. :tableHeight="tableHeight"
  358. :tableHeightRyyj="tableHeightRyyj"
  359. ref="childPlDfxgxd"
  360. ></component>
  361. </el-tab-pane>
  362. <el-tab-pane label="超标洪水防御" key="30" name="cbhsfy">
  363. <component
  364. :is="comCbhsfy"
  365. :sttm="sttm"
  366. :entm="entm"
  367. :orgId="orgId"
  368. :formName="form.name"
  369. :formLyId="form.lyId"
  370. :formState="form.state"
  371. :formType="form.typeName"
  372. :formPersName="form.persName"
  373. :tableHeight="tableHeight"
  374. :tableHeightRyyj="tableHeightRyyj"
  375. ref="childPlCbhsfy"
  376. ></component>
  377. </el-tab-pane>
  378. </el-tabs>
  379. </el-main>
  380. </el-container>
  381. </div>
  382. </template>
  383. <script>
  384. import request from "../../../utils/gw_ajax_request";
  385. import {exportModel} from "@util/gw_exportModel";
  386. export default {
  387. components: {
  388. xzqHj: resolve => {
  389. require(["../../tongjibaobiao/xingzhengqu_heji.vue"], resolve);
  390. },
  391. xzqSk: resolve => {
  392. require(["../../tongjibaobiao/xingzhengqu_shuiku.vue"], resolve);
  393. },
  394. xzqRy: resolve => {
  395. require(["../../tongjibaobiao/xingzhengqu_renyin.vue"], resolve);
  396. },
  397. xzqSh: resolve => {
  398. require(["../../tongjibaobiao/xingzhengqu_shuihui.vue"], resolve);
  399. },
  400. lyjgHj: resolve => {
  401. require(["../../tongjibaobiao/liuyujigou_heji.vue"], resolve);
  402. },
  403. lyjgSk: resolve => {
  404. require(["../../tongjibaobiao/liuyujigou_shuiku.vue"], resolve);
  405. },
  406. lyjgRy: resolve => {
  407. require(["../../tongjibaobiao/liuyujigou_renyin.vue"], resolve);
  408. },
  409. lyjgSh: resolve => {
  410. require(["../../tongjibaobiao/liuyujigou_shuihui.vue"], resolve);
  411. },
  412. dczxsk: resolve => {
  413. require(["./dczxsk.vue"], resolve);
  414. },
  415. dczRygc: resolve => {
  416. require(["./dczRygc.vue"], resolve);
  417. },
  418. dczShgc: resolve => {
  419. require(["./dczShgc.vue"], resolve);
  420. },
  421. dcz172gcjs: resolve => {
  422. require(["./dcz172gcjs.vue"], resolve);
  423. },
  424. dcz172gcyx: resolve => {
  425. require(["./dcz172gcyx.vue"], resolve);
  426. },
  427. dczSz: resolve => {
  428. require(["./dczSz.vue"], resolve);
  429. },
  430. ryrjXsk: resolve => {
  431. require(["./ryyjXsk.vue"], resolve);
  432. },
  433. ryrjRygc: resolve => {
  434. require(["./ryyjRygc.vue"], resolve);
  435. },
  436. ryrShgc: resolve => {
  437. require(["./ryyjShgc.vue"], resolve);
  438. },
  439. ryyj172gcjs: resolve => {
  440. require(["./ryyj172gcjs.vue"], resolve);
  441. },
  442. ryyj172gcyx: resolve => {
  443. require(["./ryyj172gcyx.vue"], resolve);
  444. },
  445. ryyjSz: resolve => {
  446. require(["./ryyjSz.vue"], resolve);
  447. },
  448. xzq172gcjs: resolve => {
  449. require(["../../tongjibaobiao/xzq172gcjs.vue"], resolve);
  450. },
  451. xzq172gcyx: resolve => {
  452. require(["../../tongjibaobiao/xzq172gcyx.vue"], resolve);
  453. },
  454. xzqSz: resolve => {
  455. require(["../../tongjibaobiao/xzqSz.vue"], resolve);
  456. },
  457. lyjg172gcjs: resolve => {
  458. require(["../../tongjibaobiao/lyjg172gcjs.vue"], resolve);
  459. },
  460. lyjg172gcyx: resolve => {
  461. require(["../../tongjibaobiao/lyjg172gcyx.vue"], resolve);
  462. },
  463. lyjgSz: resolve => {
  464. require(["../../tongjibaobiao/lyjgSz.vue"], resolve);
  465. },
  466. ryyjTdfj: resolve => { // 人员业绩
  467. require(["./ryyjTdfj.vue"], resolve);
  468. },
  469. ryyjQtjc: resolve => {
  470. require(["./ryyjQtjc.vue"], resolve);
  471. },
  472. ryyjYcb: resolve => {
  473. require(["./ryyjYcb.vue"], resolve);
  474. },
  475. ryyjQysh: resolve => {
  476. require(["./ryyjQysh.vue"], resolve);
  477. },
  478. ryyjSyd: resolve => {
  479. require(["./ryyjSyd.vue"], resolve);
  480. },
  481. ryyjXjxzq: resolve => {
  482. require(["./ryyjXjxzq.vue"], resolve);
  483. },
  484. ryyjJsgl: resolve => {
  485. require(["./ryyjJsgl.vue"], resolve);
  486. },
  487. ryyjYsdw: resolve => {
  488. require(["./ryyjYsdw.vue"], resolve);
  489. },
  490. ryyjSkfh: resolve => {
  491. require(["./ryyjSkfh.vue"], resolve);
  492. },
  493. xzqTdfj: resolve => { // 行政区 行政区模板暂设为通用模板
  494. require(["./xzqTdfj.vue"], resolve);
  495. },
  496. xzqQtjc: resolve => {
  497. require(["./xzqTdfj.vue"], resolve);
  498. },
  499. xzqYcb: resolve => {
  500. require(["./xzqTdfj.vue"], resolve);
  501. },
  502. xzqQysh: resolve => {
  503. require(["./xzqTdfj.vue"], resolve);
  504. },
  505. xzqSyd: resolve => {
  506. require(["./xzqTdfj.vue"], resolve);
  507. },
  508. xzqXjxzq: resolve => {
  509. require(["./xzqTdfj.vue"], resolve);
  510. },
  511. xzqJsgl: resolve => {
  512. require(["./xzqTdfj.vue"], resolve);
  513. },
  514. xzqYsdw: resolve => {
  515. require(["./xzqTdfj.vue"], resolve);
  516. },
  517. xzqSkfh: resolve => {
  518. require(["./xzqTdfj.vue"], resolve);
  519. },
  520. xzqShzh: resolve => {
  521. require(["./xzqTdfj.vue"], resolve);
  522. },
  523. xzqDfxgxd: resolve => {
  524. require(["./xzqTdfj.vue"], resolve);
  525. },
  526. xzqCbhsfy: resolve => {
  527. require(["./xzqTdfj.vue"], resolve);
  528. },
  529. lyjgTdfj: resolve => { // 流域机构 流域机构模板暂设为通用模板
  530. require(["./lyjgTdfj.vue"], resolve);
  531. },
  532. lyjgQtjc: resolve => {
  533. require(["./lyjgTdfj.vue"], resolve);
  534. },
  535. lyjgYcb: resolve => {
  536. require(["./lyjgTdfj.vue"], resolve);
  537. },
  538. lyjgQysh: resolve => {
  539. require(["./lyjgTdfj.vue"], resolve);
  540. },
  541. lyjgSyd: resolve => {
  542. require(["./lyjgTdfj.vue"], resolve);
  543. },
  544. lyjgXjxzq: resolve => {
  545. require(["./lyjgTdfj.vue"], resolve);
  546. },
  547. lyjgJsgl: resolve => {
  548. require(["./lyjgTdfj.vue"], resolve);
  549. },
  550. lyjgYsdw: resolve => {
  551. require(["./lyjgTdfj.vue"], resolve);
  552. },
  553. lyjgSkfh: resolve => {
  554. require(["./lyjgTdfj.vue"], resolve);
  555. },
  556. lyjgShzh: resolve => {
  557. require(["./lyjgTdfj.vue"], resolve);
  558. },
  559. lyjgDfxgxd: resolve => {
  560. require(["./lyjgTdfj.vue"], resolve);
  561. },
  562. lyjgCbhsfy: resolve => {
  563. require(["./lyjgTdfj.vue"], resolve);
  564. },
  565. dczTdfj: resolve => { // 督察组 督察组模板暂设为通用模板
  566. require(["./dczTdfj.vue"], resolve);
  567. },
  568. dczQtjc: resolve => {
  569. require(["./dczTdfj.vue"], resolve);
  570. },
  571. dczYcb: resolve => {
  572. require(["./dczTdfj.vue"], resolve);
  573. },
  574. dczQysh: resolve => {
  575. require(["./dczTdfj.vue"], resolve);
  576. },
  577. dczSyd: resolve => {
  578. require(["./dczTdfj.vue"], resolve);
  579. },
  580. dczXjxzq: resolve => {
  581. require(["./dczTdfj.vue"], resolve);
  582. },
  583. dczJsgl: resolve => {
  584. require(["./dczTdfj.vue"], resolve);
  585. },
  586. dczYsdw: resolve => {
  587. require(["./dczTdfj.vue"], resolve);
  588. },
  589. dczSkfh: resolve => {
  590. require(["./dczTdfj.vue"], resolve);
  591. },
  592. dczShzh: resolve => {
  593. require(["./dczTdfj.vue"], resolve);
  594. },
  595. dczDfxgxd: resolve => {
  596. require(["./dczTdfj.vue"], resolve);
  597. },
  598. dczCbhsfy: resolve => {
  599. require(["./dczTdfj.vue"], resolve);
  600. },
  601. },
  602. props: [],
  603. data() {
  604. return {
  605. tableHeight: 0,
  606. tableHeightRyyj: 0,
  607. dateRange: [],
  608. type: "addv",
  609. sttm: "",
  610. entm: "",
  611. orgId: "",
  612. tableTabs: "total",
  613. comHj: "xzqHj",
  614. comXsk: "xzqSk",
  615. comRygc: "xzqRy",
  616. comShgc: "xzqSh",
  617. totalTab: true,
  618. dczTabs: false,
  619. yryjTabs: false,
  620. xzqjgmc: true,
  621. xzqh: true,
  622. form: {
  623. name: "",
  624. typeName: "",
  625. lyId: "",
  626. persName: "",
  627. state: ""
  628. },
  629. sfly: true,
  630. sfrq: false,
  631. sflyId: false,
  632. sfRyXm: false,
  633. sfState: true,
  634. tableData: [],
  635. gcType: [{}],
  636. stateOptions: [
  637. {label: '未督查', id: '0', value: 0},
  638. {label: '督查中', id: '1', value: 1},
  639. {label: '已督查', id: '2', value: 2},
  640. ],
  641. ryyjType: 1,
  642. lableXzqh: "",
  643. lableJcxm: "检查项目",
  644. com172gcjs: "xzq172gcjs",
  645. com172gcyx: "xzq172gcyx",
  646. comSz: "xzqSz",
  647. exportLoading: false,
  648. sfSeach: false,
  649. comTdfj: 'xzqTdfj', // add by Zjg 2019-11-26
  650. comQtjc: 'xzqQtjc',
  651. comYcb: 'xzqYcb',
  652. comQysh: 'xzqQysh',
  653. comSyd: 'xzqSyd',
  654. comXjxzq: 'xzqXjxzq',
  655. comJsgl: 'xzqJsgl',
  656. comYsdw: 'xzqYsdw',
  657. comSkfh: 'xzqSkfh', // add by Thy 2020年6月19日11:24:04
  658. comShzh: 'xzqShzh',
  659. comDfxgxd: 'xzqDfxgxd',
  660. comCbhsfy: 'xzqCbhsfy',
  661. };
  662. },
  663. created() {
  664. this.$nextTick(function () {
  665. this.tableHeight = window.innerHeight - 390;
  666. this.tableHeightRyyj = window.innerHeight - 390;
  667. let self = this;
  668. window.onresize = function () {
  669. self.tableHeight = window.innerHeight - 390;
  670. self.tableHeightRyyj = window.innerHeight - 390;
  671. }
  672. })
  673. },
  674. mounted() {
  675. this.lableXzqh = (this.organCode=='660000000000'?"师":"省份");
  676. },
  677. watch: {
  678. dateRange: function () {
  679. console.log(this.dateRange);
  680. if (this.dateRange && this.dateRange.length > 1 && this.dateRange[0] != '' && this.dateRange[1] != '') {
  681. this.sttm = this.dateRnage[0];
  682. this.entm = this.dateRange[1];
  683. } else {
  684. this.sttm = '';
  685. this.entm = '';
  686. }
  687. }
  688. },
  689. computed: {
  690. persId() {
  691. return localStorage.getItem("userid")
  692. ? localStorage.getItem("userid")
  693. : "1098101939614724096";
  694. },
  695. organCode() {
  696. return localStorage.getItem('currentRlcode') ? localStorage.getItem('currentRlcode') : ''
  697. },
  698. },
  699. methods: {
  700. dateChangeHandler: function () {
  701. console.log(this.dateRange + '变化');
  702. if (this.dateRange && this.dateRange.length > 1 && this.dateRange[0] != '' && this.dateRange[1] != '') {
  703. this.sttm = this.dateRange[0];
  704. this.entm = this.dateRange[1];
  705. } else {
  706. this.sttm = '';
  707. this.entm = '';
  708. }
  709. },
  710. changetype: function (value) {
  711. this.form = {
  712. name: "",
  713. typeName: "",
  714. lyId: "",
  715. persName: "",
  716. state: this.form.state
  717. };
  718. // this.sttm = "";
  719. // this.entm = "";
  720. // this.dateRange = [];
  721. this.type = value;
  722. this.sfSeach = false;
  723. if (this.type == "dcGrp") {
  724. this.totalTab = false;
  725. this.sfly = false;
  726. this.sfrq = true;
  727. this.sflyId = true;
  728. this.sfState = true;
  729. // this.xzqjgmc = false;
  730. this.xzqh = true;
  731. this.tableTabs = "xsk";
  732. this.comXsk = "dczxsk";
  733. this.comRygc = "dczRygc";
  734. this.comShgc = "dczShgc";
  735. this.com172gcjs = "dcz172gcjs";
  736. this.com172gcyx = "dcz172gcyx";
  737. this.comSz = "dczSz";
  738. this.comTdfj = 'dczTdfj'; // add by Zjg 2019-11-26
  739. this.comQtjc = 'dczQtjc';
  740. this.comYcb = 'dczYcb';
  741. this.comQysh = 'dczQysh';
  742. this.comSyd = 'dczSyd';
  743. this.comXjxzq = 'dczXjxzq';
  744. this.comJsgl = 'dczJsgl';
  745. this.comYsdw = 'dczYsdw';
  746. this.comSkfh = 'dczYsdw'; // add by Thy 2020年6月19日11:24:04
  747. this.comShzh = 'dczYsdw';
  748. this.comDfxgxd = 'dczYsdw';
  749. this.comCbhsfy = 'dczYsdw';
  750. // this.sttm = "";
  751. // this.entm = "";
  752. // this.dateRange = [];
  753. this.lableXzqh = this.organCode=='660000000000'?"师":"省份";
  754. this.sfRyXm = false;
  755. this.getRyYjTypeData();
  756. } else if (this.type == "peoAch") {
  757. this.totalTab = false;
  758. this.sfly = false;
  759. this.sfrq = false;
  760. this.sflyId = true;
  761. this.sfState = true;
  762. // this.xzqjgmc = false;
  763. this.xzqh = true;
  764. this.tableTabs = "xsk";
  765. this.comXsk = "ryrjXsk";
  766. this.comRygc = "ryrjRygc";
  767. this.comShgc = "ryrShgc";
  768. this.com172gcjs = "ryyj172gcjs";
  769. this.com172gcyx = "ryyj172gcyx";
  770. this.comSz = "ryyjSz";
  771. this.comTdfj = 'ryyjTdfj'; // add by Zjg 2019-11-26
  772. this.comQtjc = 'ryyjQtjc';
  773. this.comYcb = 'ryyjYcb';
  774. this.comQysh = 'ryyjQysh';
  775. this.comSyd = 'ryyjSyd';
  776. this.comXjxzq = 'ryyjXjxzq';
  777. this.comJsgl = 'ryyjJsgl';
  778. this.comYsdw = 'ryyjYsdw';
  779. this.comSkfh = 'ryyjSkfh'; // add by Thy 2020年6月19日11:24:04
  780. this.comShzh = 'ryyjSkfh';
  781. this.comDfxgxd = 'ryyjSkfh';
  782. this.comCbhsfy = 'ryyjSkfh';
  783. this.sfRyXm = true;
  784. this.getRyYjTypeData();
  785. } else if (this.type == "addv") {
  786. this.totalTab = true;
  787. this.sfly = true;
  788. this.sfrq = false;
  789. this.sflyId = false;
  790. this.sfState = true;
  791. // this.xzqjgmc = true;
  792. this.xzqh = true;
  793. this.tableTabs = "total";
  794. this.comHj = "xzqHj";
  795. this.comXsk = "xzqSk";
  796. this.comRygc = "xzqRy";
  797. this.comShgc = "xzqSh";
  798. this.com172gcjs = "xzq172gcjs";
  799. this.com172gcyx = "xzq172gcyx";
  800. this.comSz = "xzqSz";
  801. this.comTdfj = 'xzqTdfj'; // add by Zjg 2019-11-26 行政区模板暂设为通用模板
  802. this.comQtjc = 'xzqTdfj';
  803. this.comYcb = 'xzqTdfj';
  804. this.comQysh = 'xzqTdfj';
  805. this.comSyd = 'xzqTdfj';
  806. this.comXjxzq = 'xzqTdfj';
  807. this.comJsgl = 'xzqTdfj';
  808. this.comYsdw = 'xzqTdfj';
  809. this.comYsdw = 'xzqTdfj';
  810. this.comSkfh = 'xzqTdfj'; // add by Thy 2020年6月19日11:24:04
  811. this.comShzh = 'xzqTdfj';
  812. this.comDfxgxd = 'xzqTdfj';
  813. this.comCbhsfy = 'xzqTdfj';
  814. this.lableXzqh = this.organCode=='660000000000'?"师":"省份";
  815. this.lableJcxm = "检查项目";
  816. this.sfRyXm = false;
  817. } else if (this.type == "rvUnit") {
  818. this.sfly = true;
  819. this.totalTab = true;
  820. this.sfrq = false;
  821. this.sflyId = false;
  822. this.sfState = true;
  823. // this.xzqjgmc = true;
  824. this.xzqh = true;
  825. this.tableTabs = "total";
  826. this.comHj = "lyjgHj";
  827. this.comXsk = "lyjgSk";
  828. this.comRygc = "lyjgRy";
  829. this.comShgc = "lyjgSh";
  830. this.com172gcjs = "lyjg172gcjs";
  831. this.com172gcyx = "lyjg172gcyx";
  832. this.comSz = "lyjgSz";
  833. this.comTdfj = 'lyjgTdfj'; // add by Zjg 2019-11-26 行政区模板暂设为通用模板
  834. this.comQtjc = 'lyjgTdfj';
  835. this.comYcb = 'lyjgTdfj';
  836. this.comQysh = 'lyjgTdfj';
  837. this.comSyd = 'lyjgTdfj';
  838. this.comXjxzq = 'lyjgTdfj';
  839. this.comJsgl = 'lyjgTdfj';
  840. this.comYsdw = 'lyjgTdfj';
  841. this.comSkfh = 'lyjgTdfj'; // add by Thy 2020年6月19日11:24:04
  842. this.comShzh = 'lyjgTdfj';
  843. this.comDfxgxd = 'lyjgTdfj';
  844. this.comCbhsfy = 'lyjgTdfj';
  845. this.lableXzqh = this.organCode=='660000000000'?"师":"检查单位";
  846. this.lableJcxm = "检查项目";
  847. this.sfRyXm = false;
  848. }
  849. },
  850. searchData() {
  851. if (this.type == "rvUnit") {
  852. if (this.tableTabs == "xsk") {
  853. this.$refs.childPlXsk.getLySkData();
  854. } else if (this.tableTabs == "rygc") {
  855. this.$refs.childPlRygc.getLyRyData();
  856. } else if (this.tableTabs == "shgc") {
  857. this.$refs.childPlShgc.getLyShData();
  858. } else if (this.tableTabs == "total") {
  859. this.$refs.childPlHj.getLyData();
  860. this.$refs.childPlXsk.getLySkData();
  861. this.$refs.childPlRygc.getLyRyData();
  862. this.$refs.childPlShgc.getLyShData();
  863. this.$refs.childPl172gcjs.getLyjgGcjsData();
  864. this.$refs.childPl172gcyx.getLyjgGcyxData();
  865. this.$refs.childPlSz.getLyjgSzData();
  866. } else if (this.tableTabs == "172gcjs") {
  867. this.$refs.childPl172gcjs.getLyjgGcjsData();
  868. } else if (this.tableTabs == "172gcyx") {
  869. this.$refs.childPl172gcyx.getLyjgGcyxData();
  870. } else if (this.tableTabs == "sz") {
  871. this.$refs.childPlSz.getLyjgSzData();
  872. } else if (this.tableTabs == "tdfj") {
  873. this.$refs.childPlTdfj.getLyjgTdfjData(9);
  874. } else if (this.tableTabs == "qtjc") {
  875. this.$refs.childPlQtjc.getLyjgTdfjData(10);
  876. } else if (this.tableTabs == "ycb") {
  877. this.$refs.childPlYcb.getLyjgTdfjData(11);
  878. } else if (this.tableTabs == "qysh") {
  879. this.$refs.childPlQysh.getLyjgTdfjData(12);
  880. } else if (this.tableTabs == "syd") {
  881. this.$refs.childPlSyd.getLyjgTdfjData(13);
  882. } else if (this.tableTabs == "xjxzq") {
  883. this.$refs.childPlXjxzq.getLyjgTdfjData(14);
  884. } else if (this.tableTabs == "jsgl") {
  885. this.$refs.childPlJsgl.getLyjgTdfjData(15);
  886. } else if (this.tableTabs == "ysdw") {
  887. this.$refs.childPlYsdw.getLyjgTdfjData(16);
  888. } else if (this.tableTabs == "skfh") {
  889. this.$refs.childPlSkfh.getLyjgTdfjData(26);
  890. } else if (this.tableTabs == "shzh") {
  891. this.$refs.childPlShzh.getLyjgTdfjData(27);
  892. } else if (this.tableTabs == "dfxgxd") {
  893. this.$refs.childPlDfxgxd.getLyjgTdfjData(29);
  894. } else if (this.tableTabs == "cbhsfy") {
  895. this.$refs.childPlCbhsfy.getLyjgTdfjData(30);
  896. }
  897. } else if (this.type == "addv") {
  898. if (this.tableTabs == "xsk") {
  899. this.$refs.childPlXsk.getLySkData();
  900. } else if (this.tableTabs == "rygc") {
  901. this.$refs.childPlRygc.getLyRyData();
  902. } else if (this.tableTabs == "shgc") {
  903. this.$refs.childPlShgc.getLyShData();
  904. } else if (this.tableTabs == "total") {
  905. this.$refs.childPlHj.getLyData();
  906. this.$refs.childPlXsk.getLySkData();
  907. this.$refs.childPlRygc.getLyRyData();
  908. this.$refs.childPlShgc.getLyShData();
  909. this.$refs.childPl172gcjs.getXzqGcjsData();
  910. this.$refs.childPl172gcyx.getXzqGcyxData();
  911. this.$refs.childPlSz.getXzqSzData();
  912. } else if (this.tableTabs == "172gcjs") {
  913. this.$refs.childPl172gcjs.getXzqGcjsData();
  914. } else if (this.tableTabs == "172gcyx") {
  915. this.$refs.childPl172gcyx.getXzqGcyxData();
  916. } else if (this.tableTabs == "sz") {
  917. this.$refs.childPlSz.getXzqSzData();
  918. } else if (this.tableTabs == "tdfj") {
  919. this.$refs.childPlTdfj.getXzqTdfjData(9);
  920. } else if (this.tableTabs == "qtjc") {
  921. this.$refs.childPlQtjc.getXzqTdfjData(10);
  922. } else if (this.tableTabs == "ycb") {
  923. this.$refs.childPlYcb.getXzqTdfjData(11);
  924. } else if (this.tableTabs == "qysh") {
  925. this.$refs.childPlQysh.getXzqTdfjData(12);
  926. } else if (this.tableTabs == "syd") {
  927. this.$refs.childPlSyd.getXzqTdfjData(13);
  928. } else if (this.tableTabs == "xjxzq") {
  929. this.$refs.childPlXjxzq.getXzqTdfjData(14);
  930. } else if (this.tableTabs == "jsgl") {
  931. this.$refs.childPlJsgl.getXzqTdfjData(15);
  932. } else if (this.tableTabs == "ysdw") {
  933. this.$refs.childPlYsdw.getXzqTdfjData(16);
  934. } else if (this.tableTabs == "skfh") {
  935. this.$refs.childPlSkfh.getXzqTdfjData(26);
  936. } else if (this.tableTabs == "shzh") {
  937. this.$refs.childPlShzh.getXzqTdfjData(27);
  938. } else if (this.tableTabs == "dfxgxd") {
  939. this.$refs.childPlDfxgxd.getXzqTdfjData(29);
  940. } else if (this.tableTabs == "cbhsfy") {
  941. this.$refs.childPlCbhsfy.getXzqTdfjData(30);
  942. }
  943. } else if (this.type == "dcGrp") {
  944. if (this.tableTabs == "xsk") {
  945. this.$refs.childPlXsk.getLySkData();
  946. } else if (this.tableTabs == "rygc") {
  947. this.$refs.childPlRygc.getLyRyData();
  948. } else if (this.tableTabs == "shgc") {
  949. this.$refs.childPlShgc.getLyShData();
  950. } else if (this.tableTabs == "172gcjs") {
  951. this.$refs.childPl172gcjs.getDczGcJsData();
  952. } else if (this.tableTabs == "172gcyx") {
  953. this.$refs.childPl172gcyx.getDczGcYxData();
  954. } else if (this.tableTabs == "sz") {
  955. this.$refs.childPlSz.getDczSzData();
  956. } else if (this.tableTabs == "tdfj") {
  957. this.$refs.childPlTdfj.getDczTdfjData(9);
  958. } else if (this.tableTabs == "qtjc") {
  959. this.$refs.childPlQtjc.getDczTdfjData(10);
  960. } else if (this.tableTabs == "ycb") {
  961. this.$refs.childPlYcb.getDczTdfjData(11);
  962. } else if (this.tableTabs == "qysh") {
  963. this.$refs.childPlQysh.getDczTdfjData(12);
  964. } else if (this.tableTabs == "syd") {
  965. this.$refs.childPlSyd.getDczTdfjData(13);
  966. } else if (this.tableTabs == "xjxzq") {
  967. this.$refs.childPlXjxzq.getDczTdfjData(14);
  968. } else if (this.tableTabs == "jsgl") {
  969. this.$refs.childPlJsgl.getDczTdfjData(15);
  970. } else if (this.tableTabs == "ysdw") {
  971. this.$refs.childPlYsdw.getDczTdfjData(16);
  972. } else if (this.tableTabs == "skfh") {
  973. this.$refs.childPlSkfh.getDczTdfjData(26);
  974. } else if (this.tableTabs == "shzh") {
  975. this.$refs.childPlShzh.getDczTdfjData(27);
  976. } else if (this.tableTabs == "dfxgxd") {
  977. this.$refs.childPlDfxgxd.getDczTdfjData(29);
  978. } else if (this.tableTabs == "cbhsfy") {
  979. this.$refs.childPlCbhsfy.getDczTdfjData(30);
  980. }
  981. } else if (this.type == "peoAch") {
  982. if (this.tableTabs == "xsk") {
  983. this.$refs.childPlXsk.getLySkData();
  984. } else if (this.tableTabs == "rygc") {
  985. this.$refs.childPlRygc.getLyRyData();
  986. } else if (this.tableTabs == "shgc") {
  987. this.$refs.childPlShgc.getLyShData();
  988. } else if (this.tableTabs == "172gcjs") {
  989. this.$refs.childPl172gcjs.getRyyjGcJsData();
  990. } else if (this.tableTabs == "172gcyx") {
  991. this.$refs.childPl172gcyx.getRyyjGcYxData();
  992. } else if (this.tableTabs == "sz") {
  993. this.$refs.childPlSz.getRyyjSzData();
  994. } else if (this.tableTabs == "tdfj") {
  995. this.$refs.childPlTdfj.getRyyjTdfjData();
  996. } else if (this.tableTabs == "qtjc") {
  997. this.$refs.childPlQtjc.getRyyjQtjcData();
  998. } else if (this.tableTabs == "ycb") {
  999. this.$refs.childPlYcb.getRyyjYcbData();
  1000. } else if (this.tableTabs == "qysh") {
  1001. this.$refs.childPlQysh.getRyyjQyshData();
  1002. } else if (this.tableTabs == "syd") {
  1003. this.$refs.childPlSyd.getRyyjSydData();
  1004. } else if (this.tableTabs == "xjxzq") {
  1005. this.$refs.childPlXjxzq.getRyyjXjxzqData();
  1006. } else if (this.tableTabs == "jsgl") {
  1007. this.$refs.childPlJsgl.getRyyjJsglData();
  1008. } else if (this.tableTabs == "ysdw") {
  1009. this.$refs.childPlYsdw.getRyyjYsdwData();
  1010. } else if (this.tableTabs == "skfh") {
  1011. this.$refs.childPlSkfh.getRyyjSkfhData(26);
  1012. } else if (this.tableTabs == "shzh") {
  1013. this.$refs.childPlShzh.getRyyjSkfhData(27);
  1014. } else if (this.tableTabs == "dfxgxd") {
  1015. this.$refs.childPlDfxgxd.getRyyjSkfhData(29);
  1016. } else if (this.tableTabs == "cbhsfy") {
  1017. this.$refs.childPlCbhsfy.getRyyjSkfhData(30);
  1018. }
  1019. }
  1020. this.sfSeach = true;
  1021. },
  1022. async exPort() {
  1023. if (this.sfSeach) {
  1024. //流域机构
  1025. if (this.type == "rvUnit") {
  1026. if (this.tableTabs == "xsk") {
  1027. this.exportLoading = true;
  1028. let url = `/pdcApi/dc/brief/report/getRsvrWork?orgName=${this.form.name}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
  1029. let downloadName = "流域小水库督查工作情况表.xls";
  1030. let type = "get";
  1031. let result = await exportModel(type, url, downloadName);
  1032. this.exportLoading = result;
  1033. } else if (this.tableTabs == "rygc") {
  1034. this.exportLoading = true;
  1035. let url = `/pdcApi/dc/brief/report/getVillWork?orgName=${this.form.name}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
  1036. let downloadName = "流域人饮工程督查工作情况表.xls";
  1037. let type = "get";
  1038. let result = await exportModel(type, url, downloadName);
  1039. this.exportLoading = result;
  1040. } else if (this.tableTabs == "shgc") {
  1041. this.exportLoading = true;
  1042. let url = `/pdcApi/dc/brief/report/getRectWork?orgName=${this.form.name}&state=${this.form.state}&sttm=${
  1043. this.sttm
  1044. }&entm=${this.entm}&isExport=1`;
  1045. let downloadName = "流域水毁工程督查工作情况表.xls";
  1046. let type = "get";
  1047. let result = await exportModel(type, url, downloadName);
  1048. this.exportLoading = result;
  1049. } else if (this.tableTabs == "172gcjs") {
  1050. this.exportLoading = true;
  1051. let url = `/pdcApi/dc/brief/report/getEmpwtConWork?orgName=${this.form.name}&state=${this.form.state}&basinId=${this.form.lyId}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
  1052. let downloadName = "流域水利工程建设督查工作情况表.xls";
  1053. let type = "get";
  1054. let result = await exportModel(type, url, downloadName);
  1055. this.exportLoading = result;
  1056. } else if (this.tableTabs == "172gcyx") {
  1057. this.exportLoading = true;
  1058. let url = `/pdcApi/dc/brief/report/getEmpwtRunWork?orgName=${this.form.name}&state=${this.form.state}&basinId=${this.form.lyId}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
  1059. let downloadName = "流域水利工程运行督查工作情况表.xls";
  1060. let type = "get";
  1061. let result = await exportModel(type, url, downloadName);
  1062. this.exportLoading = result;
  1063. } else if (this.tableTabs == "sz") {
  1064. this.exportLoading = true;
  1065. let url = `/pdcApi/dc/brief/report/getWagaWork?orgName=${this.form.name}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&basinId=${this.form.lyId}&isExport=1`;
  1066. let downloadName = "流域水闸督查工作情况表.xls";
  1067. let type = "get";
  1068. let result = await exportModel(type, url, downloadName);
  1069. this.exportLoading = result;
  1070. } else {
  1071. this.exportLoading = true;
  1072. let url = `/pdcApi/dc/brief/report/getVillRsvrRectWork?orgName=${
  1073. this.form.name
  1074. }&typeName=${this.form.typeName}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
  1075. let downloadName = "流域合计督查工作情况表.xls";
  1076. let type = "get";
  1077. let result = await exportModel(type, url, downloadName);
  1078. this.exportLoading = result;
  1079. }
  1080. }
  1081. //行政区
  1082. else if (this.type == "addv") {
  1083. if (this.tableTabs == "xsk") {
  1084. this.exportLoading = true;
  1085. let url = `/pdcApi/dc/brief/report/getRsvrWorkByOrgPro?adName=${this.form.name}&orgName=${this.form.typeName}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
  1086. let downloadName = "行政区小水库督查工作情况表.xls";
  1087. let type = "get";
  1088. let result = await exportModel(type, url, downloadName);
  1089. this.exportLoading = result;
  1090. } else if (this.tableTabs == "rygc") {
  1091. this.exportLoading = true;
  1092. let url = `/pdcApi/dc/brief/report/getVillWorkByOrgPro?adName=${this.form.name}&orgName=${this.form.typeName}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
  1093. let downloadName = "行政区人饮工程督查工作情况表.xls";
  1094. let type = "get";
  1095. let result = await exportModel(type, url, downloadName);
  1096. this.exportLoading = result;
  1097. } else if (this.tableTabs == "shgc") {
  1098. this.exportLoading = true;
  1099. let url = `/pdcApi/dc/brief/report/getRectWorkByOrgPro?adName=${this.form.name}&orgName=${this.form.typeName}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
  1100. let downloadName = "行政区水毁工程督查工作情况表.xls";
  1101. let type = "get";
  1102. let result = await exportModel(type, url, downloadName);
  1103. this.exportLoading = result;
  1104. } else if (this.tableTabs == "172gcjs") {
  1105. this.exportLoading = true;
  1106. let url = `/pdcApi/dc/brief/report/getEmpwtConWorkByOrgPro?adName=${this.form.name}&state=${this.form.state}&orgName=${this.form.typeName}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
  1107. let downloadName = "行政区水利工程建设督查工作情况表.xls";
  1108. let type = "get";
  1109. let result = await exportModel(type, url, downloadName);
  1110. this.exportLoading = result;
  1111. } else if (this.tableTabs == "172gcyx") {
  1112. this.exportLoading = true;
  1113. let url = `/pdcApi/dc/brief/report/getEmpwtRunWorkByOrgPro?adName=${this.form.name}&state=${this.form.state}&orgName=${this.form.typeName}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
  1114. let downloadName = "行政区水利工程运行督查工作情况表.xls";
  1115. let type = "get";
  1116. let result = await exportModel(type, url, downloadName);
  1117. this.exportLoading = result;
  1118. } else if (this.tableTabs == "sz") {
  1119. this.exportLoading = true;
  1120. let url = `/pdcApi/dc/brief/report/getWagaWorkByOrgPro?adName=${this.form.name}&state=${this.form.state}&orgName=${this.form.typeName}&sttm=${this.sttm}&entm=${this.entm}&basinId=${this.form.lyId}&isExport=1`;
  1121. let downloadName = "行政区水闸督查工作情况表.xls";
  1122. let type = "get";
  1123. let result = await exportModel(type, url, downloadName);
  1124. this.exportLoading = result;
  1125. } else {
  1126. this.exportLoading = true;
  1127. let url = `/pdcApi/dc/brief/report/getVillRsvrRectWorkByPro?adName=${this.form.name}&typeName=${this.form.typeName}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
  1128. let downloadName = "行政区合计督查工作情况表.xls";
  1129. let type = "get";
  1130. let result = await exportModel(type, url, downloadName);
  1131. this.exportLoading = result;
  1132. }
  1133. }
  1134. //督查组
  1135. else if (this.type == "dcGrp") {
  1136. if (this.tableTabs == "xsk") {
  1137. this.exportLoading = true;
  1138. let url = `/pdcApi/dc/brief/report/getRiverSupervisionRivCount?adName=${this.form.name}&sttm=${this.sttm}&state=${this.form.state}&entm=${this.entm}&basinId=${this.form.lyId}&isExport=1`;
  1139. let downloadName = "督查组小水库督查工作情况表.xls";
  1140. let type = "get";
  1141. let result = await exportModel(type, url, downloadName);
  1142. this.exportLoading = result;
  1143. } else if (this.tableTabs == "rygc") {
  1144. this.exportLoading = true;
  1145. let url = `/pdcApi/dc/brief/report/getRiverSupervisionCwsCount?adName=${this.form.name}&sttm=${this.sttm}&state=${this.form.state}&entm=${this.entm}&basinId=${this.form.lyId}&isExport=1`;
  1146. let downloadName = "督查组人饮工程督查工作情况表.xls";
  1147. let type = "get";
  1148. let result = await exportModel(type, url, downloadName);
  1149. this.exportLoading = result;
  1150. } else if (this.tableTabs == "shgc") {
  1151. this.exportLoading = true;
  1152. let url = `/pdcApi/dc/brief/report/getRiverSupervisionWtdCount?adName=${this.form.name}&sttm=${this.sttm}&state=${this.form.state}&entm=${this.entm}&basinId=${this.form.lyId}&isExport=1`;
  1153. let downloadName = "督查组水毁工程督查工作情况表.xls";
  1154. let type = "get";
  1155. let result = await exportModel(type, url, downloadName);
  1156. this.exportLoading = result;
  1157. } else if (this.tableTabs == "172gcjs") {
  1158. this.exportLoading = true;
  1159. let url = `/pdcApi/dc/brief/report/getRiverSupervisionEmpwtConCount?adName=${this.form.name}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&basinId=${this.form.lyId}&isExport=1`;
  1160. let downloadName = "督查组水利工程建设督查工作情况表.xls";
  1161. let type = "get";
  1162. let result = await exportModel(type, url, downloadName);
  1163. this.exportLoading = result;
  1164. } else if (this.tableTabs == "172gcyx") {
  1165. this.exportLoading = true;
  1166. let url = `/pdcApi/dc/brief/report/getRiverSupervisionEmpwtRunCount?adName=${this.form.name}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&basinId=${this.form.lyId}&isExport=1`;
  1167. let downloadName = "督查组水利工程运行督查工作情况表.xls";
  1168. let type = "get";
  1169. let result = await exportModel(type, url, downloadName);
  1170. this.exportLoading = result;
  1171. } else if (this.tableTabs == "sz") {
  1172. this.exportLoading = true;
  1173. let url = `/pdcApi/dc/brief/report/getRiverSupervisionWagaCount?adName=${this.form.name}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&basinId=${this.form.lyId}&isExport=1`;
  1174. let downloadName = "督查组水闸督查工作情况表.xls";
  1175. let type = "get";
  1176. let result = await exportModel(type, url, downloadName);
  1177. this.exportLoading = result;
  1178. }
  1179. }
  1180. //人员业绩
  1181. else if (this.type == "peoAch") {
  1182. if (this.tableTabs == "xsk") {
  1183. this.exportLoading = true;
  1184. let url = `/pdcApi/dc/brief/report/getRiverPersAchive?adName=${this.form.name
  1185. }&basinId=${this.form.lyId}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&persName=${this.form.persName}&isExport=1`;
  1186. let downloadName = "人员业绩小水库督查工作情况表.xls";
  1187. let type = "get";
  1188. let result = await exportModel(type, url, downloadName);
  1189. this.exportLoading = result;
  1190. } else if (this.tableTabs == "rygc") {
  1191. this.exportLoading = true;
  1192. let url = `/pdcApi/dc/brief/report/getCwsPersAchive?adName=${this.form.name}&basinId=${this.form.lyId}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&persName=${this.form.persName}&isExport=1`;
  1193. let downloadName = "人员业绩人饮工程督查工作情况表.xls";
  1194. let type = "get";
  1195. let result = await exportModel(type, url, downloadName);
  1196. this.exportLoading = result;
  1197. } else if (this.tableTabs == "shgc") {
  1198. this.exportLoading = true;
  1199. let url = `/pdcApi/dc/brief/report/getWtdstPersAchive?basinId=${this.form.lyId}&adName=${this.form.name}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&persName=${this.form.persName}&isExport=1`;
  1200. let downloadName = "人员业绩水毁工程督查工作情况表.xls";
  1201. let type = "get";
  1202. let result = await exportModel(type, url, downloadName);
  1203. this.exportLoading = result;
  1204. } else if (this.tableTabs == "172gcjs") {
  1205. this.exportLoading = true;
  1206. let url = `/pdcApi/dc/brief/report/getEmpwtConPersAchive?adName=${this.form.name}&state=${this.form.state}&basinId=${this.form.lyId}&sttm=${this.sttm}&entm=${this.entm}&persName=${this.form.persName}&isExport=1`;
  1207. let downloadName = "人员业绩水利工程建设督查工作情况表.xls";
  1208. let type = "get";
  1209. let result = await exportModel(type, url, downloadName);
  1210. this.exportLoading = result;
  1211. } else if (this.tableTabs == "172gcyx") {
  1212. this.exportLoading = true;
  1213. let url = `/pdcApi/dc/brief/report/getEmpwtRunPersAchive?adName=${this.form.name}&state=${this.form.state}&basinId=${this.form.lyId}&sttm=${this.sttm}&entm=${this.entm}&persName=${this.form.persName}&isExport=1`;
  1214. let downloadName = "人员业绩水利工程运行督查工作情况表.xls";
  1215. let type = "get";
  1216. let result = await exportModel(type, url, downloadName);
  1217. this.exportLoading = result;
  1218. } else if (this.tableTabs == "sz") {
  1219. this.exportLoading = true;
  1220. let url = `/pdcApi/dc/brief/report/getWagaPersAchive?adName=${this.form.name}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&persName=${this.form.persName}&basinId=${this.form.lyId}&isExport=1`;
  1221. let downloadName = "人员业绩水闸督查工作情况表.xls";
  1222. let type = "get";
  1223. let result = await exportModel(type, url, downloadName);
  1224. this.exportLoading = result;
  1225. }
  1226. }
  1227. } else {
  1228. this.$message.warning("请查询后导出");
  1229. }
  1230. },
  1231. handleClick(tab, event) {
  1232. this.gcType = [];
  1233. this.form.lyId = "";
  1234. if (this.type == "peoAch") {
  1235. this.sfSeach = false;
  1236. if (tab.name == "rygc") {
  1237. this.ryyjType = 2;
  1238. this.getRyYjTypeData();
  1239. } else if (tab.name == "shgc") {
  1240. this.ryyjType = 3;
  1241. this.getRyYjTypeData();
  1242. } else if (tab.name == "xsk") {
  1243. this.ryyjType = 1;
  1244. this.getRyYjTypeData();
  1245. } else if (tab.name == "172gcjs") {
  1246. this.ryyjType = 4;
  1247. this.getRyYjTypeData();
  1248. } else if (tab.name == "172gcyx") {
  1249. this.ryyjType = 7;
  1250. this.getRyYjTypeData();
  1251. } else if (tab.name == "sz") {
  1252. this.ryyjType = 6;
  1253. this.getRyYjTypeData();
  1254. } else if (tab.name == "tdfj") { // add by Zjg 2019-11-26
  1255. this.ryyjType = 9;
  1256. this.getRyYjTypeData();
  1257. } else if (tab.name == "qtjc") {
  1258. this.ryyjType = 10;
  1259. this.getRyYjTypeData();
  1260. } else if (tab.name == "ycb") {
  1261. this.ryyjType = 11;
  1262. this.getRyYjTypeData();
  1263. } else if (tab.name == "qysh") {
  1264. this.ryyjType = 12;
  1265. this.getRyYjTypeData();
  1266. } else if (tab.name == "syd") {
  1267. this.ryyjType = 13;
  1268. this.getRyYjTypeData();
  1269. } else if (tab.name == "xjxzq") {
  1270. this.ryyjType = 14;
  1271. this.getRyYjTypeData();
  1272. } else if (tab.name == "jsgl") {
  1273. this.ryyjType = 15;
  1274. this.getRyYjTypeData();
  1275. } else if (tab.name == "ysdw") {
  1276. this.ryyjType = 16;
  1277. this.getRyYjTypeData();
  1278. }
  1279. } else if (this.type == "dcGrp") {
  1280. this.sfSeach = false;
  1281. if (tab.name == "rygc") {
  1282. this.ryyjType = 2;
  1283. this.getRyYjTypeData();
  1284. } else if (tab.name == "shgc") {
  1285. this.ryyjType = 3;
  1286. this.getRyYjTypeData();
  1287. } else if (tab.name == "xsk") {
  1288. this.ryyjType = 1;
  1289. this.getRyYjTypeData();
  1290. } else if (tab.name == "172gcjs") {
  1291. this.ryyjType = 4;
  1292. this.getRyYjTypeData();
  1293. } else if (tab.name == "172gcyx") {
  1294. this.ryyjType = 7;
  1295. this.getRyYjTypeData();
  1296. } else if (tab.name == "sz") {
  1297. this.ryyjType = 6;
  1298. this.getRyYjTypeData();
  1299. }
  1300. } else if (this.type == "rvUnit") {
  1301. if (tab.name == "total") {
  1302. this.lableXzqh = this.organCode=='660000000000'?"师":"检查单位";
  1303. this.sfly = true;
  1304. } else {
  1305. // this.lableXzqh = "检查单位";
  1306. this.sfly = false;
  1307. }
  1308. } else if (this.type == "addv") {
  1309. if (tab.name == "total") {
  1310. this.lableJcxm = "检查项目";
  1311. } else {
  1312. this.lableJcxm = "检查单位";
  1313. }
  1314. }
  1315. // console.log(tab, event);
  1316. },
  1317. getRyYjTypeData() {
  1318. request
  1319. .get(`dc/brief/report/getRiverNode?type=${this.ryyjType}`)
  1320. .then(res => {
  1321. if (res.success) {
  1322. this.gcType = res.data;
  1323. }
  1324. })
  1325. .catch(err => {
  1326. });
  1327. }
  1328. },
  1329. watch: {
  1330. sttm(n, o) {
  1331. if (n == null) {
  1332. this.sttm = "";
  1333. }
  1334. },
  1335. entm(n, o) {
  1336. if (n == null) {
  1337. this.entm = "";
  1338. }
  1339. },
  1340. "form.lyId": {
  1341. handler(val, oldVal) {
  1342. if (val == null) {
  1343. this.form.lyId = "";
  1344. }
  1345. },
  1346. deep: true
  1347. }
  1348. }
  1349. };
  1350. </script>
  1351. <style lang="scss">
  1352. .pblCou {
  1353. height: 100%;
  1354. }
  1355. .pblCou .el-header {
  1356. padding: 10px 20px;
  1357. }
  1358. .pblCou .el-main {
  1359. padding: 0 20px;
  1360. }
  1361. .pblCou .el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
  1362. border-top: 4px solid #3EBEA1;
  1363. color: #3EBEA1;
  1364. font-family: MicrosoftYaHei-Bold;
  1365. font-weight: bold;
  1366. }
  1367. .pblCou .el-tabs--top.el-tabs--card .el-tabs__item:last-child, .pblCou .el-tabs--top.el-tabs--card .el-tabs__item:nth-child(2) {
  1368. padding-left: 2vw !important;
  1369. padding-right: 2vw !important;
  1370. }
  1371. .pblCou .el-tabs__item {
  1372. padding: 0 2vw;
  1373. height: 50px;
  1374. line-height: 50px;
  1375. font-size: 16px;
  1376. font-weight: 500;
  1377. color: #303133;
  1378. }
  1379. </style>