完善 挂载

This commit is contained in:
a0049873 2022-07-19 19:30:42 +08:00
parent f820d49f58
commit 0a2ebce897
1 changed files with 35 additions and 7 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua * @Author: hisense.liangjunhua
* @Date: 2022-06-13 10:22:27 * @Date: 2022-06-13 10:22:27
* @LastEditors: hisense.liangjunhua * @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-19 18:34:53 * @LastEditTime: 2022-07-19 19:29:48
* @Description: 算法上架 * @Description: 算法上架
--> -->
<template> <template>
@ -101,7 +101,10 @@
<div class="btn" :class="showView === '基本信息' ? 'first' : ''"> <div class="btn" :class="showView === '基本信息' ? 'first' : ''">
<button @click="close()">取消</button> <button @click="close()">取消</button>
<a-popconfirm <a-popconfirm
v-if="showView == '算法优势'" v-if="
showView == '算法优势' &&
sfys[0].list.filter((val) => val.note1 !== '').length > 0
"
title="如果信息未填写完整将会被丢弃,是否返回上一步?" title="如果信息未填写完整将会被丢弃,是否返回上一步?"
ok-text="是" ok-text="是"
cancel-text="否" cancel-text="否"
@ -111,7 +114,10 @@
<button>上一步</button> <button>上一步</button>
</a-popconfirm> </a-popconfirm>
<a-popconfirm <a-popconfirm
v-else-if="showView == '应用场景'" v-else-if="
showView == '应用场景' &&
yycj[0].list.filter((val) => val.note1 !== '').length > 0
"
title="如果信息未填写完整将会被丢弃,是否返回上一步?" title="如果信息未填写完整将会被丢弃,是否返回上一步?"
ok-text="是" ok-text="是"
cancel-text="否" cancel-text="否"
@ -127,7 +133,10 @@
预览 预览
</button> </button>
<a-popconfirm <a-popconfirm
v-if="showView == '算法优势'" v-if="
showView == '算法优势' &&
sfys[0].list.filter((val) => val.note1 !== '').length > 0
"
title="如果信息未填写完整将会被丢弃,是否进行下一步?" title="如果信息未填写完整将会被丢弃,是否进行下一步?"
ok-text="是" ok-text="是"
cancel-text="否" cancel-text="否"
@ -137,7 +146,10 @@
<button>下一步</button> <button>下一步</button>
</a-popconfirm> </a-popconfirm>
<a-popconfirm <a-popconfirm
v-else-if="showView == '应用场景'" v-else-if="
showView == '应用场景' &&
yycj[0].list.filter((val) => val.note1 !== '').length > 0
"
title="如果信息未填写完整将会被丢弃,是否进行下一步?" title="如果信息未填写完整将会被丢弃,是否进行下一步?"
ok-text="是" ok-text="是"
cancel-text="否" cancel-text="否"
@ -149,7 +161,23 @@
<button v-else-if="showView !== '部署与使用'" @click="next()"> <button v-else-if="showView !== '部署与使用'" @click="next()">
下一步 下一步
</button> </button>
<button v-show="showView === '部署与使用'" @click="changeBs()"> <a-popconfirm
v-if="
showView === '部署与使用' &&
(bs[0].list.filter(
(val) => val.note1 !== '' && val.name !== '计费方式'
).length > 0 ||
bs[1].list.filter((val) => val.note1 !== '').length > 0)
"
title="如果信息未填写完整将会被丢弃,是否进行下一步?"
ok-text="是"
cancel-text="否"
@confirm="changeBs('提交')"
@cancel="cancel"
>
<button>提交</button>
</a-popconfirm>
<button v-else-if="showView === '部署与使用'" @click="submit()">
提交 提交
</button> </button>
</div> </div>
@ -399,7 +427,7 @@
// //
const refPutOnTheShelf = ref(null) const refPutOnTheShelf = ref(null)
const changeSfys = (type) => { const changeSfys = (type) => {
console.log(refPutOnTheShelf) console.log(refPutOnTheShelf, sfys.value)
refPutOnTheShelf.value.add('算法优势', true, type) refPutOnTheShelf.value.add('算法优势', true, type)
} }
const changeYycj = (type) => { const changeYycj = (type) => {