添加预览 时默认保存 常见问题功能
This commit is contained in:
parent
486c3e8d46
commit
5f8d005935
|
@ -2,7 +2,7 @@
|
|||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-13 10:22:27
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-07-19 20:04:47
|
||||
* @LastEditTime: 2022-07-26 14:35:45
|
||||
* @Description: 算法上架
|
||||
-->
|
||||
<template>
|
||||
|
@ -74,6 +74,7 @@
|
|||
:configure="bs"
|
||||
@submit="submit()"
|
||||
@back="back()"
|
||||
@preview="preview()"
|
||||
:required="required"
|
||||
:notFilled="notFilled"
|
||||
></put-on-the-shelf>
|
||||
|
@ -161,7 +162,23 @@
|
|||
<button v-else-if="showView !== '基本信息'" @click="back()">
|
||||
上一步
|
||||
</button>
|
||||
<button v-show="showView === '部署与使用'" @click="preview()">
|
||||
<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="preview()">
|
||||
预览
|
||||
</button>
|
||||
<a-popconfirm
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-13 10:22:27
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-07-25 17:30:32
|
||||
* @LastEditTime: 2022-07-26 14:35:22
|
||||
* @Description: 应用上架
|
||||
-->
|
||||
<template>
|
||||
|
@ -59,6 +59,7 @@
|
|||
:configure="glzj"
|
||||
@next="next()"
|
||||
@back="back()"
|
||||
@preview="preview()"
|
||||
:required="required"
|
||||
:notFilled="notFilled"
|
||||
></put-on-the-shelf>
|
||||
|
@ -127,7 +128,22 @@
|
|||
>
|
||||
上一步
|
||||
</button>
|
||||
<button v-show="showView === '部署与应用'" @click="preview()">
|
||||
<a-popconfirm
|
||||
v-if="
|
||||
showView === '部署与应用' &&
|
||||
bs[0].list.filter(
|
||||
(val) => val.note1 !== '' && val.name !== '常见问题'
|
||||
).length > 0
|
||||
"
|
||||
title="如果常见问题未填写完整将会被丢弃,是否进行预览?"
|
||||
ok-text="是"
|
||||
cancel-text="否"
|
||||
@confirm="changeBs('预览')"
|
||||
@cancel="cancel"
|
||||
>
|
||||
<button>预览</button>
|
||||
</a-popconfirm>
|
||||
<button v-else-if="showView === '部署与应用'" @click="preview()">
|
||||
预览
|
||||
</button>
|
||||
<button v-show="showView === '基本信息'" @click="next()">下一步</button>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-20 09:35:51
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-07-15 17:39:35
|
||||
* @LastEditTime: 2022-07-26 14:36:31
|
||||
* @Description: 业务组件
|
||||
-->
|
||||
<template>
|
||||
|
@ -73,6 +73,7 @@
|
|||
:configure="bs"
|
||||
@submit="submit()"
|
||||
@back="back()"
|
||||
@preview="preview()"
|
||||
:required="required"
|
||||
:notFilled="notFilled"
|
||||
></put-on-the-shelf>
|
||||
|
@ -132,7 +133,21 @@
|
|||
<button v-else-if="showView !== '基本信息'" @click="back()">
|
||||
上一步
|
||||
</button>
|
||||
<button v-show="showView === '部署与使用'" @click="preview()">
|
||||
<a-popconfirm
|
||||
v-if="
|
||||
showView === '部署与使用' &&
|
||||
(bs[0].list.filter((val) => val.note1 !== '').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="preview()">
|
||||
预览
|
||||
</button>
|
||||
<a-popconfirm
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-20 09:35:17
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-07-15 17:39:42
|
||||
* @LastEditTime: 2022-07-26 14:37:17
|
||||
* @Description: 开发组件
|
||||
-->
|
||||
<template>
|
||||
|
@ -72,6 +72,7 @@
|
|||
:configure="bs"
|
||||
@submit="submit()"
|
||||
@back="back()"
|
||||
@preview="preview()"
|
||||
:required="required"
|
||||
:notFilled="notFilled"
|
||||
></put-on-the-shelf>
|
||||
|
@ -131,7 +132,21 @@
|
|||
<button v-else-if="showView !== '基本信息'" @click="back()">
|
||||
上一步
|
||||
</button>
|
||||
<button v-show="showView === '部署与使用'" @click="preview()">
|
||||
<a-popconfirm
|
||||
v-if="
|
||||
showView === '部署与使用' &&
|
||||
(bs[0].list.filter((val) => val.note1 !== '').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="preview()">
|
||||
预览
|
||||
</button>
|
||||
<a-popconfirm
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-20 09:35:17
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-07-15 17:39:47
|
||||
* @LastEditTime: 2022-07-26 14:37:38
|
||||
* @Description: 图层服务
|
||||
-->
|
||||
<template>
|
||||
|
@ -69,6 +69,7 @@
|
|||
:configure="bs"
|
||||
@submit="submit()"
|
||||
@back="back()"
|
||||
@preview="preview()"
|
||||
:required="required"
|
||||
:notFilled="notFilled"
|
||||
></put-on-the-shelf>
|
||||
|
@ -103,7 +104,22 @@
|
|||
<button v-else-if="showView !== '基本信息'" @click="back()">
|
||||
上一步
|
||||
</button>
|
||||
<button v-show="showView === '部署与使用'" @click="preview()">
|
||||
<a-popconfirm
|
||||
v-if="
|
||||
showView === '部署与使用' &&
|
||||
bs[0].list.filter(
|
||||
(val) => val.note1 !== '' && val.name !== '计费方式'
|
||||
).length > 0
|
||||
"
|
||||
title="如果常见问题未填写完整将会被丢弃,是否进行预览?"
|
||||
ok-text="是"
|
||||
cancel-text="否"
|
||||
@confirm="changeBs('预览')"
|
||||
@cancel="cancel"
|
||||
>
|
||||
<button>预览</button>
|
||||
</a-popconfirm>
|
||||
<button v-else-if="showView === '部署与使用'" @click="preview()">
|
||||
预览
|
||||
</button>
|
||||
<a-popconfirm
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-17 14:11:08
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-07-19 18:51:52
|
||||
* @LastEditTime: 2022-07-26 14:33:42
|
||||
* @Description: 上架
|
||||
-->
|
||||
<template>
|
||||
|
@ -797,6 +797,8 @@
|
|||
emit('next')
|
||||
} else if (type == '提交') {
|
||||
emit('submit')
|
||||
} else if (type == '预览') {
|
||||
emit('preview')
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -813,6 +815,8 @@
|
|||
emit('next')
|
||||
} else if (type == '提交') {
|
||||
emit('submit')
|
||||
} else if (type == '预览') {
|
||||
emit('preview')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue