Commit 59193d90 by 杨北旺

修复bug

1 parent 1007f5b4
...@@ -160,6 +160,9 @@ export default { ...@@ -160,6 +160,9 @@ export default {
customerJf = '#客户积分#', customerJf = '#客户积分#',
customerName = '#客户姓名#' customerName = '#客户姓名#'
// 如果标题中包含,关键字就替换一下 // 如果标题中包含,关键字就替换一下
if (title.length > 500) {
title = title.substring(0, 500)
}
if (title.includes(shortLink)) { if (title.includes(shortLink)) {
title = title.replaceAll(shortLink, '<font style="color:#5092FF !important;">' + shortLink + '</font>') title = title.replaceAll(shortLink, '<font style="color:#5092FF !important;">' + shortLink + '</font>')
} }
...@@ -169,9 +172,6 @@ export default { ...@@ -169,9 +172,6 @@ export default {
if (title.includes(customerName)) { if (title.includes(customerName)) {
title = title.replaceAll(customerName, '<font style="color:#5850ff !important;">' + customerName + '</font>') title = title.replaceAll(customerName, '<font style="color:#5850ff !important;">' + customerName + '</font>')
} }
if (title.length > 500) {
title = title.substring(0, 500)
}
return title return title
}, },
// 获取标签文案 // 获取标签文案
...@@ -254,7 +254,7 @@ export default { ...@@ -254,7 +254,7 @@ export default {
// 筛选已打开的短信模块 // 筛选已打开的短信模块
for (let k in _temp) { for (let k in _temp) {
const target = _temp[k] const target = _temp[k]
if (target.switch) { if (target.switch || target.id) {
isHaveOpen = true isHaveOpen = true
needCheckList.push(target) needCheckList.push(target)
} }
...@@ -370,7 +370,7 @@ export default { ...@@ -370,7 +370,7 @@ export default {
}) })
} }
}, },
onchangeInput(){ onchangeInput() {
this.editStatus = true this.editStatus = true
} }
} }
......
...@@ -249,6 +249,7 @@ ...@@ -249,6 +249,7 @@
size="medium" size="medium"
>取消</el-button> >取消</el-button>
<el-button <el-button
v-if="!isWatchPage"
type="primary" type="primary"
@click="handleConfirm" @click="handleConfirm"
size="medium" size="medium"
...@@ -459,12 +460,14 @@ export default { ...@@ -459,12 +460,14 @@ export default {
gasCardServiceCharge: 0, gasCardServiceCharge: 0,
passageServiceCharge: 0 passageServiceCharge: 0
}, },
pageNum: 1 pageNum: 1,
isWatchPage:false
} }
}, },
mounted () { mounted () {
const { id, type } = this.$route.query const { id, type } = this.$route.query
if (id) this.getDetail(id, type) if (id) this.getDetail(id, type)
this.isWatchPage = !type
}, },
methods: { methods: {
refreshTable ({ pageNum }) { refreshTable ({ pageNum }) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!