mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-10-21 20:57:10 +08:00
@@ -37,6 +37,15 @@ const [form, resetForm] = useResetReactive({
|
|||||||
status: 1,
|
status: 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 监听供应商变化,当选择腾讯云时自动填充厂商配置
|
||||||
|
watch(() => form.supplier, async (newValue) => {
|
||||||
|
if (newValue === 'tencent') {
|
||||||
|
form.supplierConfig = '{"sdkAppId":""}'
|
||||||
|
} else {
|
||||||
|
form.supplierConfig = ''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
const columns: ColumnItem[] = reactive([
|
const columns: ColumnItem[] = reactive([
|
||||||
{
|
{
|
||||||
label: '名称',
|
label: '名称',
|
||||||
@@ -161,6 +170,8 @@ const columns: ColumnItem[] = reactive([
|
|||||||
const reset = () => {
|
const reset = () => {
|
||||||
formRef.value?.formRef?.resetFields()
|
formRef.value?.formRef?.resetFields()
|
||||||
resetForm()
|
resetForm()
|
||||||
|
// 重置时清空供应商配置
|
||||||
|
form.supplierConfig = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存
|
// 保存
|
||||||
|
Reference in New Issue
Block a user