|
@@ -38,6 +38,7 @@
|
|
|
:group="{ name: 'people', pull: 'clone', put: false }"
|
|
|
:sort="false"
|
|
|
:clone="clone"
|
|
|
+ :disabled="!editStauts"
|
|
|
>
|
|
|
<div
|
|
|
class="childItem"
|
|
@@ -61,6 +62,7 @@
|
|
|
@update="onUpdate"
|
|
|
style="min-width: 400px"
|
|
|
@add="onClone"
|
|
|
+ :disabled="!editStauts"
|
|
|
>
|
|
|
<div
|
|
|
v-for="(item, index) in list2"
|
|
@@ -73,7 +75,11 @@
|
|
|
{{ item?.operationVO?.operationName }}
|
|
|
</div>
|
|
|
<div>
|
|
|
- <Delete class="flowDelete" @click.stop="clickDelete(index)" />
|
|
|
+ <Delete
|
|
|
+ v-if="editStauts"
|
|
|
+ class="flowDelete"
|
|
|
+ @click.stop="clickDelete(index)"
|
|
|
+ />
|
|
|
</div>
|
|
|
<Bottom class="arrow" v-show="index < list2.length - 1" />
|
|
|
</div>
|
|
@@ -126,10 +132,9 @@ import {
|
|
|
import { v4 as uuidv4 } from "uuid";
|
|
|
import { formOption } from "./bindConfig";
|
|
|
import { ElMessage } from "element-plus";
|
|
|
-
|
|
|
+const editStauts = ref(false);
|
|
|
const router = useRouter();
|
|
|
const route = useRoute();
|
|
|
-
|
|
|
// 数据字典相关
|
|
|
const { dicts } = useDictionaryStore();
|
|
|
|
|
@@ -255,10 +260,14 @@ const editProComponent = async () => {
|
|
|
};
|
|
|
|
|
|
// 全局=======
|
|
|
-
|
|
|
onMounted(() => {
|
|
|
loadTreeData();
|
|
|
loadProcessesFlow();
|
|
|
+ if (route.query.usable == 1) {
|
|
|
+ editStauts.value = false;
|
|
|
+ } else {
|
|
|
+ editStauts.value = true;
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
const getNameByDictType = (dictValue) => {
|