|
@@ -283,6 +283,7 @@ import generalizationList from "./components/generalizationList";
|
|
import generalizationDetail from "./components/generalizationDetail";
|
|
import generalizationDetail from "./components/generalizationDetail";
|
|
// import viewTree from "./components/elTree";
|
|
// import viewTree from "./components/elTree";
|
|
import templateView from "./components/templateView";
|
|
import templateView from "./components/templateView";
|
|
|
|
+import { mapState } from "vuex";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "scenePacketList", // 场景数据包
|
|
name: "scenePacketList", // 场景数据包
|
|
@@ -457,7 +458,7 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
|
|
- computed: {},
|
|
|
|
|
|
+ computed: { ...mapState(["roleCode"]) },
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
viewTree() {
|
|
viewTree() {
|
|
@@ -933,11 +934,13 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- if (element.sceneNum > this.maxSceneCount) {
|
|
|
|
- this.$message.error(
|
|
|
|
- `场景数量不能超过${this.maxSceneCount}`
|
|
|
|
- );
|
|
|
|
- return;
|
|
|
|
|
|
+ if (this.roleCode != "0" && this.roleCode != "1") {
|
|
|
|
+ if (element.sceneNum > this.maxSceneCount) {
|
|
|
|
+ this.$message.error(
|
|
|
|
+ `场景数量不能超过${this.maxSceneCount}`
|
|
|
|
+ );
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
if (element.children && element.children.length > 0) {
|
|
if (element.children && element.children.length > 0) {
|
|
@@ -1059,7 +1062,10 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
this.getRuleList();
|
|
this.getRuleList();
|
|
- this.getCount();
|
|
|
|
|
|
+
|
|
|
|
+ if (this.roleCode != "0" && this.roleCode != "1") {
|
|
|
|
+ this.getCount();
|
|
|
|
+ }
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|