| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882 |
- <template>
- <div style="height:100%;width:100%;">
- <!-- <h3 style="text-align: center;margin: 10px 0 20px;">{{title}}</h3> -->
- <el-container style="height:100%;width:100%;">
- <el-aside width="20%" :height="asideHeight" style="padding-right: 10px">
- <div :style="{'height': asideHeight + 'px','overflow': 'auto'}" class="left_tree">
- <el-card class="box-card" style="min-height: 99%">
- <div slot="header" class="clearfix">
- <span>督查组</span>
- </div>
- <el-tree ref="jigou_tree" :data="groupTreeData" :props="defaultProps" show-checkbox :expand-on-click-node="false" @check-change="handleCheckChange">
- <div class="custom-tree-node" slot-scope="{ node, data }">
- <span style="float:left;">{{data.name}}</span>
- </div>
- </el-tree>
- </el-card>
- </div>
- </el-aside>
- <el-aside width="30%" :height="asideHeight">
- <div :style="{'height': asideHeight + 'px','overflow': 'auto'}" class="left_tree">
- <el-card class="box-card" style="min-height: 99%">
- <div slot="header" class="clearfix">
- <span>工程信息</span>
- <!-- <el-button style="float: right; padding: 3px 0" type="text" @click="batchImport" v-if="ownPriv('manage')">批量导入</el-button> -->
- <!-- 水利工程基础信息批量导入弹窗 -->
- <slgc-tian-bao-pl v-if="showGongChengTianBaoPl" @closePlDialog="closePlDialog"></slgc-tian-bao-pl>
- </div>
- <el-tree :data="treeData" :props="defaultProps" :expand-on-click-node="false" @node-click="handleNodeClick">
- <span class="custom-tree-node" slot-scope="{ node }">
- <span>{{ node.label }}</span>
- <span>
- <!-- <el-button
- type="text"
- size="mini"
- v-if="node.level == 1"
- @click="() => toCorrect(data,node)">
- 纠错
- </el-button>
- <el-button
- type="text"
- size="mini"
- v-if="node.level == 1 && !data.children"
- @click="() => toAddUnitOne(data,node)">
- 添加一级单位
- </el-button>
- <el-button
- type="text"
- size="mini"
- v-if="node.level == 2"
- @click="() => toEditUnitOne(data,node)">
- 编辑
- </el-button>
- <el-button
- type="text"
- size="mini"
- v-if="node.level == 2"
- @click="() => toAddUnitTwo(data,node)">
- 添加二级单位
- </el-button>
- <el-button
- type="text"
- size="mini"
- v-if="node.level == 3"
- @click="() => toEditUnitTwo(data,node)">
- 编辑
- </el-button>
- <el-button
- type="text"
- size="mini"
- v-if="node.level == 3"
- @click="() => delete_unitTwo(data,node)">
- 删除
- </el-button>
- <el-button
- type="text"
- size="mini"
- v-if="node.level == 3"
- @click="() => toAddUnitThree(data,node)">
- 添加三级单位
- </el-button>
- <el-button
- type="text"
- size="mini"
- v-if="node.level == 4"
- @click="() => toEditUnitThree(data,node)">
- 编辑
- </el-button>
- <el-button
- type="text"
- size="mini"
- v-if="node.level == 4"
- @click="() => delete_unitThree(data,node)">
- 删除
- </el-button> -->
- </span>
- </span>
- </el-tree>
- </el-card>
- </div>
- </el-aside>
- <el-main id="dxdcListMainsk" style="width: 49%;padding:0px 0px 0px 10px;">
- <div class="flex_wrapper">
- <!-- 工程问题清单 -->
- <project-problem :villType="'9'" :currentRow="currentRow" :unitProblemInfo="unitProblemInfo" :unitLevel="unitLevel" :showAddBtn="showAddBtn" :adCodes="adCodes"></project-problem>
- </div>
- </el-main>
- </el-container>
- <!-- 工程纠错 -->
- <el-dialog :title="'基本信息纠错'" :visible.sync="correct_Dialog">
- <div style="text-align: right; margin-bottom: 10px;">
- <el-button type="warning" @click="imageClick">影像</el-button>
- <el-button type="warning" @click="recentAppearance">近期面貌</el-button>
- </div>
- <el-form label-width="130px">
- <el-form-item label="工程名称">
- <el-input v-model="project.nm" clearable readonly></el-input>
- </el-form-item>
- <el-form-item label="工程类型">
- <el-input v-model="projectType" clearable readonly></el-input>
- </el-form-item>
- <el-form-item label="开工时间" required>
- <el-date-picker
- v-model="project.stwktm"
- align="right"
- type="year"
- value-format="yyyy"
- placeholder="选择年"
- ></el-date-picker>
- </el-form-item>
- <el-form-item label="完工时间" required>
- <el-date-picker
- v-model="project.buidTimeYear"
- align="right"
- type="year"
- value-format="yyyy"
- placeholder="选择年"
- ></el-date-picker>
- </el-form-item>
- <el-form-item label="概算批复总投资" required>
- <el-input v-model="project.estapp" clearable>
- <template slot="append">亿元</template>
- </el-input>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="correct_Dialog = false">取 消</el-button>
- <el-button type="primary" @click="saveCorrect">确 定</el-button>
- </div>
- </el-dialog>
- <!-- 添加/编辑一级管理单位 -->
- <el-dialog :title="dialogType + '一级管理单位'" :visible.sync="unitOne_Dialog">
- <el-form label-width="120px">
- <el-form-item label="一级单位名称" required>
- <el-input v-model="unitOne.nm" clearable></el-input>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="unitOne_Dialog = false">取 消</el-button>
- <el-button type="primary" @click="addUnitOne">确 定</el-button>
- </div>
- </el-dialog>
- <!-- 添加/编辑二级管理单位 -->
- <el-dialog :title="dialogType + '二级管理单位'" :visible.sync="unitTwo_Dialog">
- <el-form label-width="120px">
- <el-form-item label="二级单位名称" required>
- <el-input v-model="unitTwo.nm" clearable></el-input>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="unitTwo_Dialog = false">取 消</el-button>
- <el-button type="primary" @click="add_unitTwo">确 定</el-button>
- </div>
- </el-dialog>
- <!-- 添加/编辑三级管理单位 -->
- <el-dialog :title="dialogType + '三级管理单位'" :visible.sync="unitThree_Dialog">
- <el-form label-width="120px">
- <el-form-item label="三级单位名称" required>
- <el-input v-model="unitThree.nm" clearable></el-input>
- </el-form-item>
- <!-- <el-form-item label="所属二级单位" required>
- <el-select v-model="unitThree.pid" placeholder="请选择">
- <el-option
- :label="item.nm"
- :value="item.id"
- v-for="(item,index) in unitTwoList"
- :key="index"
- ></el-option>
- </el-select>
- </el-form-item> -->
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="unitThree_Dialog = false">取 消</el-button>
- <el-button type="primary" @click="add_unitThree">确 定</el-button>
- </div>
- </el-dialog>
- <!--近期面貌弹窗-->
- <theRecentAppearance v-if="jqmmShow" @jqmmDialogClose="jqmmDialog" :jqmmShow="jqmmShow" :jqmmEngId="jqmmEngId" :dialogTitle="slgcyxName + '近期面貌'"></theRecentAppearance>
- <!--影像弹窗-->
- <el-dialog :title="slgcyxName + '影像'" :visible.sync="imageShow" append-to-body :close-on-click-modal="false" width="60%">
- <div style="height: 60vh;">
- <mapLocation ref="mapRef" v-if="imageShow" :gdX="centerX" :gdY="centerY"></mapLocation>
- </div>
- </el-dialog>
-
- </div>
- </template>
- <script>
- import request from "../../../utils/gw_ajax_request.js";
- import { dateFormat } from "../../../utils/gw_date.js";
- import {getTrees} from '@util/gw_formatTree'
- import provTreeList from "../../../widgets/provTreeList.vue";
- import projectProblem from "./gongChengProjectProblem.vue";
- import projectBuild from '../../duChaTianBao/project/jianshe.vue';
- import projectOperate from '../../duChaTianBao/project/yunxing.vue';
- import slgcTianBaoPl from '../../duChaTianBao/slgcTianBao_piliang.vue';
- import theRecentAppearance from '../../duChaDuiXiang/theRecentAppearance';
- import mapLocation from '../../../views/duChaTianBao/mapLocation';
- export default {
- components: {
- provTreeList: provTreeList,
- projectProblem: projectProblem,
- projectOperate: projectOperate,
- projectBuild: projectBuild,
- slgcTianBaoPl: slgcTianBaoPl,
- theRecentAppearance: theRecentAppearance,
- mapLocation:mapLocation
- },
- props: [],
- data() {
- return {
- asideHeight: window.innerHeight - 106,
- tableHeight: window.innerHeight - 256,
- treeData: [],
- defaultProps: {
- children: 'children',
- label: 'pnm'
- },
- searchObj:{
- "engScal": '1'
- },
- project: {
- nm: "",
- ptype: "",
- stwktm: "",
- buidTimeYear: "",
- estapp: ""
- },
- unitOne: {
- nm: ""
- },
- currentRow: {},
- pageIndex: 1,
- pageSize: 20,
- total: 0,
- dialogType: "添加",
- unitOne_Dialog: false,
- correct_Dialog: false,
- showProblemDialog: false,
- typeOfProject: '2',
- title: '水利工程运行情况检查填报',
- isClicked: true,
- showGongChengTianBaoPl: false,
- //
- unitTwoList: [],
- unitThreeList: [],
- unitTwo: {
- nm: ""
- },
- unitThree: {
- nm: "",
- pid: ""
- },
- unitTwo_Dialog: false,
- unitThree_Dialog: false,
- showProblemDialog: false,
- unitProblemInfo: {
- codes: ''
- },
- unitLevel: '一级管理单位', //一级管理单位 二级管理单位 三级管理单位
- currentUnitTwoRow: {},
- isClicked: true,
- currentUnitOneRow: {},
- currentUnitThreeRow: {},
- jqmmShow: false,
- imageShow: false,
- jqmmEngId: '',
- slgcyxName: '',
- centerX: 0,
- centerY: 0,
- //
- groupTreeData: [],
- plnaId: '007', //督查组id
- showAddBtn: false,
- adCodes: [],
- };
- },
- computed: {
- persId() {
- return localStorage.getItem("userid")
- ? localStorage.getItem("userid")
- : "1098101939614724096";
- },
- projectType() {
- let val = this.project.ptype;
- if (val != "0" && !val) {
- return "";
- }
- if (val == "0") {
- return "重大农业节水工程";
- } else if (val == "1") {
- return "重大引调水工程";
- } else if (val == "2") {
- return "重点水源工程";
- } else if (val == "3") {
- return "江河湖泊治理骨干工程";
- } else if (val == "4") {
- return "新建大型灌区工程";
- } else if (val == "5") {
- return "非水利部下达投资计划";
- } else if (val == "6") {
- return "全部由地方投资";
- } else if (val == "7") {
- return "其他项目";
- } else {
- return "未知项目";
- }
- }
- },
- mounted() {
- this.getGroupData();
- },
- activated() {
- // this.getDataList();
- },
- methods: {
- //获取工程列表信息
- getDataList() {
- let paramObj = {
- type: "empwtrun",
- presId: this.persId,
- pageSize: this.pageSize,
- pageNum: this.pageIndex,
- adCodes: this.adCodes.toString()
- // plnaId: this.plnaId
- }
- Object.assign(this.searchObj,paramObj)
- request.post(`/dc/insp/rsvrRgstr/list/tree`, this.searchObj).then(res => {
- if (res.success) {
- this.treeData = res.data;
- if (this.treeData.length) {
- this.currentRow = this.treeData[0];
- // this.addRegister()
- }
- }
- });
- },
- // 工程信息纠错
- toCorrect(row) {
- this.currentRow = row
- request.get(`/bis/insp/empwtprj/base/${row.code}`).then(res => {
- if (res.success) {
- this.project = res.data;
- if(this.project.stwktm && this.project.buidTimeYear){
- this.project.stwktm = this.project.stwktm.toString();
- this.project.buidTimeYear = this.project.buidTimeYear.toString();
- }else{
- this.project.stwktm = "";
- this.project.buidTimeYear = "";
- }
- this.slgcyxName = this.project.nm;
- this.jqmmEngId = this.currentRow.id;
- this.centerX = this.project.lgtdPc;
- this.centerY = this.project.lttdPc;
- }
- });
- this.correct_Dialog = true;
- },
- saveCorrect() {
- this.project.persId = this.persId;
- request.post(`/bis/insp/empwtprj/base/update`, this.project).then(res => {
- if (res.success) {
- this.$message.success("修改成功");
- this.correct_Dialog = false;
- this.getDataList();
- } else {
- this.$message.error(res.message);
- }
- })
- .catch(error => {
- this.$message.error(res.message);
- });
- },
- // 添加一级管理单位
- toAddUnitOne(row,node) {
- this.dialogType = "添加";
- this.currentRow = row
- this.unitOne = {
- nm: ""
- };
- this.unitOne.regId = row.id;
- this.unitOne_Dialog = true;
- },
- toEditUnitOne(row){
- this.dialogType = '编辑'
- this.currentUnitOneRow = row
- request.get(`/bis/insp/mampu/info/${row.id}`).then((res) => {
- if(res.success){
- this.unitOne = res.data;
- this.unitOne_Dialog = true
- }else{
- this.$message.error(res.message)
- }
- });
- },
- addUnitOne() {
- if(!this.unitOne.nm){
- this.$message.warning('请填写一级单位名称')
- return
- }
- if(this.isClicked){
- this.isClicked = false
- if(this.dialogType == '添加'){
- this.unitOne.lev = "1";
- this.unitOne.pid = "0";
- this.unitOne.persId = this.persId;
- request.post(`/bis/insp/mampu/info/add`, this.unitOne).then(res => {
- if (res.success) {
- this.$message.success(this.dialogType + "成功");
- //向树节点追加已添加的新单位
- const newChild = { id: res.data.id, objId: res.data.objId, pnm: res.data.nm, children: [] };
- if (!this.currentRow.children) {
- this.$set(this.currentRow, 'children', []);
- }
- this.currentRow.children.push(newChild);
- this.unitOne_Dialog = false;
- setTimeout(()=> {
- this.isClicked = true
- }, 1000);
- } else {
- this.$message.error(res.message);
- }
- })
- .catch(error => {
- this.$message.error(res.message);
- });
- }else{
- request.post(`/bis/insp/mampu/info/update`, this.unitOne).then(res => {
- if (res.success) {
- this.$message.success(this.dialogType + "成功");
- //编辑成功后改变树节点显示的标段名称
- this.currentUnitOneRow.pnm = res.data.nm
- this.unitOne_Dialog = false;
- setTimeout(()=> {
- this.isClicked = true
- }, 1000);
- } else {
- this.$message.error(res.message);
- }
- })
- .catch(error => {
- this.$message.error(res.message);
- });
- }
- }
- },
- addRegister(){
- let paramObj = {
- "code": this.currentRow.code,
- "objId": this.currentRow.objId,
- "nodeId": this.currentRow.nodeId,
- "recPersId": this.persId,
- "id": this.currentRow.id
- }
- request.post(`/bis/insp/key/register/add`, paramObj).then(res => {
- if (res.success && res.data) {
- this.currentRow.id = res.data.id
- } else {
- this.$message.error(res.message);
- }
- }).catch(error => {
- this.$message.error(res.message);
- });
- },
- formatDate(row, column) {
- if (row.uptm) {
- return dateFormat(row.uptm, "yyyy-MM-dd");
- }
- },
- batchImport(){
- this.showGongChengTianBaoPl = true
- },
- closePlDialog(){
- this.showGongChengTianBaoPl = false
- },
- //树节点点击事件
- handleNodeClick(data,node) {
- console.log(data);
- this.addRegister()
- if(node.level != 1){
- this.showAddBtn = true
- request.get(`/bis/insp/mampu/info/${data.id}`).then((res) => {
- if(res.success){
- let data = res.data
- data['codes'] = ''
- this.unitProblemInfo = data
- }else{
- this.$message.error(res.message)
- }
- });
- if(node.level == 2){
- this.currentRow = node.parent.data
- this.unitLevel = '一级管理单位'
- }else if(node.level == 3){
- this.currentRow = node.parent.parent.data
- this.unitLevel = '二级管理单位'
- }else if(node.level == 4){
- this.currentRow = node.parent.parent.parent.data
- this.unitLevel = '三级管理单位'
- }
- }else{
- this.showAddBtn = false
- this.unitProblemInfo.codes = data.code
- this.unitProblemInfo.id = ''
- }
- },
- handleCheckChange() {
- this.adCodes = [];
- let nodes = this.$refs.jigou_tree.getCheckedNodes();
- nodes.forEach(item => {
- this.adCodes.push(item.id);
- });
- },
- // 添加二级管理单位
- toAddUnitTwo(row) {
- this.addRegister()
- this.dialogType = "添加";
- this.currentUnitOneRow = row
- this.unitTwo = {
- nm: ""
- };
- this.unitTwo_Dialog = true;
- },
- toEditUnitTwo(row) {
- this.dialogType = "编辑";
- this.currentUnitTwoRow = row
- request.get(`/bis/insp/mampu/info/${row.id}`).then((res) => {
- if(res.success){
- this.unitTwo = res.data;
- this.unitTwo_Dialog = true
- }else{
- this.$message.error(res.message)
- }
- });
- },
- add_unitTwo() {
- if(!this.unitTwo.nm){
- this.$message.warning('请填写二级单位名称')
- return
- }
- if(this.isClicked){
- this.isClicked = false
- if (this.dialogType == "添加") {
- this.unitTwo.lev = "2";
- this.unitTwo.regId = this.currentRow.id;
- this.unitTwo.pid = this.currentUnitOneRow.id;
- this.unitTwo.persId = this.persId;
- request
- .post(`/bis/insp/mampu/info/add`, this.unitTwo)
- .then(res => {
- if (res.success) {
- this.$message.success(this.dialogType + "成功");
- //向树节点追加已添加的新标段
- const newChild = { id: res.data.id, objId: res.data.objId, pnm: res.data.nm, children: [] };
- if (!this.currentUnitOneRow.children) {
- this.$set(this.currentUnitOneRow, 'children', []);
- }
- this.currentUnitOneRow.children.push(newChild);
- this.unitTwo_Dialog = false;
- setTimeout(()=> {
- this.isClicked = true
- }, 1000);
- } else {
- this.$message.error(res.message);
- }
- })
- .catch(error => {
- this.$message.error(res.message);
- });
- } else {
- request
- .post(`/bis/insp/mampu/info/update`, this.unitTwo)
- .then(res => {
- if (res.success) {
- this.$message.success(this.dialogType + "成功");
- //编辑成功后改变树节点显示的标段名称
- this.currentUnitTwoRow.pnm = res.data.nm
- this.unitTwo_Dialog = false;
- setTimeout(()=> {
- this.isClicked = true
- }, 1000);
- } else {
- this.$message.error(res.message);
- }
- })
- .catch(error => {
- this.$message.error(res.message);
- });
- }
- }
- },
- delete_unitTwo(row,node) {
- this.$confirm("确认删除当前二级单位吗?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(() => {
- request.post(`/bis/insp/mampu/info/delete/${row.id}`).then(res => {
- if (res.success) {
- this.$message.success("删除成功");
- const parent = node.parent;
- const children = parent.data.children || parent.data;
- const index = children.findIndex(d => d.id === row.id);
- children.splice(index, 1);
- } else {
- this.$message.error(res.message);
- }
- });
- })
- .catch(() => {});
- },
- // 添加三级管理单位
- toAddUnitThree(row,node) {
- this.dialogType = "添加";
- this.currentRow = node.parent.parent.parent.data
- this.currentUnitTwoRow = row
- this.unitThree = {
- nm: "",
- pid: this.currentUnitTwoRow.id
- };
- this.unitThree_Dialog = true;
- },
- toEditUnitThree(row) {
- this.dialogType = "编辑";
- this.currentUnitThreeRow = row
- request.get(`/bis/insp/mampu/info/${row.id}`).then((res) => {
- if(res.success){
- this.unitThree = res.data;
- this.unitThree_Dialog = true
- }else{
- this.$message.error(res.message)
- }
- });
- },
- add_unitThree() {
- if(!this.unitThree.nm){
- this.$message.warning('请填写三级单位名称')
- return
- }
- if(this.isClicked){
- this.isClicked = false
- if (this.dialogType == "添加") {
- this.unitThree.lev = "3";
- this.unitThree.regId = this.currentRow.id;
- this.unitThree.pid = this.currentUnitTwoRow.id;
- this.unitThree.persId = this.persId;
- request
- .post(`/bis/insp/mampu/info/add`, this.unitThree)
- .then(res => {
- if (res.success) {
- this.$message.success(this.dialogType + "成功");
- //向树节点追加已添加的新单位
- const newChild = { id: res.data.id, objId: res.data.objId, pnm: res.data.nm, children: [] };
- if (!this.currentUnitTwoRow.children) {
- this.$set(this.currentUnitTwoRow, 'children', []);
- }
- this.currentUnitTwoRow.children.push(newChild);
- this.unitThree_Dialog = false;
- setTimeout(()=> {
- this.isClicked = true
- }, 1000);
- } else {
- this.$message.error(res.message);
- }
- })
- .catch(error => {
- this.$message.error(res.message);
- });
- } else {
- request
- .post(`/bis/insp/mampu/info/update`, this.unitThree)
- .then(res => {
- if (res.success) {
- this.$message.success(this.dialogType + "成功");
- //编辑成功后改变树节点显示的标段名称
- this.currentUnitThreeRow.pnm = res.data.nm
- this.unitThree_Dialog = false;
- setTimeout(()=> {
- this.isClicked = true
- }, 1000);
- } else {
- this.$message.error(res.message);
- }
- })
- .catch(error => {
- this.$message.error(res.message);
- });
- }
- }
- },
- delete_unitThree(row,node) {
- this.$confirm("确认删除当前单位吗?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- }).then(() => {
- request.post(`/bis/insp/mampu/info/delete/${row.id}`).then(res => {
- if (res.success) {
- this.$message.success("删除成功");
- const parent = node.parent;
- const children = parent.data.children || parent.data;
- const index = children.findIndex(d => d.id === row.id);
- children.splice(index, 1);
- } else {
- this.$message.error(res.message);
- }
- });
- })
- .catch(() => {});
- },
- // 近期面貌
- recentAppearance(){
- this.jqmmShow = true;
- // this.jqmmShow += 1;
- },
- jqmmDialog(){
- this.jqmmShow = false;
- },
- // 影像
- imageClick(){
- if(!this.centerX && !this.centerY){
- this.$message.warning('暂无经纬度信息!');
- return false;
- }
- this.imageShow = true;
- },
- // 点击督查组
- getGroupData(){
- // let params = {
- // userId: this.persId,
- // orgType: '007'
- // }
- request.get(`/bis/insp/BisInspConfigOrgAd/getAdByPersId/${this.persId}/7`).then(res=>{
- if(res.success){
- let data = res.data;
- data = getTrees(data);
- this.groupTreeData = data;
- if(data[0].id != '007'){
- this.plnaId = this.groupTreeData[0].id
- }
- // this.getDataList();
- }else{
- this.$message.warning(res.message)
- }
- })
- },
- groupHandleNodeClick(data,node){
- this.plnaId = data.id
- this.getDataList()
- }
- },
- watch:{
- typeOfProject(val){
- this.title = val == '2' ? '水利工程建设情况检查填报' : '水利工程运行情况检查填报'
- this.searchObj.engScal = val
- this.getDataList()
- },
- adCodes(val) {
- if(val.length)
- this.getDataList();
- }
- },
- filters: {
- pType(val) {
- if (val != "0" && !val) {
- return "";
- }
- if (val == "0") {
- return "重大农业节水工程";
- } else if (val == "1") {
- return "重大引调水工程";
- } else if (val == "2") {
- return "重点水源工程";
- } else if (val == "3") {
- return "江河湖泊治理骨干工程";
- } else if (val == "4") {
- return "新建大型灌区工程";
- } else if (val == "5") {
- return "非水利部下达投资计划";
- } else if (val == "6") {
- return "全部由地方投资";
- } else if (val == "7") {
- return "其他项目";
- } else {
- return "未知项目";
- }
- },
- nature(val) {
- if (val != "0" && !val) {
- return "";
- }
- if (val == "1") {
- return "项目法人(建设单位)";
- } else if (val == "2") {
- return "勘察设计单位";
- } else if (val == "3") {
- return "监理单位";
- } else if (val == "4") {
- return "施工单位";
- } else if (val == "5") {
- return "金属结构及机电设备安装单位";
- } else if (val == "6") {
- return "安全监测单位";
- } else if (val == "7") {
- return "质量检测单位";
- } else {
- return "其它";
- }
- },
- government(val) {
- if (val != "0" && !val) {
- return "";
- }
- if (val == "1") {
- return "直管";
- } else if (val == "2") {
- return "代建";
- }
- }
- }
- };
- </script>
- <style lang="scss">
- #dcdxHeader {
- padding: 15px 20px;
- }
- #dxdcFooter {
- text-align: center;
- }
- #dxdcAside {
- border: 1px solid #d5d5ff;
- }
- .el-table .warning-row {
- background: oldlace;
- }
- .el-table .success-row {
- background: #f0f9eb;
- }
- .left_tree .custom-tree-node {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-size: 14px;
- padding-right: 8px;
- }
- </style>
|