|
@@ -9,7 +9,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
<el-row>
|
|
<el-row>
|
|
|
- <!-- <el-col :span="4">
|
|
|
|
|
|
|
+ <el-col :span="4">
|
|
|
<div class="box">
|
|
<div class="box">
|
|
|
<el-scrollbar>
|
|
<el-scrollbar>
|
|
|
<basic-container>
|
|
<basic-container>
|
|
@@ -24,8 +24,8 @@
|
|
|
</basic-container>
|
|
</basic-container>
|
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
|
</div>
|
|
</div>
|
|
|
- </el-col> -->
|
|
|
|
|
- <el-col :span="24">
|
|
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="20">
|
|
|
<basic-container>
|
|
<basic-container>
|
|
|
<avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page"
|
|
<avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page"
|
|
|
:before-open="beforeOpen" ref="crud" v-model="form" :permission="permissionList" @row-del="rowDel"
|
|
:before-open="beforeOpen" ref="crud" v-model="form" :permission="permissionList" @row-del="rowDel"
|
|
@@ -33,22 +33,26 @@
|
|
|
@search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange"
|
|
@search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange"
|
|
|
@size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"
|
|
@size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"
|
|
|
@before-open="beforeOpen" @select-change="selectChange">
|
|
@before-open="beforeOpen" @select-change="selectChange">
|
|
|
- <template slot-scope="scope" slot="menuLeft">
|
|
|
|
|
|
|
+ <!-- <template slot-scope="scope" slot="menuLeft">
|
|
|
<el-button v-if="permissionList.importBtn" type="primary" icon="el-icon-upload2" size="small"
|
|
<el-button v-if="permissionList.importBtn" type="primary" icon="el-icon-upload2" size="small"
|
|
|
@click="toRtuImpoartHandler">导入测站</el-button>
|
|
@click="toRtuImpoartHandler">导入测站</el-button>
|
|
|
<el-button v-if="permissionList.importBtn" type="primary" icon="el-icon-finished" size="small"
|
|
<el-button v-if="permissionList.importBtn" type="primary" icon="el-icon-finished" size="small"
|
|
|
@click="toRtuImportHistoryHandler">测站导入历史</el-button>
|
|
@click="toRtuImportHistoryHandler">测站导入历史</el-button>
|
|
|
<el-button v-if="permissionList.importBtn" type="primary" icon="el-icon-download" size="small"
|
|
<el-button v-if="permissionList.importBtn" type="primary" icon="el-icon-download" size="small"
|
|
|
- @click="downloadTemplate">测站信息模板下载</el-button>
|
|
|
|
|
- <!-- <el-button v-if="permissionList.videoSiteAdd" type="primary" icon="el-icon-plus" size="small"
|
|
|
|
|
|
|
+ @click="downloadTemplate">测站信息模板下载</el-button> -->
|
|
|
|
|
+ <!-- <el-button v-if="permissionList.videoSiteAdd" type="primary" icon="el-icon-plus" size="small"
|
|
|
@click="toAddVideoSite">添加视频站</el-button> -->
|
|
@click="toAddVideoSite">添加视频站</el-button> -->
|
|
|
- </template>
|
|
|
|
|
|
|
+ <!-- </template> -->
|
|
|
|
|
|
|
|
|
|
+ <template slot-scope="{ row, index }" slot="menu">
|
|
|
|
|
+ <el-button type="text" size="small" icon="el-icon-link" @click="toBindProject(row)">项目绑定
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </template>
|
|
|
</avue-crud>
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
</basic-container>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- <el-drawer :visible.sync="rtuImportHistoryDialog" v-if="rtuImportHistoryDialog" title="测站导入操作记录" direction="rtl"
|
|
|
|
|
|
|
+ <!-- <el-drawer :visible.sync="rtuImportHistoryDialog" v-if="rtuImportHistoryDialog" title="测站导入操作记录" direction="rtl"
|
|
|
size="60%" append-to-body="true">
|
|
size="60%" append-to-body="true">
|
|
|
<rtuImportHistoryView ref="rtuImportHistoryView"></rtuImportHistoryView>
|
|
<rtuImportHistoryView ref="rtuImportHistoryView"></rtuImportHistoryView>
|
|
|
</el-drawer>
|
|
</el-drawer>
|
|
@@ -56,7 +60,7 @@
|
|
|
append-to-body :v-loading="importLoading" v-if="rtuImportDialog">
|
|
append-to-body :v-loading="importLoading" v-if="rtuImportDialog">
|
|
|
<rtuImportView :importLoading="importLoading" :visible.sync="rtuImportDialog" ref="rtuImportView">
|
|
<rtuImportView :importLoading="importLoading" :visible.sync="rtuImportDialog" ref="rtuImportView">
|
|
|
</rtuImportView>
|
|
</rtuImportView>
|
|
|
- </el-dialog>
|
|
|
|
|
|
|
+ </el-dialog> -->
|
|
|
<!-- <el-dialog title="添加视频站" :visible.sync="videoSiteAddDialog" width="60%" height="60%" :close-on-click-modal="false"
|
|
<!-- <el-dialog title="添加视频站" :visible.sync="videoSiteAddDialog" width="60%" height="60%" :close-on-click-modal="false"
|
|
|
append-to-body :v-loading="importLoading" v-if="videoSiteAddDialog">
|
|
append-to-body :v-loading="importLoading" v-if="videoSiteAddDialog">
|
|
|
<videositeadd :importLoading="importLoading" :visible.sync="videoSiteAddDialog" ref="videositeadd"
|
|
<videositeadd :importLoading="importLoading" :visible.sync="videoSiteAddDialog" ref="videositeadd"
|
|
@@ -64,22 +68,49 @@
|
|
|
</videositeadd>
|
|
</videositeadd>
|
|
|
|
|
|
|
|
</el-dialog> -->
|
|
</el-dialog> -->
|
|
|
|
|
+
|
|
|
|
|
+ <el-dialog title="项目配置" :visible.sync="bindProjectDialog" v-if="bindProjectDialog" width="600px"
|
|
|
|
|
+ :before-close="handleClose" :close-on-click-modal="false" append-to-body>
|
|
|
|
|
+ <avue-form :option="bindProjectOption" v-model="bindProjectEditForm" @submit="bindProjectSubmit"
|
|
|
|
|
+ @reset-change="bindProjectReset"></avue-form>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- <el-form label-width="120px">
|
|
|
|
|
+ <el-form-item label="预警总开关">
|
|
|
|
|
+ <el-switch v-model="warningConfig.configSw" active-color="#13ce66" inactive-color="#ff4949"
|
|
|
|
|
+ active-text="开" inactive-text="关">
|
|
|
|
|
+ </el-switch>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="延时配置">
|
|
|
|
|
+ <el-input placeholder="请输入延时时长" v-model="warningConfig.delayTime">
|
|
|
|
|
+ <template slot="append">单位分钟</template>
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="">
|
|
|
|
|
+ <label>延时时长用于测站离线预警监测,当超过配置的时长时触发预警,默认2小时</label>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button @click="bindProjectDialog = false" size="small">取 消</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="bindProjectOkClick" size="small">确 定</el-button>
|
|
|
|
|
+ </span> -->
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { getPage, getDetail, add, update, remove } from "@/api/baseinfo/rtu.js";
|
|
|
|
|
-import { getTree } from "@/api/baseinfo/region.js";
|
|
|
|
|
-import { getStore } from '@/util/store.js';
|
|
|
|
|
|
|
+import { getPage, getDetail, add, update, remove, bindProject } from "@/api/baseinfo/rtu.js";
|
|
|
|
|
+import { getTree } from "@/api/baseinfo/project.js";
|
|
|
|
|
+// import { getTree } from "@/api/baseinfo/region.js";
|
|
|
|
|
+// import { getStore } from '@/util/store.js';
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
-import rtuImportHistoryView from './rtuimport.vue';
|
|
|
|
|
-import rtuImportView from './rtuImportProcess.vue';
|
|
|
|
|
-import videositeadd from './videositeadd.vue';
|
|
|
|
|
|
|
+// import rtuImportHistoryView from './rtuimport.vue';
|
|
|
|
|
+// import rtuImportView from './rtuImportProcess.vue';
|
|
|
|
|
+// import videositeadd from './videositeadd.vue';
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
- rtuImportView,
|
|
|
|
|
- rtuImportHistoryView,
|
|
|
|
|
- videositeadd
|
|
|
|
|
|
|
+ // rtuImportView,
|
|
|
|
|
+ // rtuImportHistoryView,
|
|
|
|
|
+ // videositeadd
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -98,6 +129,33 @@ export default {
|
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
|
total: 0,
|
|
total: 0,
|
|
|
},
|
|
},
|
|
|
|
|
+ bindProjectEditForm: {
|
|
|
|
|
+ id: '',
|
|
|
|
|
+ projectId: ''
|
|
|
|
|
+ },
|
|
|
|
|
+ bindProjectOption: {
|
|
|
|
|
+ column: [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '所属项目',
|
|
|
|
|
+ prop: 'projectId',
|
|
|
|
|
+ type: 'select',
|
|
|
|
|
+ span: 24,
|
|
|
|
|
+ props: {
|
|
|
|
|
+ label: 'projectName',
|
|
|
|
|
+ value: 'id'
|
|
|
|
|
+ },
|
|
|
|
|
+ dicUrl: 'api/galaxy-business/base/project/org/list',
|
|
|
|
|
+ rules: [
|
|
|
|
|
+ {
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: "请选择项目",
|
|
|
|
|
+ trigger: "click",
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ bindProjectDialog: false,
|
|
|
treeCode: '',
|
|
treeCode: '',
|
|
|
treeParentCode: '',
|
|
treeParentCode: '',
|
|
|
treeData: [],
|
|
treeData: [],
|
|
@@ -311,56 +369,65 @@ export default {
|
|
|
// prop: "manageCompany",
|
|
// prop: "manageCompany",
|
|
|
// span: 24,
|
|
// span: 24,
|
|
|
// },
|
|
// },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "所属项目",
|
|
|
|
|
+ prop: "projectName",
|
|
|
|
|
+ span: 24,
|
|
|
|
|
+ addDisplay: false,
|
|
|
|
|
+ editDisplay: false,
|
|
|
|
|
+ viewDisplay: false
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '所属项目',
|
|
|
|
|
+ prop: 'projectId',
|
|
|
|
|
+ type: 'select',
|
|
|
|
|
+ span: 24,
|
|
|
|
|
+ props: {
|
|
|
|
|
+ label: 'projectName',
|
|
|
|
|
+ value: 'id'
|
|
|
|
|
+ },
|
|
|
|
|
+ dicUrl: 'api/galaxy-business/base/project/org/list',
|
|
|
|
|
+ rules: [
|
|
|
|
|
+ {
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: "请选择项目",
|
|
|
|
|
+ trigger: "click",
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ hide: true,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
label: "经度",
|
|
label: "经度",
|
|
|
prop: "lng",
|
|
prop: "lng",
|
|
|
- span: 12,
|
|
|
|
|
- // hide: true,
|
|
|
|
|
|
|
+ span: 24,
|
|
|
|
|
+ hide: true,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "纬度",
|
|
label: "纬度",
|
|
|
prop: "lat",
|
|
prop: "lat",
|
|
|
- span: 12,
|
|
|
|
|
- // hide: true,
|
|
|
|
|
|
|
+ span: 24,
|
|
|
|
|
+ hide: true,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "测站位置",
|
|
label: "测站位置",
|
|
|
prop: "locationDesc",
|
|
prop: "locationDesc",
|
|
|
span: 24,
|
|
span: 24,
|
|
|
- overHidden: true,
|
|
|
|
|
- // hide: true,
|
|
|
|
|
|
|
+ hide: true,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "行政区划编码",
|
|
label: "行政区划编码",
|
|
|
prop: "adCode",
|
|
prop: "adCode",
|
|
|
span: 24,
|
|
span: 24,
|
|
|
-
|
|
|
|
|
tip: "请录入县级行政区划编码",
|
|
tip: "请录入县级行政区划编码",
|
|
|
- rules: [
|
|
|
|
|
- {
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: "请录入县级行政区划编码",
|
|
|
|
|
- trigger: "click",
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "证照编号",
|
|
label: "证照编号",
|
|
|
prop: "siteCertId",
|
|
prop: "siteCertId",
|
|
|
span: 24,
|
|
span: 24,
|
|
|
-
|
|
|
|
|
- rules: [
|
|
|
|
|
- {
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: "请录入证照编号",
|
|
|
|
|
- trigger: "click",
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '站点建设来源类型',
|
|
label: '站点建设来源类型',
|
|
|
prop: 'siteOwner',
|
|
prop: 'siteOwner',
|
|
|
-
|
|
|
|
|
type: 'select',
|
|
type: 'select',
|
|
|
props: {
|
|
props: {
|
|
|
label: 'name',
|
|
label: 'name',
|
|
@@ -377,13 +444,6 @@ export default {
|
|
|
name: '中央专项资金',
|
|
name: '中央专项资金',
|
|
|
code: '3'
|
|
code: '3'
|
|
|
}],
|
|
}],
|
|
|
- rules: [
|
|
|
|
|
- {
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: "请选择数据来源类型",
|
|
|
|
|
- trigger: "click",
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
}, {
|
|
}, {
|
|
|
label: '是否同步到金水',
|
|
label: '是否同步到金水',
|
|
|
prop: 'dataShareActive',
|
|
prop: 'dataShareActive',
|
|
@@ -401,13 +461,6 @@ export default {
|
|
|
name: '同步',
|
|
name: '同步',
|
|
|
code: 2
|
|
code: 2
|
|
|
}],
|
|
}],
|
|
|
- rules: [
|
|
|
|
|
- {
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: "请选择是否同步",
|
|
|
|
|
- trigger: "click",
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// {
|
|
// {
|
|
@@ -614,36 +667,36 @@ export default {
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapGetters(["userInfo", "permission"]),
|
|
...mapGetters(["userInfo", "permission"]),
|
|
|
permissionList() {
|
|
permissionList() {
|
|
|
- if (this.post_code == '0') {
|
|
|
|
|
- return {
|
|
|
|
|
- addBtn: this.vaildData(this.permission.rtu_add, false),
|
|
|
|
|
- viewBtn: this.vaildData(this.permission.rtu_view, false),
|
|
|
|
|
- delBtn: this.vaildData(this.permission.rtu_del, false),
|
|
|
|
|
- editBtn: this.vaildData(this.permission.rtu_edit, false),
|
|
|
|
|
- importBtn: this.vaildData(this.permission.rtu_import, false),
|
|
|
|
|
- videoSiteAdd: this.vaildData(this.permission.video_site_add, false),
|
|
|
|
|
- };
|
|
|
|
|
- } else {
|
|
|
|
|
- return {
|
|
|
|
|
- addBtn: false,
|
|
|
|
|
- viewBtn: true,
|
|
|
|
|
- delBtn: false,
|
|
|
|
|
- editBtn: false,
|
|
|
|
|
- importBtn: false,
|
|
|
|
|
- videoSiteAdd: false
|
|
|
|
|
- };
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (this.post_code == '0') {
|
|
|
|
|
+ // return {
|
|
|
|
|
+ // addBtn: this.vaildData(this.permission.rtu_add, false),
|
|
|
|
|
+ // viewBtn: this.vaildData(this.permission.rtu_view, false),
|
|
|
|
|
+ // delBtn: this.vaildData(this.permission.rtu_del, false),
|
|
|
|
|
+ // editBtn: this.vaildData(this.permission.rtu_edit, false),
|
|
|
|
|
+ // importBtn: this.vaildData(this.permission.rtu_import, false),
|
|
|
|
|
+ // videoSiteAdd: this.vaildData(this.permission.video_site_add, false),
|
|
|
|
|
+ // };
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ return {
|
|
|
|
|
+ // addBtn: false,
|
|
|
|
|
+ // viewBtn: true,
|
|
|
|
|
+ // delBtn: false,
|
|
|
|
|
+ // editBtn: false,
|
|
|
|
|
+ // importBtn: false,
|
|
|
|
|
+ // videoSiteAdd: false
|
|
|
|
|
+ };
|
|
|
|
|
+ // }
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
- let u = getStore({ name: 'userInfo' });
|
|
|
|
|
- console.log(JSON.stringify(u));
|
|
|
|
|
- if (u.post_id == this.website.nm_post_code_sysadmin_id) {
|
|
|
|
|
- this.post_code = this.website.nm_post_code_sysadmin_code;
|
|
|
|
|
- } else if (u.post_id == this.website.nm_post_code_office_personnel_id) {
|
|
|
|
|
- this.post_code = this.website.nm_post_code_office_personnel_code;
|
|
|
|
|
- }
|
|
|
|
|
- // this.initTree();
|
|
|
|
|
|
|
+ // let u = getStore({ name: 'userInfo' });
|
|
|
|
|
+ // console.log(JSON.stringify(u));
|
|
|
|
|
+ // if (u.post_id == this.website.nm_post_code_sysadmin_id) {
|
|
|
|
|
+ // this.post_code = this.website.nm_post_code_sysadmin_code;
|
|
|
|
|
+ // } else if (u.post_id == this.website.nm_post_code_office_personnel_id) {
|
|
|
|
|
+ // this.post_code = this.website.nm_post_code_office_personnel_code;
|
|
|
|
|
+ // }
|
|
|
|
|
+ this.initTree();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
initTree() {
|
|
initTree() {
|
|
@@ -662,39 +715,70 @@ export default {
|
|
|
update_table() {
|
|
update_table() {
|
|
|
this.onLoad(this.page, this.query);
|
|
this.onLoad(this.page, this.query);
|
|
|
},
|
|
},
|
|
|
- toRtuImpoartHandler() {
|
|
|
|
|
- this.rtuImportDialog = true;
|
|
|
|
|
|
|
+ toBindProject(row) {
|
|
|
|
|
+ this.bindProjectDialog = true;
|
|
|
|
|
+ this.bindProjectEditForm.id = row.id;
|
|
|
|
|
+ this.bindProjectEditForm.projectId = row.projectId;
|
|
|
},
|
|
},
|
|
|
- toRtuImportHistoryHandler() {
|
|
|
|
|
- this.rtuImportHistoryDialog = true;
|
|
|
|
|
- },
|
|
|
|
|
- toAddVideoSite() {
|
|
|
|
|
- this.videoSiteAddDialog = true;
|
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
|
- this.$refs["videositeadd"].init();
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ bindProjectSubmit(form, done) {
|
|
|
|
|
+ console.log(JSON.stringify(form))
|
|
|
|
|
+ // this.$message({
|
|
|
|
|
+ // type: "success",
|
|
|
|
|
+ // message: JSON.stringify(form),
|
|
|
|
|
+ // });
|
|
|
|
|
+ bindProject(form).then(
|
|
|
|
|
+ () => {
|
|
|
|
|
+ this.onLoad(this.page);
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: "success",
|
|
|
|
|
+ message: "操作成功!",
|
|
|
|
|
+ });
|
|
|
|
|
+ this.bindProjectDialog = false;
|
|
|
|
|
+ done();
|
|
|
|
|
+ },
|
|
|
|
|
+ (error) => {
|
|
|
|
|
+ window.console.log(error);
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
- downloadTemplate() {
|
|
|
|
|
- window.open('/file/download/template/站点信息记录表模板.xlsx')
|
|
|
|
|
|
|
+ bindProjectReset() {
|
|
|
|
|
+ this.bindProjectEditForm.id = '';
|
|
|
|
|
+ this.bindProjectEditForm.projectId = '';
|
|
|
},
|
|
},
|
|
|
|
|
+ // toRtuImpoartHandler() {
|
|
|
|
|
+ // this.rtuImportDialog = true;
|
|
|
|
|
+ // },
|
|
|
|
|
+ // toRtuImportHistoryHandler() {
|
|
|
|
|
+ // this.rtuImportHistoryDialog = true;
|
|
|
|
|
+ // },
|
|
|
|
|
+ // toAddVideoSite() {
|
|
|
|
|
+ // this.videoSiteAddDialog = true;
|
|
|
|
|
+ // this.$nextTick(() => {
|
|
|
|
|
+ // this.$refs["videositeadd"].init();
|
|
|
|
|
+ // });
|
|
|
|
|
+ // },
|
|
|
|
|
+ // downloadTemplate() {
|
|
|
|
|
+ // window.open('/file/download/template/站点信息记录表模板.xlsx')
|
|
|
|
|
+ // },
|
|
|
nodeClick(data) {
|
|
nodeClick(data) {
|
|
|
this.treeCode = data.id;
|
|
this.treeCode = data.id;
|
|
|
this.treeParentCode = data.parentId;
|
|
this.treeParentCode = data.parentId;
|
|
|
this.query = {};
|
|
this.query = {};
|
|
|
- this.query['adCode'] = this.treeCode;
|
|
|
|
|
|
|
+ this.query['projectId'] = this.treeCode;
|
|
|
this.page.currentPage = 1;
|
|
this.page.currentPage = 1;
|
|
|
var params = {};
|
|
var params = {};
|
|
|
this.onLoad(this.page, params);
|
|
this.onLoad(this.page, params);
|
|
|
},
|
|
},
|
|
|
searchReset() {
|
|
searchReset() {
|
|
|
this.query = {};
|
|
this.query = {};
|
|
|
- this.query['adCode'] = this.treeCode;
|
|
|
|
|
|
|
+ this.query['projectId'] = this.treeCode;
|
|
|
this.page.currentPage = 1;
|
|
this.page.currentPage = 1;
|
|
|
this.onLoad(this.page);
|
|
this.onLoad(this.page);
|
|
|
},
|
|
},
|
|
|
searchChange(params, done) {
|
|
searchChange(params, done) {
|
|
|
this.query = params;
|
|
this.query = params;
|
|
|
- this.query['adCode'] = this.treeCode;
|
|
|
|
|
|
|
+ this.query['projectId'] = this.treeCode;
|
|
|
this.page.currentPage = 1;
|
|
this.page.currentPage = 1;
|
|
|
this.onLoad(this.page, params);
|
|
this.onLoad(this.page, params);
|
|
|
done();
|
|
done();
|