【fix ESLint】src/views/system/modules
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user