|
@@ -358,6 +358,7 @@ const alllistData = ref([])
|
|
|
const orgAlllistData = ref([])
|
|
|
const getSearchNodeTables = async (newaddId) => {
|
|
|
isLoading.value = true
|
|
|
+ const isid=dataId.length > 0 ? dataId : nodeIdvalue.value||newaddId||''
|
|
|
if (isaddType) {
|
|
|
const {error, code, data} = await dataApi.searchNodeTables({
|
|
|
id: dataId.length > 0 ? dataId : nodeIdvalue.value||newaddId,
|
|
@@ -366,7 +367,8 @@ const getSearchNodeTables = async (newaddId) => {
|
|
|
primaryKeyId: nodeId,
|
|
|
type: authBtnTabKey.value,
|
|
|
tableType: tabTypeKey.value,
|
|
|
- isAdd: 1
|
|
|
+ // isAdd: 1
|
|
|
+ isAdd: isid.length>0?'':1
|
|
|
})
|
|
|
//处理数据
|
|
|
isLoading.value = false
|
|
@@ -414,6 +416,8 @@ const getSearchNodeTables = async (newaddId) => {
|
|
|
}
|
|
|
const getSearchNodeTablesall = async (type,newaddId) => {
|
|
|
orgAlllistData.value = []
|
|
|
+ const isid=dataId.length > 0 ? dataId : nodeIdvalue.value||newaddId||''
|
|
|
+ console.log(isid,'isid');
|
|
|
const {error, code, data} = await dataApi.searchNodeTables({
|
|
|
id: dataId.length > 0 ? dataId : nodeIdvalue.value||newaddId,
|
|
|
projectId: projectId.value,
|
|
@@ -422,7 +426,9 @@ const getSearchNodeTablesall = async (type,newaddId) => {
|
|
|
type: authBtnTabKey.value,
|
|
|
tableType: type,
|
|
|
// isAdd: 1
|
|
|
- isAdd: isaddType ? 1 : ''
|
|
|
+ // isAdd: isaddType ? 1 : ''
|
|
|
+ isAdd: isid.length>0?'':1
|
|
|
+
|
|
|
})
|
|
|
//处理数据
|
|
|
isLoading.value = false
|