4fbaf03c9eeea8b473515a7b343fa904fa54204f.svn-base 49 KB

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