Commit 07b704a4 by 张权

bug修复

1 parent b964ed0a
...@@ -17,8 +17,10 @@ Vue.use(ElementUI) ...@@ -17,8 +17,10 @@ Vue.use(ElementUI)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, request_common, request_merchant, sign_common, sign, secret } = await fetchConfig() const { response, request, request_brand, request_common, request_merchant, sign_common, sign, secret } = await fetchConfig()
// 本地切换域名,不需要Mock上面改动 const => let // 本地切换域名,不需要Mock上面改动 const => let
// request.baseURL = 'https://scrm.dev.glsx.com.cn' // request.baseURL = 'https://scrm.test.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.dev.glsx.com.cn' // request_brand.baseURL = 'https://scrm.test.glsx.com.cn'
// request_common.baseURL = 'https://scrm.test.glsx.com.cn'
// request_merchant.baseURL = 'https://rop-merchant.test.glsx.com.cn'
// request.baseURL = 'http://192.168.1.78:8064' // request.baseURL = 'http://192.168.1.78:8064'
// request_brand.baseURL = 'http://192.168.1.78:8064' // request_brand.baseURL = 'http://192.168.1.78:8064'
Vue.prototype.$history = history Vue.prototype.$history = history
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<div class="table-content" style="max-height: 456px;"> <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"> <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"> <div slot="radio" slot-scope="scope">
<el-radio :disabled="scope.scope.staffId == staffId" v-model="selectPerson" :label="scope.scope">&nbsp;</el-radio> <el-radio v-model="selectPerson" :label="scope.scope">&nbsp;</el-radio>
</div> </div>
<div slot="staffName" slot-scope="scope"> <div slot="staffName" slot-scope="scope">
<span>{{ scope.scope.staffName }}</span> <span>{{ scope.scope.staffName }}</span>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
export default { export default {
name: 'SelectMember', name: 'SelectMember',
props: ['selectData','staffId'], props: ['selectData'],
data() { data() {
return { return {
url: url, url: url,
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
listDepartmentTree(isFollowerStaff) { listDepartmentTree(isFollowerStaff) {
const params = { addChildrensFlag: true } const params = { addChildrensFlag: true }
this.loading = true this.loading = true
params.isHavCustomer = true params.isHavCustomer = false
params.isFollowerStaff = isFollowerStaff params.isFollowerStaff = isFollowerStaff
this.$apis.customerTransform.listDepartmentTree(params).then(res => { this.$apis.customerTransform.listDepartmentTree(params).then(res => {
console.log(res) console.log(res)
...@@ -244,7 +244,6 @@ export default { ...@@ -244,7 +244,6 @@ export default {
}, },
rowClick(row) { rowClick(row) {
// this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(row) // this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(row)
if (row.staffId === this.staffId) return
this.selectPerson = row this.selectPerson = row
}, },
checkChange(val) { checkChange(val) {
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</el-form> </el-form>
</div> </div>
<glsx-dialog class="numberDialog" :title="'选择成员'" btnSize="small" :width="'850px'" :isVisible="membersVisible" @confirmDialog="handleConfirm" @closeDialog="membersVisible = !membersVisible"> <glsx-dialog class="numberDialog" :title="'选择成员'" btnSize="small" :width="'850px'" :isVisible="membersVisible" @confirmDialog="handleConfirm" @closeDialog="membersVisible = !membersVisible">
<SelectMember ref="membersForm" :staffId="editStaffId" v-if="membersVisible" :selectData="selectData"></SelectMember> <SelectMember ref="membersForm" v-if="membersVisible" :selectData="selectData"></SelectMember>
</glsx-dialog> </glsx-dialog>
<div class="my-footer btn-box box"> <div class="my-footer btn-box box">
<el-button size="small" type="primary" @click="handleSave">提交</el-button> <el-button size="small" type="primary" @click="handleSave">提交</el-button>
...@@ -65,7 +65,6 @@ export default { ...@@ -65,7 +65,6 @@ export default {
eventBus: new Vue(), eventBus: new Vue(),
clientType: '升级客户', clientType: '升级客户',
expertId: '', expertId: '',
editStaffId:'',
btnList: [ btnList: [
{ {
id: 1, id: 1,
...@@ -143,7 +142,6 @@ export default { ...@@ -143,7 +142,6 @@ export default {
getDetail(id) { getDetail(id) {
this.$apis.expert.expertDetail({ id }).then(res => { this.$apis.expert.expertDetail({ id }).then(res => {
if (res?.id) { if (res?.id) {
this.editStaffId = res.staffId
this.selectPerson = res this.selectPerson = res
this.$refs.welcome.setDetail(res.welcomeInfo) this.$refs.welcome.setDetail(res.welcomeInfo)
this.clientType = res.businessTypeName this.clientType = res.businessTypeName
...@@ -183,20 +181,20 @@ export default { ...@@ -183,20 +181,20 @@ export default {
} }
let preList = [...this.$refs.welcome.previewList] let preList = [...this.$refs.welcome.previewList]
preList.forEach(item => { preList.forEach(item => {
if(item.attType ==1 && !item.attContent.trim()){ if (item.attType == 1 && !item.attContent.trim()) {
item.attContent = '\n' item.attContent = '\n'
}else if(item.attType ==1){ } else if (item.attType == 1) {
item.attContent = item.attContent.replaceAll('@昵称','[@昵称]') item.attContent = item.attContent.replaceAll('@昵称', '[@昵称]')
} }
if (item.attType == 7) { if (item.attType == 7) {
item.attContent = JSON.stringify(item.attContent) item.attContent = JSON.stringify(item.attContent)
} }
}) })
const typeItem = preList.find(item=>{ const typeItem = preList.find(item => {
return item.attType ==1 return item.attType == 1
}) })
if(!typeItem){ if (!typeItem) {
preList.unshift({attType:'1',attContent:'\n'}) preList.unshift({ attType: '1', attContent: '\n' })
} }
const targetItem = this.numberTypeList.find(item => { const targetItem = this.numberTypeList.find(item => {
return item.dictLabel == this.clientType return item.dictLabel == this.clientType
...@@ -317,8 +315,8 @@ export default { ...@@ -317,8 +315,8 @@ export default {
} }
.form { .form {
/deep/.el-form-item { /deep/.el-form-item {
&:nth-child(-n+2){ &:nth-child(-n + 2) {
height: 36px; height: 36px;
} }
// height: 36px; // height: 36px;
line-height: 36px; line-height: 36px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!