|
@@ -317,7 +317,7 @@
|
|
|
<div class="header-new-switch">
|
|
|
<el-form ref="formCopyNodeModelRef" :model="formCopyNodeModel" label-position="left"
|
|
|
:rules="formCopyNodeModelRules" label-width="auto" size="large">
|
|
|
- <el-form-item label="是否复制数据" prop="isCopyData" style="margin-bottom: 0;" v-if="copyNodeTabKey === '2'">
|
|
|
+ <el-form-item label="是否复制数据" prop="isCopyData" style="margin-bottom: 0;" >
|
|
|
<!-- <el-input v-model="formCopyNodeModel.classify" placeholder="请输入节点名称"/> -->
|
|
|
<el-radio-group v-model="isCopyData">
|
|
|
<el-radio :label="1">是</el-radio>
|
|
@@ -1201,7 +1201,7 @@ const editNodeClick = async () => {
|
|
|
const copyNodeModal = ref(false)
|
|
|
|
|
|
//复制节点类型tab数据和相关处理
|
|
|
-const copyNodeTabKey = ref('1')
|
|
|
+const copyNodeTabKey = ref('')
|
|
|
const copyNodeTab = ref([
|
|
|
{key: '1', name: '单份复制'},
|
|
|
{key: '2', name: '多份复制'},
|
|
@@ -1255,14 +1255,14 @@ const copyNodeElTreeClick = ({data,node}) => {
|
|
|
if (type === 1 && data['type'] === 1) {
|
|
|
setCopyNodeTable(data, title, partitionCode)
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}else{
|
|
|
window?.$message?.warning('该节点已存在上报数据,不允许复制')
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
} else if (TabKey === '3') {
|
|
|
console.log(1111111);
|
|
|
setCopyNodeTable(data, data?.title)
|
|
@@ -1381,7 +1381,8 @@ const copyContractTreeNode = async (type, form, table, classify) => {
|
|
|
needCopyPrimaryKeyId: form?.primaryKeyId || '',
|
|
|
parentPrimaryKeyId: form?.parent?.primaryKeyId || '',
|
|
|
copyBatchToPaths: table,
|
|
|
- classifyType: classify
|
|
|
+ classifyType: classify,
|
|
|
+ isCopyData:isCopyData.value
|
|
|
})
|
|
|
//判断状态
|
|
|
copyNodeLoading.value = false
|