|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="hc-page-box">
|
|
<div class="hc-page-box">
|
|
- <HcTabCard :tabs="authBtnTabdata" :tab-key="authBtnTabKey" :disabled="router.currentRoute.value.query?.id && router.currentRoute.value.query?.id.length > 0 || newId.length > 0" @change="authBtnTabClick">
|
|
|
|
|
|
+ <HcTabCard :tabs="authBtnTabdata" :tab-key="authBtnTabKey" :disabled="router.currentRoute.value.query?.id && router.currentRoute.value.query?.id.length > 0 || newId?.length > 0" @change="authBtnTabClick">
|
|
<template #extra>
|
|
<template #extra>
|
|
<el-button hc-btn type="info" @click="toBackClick">返回</el-button>
|
|
<el-button hc-btn type="info" @click="toBackClick">返回</el-button>
|
|
<el-button
|
|
<el-button
|
|
@@ -70,6 +70,7 @@
|
|
:node-idvalue="nodeIdvalue"
|
|
:node-idvalue="nodeIdvalue"
|
|
:status="1"
|
|
:status="1"
|
|
:tab-type-key="tabTypeKey"
|
|
:tab-type-key="tabTypeKey"
|
|
|
|
+ :newlistdata="newlistdata"
|
|
@chageorinData="chageorinData"
|
|
@chageorinData="chageorinData"
|
|
@changeIscanclick="changeIscanclick"
|
|
@changeIscanclick="changeIscanclick"
|
|
@changesdate="changeorinsdate"
|
|
@changesdate="changeorinsdate"
|
|
@@ -78,6 +79,7 @@
|
|
@renew="getTableDataAll"
|
|
@renew="getTableDataAll"
|
|
@upcheckTableId="upcheckTableId"
|
|
@upcheckTableId="upcheckTableId"
|
|
@updeviceUseIds="updeviceUseIds"
|
|
@updeviceUseIds="updeviceUseIds"
|
|
|
|
+ @getList="searchNodeAllTable1"
|
|
/>
|
|
/>
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
<HcStatus v-else v-loading="isLoadList" text="暂无表单" />
|
|
<HcStatus v-else v-loading="isLoadList" text="暂无表单" />
|
|
@@ -217,7 +219,7 @@ import divisionApi from '~api/data-fill/division'
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
import TestTree from '../material/components/TestTree.vue'
|
|
import TestTree from '../material/components/TestTree.vue'
|
|
import TestTreeMaterial from '../material/components/TestTreeMaterial.vue'
|
|
import TestTreeMaterial from '../material/components/TestTreeMaterial.vue'
|
|
-import { arrToId, getArrValue, getObjValue, isNullES, isString } from 'js-fast-way'
|
|
|
|
|
|
+import { arrIndex, arrToId, getArrValue, getObjValue, isNullES, isString } from 'js-fast-way'
|
|
import { getDictionary } from '~api/other'
|
|
import { getDictionary } from '~api/other'
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
import { eVisaTaskCheckApi } from '~api/other'
|
|
import { eVisaTaskCheckApi } from '~api/other'
|
|
@@ -510,7 +512,7 @@ const changeorinsdate = async (pKeyId, isBussShow, id) => {
|
|
|
|
|
|
}
|
|
}
|
|
//复制本表改变原始数据
|
|
//复制本表改变原始数据
|
|
-const chageorinData = () => {
|
|
|
|
|
|
+const chageorinData = async () => {
|
|
getSearchNodeTablesall(1)
|
|
getSearchNodeTablesall(1)
|
|
getSearchNodeTablesall(2)
|
|
getSearchNodeTablesall(2)
|
|
}
|
|
}
|
|
@@ -996,6 +998,7 @@ const tableFormSaveClick = async () => {
|
|
listItemBaseData.value.id = newId.value
|
|
listItemBaseData.value.id = newId.value
|
|
}
|
|
}
|
|
if (isaddType) { //新增
|
|
if (isaddType) { //新增
|
|
|
|
+ console.log( alllistData.value, ' alllistData.value222222')
|
|
if (setTypes.length > 1) {
|
|
if (setTypes.length > 1) {
|
|
FormData = alllistData.value
|
|
FormData = alllistData.value
|
|
listItemBaseData.value.tableType = '1,2'
|
|
listItemBaseData.value.tableType = '1,2'
|
|
@@ -1456,6 +1459,31 @@ const treeLoadNode = async ({ node, item, level }, resolve) => {
|
|
checkrelationId.value = getArrValue(data['isSelectedStatus'])
|
|
checkrelationId.value = getArrValue(data['isSelectedStatus'])
|
|
resolve(getArrValue(data))
|
|
resolve(getArrValue(data))
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+const newlistdata = ref([])
|
|
|
|
+const searchNodeAllTable1 = async (newaddId) => {
|
|
|
|
+ console.log(newaddId, 'newaddId')
|
|
|
|
+ console.log('重新获取表单列表')
|
|
|
|
+
|
|
|
|
+ const { error, code, data } = await dataApi.searchNodeTables({
|
|
|
|
+
|
|
|
|
+ projectId: projectId.value,
|
|
|
|
+ contractId: contractId.value,
|
|
|
|
+ primaryKeyId: nodeId,
|
|
|
|
+ type: authBtnTabKey.value,
|
|
|
|
+ tableType: tabTypeKey.value,
|
|
|
|
+ isAdd: 1,
|
|
|
|
+ })
|
|
|
|
+ //处理数据
|
|
|
|
+
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
+ newlistdata.value = getArrValue(data)
|
|
|
|
+ } else {
|
|
|
|
+ newlistdata.value = []
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|