【fix ESLint】src/views/system

This commit is contained in:
danshihao
2023-03-07 16:22:21 +08:00
parent 586837f1f6
commit 1eb59a3fd6
23 changed files with 159 additions and 159 deletions
+9 -9
View File
@@ -75,8 +75,8 @@
</span>
<span slot="action" slot-scope="text, record">
<a @click="resumeJob(record)" v-if="record.status==-1">启动</a>
<a @click="pauseJob(record)" v-if="record.status==0">停止</a>
<a @click="resumeJob(record)" v-if="record.status==='-1'">启动</a>
<a @click="pauseJob(record)" v-if="record.status==='0'">停止</a>
<a-divider type="vertical" />
<a-dropdown>
@@ -95,8 +95,8 @@
<!-- 状态渲染模板 -->
<template slot="customRenderStatus" slot-scope="status">
<a-tag v-if="status==0" color="green">已启动</a-tag>
<a-tag v-if="status==-1" color="orange">已暂停</a-tag>
<a-tag v-if="status==='0'" color="green">已启动</a-tag>
<a-tag v-if="status==='-1'" color="orange">已暂停</a-tag>
</template>
</a-table>
</div>
@@ -210,7 +210,7 @@ export default {
// TODO 筛选
if (Object.keys(sorter).length > 0) {
this.isorter.column = sorter.field
this.isorter.order = sorter.order == 'ascend' ? 'asc' : 'desc'
this.isorter.order = sorter.order === 'ascend' ? 'asc' : 'desc'
}
// 这种筛选方式只支持单选
@@ -223,7 +223,7 @@ export default {
this.loadData()
},
pauseJob: function (record) {
var that = this
const that = this
// 暂停定时任务
this.$confirm({
title: '确认暂停',
@@ -242,7 +242,7 @@ export default {
})
},
resumeJob: function (record) {
var that = this
const that = this
// 恢复定时任务
this.$confirm({
title: '确认启动',
@@ -261,7 +261,7 @@ export default {
})
},
executeImmediately (record) {
var that = this
const that = this
// 立即执行定时任务
this.$confirm({
title: '确认提示',
@@ -283,5 +283,5 @@ export default {
}
</script>
<style scoped>
@import '~@assets/less/common.less'
@import '~@assets/less/common.less';
</style>