| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- <template>
- <div style="height:100%;width:100%;">
- <el-container style="height:100%;width:100%;">
- <el-aside width="320px" style="border-right:2px solid #d5d5ff;float:left"
- :style="{'max-height':testHeight+'px','height':testHeight+'px'}">
- <cg-left-tree orgType="25" @treeNodeClickHandler="treeNodeClickHandler"></cg-left-tree>
- </el-aside>
- <!-- 主要窗口 -->
- <el-main id="dxdcListMaintdfj" style="padding:5px 20px;">
- <el-row>
- <el-col :span="24">
- <el-form :inline="true" size="mini" class="demo-form-inline" style="padding-left: 10px;">
- <el-form-item label="督查状态">
- <el-select v-model="dcType" clearable placeholder="督查状态">
- <el-option label="未督查" value="0"></el-option>
- <el-option label="督查中" value="1"></el-option>
- <el-option label="已督查" value="2"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="项目名称">
- <el-input v-model="name" placeholder="项目名称" clearable></el-input>
- </el-form-item>
- <el-form-item label="督查时间">
- <div style="display: flex;">
- <el-date-picker
- v-model="dateRange"
- type="daterange"
- value-format="yyyy-MM-dd"
- style="width:100%"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- ></el-date-picker>
- </div>
- </el-form-item>
- <el-form-item style="float:right">
- <el-button type="primary" @click="onSubmit" icon="el-icon-search">查询</el-button>
- </el-form-item>
- </el-form>
- </el-col>
- </el-row>
- <el-table
- ref="table"
- border
- :height="tableHeight"
- :data="tdfjDataList"
- style="width: 100%"
- v-loading="expLoading">
- <el-table-column prop="nm" label="项目名称" min-width="130" align="center"
- fixed="left"></el-table-column>
- <el-table-column prop="province" label="省" v-if="isXj" show-overflow-tooltip min-width="100"
- align="center"></el-table-column>
- <el-table-column prop="city" :label="ownAdName" show-overflow-tooltip min-width="100"
- align="center"></el-table-column>
- <el-table-column prop="county" label="县" v-if="isXj" show-overflow-tooltip min-width="100"
- align="center"></el-table-column>
- <el-table-column prop="groupName" label="所在组" show-overflow-tooltip min-width="150"
- align="center"></el-table-column>
- <el-table-column prop="intm" label="创建时间" show-overflow-tooltip min-width="100"
- align="center"></el-table-column>
- <el-table-column
- prop="uptm"
- label="修改时间"
- align="center"
- min-width="100">
- </el-table-column>
- <el-table-column
- prop="wtdstState"
- label="督查状态"
- align="center"
- min-width="130">
- <template slot-scope="scope">
- <span
- style="padding: 3px 10px;background:#F56C6C;border-radius:15px;color:rgba(255,255,255,1)"
- v-if="scope.row.wtdstState == '0' || !scope.row.wtdstState">未督查</span>
- <span
- style="padding: 3px 10px;background:#FBB56D;border-radius:15px;color:rgba(255,255,255,1)"
- v-if="scope.row.wtdstState == '1'">督查中</span>
- <span
- style="padding: 3px 10px;background:#63C25E;border-radius:15px;color:rgba(255,255,255,1)"
- v-if="scope.row.wtdstState == '2'">已督查</span>
- </template>
- </el-table-column>
- <el-table-column
- prop="waterPriceIsMade"
- label="水价相关政策制定情况"
- align="center"
- min-width="130">
- <template slot-scope="scope">
- <p style="cursor:pointer;color:#F56C6C;"
- v-if="scope.row.waterPriceIsMade == 0 || !scope.row.waterPriceIsMade">待填报</p>
- <p style="cursor:pointer;color:#67C23A" v-if="scope.row.waterPriceIsMade == 1">未完成</p>
- <p style="cursor:pointer;color:#67C23A" v-if="scope.row.waterPriceIsMade == 2">已完成</p>
- </template>
- </el-table-column>
- <el-table-column align="center" label="操作" min-width="220" fixed="right">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="success"
- plain
- @click="renyinNewInfo(scope.row)"
- >查看
- </el-button>
- </template>
- </el-table-column>
- </el-table>
- <el-pagination background :pager-count="5" :current-page="pageIndex"
- :page-size="pageSize" :page-sizes="[10, 20, 30, 40, 50, 100]"
- layout="sizes, total, prev, pager, next" :total="total"
- @current-change="pageIndexChange" @size-change="handleSizeChange"
- ></el-pagination>
- </el-main>
- <xinRenYinChengGuo v-if="showxinRenYinChengGuo" :rowData="rowData"
- :currentObjectRgstrId="currentObjectRgstrId" :currentObjectId="currentObjectId"
- :currentObjectName="currentResName"
- @cancelHandler="cancelHandler"
- @addxinRenYinSuccess="addxinRenYinSuccess"></xinRenYinChengGuo>
- </el-container>
- </div>
- </template>
- <script>
- import request from '@util/gw_ajax_request.js'
- import {dateFormat} from '@util/gw_date.js'
- import xinRenYinChengGuo from "../../zongHeXinXiOl/components/popupWindow/renyinNew/main"
- import cgLeftTree from "../dccg_lefttree.vue"
- export default {
- components: {
- xinRenYinChengGuo: xinRenYinChengGuo,
- cgLeftTree
- },
- props: [],
- data() {
- return {
- dateRange: [],
- lyjg: [],
- engScale: '',
- orgName: '',
- groupName: '',
- groupId: '',
- groups: [],
- adName: '',
- treeData: [],
- dxdcMainHeight: window.innerHeight - 304,
- testHeight: window.innerHeight - 111,
- tdfjDataList: [],
- pageIndex: 1,
- pageSize: 20,
- total: 0,
- tableHeight: 0,
- currentResCode: '',
- currentResName: '',
- currentObjectId: '',
- currentObjectRgstrId: '',
- currentObjectInfoObject: null,
- showxinRenYinChengGuo: false,
- currentAdCode: '',
- currentNodeId: '',
- rsvrName: '',
- dcType: '',
- sjState: '',
- rowData: '',
- disabled: true,
- showxinRenYinChengGuoPl: false,
- downIcon: 'el-icon-download',
- expLoading: false,
- dataStat: '',
- name: '',
- state: '',
- adCodes: []
- };
- },
- computed: {
- persId() {
- return localStorage.getItem("userid")
- ? localStorage.getItem("userid")
- : "1098101939614724096";
- },
- isAdmin: function () {
- return localStorage.getItem("isAdmin") ? localStorage.getItem("isAdmin") : ''
- },
- hasPriv() {
- return this.ownPriv
- }
- },
- mounted() {
- this.$nextTick(function () {
- this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 50;
- let _self = this;
- window.onresize = function () {
- _self.tableHeight = window.innerHeight - _self.$refs.table.$el.offsetTop - 50
- }
- })
- // this.getTdfjDataList();
- },
- watch: {
- currentNodeId(n, o) {
- this.getTdfjDataList();
- }
- },
- methods: {
- renyinNewInfo(rowData) {
- var _self = this;
- _self.rowData = rowData;
- _self.currentObjectId = this.rowData.objId;
- _self.currentObjectRgstrId = this.rowData.regstrId;
- _self.currentResName = this.rowData.nm;
- _self.currentResCode = this.rowData.code;
- _self.showxinRenYinChengGuo = true;
- },
- treeNodeClickHandler(data) {
- this.adCodes = data;
- },
- getTdfjDataList: function () {
- this.expLoading = true;
- let paramStartDate = '';
- let paramEndDate = '';
- if (this.dateRange && this.dateRange.length > 1 && this.dateRange[0] != '' && this.dateRange[1] != '') {
- paramStartDate = this.dateRange[0];
- paramEndDate = this.dateRange[1];
- }
- let params = {
- "sttm": paramStartDate,
- "entm": paramEndDate,
- "pageSize": this.pageSize,
- "pageNum": this.pageIndex,
- "groupId": this.groupId,
- "name": this.name,
- "state": this.dcType,
- "pType": 25,
- "adName": this.adName,
- "presId": this.persId,
- "plnaId": this.currentNodeId,
- "adCodes": this.adCodes.toString()
- };
- request.post(`/bis/new/vill/rgstr/findPageByType`, params).then(res => {
- if (res.success) {
- this.expLoading = false;
- if (res.data.list) {
- res.data.list.forEach((item) => {
- if (item.intm && item.uptm) {
- item.intm = item.intm.substr(0, 10);
- item.uptm = item.uptm.substr(0, 10);
- }
- })
- }
- this.tdfjDataList = res.data.list;
- this.total = res.data.total;
- }
- })
- },
- onSubmit() {
- this.getTdfjDataList();
- },
- toAddMember(type, rowData) {
- console.log(rowData)
- var _self = this;
- this.rowData = rowData;
- console.log(rowData);
- _self.currentObjectId = this.rowData.objId;
- _self.currentObjectRgstrId = this.rowData.regstrId;
- _self.currentResName = this.rowData.nm;
- _self.currentResCode = this.rowData.code;
- _self.showxinRenYinChengGuo = true;
- },
- cancelHandler() {
- this.showxinRenYinChengGuo = false;
- this.getTdfjDataList();
- },
- addxinRenYinSuccess() {
- this.getTdfjDataList();
- },
- pageIndexChange(val) {
- console.log(val);
- this.pageIndex = val;
- this.getTdfjDataList();
- },
- handleSizeChange(val) {
- this.pageSize = val;
- this.getTdfjDataList();
- }
- },
- };
- </script>
- <style>
- .el-table .warning-row {
- background: oldlace;
- }
- .el-table .success-row {
- background: #f0f9eb;
- }
- #dxdcListMaintdfj {
- overflow-y: hidden;
- }
- </style>
|