|
@@ -248,14 +248,28 @@ const listItemData = ref([])
|
|
|
const listDeviceUseIds=ref('')
|
|
|
const getSearchNodeTables = async () => {
|
|
|
isLoading.value = true
|
|
|
- const { error, code, data } = await dataApi.searchNodeTables({
|
|
|
- id: dataId,
|
|
|
- projectId: projectId.value,
|
|
|
- contractId: contractId.value,
|
|
|
- primaryKeyId: nodeId,
|
|
|
- type: authBtnTabKey.value,
|
|
|
- tableType: tabTypeKey.value
|
|
|
- })
|
|
|
+ if(isaddType){
|
|
|
+ const { error, code, data } = await dataApi.searchNodeTables({
|
|
|
+ id: dataId,
|
|
|
+ projectId: projectId.value,
|
|
|
+ contractId: contractId.value,
|
|
|
+ primaryKeyId: nodeId,
|
|
|
+ type: authBtnTabKey.value,
|
|
|
+ tableType: tabTypeKey.value,
|
|
|
+ isAdd: 1
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ const { error, code, data } = await dataApi.searchNodeTables({
|
|
|
+ id: dataId,
|
|
|
+ projectId: projectId.value,
|
|
|
+ contractId: contractId.value,
|
|
|
+ primaryKeyId: nodeId,
|
|
|
+ type: authBtnTabKey.value,
|
|
|
+ tableType: tabTypeKey.value,
|
|
|
+
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
//处理数据
|
|
|
isLoading.value = false
|
|
|
if (!error && code === 200) {
|