Commit b964ed0a by 张权

线上bug修复

1 parent 422c85b9
......@@ -26,7 +26,7 @@
<div class="table-content" style="max-height: 456px;">
<GLTable v-loading="loading" ref="empTable" :tableData="tableEmpData" :tableParams="tableParams" :hasNum="false" :hasPage="false" :noDataImg="url" @row-click="rowClick">
<div slot="radio" slot-scope="scope">
<el-radio :disabled="scope.scope.isOperationConfig == 0" v-model="selectPerson" :label="scope.scope">&nbsp;</el-radio>
<el-radio :disabled="scope.scope.staffId == staffId" v-model="selectPerson" :label="scope.scope">&nbsp;</el-radio>
</div>
<div slot="staffName" slot-scope="scope">
<span>{{ scope.scope.staffName }}</span>
......@@ -62,7 +62,7 @@
import url from '@/assets/empty.png'
export default {
name: 'SelectMember',
props: ['selectData'],
props: ['selectData','staffId'],
data() {
return {
url: url,
......@@ -124,7 +124,6 @@ export default {
},
methods: {
selectionTable(val) {
console.log(456)
this.innerTags = val
// this.$emit('selectTable', val)
},
......@@ -245,7 +244,7 @@ export default {
},
rowClick(row) {
// this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(row)
if (row.isOperationConfig === 0) return
if (row.staffId === this.staffId) return
this.selectPerson = row
},
checkChange(val) {
......
......@@ -171,6 +171,7 @@ export default {
})
},
setTextarea(val) {
if(val=='\n') return
// let val = '[鄙视]@昵称@昵称[鄙视][做哼][ ]车主朋友,您好!我是您的福利官,欢迎您领取电子质保卡,请点击下方链接进行领取及查看:https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/祝您用车愉快!'
let reg1 = /\[(.+?)\]/gi
let arr = val.match(reg1) || []
......@@ -188,7 +189,7 @@ export default {
val = val.replaceAll(item, img)
}
})
val = val.replaceAll('@昵称', '<wise>@昵称</wise>')
val = val.replaceAll('[@昵称]', '<wise>@昵称</wise>')
let welcomeStr = '车主朋友,您好!我是您的福利官,欢迎您领取电子质保卡,请点击下方链接进行领取及查看:https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/祝您用车愉快!'
let text = '<br>车主朋友,您好!<br>我是您的福利官,欢迎您领取电子质保卡,<br>请点击下方链接进行领取及查看:<br><span style="color:#409eff;">https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/</span><br>祝您用车愉快!<br>'
val = val.replaceAll(welcomeStr, text)
......
......@@ -36,7 +36,7 @@
</el-form>
</div>
<glsx-dialog class="numberDialog" :title="'选择成员'" btnSize="small" :width="'850px'" :isVisible="membersVisible" @confirmDialog="handleConfirm" @closeDialog="membersVisible = !membersVisible">
<SelectMember ref="membersForm" v-if="membersVisible" :selectData="selectData"></SelectMember>
<SelectMember ref="membersForm" :staffId="editStaffId" v-if="membersVisible" :selectData="selectData"></SelectMember>
</glsx-dialog>
<div class="my-footer btn-box box">
<el-button size="small" type="primary" @click="handleSave">提交</el-button>
......@@ -65,6 +65,7 @@ export default {
eventBus: new Vue(),
clientType: '升级客户',
expertId: '',
editStaffId:'',
btnList: [
{
id: 1,
......@@ -142,6 +143,7 @@ export default {
getDetail(id) {
this.$apis.expert.expertDetail({ id }).then(res => {
if (res?.id) {
this.editStaffId = res.staffId
this.selectPerson = res
this.$refs.welcome.setDetail(res.welcomeInfo)
this.clientType = res.businessTypeName
......@@ -183,6 +185,8 @@ export default {
preList.forEach(item => {
if(item.attType ==1 && !item.attContent.trim()){
item.attContent = '\n'
}else if(item.attType ==1){
item.attContent = item.attContent.replaceAll('@昵称','[@昵称]')
}
if (item.attType == 7) {
item.attContent = JSON.stringify(item.attContent)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!