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