Commit 2ef446f4 by 前端

commit:短信内容添加字数限制

1 parent 42455ee0
......@@ -42,7 +42,7 @@
</template>
<template slot="excelName" slot-scope="scope">
<div class="flex">
<el-tooltip v-if="scope.scope.excelName&&scope.scope.excelName.length >= Math.ceil((320 - 36) / 14)" effect="light" placement="top" popper-class="base-popper" :content="scope.scope.excelName">
<el-tooltip v-if="scope.scope.excelName && scope.scope.excelName.length >= Math.ceil((320 - 36) / 14)" effect="light" placement="top" popper-class="base-popper" :content="scope.scope.excelName">
<div class="excelName">{{ scope.scope.excelName }}</div>
</el-tooltip>
<div v-else>{{ scope.scope.excelName }}</div>
......@@ -87,7 +87,7 @@
<el-input v-model="message.messageAutograph"></el-input>
</el-form-item>
<el-form-item label="短信内容:">
<el-input v-model="message.messageDetail" type="textarea" :rows="3"></el-input>
<el-input v-model="message.messageDetail" type="textarea" :rows="3"></el-input>
</el-form-item>
</el-form>
</div>
......@@ -663,8 +663,15 @@ export default {
},
handleMessageConfirm() {
let {
message: {id, messageAutograph, messageDetail }
message: {id, messageAutograph, messageDetail,messageSuffix }
} = this
if(messageAutograph.length+messageDetail.length+messageSuffix.length>200){
this.$message({
message: '短信内容不能超过200字符',
type: 'error'
})
return
}
let params = {
id,
messageAutograph,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!