|
@@ -48,7 +48,7 @@ interface RuleForm { |
|
|
|
|
|
|
|
|
pushState: string | boolean, |
|
|
pushState: string | boolean, |
|
|
daySum: number, |
|
|
daySum: number, |
|
|
Interval:number |
|
|
|
|
|
|
|
|
interval:number |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const formSize = ref<ComponentSize>('default') |
|
|
const formSize = ref<ComponentSize>('default') |
|
@@ -56,7 +56,7 @@ const ruleFormRef = ref<FormInstance>() |
|
|
const ruleForm = reactive<RuleForm>({ |
|
|
const ruleForm = reactive<RuleForm>({ |
|
|
pushState: false, |
|
|
pushState: false, |
|
|
daySum: 1, |
|
|
daySum: 1, |
|
|
Interval:1 |
|
|
|
|
|
|
|
|
interval:1 |
|
|
}) |
|
|
}) |
|
|
const pushOptions = [{ |
|
|
const pushOptions = [{ |
|
|
label: '开启', |
|
|
label: '开启', |
|
@@ -89,7 +89,7 @@ async function getPushData() { |
|
|
let {data} = await abilityApi.getPushInfo({}) |
|
|
let {data} = await abilityApi.getPushInfo({}) |
|
|
ruleForm.daySum = data.daySum; |
|
|
ruleForm.daySum = data.daySum; |
|
|
ruleForm.pushState = data.pushState; |
|
|
ruleForm.pushState = data.pushState; |
|
|
ruleForm.Interval = data.Interval; |
|
|
|
|
|
|
|
|
ruleForm.interval = data.interval; |
|
|
console.log(data); |
|
|
console.log(data); |
|
|
} |
|
|
} |
|
|
const submitForm = async (formEl: FormInstance | undefined) => { |
|
|
const submitForm = async (formEl: FormInstance | undefined) => { |
|
|