|
|
@ -111,7 +111,7 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="资产描述" align="center" width="150" key="" prop="dataAstDesc" v-if="columns[6].visible" /> |
|
|
<el-table-column label="资产描述" align="center" width="150" key="" prop="dataAstDesc" v-if="columns[6].visible" /> |
|
|
<el-table-column label="资产应用场景" align="center" width="150" key="" prop="dataAstScreen" v-if="columns[7].visible" /> |
|
|
<el-table-column label="资产应用场景" align="center" width="150" key="" prop="dataAstScreen" v-if="columns[7].visible" /> |
|
|
<el-table-column label="应用场景分类" align="center" width="150" key="" prop="dataAstScrenClas" v-if="columns[8].visible" /> |
|
|
<!-- <el-table-column label="应用场景分类" align="center" width="150" key="" prop="dataAstScrenClas" v-if="columns[8].visible" /> --> |
|
|
<el-table-column label="常见问题" align="center" width="150" key="" prop="dataAstFaq" v-if="columns[9].visible" /> |
|
|
<el-table-column label="常见问题" align="center" width="150" key="" prop="dataAstFaq" v-if="columns[9].visible" /> |
|
|
<el-table-column label="负责人" align="center" width="150" key="" prop="dataAstCont" v-if="columns[10].visible" /> |
|
|
<el-table-column label="负责人" align="center" width="150" key="" prop="dataAstCont" v-if="columns[10].visible" /> |
|
|
<el-table-column label="建立时间" align="center" width="200" key="" prop="dataAstEstbTime" v-if="columns[11].visible" /> |
|
|
<el-table-column label="建立时间" align="center" width="200" key="" prop="dataAstEstbTime" v-if="columns[11].visible" /> |
|
|
@ -157,16 +157,22 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="资产应用场景" prop="dataAstScreen"> |
|
|
<el-form-item label="资产应用场景" prop="dataAstScreen"> |
|
|
<el-select v-model="form.dataAstScreen" placeholder="请选择" clearable style="width: 100%"> |
|
|
<el-checkbox-group v-model="form.dataAstScreenArr"> |
|
|
<el-option label="智能助手" value="智能助手" /> |
|
|
<el-checkbox |
|
|
<el-option label="API" value="API" /> |
|
|
v-for="item in dataAstScreenOptions" |
|
|
</el-select> |
|
|
:key="item.value" |
|
|
</el-form-item> |
|
|
:label="item.value" |
|
|
<el-form-item label="应用场景分类" prop="dataAstScrenClas"> |
|
|
> |
|
|
|
|
|
{{ item.label }} |
|
|
|
|
|
</el-checkbox> |
|
|
|
|
|
</el-checkbox-group> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-form-item label="应用场景分类" prop="dataAstScrenClas"> |
|
|
<el-select v-model="form.dataAstScrenClas" placeholder="请选择" clearable style="width: 100%"> |
|
|
<el-select v-model="form.dataAstScrenClas" placeholder="请选择" clearable style="width: 100%"> |
|
|
<el-option v-for="(item, index) in dataAstScrenClas_list" :key="index" :label="item" :value="item" /> |
|
|
<el-option v-for="(item, index) in dataAstScrenClas_list" :key="index" :label="item" :value="item" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> --> |
|
|
|
|
|
|
|
|
<!-- 修改为文本域 --> |
|
|
<!-- 修改为文本域 --> |
|
|
<el-form-item label="资产描述" prop="dataAstDesc"> |
|
|
<el-form-item label="资产描述" prop="dataAstDesc"> |
|
|
@ -313,6 +319,15 @@ function addLabel(nodes) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function deleteTag(row){ |
|
|
|
|
|
row.clasEffFlag = '0' |
|
|
|
|
|
row.tagSource = '手动' |
|
|
|
|
|
} |
|
|
|
|
|
function revertTag(row){ |
|
|
|
|
|
row.clasEffFlag = '1' |
|
|
|
|
|
row.tagSource = '手动' |
|
|
|
|
|
} |
|
|
/** 查询部门下拉树结构 */ |
|
|
/** 查询部门下拉树结构 */ |
|
|
function getDeptTree() { |
|
|
function getDeptTree() { |
|
|
deptTreeSelect().then(response => { |
|
|
deptTreeSelect().then(response => { |
|
|
@ -327,7 +342,11 @@ function getDeptTree() { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}; |
|
|
}; |
|
|
|
|
|
const dataAstScreenOptions = [ |
|
|
|
|
|
{ label: '智能助手', value: '智能助手' }, |
|
|
|
|
|
{ label: 'API', value: 'API' } |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
const astTags = ref([]) |
|
|
const astTags = ref([]) |
|
|
|
|
|
|
|
|
/** 节点单击事件 */ |
|
|
/** 节点单击事件 */ |
|
|
@ -441,6 +460,9 @@ const handleUpdate = (row) => { |
|
|
|
|
|
|
|
|
astTags.value = JSON.parse(form.value.dataAstClas)||[] |
|
|
astTags.value = JSON.parse(form.value.dataAstClas)||[] |
|
|
|
|
|
|
|
|
|
|
|
form.value.dataAstScreenArr = form.value.dataAstScreen |
|
|
|
|
|
? form.value.dataAstScreen.split(',') |
|
|
|
|
|
: [] |
|
|
} |
|
|
} |
|
|
function addAstTag(){ |
|
|
function addAstTag(){ |
|
|
let json = JSON.parse(JSON.stringify(currentAstTag.value)) |
|
|
let json = JSON.parse(JSON.stringify(currentAstTag.value)) |
|
|
@ -487,7 +509,7 @@ const handleDelete = (row) => { |
|
|
"dataAstStat": item.dataAstStat, |
|
|
"dataAstStat": item.dataAstStat, |
|
|
"dataAstDesc": item.dataAstDesc, |
|
|
"dataAstDesc": item.dataAstDesc, |
|
|
"dataAstScreen": item.dataAstScreen, |
|
|
"dataAstScreen": item.dataAstScreen, |
|
|
"dataAstScrenClas": item.dataAstScrenClas, |
|
|
// "dataAstScrenClas": item.dataAstScrenClas, |
|
|
"dataAstClas": item.dataAstClas?item.dataAstClas:"", |
|
|
"dataAstClas": item.dataAstClas?item.dataAstClas:"", |
|
|
"dataAstCont": item.dataAstCont, |
|
|
"dataAstCont": item.dataAstCont, |
|
|
"dataAstFaq": item.dataAstFaq, |
|
|
"dataAstFaq": item.dataAstFaq, |
|
|
@ -574,15 +596,15 @@ const dataAstStat_list = computed(() => { |
|
|
return Array.from(unique); |
|
|
return Array.from(unique); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
const dataAstScrenClas_list = computed(() => { |
|
|
// const dataAstScrenClas_list = computed(() => { |
|
|
const unique = new Set(); |
|
|
// const unique = new Set(); |
|
|
list.value.forEach(item => { |
|
|
// list.value.forEach(item => { |
|
|
if (item.dataAstScrenClas) { |
|
|
// if (item.dataAstScrenClas) { |
|
|
unique.add(item.dataAstScrenClas); |
|
|
// unique.add(item.dataAstScrenClas); |
|
|
} |
|
|
// } |
|
|
}); |
|
|
// }); |
|
|
return Array.from(unique); |
|
|
// return Array.from(unique); |
|
|
}); |
|
|
// }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const open = ref(false); |
|
|
const open = ref(false); |
|
|
@ -596,7 +618,7 @@ const data = reactive({ |
|
|
dataAstStat: [{ required: true, message: "请选择", trigger: "blur" }], |
|
|
dataAstStat: [{ required: true, message: "请选择", trigger: "blur" }], |
|
|
dataAstSrc: [{ required: true, message: "请选择", trigger: "blur" }], |
|
|
dataAstSrc: [{ required: true, message: "请选择", trigger: "blur" }], |
|
|
dataAstScreen: [{ required: false, message: "请选择", trigger: "blur" }], |
|
|
dataAstScreen: [{ required: false, message: "请选择", trigger: "blur" }], |
|
|
dataAstScrenClas: [{ required: false, message: "请选择", trigger: "blur" }], |
|
|
// dataAstScrenClas: [{ required: false, message: "请选择", trigger: "blur" }], |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
const { form, rules } = toRefs(data); |
|
|
const { form, rules } = toRefs(data); |
|
|
@ -612,8 +634,10 @@ function submitForm() { |
|
|
"dataAstType": form.value.dataAstType, |
|
|
"dataAstType": form.value.dataAstType, |
|
|
"dataAstStat": form.value.dataAstStat, |
|
|
"dataAstStat": form.value.dataAstStat, |
|
|
"dataAstDesc": form.value.dataAstDesc, |
|
|
"dataAstDesc": form.value.dataAstDesc, |
|
|
"dataAstScreen": form.value.dataAstScreen || "", // 添加默认值 |
|
|
"dataAstScreen": form.value.dataAstScreenArr |
|
|
"dataAstScrenClas": form.value.dataAstScrenClas || "", // 添加默认值 |
|
|
? form.value.dataAstScreenArr.join(',') |
|
|
|
|
|
: "", |
|
|
|
|
|
// "dataAstScrenClas": form.value.dataAstScrenClas || "", // 添加默认值 |
|
|
"dataAstClas": JSON.stringify(astTags.value)?JSON.stringify(astTags.value):"", |
|
|
"dataAstClas": JSON.stringify(astTags.value)?JSON.stringify(astTags.value):"", |
|
|
"dataAstCont": form.value.dataAstCont?form.value.dataAstCont:"", |
|
|
"dataAstCont": form.value.dataAstCont?form.value.dataAstCont:"", |
|
|
"dataAstFaq": form.value.dataAstFaq?form.value.dataAstFaq:"", |
|
|
"dataAstFaq": form.value.dataAstFaq?form.value.dataAstFaq:"", |
|
|
|