【fix ESLint】src/views/system/modules

This commit is contained in:
danshihao
2023-03-07 14:23:25 +08:00
parent 0e41300963
commit 9e05297813
33 changed files with 179 additions and 183 deletions
@@ -76,7 +76,7 @@ export default {
{ required: true, message: '请输入职务编码' },
{
validator: (rule, value, callback) => {
// 函数消抖的简单实现,防止一段时间内发送多次请求
// 函数消抖的简单实现,防止一段时间内重复发送请求
if (validatorCodeTimer) {
// 停止上次开启的定时器
clearTimeout(validatorCodeTimer)
@@ -117,11 +117,7 @@ export default {
edit (record) {
this.model = Object.assign({}, record)
this.visible = true
if (record.id) {
this.readOnly = true
} else {
this.readOnly = false
}
this.readOnly = !!record.id
},
close () {
this.$emit('close')
@@ -135,7 +131,7 @@ export default {
if (valid) {
that.confirmLoading = true
let httpurl = ''
let method = ''
let method
if (!this.model.id) {
httpurl += this.url.add
method = 'post'