|
@@ -215,6 +215,8 @@ onMounted(() => {
|
|
|
}
|
|
|
|
|
|
getSearchNodeTables()
|
|
|
+ getSearchNodeTablesall(1)
|
|
|
+ getSearchNodeTablesall(2)
|
|
|
getCategoryData()
|
|
|
})
|
|
|
|
|
@@ -276,6 +278,8 @@ const listItemBaseData = ref({
|
|
|
const isLoading = ref(false)
|
|
|
const listItemData = ref([])
|
|
|
const listDeviceUseIds=ref('')
|
|
|
+const reportData=ref([])
|
|
|
+const testData=ref([])
|
|
|
const getSearchNodeTables = async () => {
|
|
|
isLoading.value = true
|
|
|
if(isaddType){
|
|
@@ -316,6 +320,38 @@ const getSearchNodeTables = async () => {
|
|
|
}
|
|
|
|
|
|
|
|
|
+}
|
|
|
+const getSearchNodeTablesall = async (type) => {
|
|
|
+
|
|
|
+ const { error, code, data } = await dataApi.searchNodeTables({
|
|
|
+ id: dataId,
|
|
|
+ projectId: projectId.value,
|
|
|
+ contractId: contractId.value,
|
|
|
+ primaryKeyId: nodeId,
|
|
|
+ type: authBtnTabKey.value,
|
|
|
+ tableType: type,
|
|
|
+ isAdd: 1
|
|
|
+ })
|
|
|
+ //处理数据
|
|
|
+ isLoading.value = false
|
|
|
+ if (!error && code === 200) {
|
|
|
+ // listItemData.value = getArrValue(data)
|
|
|
+ if(type==1){
|
|
|
+ testData.value= getArrValue(data)
|
|
|
+ }else{
|
|
|
+ reportData.value= getArrValue(data)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ // listItemData.value = []
|
|
|
+ if(type==1){
|
|
|
+ testData.value= []
|
|
|
+ }else{
|
|
|
+ reportData.value= []
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
//获取数据
|
|
|
const getTableDataAll = () => {
|
|
@@ -668,6 +704,9 @@ const linksSampleModalClose = () => {
|
|
|
const tableFormSaveLoading = ref(false)
|
|
|
const tableFormSaveClick = async () => {
|
|
|
console.log(listItemBaseData.value,'.listItemBaseData.value');
|
|
|
+ console.log(isaddType,'isaddType');
|
|
|
+ //false是编辑
|
|
|
+ //编辑要传记录和报告单
|
|
|
if(checkrelationString.value.length>0){
|
|
|
listItemBaseData.value.projectPosition=checkrelationString.value
|
|
|
}
|