|
@@ -298,6 +298,11 @@ const props = defineProps({
|
|
|
type: String,
|
|
|
default: "",
|
|
|
},
|
|
|
+ type: {
|
|
|
+ type: [String, Number],
|
|
|
+
|
|
|
+ default: "1", //私有wbs为0,公共wbs为1
|
|
|
+ },
|
|
|
});
|
|
|
//事件
|
|
|
const emit = defineEmits(["close"]);
|
|
@@ -325,6 +330,7 @@ const tableId = ref(props.tableId);
|
|
|
const initTableName = ref(props.initTableName);
|
|
|
const initTableId = ref(props.initTableId);
|
|
|
const eKey = ref(props.eKey);
|
|
|
+const type = ref(props.type);
|
|
|
//监听数据
|
|
|
watch(
|
|
|
() => [
|
|
@@ -337,8 +343,9 @@ watch(
|
|
|
props.initTableName,
|
|
|
props.initTableId,
|
|
|
props.eKey,
|
|
|
+ props.type,
|
|
|
],
|
|
|
- ([own, table, wbsid, nodeInfo, til, tid, tname, itid, ekey]) => {
|
|
|
+ ([own, table, wbsid, nodeInfo, til, tid, tname, itid, ekey, tpe]) => {
|
|
|
ownerTypeList.value = own;
|
|
|
tableTypelist.value = table;
|
|
|
wbsId.value = wbsid;
|
|
@@ -348,6 +355,7 @@ watch(
|
|
|
initTableName.value = tname;
|
|
|
initTableId.value = itid;
|
|
|
eKey.value = ekey;
|
|
|
+ type.value = tpe;
|
|
|
},
|
|
|
{ deep: true }
|
|
|
);
|
|
@@ -422,7 +430,7 @@ const getEditEleList = async () => {
|
|
|
const { data } = await mainApi.getTableElements({
|
|
|
id: tableId.value,
|
|
|
search: "",
|
|
|
- type: 1,
|
|
|
+ type: type.value,
|
|
|
});
|
|
|
editEleList.value = getArrValue(data);
|
|
|
const eleReg = /(-|>|<|≥|≤|±|【】)?([^≥≤±【】]*)/;
|