优化服务
This commit is contained in:
@@ -42,12 +42,14 @@
|
||||
<div class="form_label">刷新时间</div>
|
||||
<div class="form_val">
|
||||
<div class="flex_box flex_col_top form_input">
|
||||
<el-input border="none" v-model="refreshTime" placeholder="请输入刷新时间"></el-input>
|
||||
<el-button type="primary">执行</el-button>
|
||||
<el-input border="none" v-model.number="refreshTime" placeholder="请输入刷新时间">
|
||||
<template slot="append">秒</template>
|
||||
</el-input>
|
||||
<el-button @click="handleRefresh" type="primary">执行</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex_box form_option">
|
||||
<!-- <div class="flex_box form_option">
|
||||
<div class="form_label">休眠时间</div>
|
||||
<div class="form_val">
|
||||
<div class="flex_box flex_col_top form_input">
|
||||
@@ -55,7 +57,7 @@
|
||||
<el-button type="primary">执行</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="flex_box form_option">
|
||||
<div class="form_label">清除任务</div>
|
||||
<div class="form_val">
|
||||
@@ -150,7 +152,7 @@ export default {
|
||||
name: '清洁工作站'
|
||||
}
|
||||
],
|
||||
refreshTime: 3000,
|
||||
refreshTime: 10,
|
||||
sleepTime: 300000,
|
||||
isDel: true,
|
||||
langVal: 'zhCN',
|
||||
@@ -173,8 +175,27 @@ export default {
|
||||
computed: {
|
||||
...mapGetters(['name', 'roles'])
|
||||
},
|
||||
watch: {
|
||||
'$store.state.chat.refreshTime': {
|
||||
handler (val) {
|
||||
this.refreshTime = val
|
||||
},
|
||||
immediate: true,
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
// 刷新时间
|
||||
handleRefresh() {
|
||||
this.$store.commit('chat/setData', {
|
||||
name: 'refreshTime',
|
||||
data: this.refreshTime
|
||||
})
|
||||
this.$message({
|
||||
message: '设置成功',
|
||||
type: 'success'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -237,6 +258,11 @@ export default {
|
||||
border: 1px solid #98E8A6;
|
||||
overflow: hidden;
|
||||
::v-deep {
|
||||
.el-input-group__append {
|
||||
font-size: 16px;
|
||||
color: #000;
|
||||
font-weight: 500;
|
||||
}
|
||||
.el-input__inner {
|
||||
width: 360px;
|
||||
height: 40px;
|
||||
@@ -283,7 +309,7 @@ export default {
|
||||
left: 8px;
|
||||
}
|
||||
.el-checkbox__label {
|
||||
font-size: 24px;
|
||||
font-size: 19px;
|
||||
line-height: 24px;
|
||||
}
|
||||
.el-checkbox__input.is-checked+.el-checkbox__label {
|
||||
|
||||
Reference in New Issue
Block a user