后台-应用资源上架bug

This commit is contained in:
gaoyuanwei 2022-07-11 16:52:42 +08:00
parent 39d139d06d
commit d44af11e8a
2 changed files with 24 additions and 2 deletions

View File

@ -19,14 +19,14 @@
$t("export") $t("export")
}}</el-button> }}</el-button>
</el-form-item> </el-form-item>
<el-form-item> <!-- <el-form-item>
<el-button <el-button
v-if="$hasPermission('ability:bsabilityai:save')" v-if="$hasPermission('ability:bsabilityai:save')"
type="primary" type="primary"
@click="addOrUpdateHandleServe()" @click="addOrUpdateHandleServe()"
>挂接</el-button >挂接</el-button
> >
</el-form-item> </el-form-item> -->
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
@ -484,6 +484,8 @@ export default {
// //
clear () { clear () {
this.showPutOnTheShelfFlag2 = false this.showPutOnTheShelfFlag2 = false
this.insertList = []
this.putOnTheShelfList = []
this.radio = '应用资源' this.radio = '应用资源'
this.submitFrom = { this.submitFrom = {
type: '应用资源', type: '应用资源',
@ -520,6 +522,13 @@ export default {
if (child.children) { if (child.children) {
if (child.name === '算法优势' || child.name === '应用场景' || child.name === '功能介绍') { if (child.name === '算法优势' || child.name === '应用场景' || child.name === '功能介绍') {
arr.push(child.name) arr.push(child.name)
if (this.submitFrom.infoList.filter(value => value.attrType === child.name).length === 0) {
this.submitFrom.infoList.push({
attrType: child.name,
attrValue: child.note1,
delFlag: 0
})
}
} }
child.children.map(val => { child.children.map(val => {
arr.push(val.name) arr.push(val.name)
@ -574,6 +583,15 @@ export default {
attrValue: val.note1, attrValue: val.note1,
delFlag: 0 delFlag: 0
}) })
} else {
if (this.submitFrom.infoList.filter(value => value.attrType === val.name).length === 0) {
this.submitFrom.infoList.push({
attrType: val.name,
attrValue: val.note1,
delFlag: 0,
note2: val.note2 || null
})
}
} }
break break
} }

View File

@ -135,6 +135,10 @@ export default {
if (this.data.note1) { if (this.data.note1) {
this.valueCheckBox = this.data.note1.split(';') this.valueCheckBox = this.data.note1.split(';')
} }
} else if (this.data.name === '发布端') {
if (this.data.note1) {
this.valueCheckBox = this.data.note1.split(';')
}
} }
}, },
mounted () { mounted () {