|
@@ -5,6 +5,7 @@
|
|
|
:inline="true"
|
|
|
:model="state.ruleForm"
|
|
|
class="demo-form-inline"
|
|
|
+ style="margin-bottom: -25px;"
|
|
|
v-loading="loading">
|
|
|
<el-form-item :label="'营销开关'" prop="isMarketing">
|
|
|
<el-switch v-model="state.ruleForm.isMarketing" style="--el-switch-on-color: rgb(48, 185, 113);" inline-prompt :active-value="1" :inactive-value="0" />
|
|
@@ -14,8 +15,14 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div class="title">IP集合</div>
|
|
|
+ <JCollapse />
|
|
|
<div class="title">域名集合</div>
|
|
|
+ <JCollapse />
|
|
|
<div class="title">备注</div>
|
|
|
+ <el-input
|
|
|
+ :rows="4"
|
|
|
+ type="textarea"
|
|
|
+ ></el-input>
|
|
|
<template #footer>
|
|
|
<span class="dialog-footer">
|
|
|
<el-button @click="visible = false">{{ $t('common.cancelButtonText') }}</el-button>
|
|
@@ -30,6 +37,7 @@
|
|
|
import {useI18n} from 'vue-i18n';
|
|
|
import {save} from '/@/api/marketing/config';
|
|
|
import {useMessage} from '/@/hooks/message';
|
|
|
+import JCollapse from '/@/components/JCollapse/index.vue';
|
|
|
|
|
|
// 定义子组件向父组件传值/事件
|
|
|
const emit = defineEmits(['refresh']);
|
|
@@ -41,6 +49,7 @@ const loading = ref(false);
|
|
|
const sign = ref('domain')
|
|
|
const add = ref(false);
|
|
|
const menuDialogFormRef = ref();
|
|
|
+
|
|
|
// 定义需要的数据
|
|
|
const state = reactive({
|
|
|
ruleForm: {
|