| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408 |
- <template>
- <div class="pblCou">
- <el-container v-loading="exportLoading">
- <el-header style="height: auto;">
- <el-form :inline="true" class="demo-form-inline">
- <el-form-item label="统计维度:" class="lableTitle">
- <el-radio-group v-model="type" @change="changetype">
- <el-radio label="addv">行政区</el-radio>
- <el-radio label="rvUnit" v-if="organCode!='660000000000'">流域机构</el-radio>
- <el-radio label="dcGrp">督查组</el-radio>
- <el-radio label="peoAch">人员业绩</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-form>
- <el-form :inline="true" class="demo-form-inline">
- <el-form-item label="统计日期:" class="lableTitle">
- <el-date-picker
- v-model="dateRange"
- type="daterange"
- value-format="yyyy-MM-dd"
- style="width:100%"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- @change="dateChangeHandler"
- ></el-date-picker>
- </el-form-item>
- <el-form-item label="督查状态:" v-if="sfState" class="lableTitle">
- <el-select v-model="form.state" clearable>
- <el-option
- v-for="item in stateOptions"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- style="height: 5vh">
- </el-option>
- </el-select>
- </el-form-item>
- <!-- <el-form-item label="行政区/机构名称" v-if="xzqjgmc">
- <el-input v-model="form.name"></el-input>
- </el-form-item>-->
- <el-form-item :label="lableXzqh + ':'" v-if="xzqh" class="lableTitle">
- <el-input v-model="form.name" clearable @keyup.enter.native="searchData"></el-input>
- </el-form-item>
- <!--<el-form-item :label="this.type == 'addv' ? '检查单位':'检查项目'" v-if="sfly">-->
- <el-form-item :label="lableJcxm + ':'" v-if="sfly" class="lableTitle">
- <el-input v-model="form.typeName" clearable @keyup.enter.native="searchData"></el-input>
- </el-form-item>
- <el-form-item label="人员:" v-if="sfRyXm" class="lableTitle">
- <el-input v-model="form.persName" clearable @keyup.enter.native="searchData"></el-input>
- </el-form-item>
- <el-form-item label="机构:" v-if="sflyId" class="lableTitle">
- <!--<el-input v-model="form.lyId"></el-input>-->
- <el-select v-model="form.lyId" clearable>
- <el-option
- v-for="item in gcType"
- :key="item.id"
- :label="item.pnm"
- :value="item.id"
- style="height: 5vh"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item style="float:right;">
- <el-button type="primary" @click="searchData" icon="el-icon-search">查询</el-button>
- <el-button type="success" @click="exPort" icon="el-icon-upload2">导出</el-button>
- </el-form-item>
- </el-form>
- </el-header>
- <el-main>
- <el-tabs type="card" v-model="tableTabs" @tab-click="handleClick">
- <el-tab-pane v-if="totalTab" label="合计" key="1" name="total">
- <component
- :is="comHj"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formState="form.state"
- :formName="form.name"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlHj"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="小水库" name="xsk">
- <component
- :is="comXsk"
- key="2"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlXsk"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="人饮工程" key="3" name="rygc">
- <component
- :is="comRygc"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlRygc"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="水毁工程" key="4" name="shgc">
- <component
- :is="comShgc"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formType="form.typeName"
- :formState="form.state"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlShgc"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="水利工程建设" key="5" name="172gcjs">
- <component
- :is="com172gcjs"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formType="form.typeName"
- :formState="form.state"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPl172gcjs"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="水利工程运行" key="6" name="172gcyx">
- <component
- :is="com172gcyx"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPl172gcyx"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="水闸" key="7" name="sz">
- <component
- :is="comSz"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlSz"
- ></component>
- </el-tab-pane>
- <!-- add by Zjg 2019-11-26 -->
- <el-tab-pane label="特定飞检" key="9" name="tdfj" v-if="isXj">
- <component
- :is="comTdfj"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlTdfj"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="其他检查" key="10" name="qtjc" v-if="isXj">
- <component
- :is="comQtjc"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlQtjc"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="淤地坝" key="11" name="ycb" v-if="isXj">
- <component
- :is="comYcb"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlYcb"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="取用水户" key="12" name="qysh" v-if="isXj">
- <component
- :is="comQysh"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlQysh"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="水源地" key="13" name="syd">
- <component
- :is="comSyd"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlSyd"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="分水及管控" key="14" name="xjxzq" v-if="isXj">
- <component
- :is="comXjxzq"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlXjxzq"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="节水管理与评价" key="15" name="jsgl" v-if="isXj">
- <component
- :is="comJsgl"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlJsgl"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="用水单位" key="16" name="ysdw">
- <component
- :is="comYsdw"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlYsdw"
- ></component>
- </el-tab-pane>
- <!-- add by Thy 2020年6月19日10:33:14 -->
- <el-tab-pane label="水库防洪" key="26" name="skfh">
- <component
- :is="comSkfh"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlSkfh"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="山洪灾害" key="27" name="shzh">
- <component
- :is="comShzh"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlShzh"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="堤防险工险段" key="29" name="dfxgxd" v-if="isXj">
- <component
- :is="comDfxgxd"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlDfxgxd"
- ></component>
- </el-tab-pane>
- <el-tab-pane label="超标洪水防御" key="30" name="cbhsfy">
- <component
- :is="comCbhsfy"
- :sttm="sttm"
- :entm="entm"
- :orgId="orgId"
- :formName="form.name"
- :formLyId="form.lyId"
- :formState="form.state"
- :formType="form.typeName"
- :formPersName="form.persName"
- :tableHeight="tableHeight"
- :tableHeightRyyj="tableHeightRyyj"
- ref="childPlCbhsfy"
- ></component>
- </el-tab-pane>
- </el-tabs>
- </el-main>
- </el-container>
- </div>
- </template>
- <script>
- import request from "../../../utils/gw_ajax_request";
- import {exportModel} from "@util/gw_exportModel";
- export default {
- components: {
- xzqHj: resolve => {
- require(["../../tongjibaobiao/xingzhengqu_heji.vue"], resolve);
- },
- xzqSk: resolve => {
- require(["../../tongjibaobiao/xingzhengqu_shuiku.vue"], resolve);
- },
- xzqRy: resolve => {
- require(["../../tongjibaobiao/xingzhengqu_renyin.vue"], resolve);
- },
- xzqSh: resolve => {
- require(["../../tongjibaobiao/xingzhengqu_shuihui.vue"], resolve);
- },
- lyjgHj: resolve => {
- require(["../../tongjibaobiao/liuyujigou_heji.vue"], resolve);
- },
- lyjgSk: resolve => {
- require(["../../tongjibaobiao/liuyujigou_shuiku.vue"], resolve);
- },
- lyjgRy: resolve => {
- require(["../../tongjibaobiao/liuyujigou_renyin.vue"], resolve);
- },
- lyjgSh: resolve => {
- require(["../../tongjibaobiao/liuyujigou_shuihui.vue"], resolve);
- },
- dczxsk: resolve => {
- require(["./dczxsk.vue"], resolve);
- },
- dczRygc: resolve => {
- require(["./dczRygc.vue"], resolve);
- },
- dczShgc: resolve => {
- require(["./dczShgc.vue"], resolve);
- },
- dcz172gcjs: resolve => {
- require(["./dcz172gcjs.vue"], resolve);
- },
- dcz172gcyx: resolve => {
- require(["./dcz172gcyx.vue"], resolve);
- },
- dczSz: resolve => {
- require(["./dczSz.vue"], resolve);
- },
- ryrjXsk: resolve => {
- require(["./ryyjXsk.vue"], resolve);
- },
- ryrjRygc: resolve => {
- require(["./ryyjRygc.vue"], resolve);
- },
- ryrShgc: resolve => {
- require(["./ryyjShgc.vue"], resolve);
- },
- ryyj172gcjs: resolve => {
- require(["./ryyj172gcjs.vue"], resolve);
- },
- ryyj172gcyx: resolve => {
- require(["./ryyj172gcyx.vue"], resolve);
- },
- ryyjSz: resolve => {
- require(["./ryyjSz.vue"], resolve);
- },
- xzq172gcjs: resolve => {
- require(["../../tongjibaobiao/xzq172gcjs.vue"], resolve);
- },
- xzq172gcyx: resolve => {
- require(["../../tongjibaobiao/xzq172gcyx.vue"], resolve);
- },
- xzqSz: resolve => {
- require(["../../tongjibaobiao/xzqSz.vue"], resolve);
- },
- lyjg172gcjs: resolve => {
- require(["../../tongjibaobiao/lyjg172gcjs.vue"], resolve);
- },
- lyjg172gcyx: resolve => {
- require(["../../tongjibaobiao/lyjg172gcyx.vue"], resolve);
- },
- lyjgSz: resolve => {
- require(["../../tongjibaobiao/lyjgSz.vue"], resolve);
- },
- ryyjTdfj: resolve => { // 人员业绩
- require(["./ryyjTdfj.vue"], resolve);
- },
- ryyjQtjc: resolve => {
- require(["./ryyjQtjc.vue"], resolve);
- },
- ryyjYcb: resolve => {
- require(["./ryyjYcb.vue"], resolve);
- },
- ryyjQysh: resolve => {
- require(["./ryyjQysh.vue"], resolve);
- },
- ryyjSyd: resolve => {
- require(["./ryyjSyd.vue"], resolve);
- },
- ryyjXjxzq: resolve => {
- require(["./ryyjXjxzq.vue"], resolve);
- },
- ryyjJsgl: resolve => {
- require(["./ryyjJsgl.vue"], resolve);
- },
- ryyjYsdw: resolve => {
- require(["./ryyjYsdw.vue"], resolve);
- },
- ryyjSkfh: resolve => {
- require(["./ryyjSkfh.vue"], resolve);
- },
- xzqTdfj: resolve => { // 行政区 行政区模板暂设为通用模板
- require(["./xzqTdfj.vue"], resolve);
- },
- xzqQtjc: resolve => {
- require(["./xzqTdfj.vue"], resolve);
- },
- xzqYcb: resolve => {
- require(["./xzqTdfj.vue"], resolve);
- },
- xzqQysh: resolve => {
- require(["./xzqTdfj.vue"], resolve);
- },
- xzqSyd: resolve => {
- require(["./xzqTdfj.vue"], resolve);
- },
- xzqXjxzq: resolve => {
- require(["./xzqTdfj.vue"], resolve);
- },
- xzqJsgl: resolve => {
- require(["./xzqTdfj.vue"], resolve);
- },
- xzqYsdw: resolve => {
- require(["./xzqTdfj.vue"], resolve);
- },
- xzqSkfh: resolve => {
- require(["./xzqTdfj.vue"], resolve);
- },
- xzqShzh: resolve => {
- require(["./xzqTdfj.vue"], resolve);
- },
- xzqDfxgxd: resolve => {
- require(["./xzqTdfj.vue"], resolve);
- },
- xzqCbhsfy: resolve => {
- require(["./xzqTdfj.vue"], resolve);
- },
- lyjgTdfj: resolve => { // 流域机构 流域机构模板暂设为通用模板
- require(["./lyjgTdfj.vue"], resolve);
- },
- lyjgQtjc: resolve => {
- require(["./lyjgTdfj.vue"], resolve);
- },
- lyjgYcb: resolve => {
- require(["./lyjgTdfj.vue"], resolve);
- },
- lyjgQysh: resolve => {
- require(["./lyjgTdfj.vue"], resolve);
- },
- lyjgSyd: resolve => {
- require(["./lyjgTdfj.vue"], resolve);
- },
- lyjgXjxzq: resolve => {
- require(["./lyjgTdfj.vue"], resolve);
- },
- lyjgJsgl: resolve => {
- require(["./lyjgTdfj.vue"], resolve);
- },
- lyjgYsdw: resolve => {
- require(["./lyjgTdfj.vue"], resolve);
- },
- lyjgSkfh: resolve => {
- require(["./lyjgTdfj.vue"], resolve);
- },
- lyjgShzh: resolve => {
- require(["./lyjgTdfj.vue"], resolve);
- },
- lyjgDfxgxd: resolve => {
- require(["./lyjgTdfj.vue"], resolve);
- },
- lyjgCbhsfy: resolve => {
- require(["./lyjgTdfj.vue"], resolve);
- },
- dczTdfj: resolve => { // 督察组 督察组模板暂设为通用模板
- require(["./dczTdfj.vue"], resolve);
- },
- dczQtjc: resolve => {
- require(["./dczTdfj.vue"], resolve);
- },
- dczYcb: resolve => {
- require(["./dczTdfj.vue"], resolve);
- },
- dczQysh: resolve => {
- require(["./dczTdfj.vue"], resolve);
- },
- dczSyd: resolve => {
- require(["./dczTdfj.vue"], resolve);
- },
- dczXjxzq: resolve => {
- require(["./dczTdfj.vue"], resolve);
- },
- dczJsgl: resolve => {
- require(["./dczTdfj.vue"], resolve);
- },
- dczYsdw: resolve => {
- require(["./dczTdfj.vue"], resolve);
- },
- dczSkfh: resolve => {
- require(["./dczTdfj.vue"], resolve);
- },
- dczShzh: resolve => {
- require(["./dczTdfj.vue"], resolve);
- },
- dczDfxgxd: resolve => {
- require(["./dczTdfj.vue"], resolve);
- },
- dczCbhsfy: resolve => {
- require(["./dczTdfj.vue"], resolve);
- },
- },
- props: [],
- data() {
- return {
- tableHeight: 0,
- tableHeightRyyj: 0,
- dateRange: [],
- type: "addv",
- sttm: "",
- entm: "",
- orgId: "",
- tableTabs: "total",
- comHj: "xzqHj",
- comXsk: "xzqSk",
- comRygc: "xzqRy",
- comShgc: "xzqSh",
- totalTab: true,
- dczTabs: false,
- yryjTabs: false,
- xzqjgmc: true,
- xzqh: true,
- form: {
- name: "",
- typeName: "",
- lyId: "",
- persName: "",
- state: ""
- },
- sfly: true,
- sfrq: false,
- sflyId: false,
- sfRyXm: false,
- sfState: true,
- tableData: [],
- gcType: [{}],
- stateOptions: [
- {label: '未督查', id: '0', value: 0},
- {label: '督查中', id: '1', value: 1},
- {label: '已督查', id: '2', value: 2},
- ],
- ryyjType: 1,
- lableXzqh: "",
- lableJcxm: "检查项目",
- com172gcjs: "xzq172gcjs",
- com172gcyx: "xzq172gcyx",
- comSz: "xzqSz",
- exportLoading: false,
- sfSeach: false,
- comTdfj: 'xzqTdfj', // add by Zjg 2019-11-26
- comQtjc: 'xzqQtjc',
- comYcb: 'xzqYcb',
- comQysh: 'xzqQysh',
- comSyd: 'xzqSyd',
- comXjxzq: 'xzqXjxzq',
- comJsgl: 'xzqJsgl',
- comYsdw: 'xzqYsdw',
- comSkfh: 'xzqSkfh', // add by Thy 2020年6月19日11:24:04
- comShzh: 'xzqShzh',
- comDfxgxd: 'xzqDfxgxd',
- comCbhsfy: 'xzqCbhsfy',
- };
- },
- created() {
- this.$nextTick(function () {
- this.tableHeight = window.innerHeight - 390;
- this.tableHeightRyyj = window.innerHeight - 390;
- let self = this;
- window.onresize = function () {
- self.tableHeight = window.innerHeight - 390;
- self.tableHeightRyyj = window.innerHeight - 390;
- }
- })
- },
- mounted() {
- this.lableXzqh = (this.organCode=='660000000000'?"师":"省份");
- },
- watch: {
- dateRange: function () {
- console.log(this.dateRange);
- if (this.dateRange && this.dateRange.length > 1 && this.dateRange[0] != '' && this.dateRange[1] != '') {
- this.sttm = this.dateRnage[0];
- this.entm = this.dateRange[1];
- } else {
- this.sttm = '';
- this.entm = '';
- }
- }
- },
- computed: {
- persId() {
- return localStorage.getItem("userid")
- ? localStorage.getItem("userid")
- : "1098101939614724096";
- },
- organCode() {
- return localStorage.getItem('currentRlcode') ? localStorage.getItem('currentRlcode') : ''
- },
- },
- methods: {
- dateChangeHandler: function () {
- console.log(this.dateRange + '变化');
- if (this.dateRange && this.dateRange.length > 1 && this.dateRange[0] != '' && this.dateRange[1] != '') {
- this.sttm = this.dateRange[0];
- this.entm = this.dateRange[1];
- } else {
- this.sttm = '';
- this.entm = '';
- }
- },
- changetype: function (value) {
- this.form = {
- name: "",
- typeName: "",
- lyId: "",
- persName: "",
- state: this.form.state
- };
- // this.sttm = "";
- // this.entm = "";
- // this.dateRange = [];
- this.type = value;
- this.sfSeach = false;
- if (this.type == "dcGrp") {
- this.totalTab = false;
- this.sfly = false;
- this.sfrq = true;
- this.sflyId = true;
- this.sfState = true;
- // this.xzqjgmc = false;
- this.xzqh = true;
- this.tableTabs = "xsk";
- this.comXsk = "dczxsk";
- this.comRygc = "dczRygc";
- this.comShgc = "dczShgc";
- this.com172gcjs = "dcz172gcjs";
- this.com172gcyx = "dcz172gcyx";
- this.comSz = "dczSz";
- this.comTdfj = 'dczTdfj'; // add by Zjg 2019-11-26
- this.comQtjc = 'dczQtjc';
- this.comYcb = 'dczYcb';
- this.comQysh = 'dczQysh';
- this.comSyd = 'dczSyd';
- this.comXjxzq = 'dczXjxzq';
- this.comJsgl = 'dczJsgl';
- this.comYsdw = 'dczYsdw';
- this.comSkfh = 'dczYsdw'; // add by Thy 2020年6月19日11:24:04
- this.comShzh = 'dczYsdw';
- this.comDfxgxd = 'dczYsdw';
- this.comCbhsfy = 'dczYsdw';
- // this.sttm = "";
- // this.entm = "";
- // this.dateRange = [];
- this.lableXzqh = this.organCode=='660000000000'?"师":"省份";
- this.sfRyXm = false;
- this.getRyYjTypeData();
- } else if (this.type == "peoAch") {
- this.totalTab = false;
- this.sfly = false;
- this.sfrq = false;
- this.sflyId = true;
- this.sfState = true;
- // this.xzqjgmc = false;
- this.xzqh = true;
- this.tableTabs = "xsk";
- this.comXsk = "ryrjXsk";
- this.comRygc = "ryrjRygc";
- this.comShgc = "ryrShgc";
- this.com172gcjs = "ryyj172gcjs";
- this.com172gcyx = "ryyj172gcyx";
- this.comSz = "ryyjSz";
- this.comTdfj = 'ryyjTdfj'; // add by Zjg 2019-11-26
- this.comQtjc = 'ryyjQtjc';
- this.comYcb = 'ryyjYcb';
- this.comQysh = 'ryyjQysh';
- this.comSyd = 'ryyjSyd';
- this.comXjxzq = 'ryyjXjxzq';
- this.comJsgl = 'ryyjJsgl';
- this.comYsdw = 'ryyjYsdw';
- this.comSkfh = 'ryyjSkfh'; // add by Thy 2020年6月19日11:24:04
- this.comShzh = 'ryyjSkfh';
- this.comDfxgxd = 'ryyjSkfh';
- this.comCbhsfy = 'ryyjSkfh';
- this.sfRyXm = true;
- this.getRyYjTypeData();
- } else if (this.type == "addv") {
- this.totalTab = true;
- this.sfly = true;
- this.sfrq = false;
- this.sflyId = false;
- this.sfState = true;
- // this.xzqjgmc = true;
- this.xzqh = true;
- this.tableTabs = "total";
- this.comHj = "xzqHj";
- this.comXsk = "xzqSk";
- this.comRygc = "xzqRy";
- this.comShgc = "xzqSh";
- this.com172gcjs = "xzq172gcjs";
- this.com172gcyx = "xzq172gcyx";
- this.comSz = "xzqSz";
- this.comTdfj = 'xzqTdfj'; // add by Zjg 2019-11-26 行政区模板暂设为通用模板
- this.comQtjc = 'xzqTdfj';
- this.comYcb = 'xzqTdfj';
- this.comQysh = 'xzqTdfj';
- this.comSyd = 'xzqTdfj';
- this.comXjxzq = 'xzqTdfj';
- this.comJsgl = 'xzqTdfj';
- this.comYsdw = 'xzqTdfj';
- this.comYsdw = 'xzqTdfj';
- this.comSkfh = 'xzqTdfj'; // add by Thy 2020年6月19日11:24:04
- this.comShzh = 'xzqTdfj';
- this.comDfxgxd = 'xzqTdfj';
- this.comCbhsfy = 'xzqTdfj';
- this.lableXzqh = this.organCode=='660000000000'?"师":"省份";
- this.lableJcxm = "检查项目";
- this.sfRyXm = false;
- } else if (this.type == "rvUnit") {
- this.sfly = true;
- this.totalTab = true;
- this.sfrq = false;
- this.sflyId = false;
- this.sfState = true;
- // this.xzqjgmc = true;
- this.xzqh = true;
- this.tableTabs = "total";
- this.comHj = "lyjgHj";
- this.comXsk = "lyjgSk";
- this.comRygc = "lyjgRy";
- this.comShgc = "lyjgSh";
- this.com172gcjs = "lyjg172gcjs";
- this.com172gcyx = "lyjg172gcyx";
- this.comSz = "lyjgSz";
- this.comTdfj = 'lyjgTdfj'; // add by Zjg 2019-11-26 行政区模板暂设为通用模板
- this.comQtjc = 'lyjgTdfj';
- this.comYcb = 'lyjgTdfj';
- this.comQysh = 'lyjgTdfj';
- this.comSyd = 'lyjgTdfj';
- this.comXjxzq = 'lyjgTdfj';
- this.comJsgl = 'lyjgTdfj';
- this.comYsdw = 'lyjgTdfj';
- this.comSkfh = 'lyjgTdfj'; // add by Thy 2020年6月19日11:24:04
- this.comShzh = 'lyjgTdfj';
- this.comDfxgxd = 'lyjgTdfj';
- this.comCbhsfy = 'lyjgTdfj';
- this.lableXzqh = this.organCode=='660000000000'?"师":"检查单位";
- this.lableJcxm = "检查项目";
- this.sfRyXm = false;
- }
- },
- searchData() {
- if (this.type == "rvUnit") {
- if (this.tableTabs == "xsk") {
- this.$refs.childPlXsk.getLySkData();
- } else if (this.tableTabs == "rygc") {
- this.$refs.childPlRygc.getLyRyData();
- } else if (this.tableTabs == "shgc") {
- this.$refs.childPlShgc.getLyShData();
- } else if (this.tableTabs == "total") {
- this.$refs.childPlHj.getLyData();
- this.$refs.childPlXsk.getLySkData();
- this.$refs.childPlRygc.getLyRyData();
- this.$refs.childPlShgc.getLyShData();
- this.$refs.childPl172gcjs.getLyjgGcjsData();
- this.$refs.childPl172gcyx.getLyjgGcyxData();
- this.$refs.childPlSz.getLyjgSzData();
- } else if (this.tableTabs == "172gcjs") {
- this.$refs.childPl172gcjs.getLyjgGcjsData();
- } else if (this.tableTabs == "172gcyx") {
- this.$refs.childPl172gcyx.getLyjgGcyxData();
- } else if (this.tableTabs == "sz") {
- this.$refs.childPlSz.getLyjgSzData();
- } else if (this.tableTabs == "tdfj") {
- this.$refs.childPlTdfj.getLyjgTdfjData(9);
- } else if (this.tableTabs == "qtjc") {
- this.$refs.childPlQtjc.getLyjgTdfjData(10);
- } else if (this.tableTabs == "ycb") {
- this.$refs.childPlYcb.getLyjgTdfjData(11);
- } else if (this.tableTabs == "qysh") {
- this.$refs.childPlQysh.getLyjgTdfjData(12);
- } else if (this.tableTabs == "syd") {
- this.$refs.childPlSyd.getLyjgTdfjData(13);
- } else if (this.tableTabs == "xjxzq") {
- this.$refs.childPlXjxzq.getLyjgTdfjData(14);
- } else if (this.tableTabs == "jsgl") {
- this.$refs.childPlJsgl.getLyjgTdfjData(15);
- } else if (this.tableTabs == "ysdw") {
- this.$refs.childPlYsdw.getLyjgTdfjData(16);
- } else if (this.tableTabs == "skfh") {
- this.$refs.childPlSkfh.getLyjgTdfjData(26);
- } else if (this.tableTabs == "shzh") {
- this.$refs.childPlShzh.getLyjgTdfjData(27);
- } else if (this.tableTabs == "dfxgxd") {
- this.$refs.childPlDfxgxd.getLyjgTdfjData(29);
- } else if (this.tableTabs == "cbhsfy") {
- this.$refs.childPlCbhsfy.getLyjgTdfjData(30);
- }
- } else if (this.type == "addv") {
- if (this.tableTabs == "xsk") {
- this.$refs.childPlXsk.getLySkData();
- } else if (this.tableTabs == "rygc") {
- this.$refs.childPlRygc.getLyRyData();
- } else if (this.tableTabs == "shgc") {
- this.$refs.childPlShgc.getLyShData();
- } else if (this.tableTabs == "total") {
- this.$refs.childPlHj.getLyData();
- this.$refs.childPlXsk.getLySkData();
- this.$refs.childPlRygc.getLyRyData();
- this.$refs.childPlShgc.getLyShData();
- this.$refs.childPl172gcjs.getXzqGcjsData();
- this.$refs.childPl172gcyx.getXzqGcyxData();
- this.$refs.childPlSz.getXzqSzData();
- } else if (this.tableTabs == "172gcjs") {
- this.$refs.childPl172gcjs.getXzqGcjsData();
- } else if (this.tableTabs == "172gcyx") {
- this.$refs.childPl172gcyx.getXzqGcyxData();
- } else if (this.tableTabs == "sz") {
- this.$refs.childPlSz.getXzqSzData();
- } else if (this.tableTabs == "tdfj") {
- this.$refs.childPlTdfj.getXzqTdfjData(9);
- } else if (this.tableTabs == "qtjc") {
- this.$refs.childPlQtjc.getXzqTdfjData(10);
- } else if (this.tableTabs == "ycb") {
- this.$refs.childPlYcb.getXzqTdfjData(11);
- } else if (this.tableTabs == "qysh") {
- this.$refs.childPlQysh.getXzqTdfjData(12);
- } else if (this.tableTabs == "syd") {
- this.$refs.childPlSyd.getXzqTdfjData(13);
- } else if (this.tableTabs == "xjxzq") {
- this.$refs.childPlXjxzq.getXzqTdfjData(14);
- } else if (this.tableTabs == "jsgl") {
- this.$refs.childPlJsgl.getXzqTdfjData(15);
- } else if (this.tableTabs == "ysdw") {
- this.$refs.childPlYsdw.getXzqTdfjData(16);
- } else if (this.tableTabs == "skfh") {
- this.$refs.childPlSkfh.getXzqTdfjData(26);
- } else if (this.tableTabs == "shzh") {
- this.$refs.childPlShzh.getXzqTdfjData(27);
- } else if (this.tableTabs == "dfxgxd") {
- this.$refs.childPlDfxgxd.getXzqTdfjData(29);
- } else if (this.tableTabs == "cbhsfy") {
- this.$refs.childPlCbhsfy.getXzqTdfjData(30);
- }
- } else if (this.type == "dcGrp") {
- if (this.tableTabs == "xsk") {
- this.$refs.childPlXsk.getLySkData();
- } else if (this.tableTabs == "rygc") {
- this.$refs.childPlRygc.getLyRyData();
- } else if (this.tableTabs == "shgc") {
- this.$refs.childPlShgc.getLyShData();
- } else if (this.tableTabs == "172gcjs") {
- this.$refs.childPl172gcjs.getDczGcJsData();
- } else if (this.tableTabs == "172gcyx") {
- this.$refs.childPl172gcyx.getDczGcYxData();
- } else if (this.tableTabs == "sz") {
- this.$refs.childPlSz.getDczSzData();
- } else if (this.tableTabs == "tdfj") {
- this.$refs.childPlTdfj.getDczTdfjData(9);
- } else if (this.tableTabs == "qtjc") {
- this.$refs.childPlQtjc.getDczTdfjData(10);
- } else if (this.tableTabs == "ycb") {
- this.$refs.childPlYcb.getDczTdfjData(11);
- } else if (this.tableTabs == "qysh") {
- this.$refs.childPlQysh.getDczTdfjData(12);
- } else if (this.tableTabs == "syd") {
- this.$refs.childPlSyd.getDczTdfjData(13);
- } else if (this.tableTabs == "xjxzq") {
- this.$refs.childPlXjxzq.getDczTdfjData(14);
- } else if (this.tableTabs == "jsgl") {
- this.$refs.childPlJsgl.getDczTdfjData(15);
- } else if (this.tableTabs == "ysdw") {
- this.$refs.childPlYsdw.getDczTdfjData(16);
- } else if (this.tableTabs == "skfh") {
- this.$refs.childPlSkfh.getDczTdfjData(26);
- } else if (this.tableTabs == "shzh") {
- this.$refs.childPlShzh.getDczTdfjData(27);
- } else if (this.tableTabs == "dfxgxd") {
- this.$refs.childPlDfxgxd.getDczTdfjData(29);
- } else if (this.tableTabs == "cbhsfy") {
- this.$refs.childPlCbhsfy.getDczTdfjData(30);
- }
- } else if (this.type == "peoAch") {
- if (this.tableTabs == "xsk") {
- this.$refs.childPlXsk.getLySkData();
- } else if (this.tableTabs == "rygc") {
- this.$refs.childPlRygc.getLyRyData();
- } else if (this.tableTabs == "shgc") {
- this.$refs.childPlShgc.getLyShData();
- } else if (this.tableTabs == "172gcjs") {
- this.$refs.childPl172gcjs.getRyyjGcJsData();
- } else if (this.tableTabs == "172gcyx") {
- this.$refs.childPl172gcyx.getRyyjGcYxData();
- } else if (this.tableTabs == "sz") {
- this.$refs.childPlSz.getRyyjSzData();
- } else if (this.tableTabs == "tdfj") {
- this.$refs.childPlTdfj.getRyyjTdfjData();
- } else if (this.tableTabs == "qtjc") {
- this.$refs.childPlQtjc.getRyyjQtjcData();
- } else if (this.tableTabs == "ycb") {
- this.$refs.childPlYcb.getRyyjYcbData();
- } else if (this.tableTabs == "qysh") {
- this.$refs.childPlQysh.getRyyjQyshData();
- } else if (this.tableTabs == "syd") {
- this.$refs.childPlSyd.getRyyjSydData();
- } else if (this.tableTabs == "xjxzq") {
- this.$refs.childPlXjxzq.getRyyjXjxzqData();
- } else if (this.tableTabs == "jsgl") {
- this.$refs.childPlJsgl.getRyyjJsglData();
- } else if (this.tableTabs == "ysdw") {
- this.$refs.childPlYsdw.getRyyjYsdwData();
- } else if (this.tableTabs == "skfh") {
- this.$refs.childPlSkfh.getRyyjSkfhData(26);
- } else if (this.tableTabs == "shzh") {
- this.$refs.childPlShzh.getRyyjSkfhData(27);
- } else if (this.tableTabs == "dfxgxd") {
- this.$refs.childPlDfxgxd.getRyyjSkfhData(29);
- } else if (this.tableTabs == "cbhsfy") {
- this.$refs.childPlCbhsfy.getRyyjSkfhData(30);
- }
- }
- this.sfSeach = true;
- },
- async exPort() {
- if (this.sfSeach) {
- //流域机构
- if (this.type == "rvUnit") {
- if (this.tableTabs == "xsk") {
- this.exportLoading = true;
- let url = `/pdcApi/dc/brief/report/getRsvrWork?orgName=${this.form.name}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
- let downloadName = "流域小水库督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "rygc") {
- this.exportLoading = true;
- let url = `/pdcApi/dc/brief/report/getVillWork?orgName=${this.form.name}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
- let downloadName = "流域人饮工程督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "shgc") {
- this.exportLoading = true;
- let url = `/pdcApi/dc/brief/report/getRectWork?orgName=${this.form.name}&state=${this.form.state}&sttm=${
- this.sttm
- }&entm=${this.entm}&isExport=1`;
- let downloadName = "流域水毁工程督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "172gcjs") {
- this.exportLoading = true;
- 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`;
- let downloadName = "流域水利工程建设督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "172gcyx") {
- this.exportLoading = true;
- 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`;
- let downloadName = "流域水利工程运行督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "sz") {
- this.exportLoading = true;
- 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`;
- let downloadName = "流域水闸督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else {
- this.exportLoading = true;
- let url = `/pdcApi/dc/brief/report/getVillRsvrRectWork?orgName=${
- this.form.name
- }&typeName=${this.form.typeName}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&isExport=1`;
- let downloadName = "流域合计督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- }
- }
- //行政区
- else if (this.type == "addv") {
- if (this.tableTabs == "xsk") {
- this.exportLoading = true;
- 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`;
- let downloadName = "行政区小水库督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "rygc") {
- this.exportLoading = true;
- 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`;
- let downloadName = "行政区人饮工程督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "shgc") {
- this.exportLoading = true;
- 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`;
- let downloadName = "行政区水毁工程督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "172gcjs") {
- this.exportLoading = true;
- 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`;
- let downloadName = "行政区水利工程建设督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "172gcyx") {
- this.exportLoading = true;
- 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`;
- let downloadName = "行政区水利工程运行督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "sz") {
- this.exportLoading = true;
- 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`;
- let downloadName = "行政区水闸督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else {
- this.exportLoading = true;
- 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`;
- let downloadName = "行政区合计督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- }
- }
- //督查组
- else if (this.type == "dcGrp") {
- if (this.tableTabs == "xsk") {
- this.exportLoading = true;
- 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`;
- let downloadName = "督查组小水库督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "rygc") {
- this.exportLoading = true;
- 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`;
- let downloadName = "督查组人饮工程督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "shgc") {
- this.exportLoading = true;
- 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`;
- let downloadName = "督查组水毁工程督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "172gcjs") {
- this.exportLoading = true;
- 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`;
- let downloadName = "督查组水利工程建设督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "172gcyx") {
- this.exportLoading = true;
- 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`;
- let downloadName = "督查组水利工程运行督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "sz") {
- this.exportLoading = true;
- 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`;
- let downloadName = "督查组水闸督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- }
- }
- //人员业绩
- else if (this.type == "peoAch") {
- if (this.tableTabs == "xsk") {
- this.exportLoading = true;
- let url = `/pdcApi/dc/brief/report/getRiverPersAchive?adName=${this.form.name
- }&basinId=${this.form.lyId}&state=${this.form.state}&sttm=${this.sttm}&entm=${this.entm}&persName=${this.form.persName}&isExport=1`;
- let downloadName = "人员业绩小水库督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "rygc") {
- this.exportLoading = true;
- 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`;
- let downloadName = "人员业绩人饮工程督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "shgc") {
- this.exportLoading = true;
- 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`;
- let downloadName = "人员业绩水毁工程督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "172gcjs") {
- this.exportLoading = true;
- 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`;
- let downloadName = "人员业绩水利工程建设督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "172gcyx") {
- this.exportLoading = true;
- 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`;
- let downloadName = "人员业绩水利工程运行督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- } else if (this.tableTabs == "sz") {
- this.exportLoading = true;
- 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`;
- let downloadName = "人员业绩水闸督查工作情况表.xls";
- let type = "get";
- let result = await exportModel(type, url, downloadName);
- this.exportLoading = result;
- }
- }
- } else {
- this.$message.warning("请查询后导出");
- }
- },
- handleClick(tab, event) {
- this.gcType = [];
- this.form.lyId = "";
- if (this.type == "peoAch") {
- this.sfSeach = false;
- if (tab.name == "rygc") {
- this.ryyjType = 2;
- this.getRyYjTypeData();
- } else if (tab.name == "shgc") {
- this.ryyjType = 3;
- this.getRyYjTypeData();
- } else if (tab.name == "xsk") {
- this.ryyjType = 1;
- this.getRyYjTypeData();
- } else if (tab.name == "172gcjs") {
- this.ryyjType = 4;
- this.getRyYjTypeData();
- } else if (tab.name == "172gcyx") {
- this.ryyjType = 7;
- this.getRyYjTypeData();
- } else if (tab.name == "sz") {
- this.ryyjType = 6;
- this.getRyYjTypeData();
- } else if (tab.name == "tdfj") { // add by Zjg 2019-11-26
- this.ryyjType = 9;
- this.getRyYjTypeData();
- } else if (tab.name == "qtjc") {
- this.ryyjType = 10;
- this.getRyYjTypeData();
- } else if (tab.name == "ycb") {
- this.ryyjType = 11;
- this.getRyYjTypeData();
- } else if (tab.name == "qysh") {
- this.ryyjType = 12;
- this.getRyYjTypeData();
- } else if (tab.name == "syd") {
- this.ryyjType = 13;
- this.getRyYjTypeData();
- } else if (tab.name == "xjxzq") {
- this.ryyjType = 14;
- this.getRyYjTypeData();
- } else if (tab.name == "jsgl") {
- this.ryyjType = 15;
- this.getRyYjTypeData();
- } else if (tab.name == "ysdw") {
- this.ryyjType = 16;
- this.getRyYjTypeData();
- }
- } else if (this.type == "dcGrp") {
- this.sfSeach = false;
- if (tab.name == "rygc") {
- this.ryyjType = 2;
- this.getRyYjTypeData();
- } else if (tab.name == "shgc") {
- this.ryyjType = 3;
- this.getRyYjTypeData();
- } else if (tab.name == "xsk") {
- this.ryyjType = 1;
- this.getRyYjTypeData();
- } else if (tab.name == "172gcjs") {
- this.ryyjType = 4;
- this.getRyYjTypeData();
- } else if (tab.name == "172gcyx") {
- this.ryyjType = 7;
- this.getRyYjTypeData();
- } else if (tab.name == "sz") {
- this.ryyjType = 6;
- this.getRyYjTypeData();
- }
- } else if (this.type == "rvUnit") {
- if (tab.name == "total") {
- this.lableXzqh = this.organCode=='660000000000'?"师":"检查单位";
- this.sfly = true;
- } else {
- // this.lableXzqh = "检查单位";
- this.sfly = false;
- }
- } else if (this.type == "addv") {
- if (tab.name == "total") {
- this.lableJcxm = "检查项目";
- } else {
- this.lableJcxm = "检查单位";
- }
- }
- // console.log(tab, event);
- },
- getRyYjTypeData() {
- request
- .get(`dc/brief/report/getRiverNode?type=${this.ryyjType}`)
- .then(res => {
- if (res.success) {
- this.gcType = res.data;
- }
- })
- .catch(err => {
- });
- }
- },
- watch: {
- sttm(n, o) {
- if (n == null) {
- this.sttm = "";
- }
- },
- entm(n, o) {
- if (n == null) {
- this.entm = "";
- }
- },
- "form.lyId": {
- handler(val, oldVal) {
- if (val == null) {
- this.form.lyId = "";
- }
- },
- deep: true
- }
- }
- };
- </script>
- <style lang="scss">
- .pblCou {
- height: 100%;
- }
- .pblCou .el-header {
- padding: 10px 20px;
- }
- .pblCou .el-main {
- padding: 0 20px;
- }
- .pblCou .el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
- border-top: 4px solid #3EBEA1;
- color: #3EBEA1;
- font-family: MicrosoftYaHei-Bold;
- font-weight: bold;
- }
- .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) {
- padding-left: 2vw !important;
- padding-right: 2vw !important;
- }
- .pblCou .el-tabs__item {
- padding: 0 2vw;
- height: 50px;
- line-height: 50px;
- font-size: 16px;
- font-weight: 500;
- color: #303133;
- }
- </style>
|