fix: 虚拟机模块
This commit is contained in:
@@ -595,6 +595,9 @@
|
||||
</el-select>
|
||||
<div class="form-tip">all: 所有参数 / plan: 套餐 / customize: 自定义</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="允许续费" prop="can_renew">
|
||||
<el-switch v-model="productForm.can_renew" active-text="允许" inactive-text="禁止" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
@@ -757,7 +760,8 @@ const productForm = reactive({
|
||||
expire_time: 0,
|
||||
recommend: false,
|
||||
recommend_rebate: 0,
|
||||
arg_type: 'all'
|
||||
arg_type: 'all',
|
||||
can_renew: true
|
||||
})
|
||||
|
||||
const productRules = {
|
||||
@@ -1428,7 +1432,8 @@ const handleEditProduct = (product, parentGroupId) => {
|
||||
expire_time: product.expireTime,
|
||||
recommend: product.recommend,
|
||||
recommend_rebate: product.recommendRebate,
|
||||
arg_type: product.argType || 'all'
|
||||
arg_type: product.argType || 'all',
|
||||
can_renew: product.canRenew !== undefined ? product.canRenew : (product.can_renew !== undefined ? product.can_renew : true)
|
||||
})
|
||||
|
||||
productDialogVisible.value = true
|
||||
@@ -1452,7 +1457,8 @@ const submitProductForm = () => {
|
||||
expire_time: Number(productForm.expire_time) || 0,
|
||||
recommend: productForm.recommend,
|
||||
recommend_rebate: Number(productForm.recommend_rebate) || 0,
|
||||
arg_type: productForm.arg_type
|
||||
arg_type: productForm.arg_type,
|
||||
can_renew: productForm.can_renew
|
||||
}
|
||||
|
||||
let res
|
||||
@@ -1472,7 +1478,6 @@ const submitProductForm = () => {
|
||||
const newMap = new Map(groupProductsMap.value)
|
||||
newMap.delete(productForm.good_group_id)
|
||||
groupProductsMap.value = newMap
|
||||
loadProductsForGroup(productForm.good_group_id)
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user