【fix ESLint】src/views/modules/message/modules
This commit is contained in:
@@ -84,7 +84,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a href="javascript:;" @click="handleDetail(record)">详情</a>
|
<a href='javascript:' @click="handleDetail(record)">详情</a>
|
||||||
<a-divider type="vertical"/>
|
<a-divider type="vertical"/>
|
||||||
<a-dropdown>
|
<a-dropdown>
|
||||||
<a class="ant-dropdown-link">更多<a-icon type="down"/></a>
|
<a class="ant-dropdown-link">更多<a-icon type="down"/></a>
|
||||||
|
|||||||
@@ -169,16 +169,16 @@ export default {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'templateType',
|
dataIndex: 'templateType',
|
||||||
customRender: function (text) {
|
customRender: function (text) {
|
||||||
if (text == '1') {
|
if ((text + '') === '1') {
|
||||||
return '短信'
|
return '短信'
|
||||||
}
|
}
|
||||||
if (text == '2') {
|
if ((text + '') === '2') {
|
||||||
return '邮件'
|
return '邮件'
|
||||||
}
|
}
|
||||||
if (text == '3') {
|
if ((text + '') === '3') {
|
||||||
return '微信'
|
return '微信'
|
||||||
}
|
}
|
||||||
if (text == '4') {
|
if ((text + '') === '4') {
|
||||||
return '系统'
|
return '系统'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ export default {
|
|||||||
if (!err) {
|
if (!err) {
|
||||||
that.confirmLoading = true
|
that.confirmLoading = true
|
||||||
let httpurl = ''
|
let httpurl = ''
|
||||||
let method = ''
|
let method
|
||||||
if (!this.model.id) {
|
if (!this.model.id) {
|
||||||
httpurl += this.url.add
|
httpurl += this.url.add
|
||||||
method = 'post'
|
method = 'post'
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ export default {
|
|||||||
edit (record) {
|
edit (record) {
|
||||||
this.form.resetFields()
|
this.form.resetFields()
|
||||||
this.model = Object.assign({}, record)
|
this.model = Object.assign({}, record)
|
||||||
this.useEditor = (record.templateType == 2 || record.templateType == 4)
|
this.useEditor = ((record.templateType + '') === '2' || (record.templateType + '') === '4')
|
||||||
if (this.useEditor) {
|
if (this.useEditor) {
|
||||||
this.templateEditorContent = record.templateContent
|
this.templateEditorContent = record.templateContent
|
||||||
} else {
|
} else {
|
||||||
@@ -159,7 +159,7 @@ export default {
|
|||||||
if (!err) {
|
if (!err) {
|
||||||
that.confirmLoading = true
|
that.confirmLoading = true
|
||||||
let httpurl = ''
|
let httpurl = ''
|
||||||
let method = ''
|
let method
|
||||||
if (!this.model.id) {
|
if (!this.model.id) {
|
||||||
httpurl += this.url.add
|
httpurl += this.url.add
|
||||||
method = 'post'
|
method = 'post'
|
||||||
@@ -189,7 +189,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
validateTemplateCode (rule, value, callback) {
|
validateTemplateCode (rule, value, callback) {
|
||||||
var params = {
|
const params = {
|
||||||
tableName: 'sys_sms_template',
|
tableName: 'sys_sms_template',
|
||||||
fieldName: 'template_code',
|
fieldName: 'template_code',
|
||||||
fieldVal: value,
|
fieldVal: value,
|
||||||
@@ -208,7 +208,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleChangeTemplateType (value) {
|
handleChangeTemplateType (value) {
|
||||||
// 如果是邮件类型那么则改变模板内容是富文本编辑器
|
// 如果是邮件类型那么则改变模板内容是富文本编辑器
|
||||||
this.useEditor = (value == 2 || value == 4)
|
this.useEditor = ((value + '') === '2' || (value + '') === '4')
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user