修改数据集新增,移动没有appIdbug
This commit is contained in:
parent
4499acab93
commit
08e428f5c3
@ -42,7 +42,7 @@ const state = reactive({
|
||||
const placeholder = ref('')
|
||||
const nodeType = ref()
|
||||
const pid = ref()
|
||||
const appId = ref()
|
||||
const appId:any = ref("")
|
||||
const id = ref()
|
||||
const cmd = ref('')
|
||||
const treeRef = ref()
|
||||
@ -154,7 +154,7 @@ const createInit = (type, data: Tree, exec, name: string) => {
|
||||
datasetForm.name = ''
|
||||
filterText.value = ''
|
||||
nodeType.value = type
|
||||
if(type === 'folder' && data !=null && data.appId !=null){
|
||||
if(data !=null && data.appId !=null){
|
||||
appId.value = data.appId
|
||||
}
|
||||
placeholder.value =
|
||||
@ -164,7 +164,7 @@ const createInit = (type, data: Tree, exec, name: string) => {
|
||||
allfields = data.allfields
|
||||
}
|
||||
if (data.id) {
|
||||
const request = { leaf: false, weight: 7 } as BusiTreeRequest
|
||||
const request = { leaf: false, weight: 7,appId: data.appId } as BusiTreeRequest
|
||||
getDatasetTree(request).then(res => {
|
||||
filterFreeFolder(res, 'dataset')
|
||||
dfs(res as unknown as Tree[])
|
||||
@ -254,7 +254,6 @@ const saveDataset = () => {
|
||||
name: datasetForm.name,
|
||||
appId: appId.value
|
||||
}
|
||||
|
||||
switch (cmd.value) {
|
||||
case 'move':
|
||||
params.pid = activeAll.value ? '0' : (datasetForm.pid as string)
|
||||
|
@ -1409,7 +1409,7 @@ const datasetSave = () => {
|
||||
|
||||
creatDsFolder.value.createInit(
|
||||
'dataset',
|
||||
{ id: pid || '0', union, allfields: allfields.value },
|
||||
{ id: pid || '0', union,appId:appId.value, allfields: allfields.value },
|
||||
'',
|
||||
datasetName.value
|
||||
)
|
||||
|
@ -46,7 +46,7 @@ const cmd = ref('')
|
||||
const treeRef = ref()
|
||||
const filterText = ref('')
|
||||
const datasetForm = reactive({
|
||||
pid: '',
|
||||
pid: '0',
|
||||
name: ''
|
||||
})
|
||||
const searchEmpty = ref(false)
|
||||
@ -371,7 +371,7 @@ const emits = defineEmits(['finish', 'handleShowFinishPage'])
|
||||
<el-form-item v-if="showName" :label="labelName" prop="name">
|
||||
<el-input :placeholder="placeholder" v-model="datasetForm.name" />
|
||||
</el-form-item>
|
||||
<el-form-item v-if="showPid" :label="t('deDataset.folder')" prop="pid">
|
||||
<!-- <el-form-item v-if="showPid" :label="t('deDataset.folder')" prop="pid">
|
||||
<el-tree-select
|
||||
v-model="datasetForm.pid"
|
||||
:data="state.tData"
|
||||
@ -427,7 +427,7 @@ const emits = defineEmits(['finish', 'handleShowFinishPage'])
|
||||
<span>{{ t('data_source.relevant_content_found') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button secondary @click="resetForm">{{ t('dataset.cancel') }} </el-button>
|
||||
|
@ -20,6 +20,8 @@ public class BusiNodeVO implements TreeResultModel<BusiNodeVO>, Serializable {
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@Schema(description = "ID")
|
||||
private Long id;
|
||||
@Schema(description = "项目id")
|
||||
private String appId;
|
||||
@Schema(description = "名称")
|
||||
private String name;
|
||||
@Schema(description = "是否叶子")
|
||||
|
Loading…
Reference in New Issue
Block a user