提交: 监控大屏将 行政区划id 改成 label 字段模糊查询
This commit is contained in:
parent
09df859f8e
commit
16c7f5ab7c
|
@ -17,7 +17,7 @@
|
||||||
:projectList="projectList"
|
:projectList="projectList"
|
||||||
@eventFullscreen="eventFullscreen"
|
@eventFullscreen="eventFullscreen"
|
||||||
@eventProjectId="eventProjectId"
|
@eventProjectId="eventProjectId"
|
||||||
@eventRegionalismId="eventRegionalismId"
|
@eventRegionalism="eventRegionalism"
|
||||||
/>
|
/>
|
||||||
<div class="count-wrap">
|
<div class="count-wrap">
|
||||||
<div class="count-left">
|
<div class="count-left">
|
||||||
|
@ -171,6 +171,7 @@ export default {
|
||||||
projectList: [],
|
projectList: [],
|
||||||
projectId: null,
|
projectId: null,
|
||||||
regionalismId: null,
|
regionalismId: null,
|
||||||
|
regionalismLabel: '',
|
||||||
fullscreen: false,
|
fullscreen: false,
|
||||||
thisScrollTopY: 0,
|
thisScrollTopY: 0,
|
||||||
userLoginType: "",
|
userLoginType: "",
|
||||||
|
@ -311,8 +312,9 @@ export default {
|
||||||
this.closeWebscoket();
|
this.closeWebscoket();
|
||||||
this.connection();
|
this.connection();
|
||||||
},
|
},
|
||||||
eventRegionalismId(data) {
|
eventRegionalism(data) {
|
||||||
this.regionalismId = data;
|
// this.regionalismId = data;
|
||||||
|
this.regionalismLabel = data.label;
|
||||||
this.getProjectList();
|
this.getProjectList();
|
||||||
},
|
},
|
||||||
resize_window() {
|
resize_window() {
|
||||||
|
@ -338,7 +340,8 @@ export default {
|
||||||
getProjectList() {
|
getProjectList() {
|
||||||
if (this.$store.getters.userType !== "PERSONAL") {
|
if (this.$store.getters.userType !== "PERSONAL") {
|
||||||
bigScreenProjectList({
|
bigScreenProjectList({
|
||||||
regionalismId: this.regionalismId,
|
// regionalismId: this.regionalismId,
|
||||||
|
projectAddress: this.regionalismLabel
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
this.projectList = response.data;
|
this.projectList = response.data;
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
<treeselect
|
<treeselect
|
||||||
class="tree-select-wrap"
|
class="tree-select-wrap"
|
||||||
v-model="treeValue"
|
v-model="treeValue"
|
||||||
|
@select="handleTreeChange"
|
||||||
:options="treeList"
|
:options="treeList"
|
||||||
placeholder="全国"
|
placeholder="全国"
|
||||||
v-show="tempUserType !== 'PERSONAL'"
|
v-show="tempUserType !== 'PERSONAL'"
|
||||||
|
@ -78,10 +79,14 @@ export default {
|
||||||
this.$emit("eventProjectId", val);
|
this.$emit("eventProjectId", val);
|
||||||
},
|
},
|
||||||
treeValue(val) {
|
treeValue(val) {
|
||||||
this.$emit("eventRegionalismId", val);
|
// this.$emit("eventRegionalismId", val);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleTreeChange(e, v) {
|
||||||
|
console.log('handleTreeChange--', e);
|
||||||
|
this.$emit("eventRegionalism", e);
|
||||||
|
},
|
||||||
// 退出大屏 默认进入项目首页
|
// 退出大屏 默认进入项目首页
|
||||||
signOut() {
|
signOut() {
|
||||||
this.$router.push("/");
|
this.$router.push("/");
|
||||||
|
|
Loading…
Reference in New Issue