|
@@ -34,7 +34,9 @@ function confirmClick() {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-const startGroup = async (nodes: any[], routeId: string) => {
|
|
|
+const stateUsable = ref(null);
|
|
|
+const startGroup = async (nodes: any[], routeId: string, usable: any) => {
|
|
|
+ stateUsable.value = usable;
|
|
|
nodesData.value = markRaw(nodes);
|
|
|
if(nodesData.value){
|
|
|
try{
|
|
@@ -62,6 +64,7 @@ defineExpose({
|
|
|
});
|
|
|
|
|
|
import type { CheckboxValueType } from "element-plus";
|
|
|
+import {number} from "echarts";
|
|
|
|
|
|
const checkAll = ref(false);
|
|
|
const indeterminate = ref(false);
|
|
@@ -144,13 +147,14 @@ const changeChecked = (key: string) => {
|
|
|
<div v-for="key in new Map(Object.entries(groupData)).keys()" :key="key">
|
|
|
<div class="name-container">
|
|
|
<div class="group-name">{{ key }}</div>
|
|
|
- <el-button link type="danger" @click="() => delete groupData[key]"
|
|
|
+ <el-button v-if="stateUsable === '0'" link type="danger" @click="() => delete groupData[key]"
|
|
|
>删除</el-button
|
|
|
>
|
|
|
</div>
|
|
|
|
|
|
<el-select
|
|
|
v-model="groupData[key]"
|
|
|
+ :disabled="stateUsable === '1'"
|
|
|
multiple
|
|
|
clearable
|
|
|
filterable
|