Bladeren bron

添加推荐时间间隔

master
suyanyan 5 dagen geleden
bovenliggende
commit
4f2111743e
1 gewijzigde bestanden met toevoegingen van 11 en 3 verwijderingen
  1. +11
    -3
      SafeCampus.WEB/src/views/sysconfig/push/index.vue

+ 11
- 3
SafeCampus.WEB/src/views/sysconfig/push/index.vue Bestand weergeven

@@ -22,10 +22,15 @@
<div class="ruleTitle">推送规则</div>
<div class="ruleContent">
<span>当日预警每达到</span>
<el-input-number v-model="ruleForm.daySum" class="mx-4" :min="1" controls-position="right" @change="handleChange" />
<el-input-number v-model="ruleForm.daySum" class="mx-4" :min="1" controls-position="right" />
<span>条时进行推送</span>
<div class="tips">当日预警数据每达到设置的条数后,会进行消息推送。</div>
</div>
<div class="ruleContent">
<span>推送时间间隔</span>
<el-input-number v-model="ruleForm.Interval" class="mx-4" :min="1" controls-position="right" />
<span>分钟</span>
</div>
<el-form-item>
<el-button type="primary" @click="submitForm(ruleFormRef)"> 保 存 </el-button>
<!-- <el-button @click="resetForm(ruleFormRef)">取消</el-button> -->
@@ -42,14 +47,16 @@ import { abilityApi, getPushInfo,userManageClassManageApi, monitorLIVEApi,SysOrg
interface RuleForm {

pushState: string | boolean,
daySum: number
daySum: number,
Interval:number
}

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


Laden…
Annuleren
Opslaan