Commit ac1bb77a by 张权

逻辑修改

1 parent 9b885edb
...@@ -15,8 +15,10 @@ Vue.use(GLTable) ...@@ -15,8 +15,10 @@ Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, sign, secret } = await fetchConfig() const { response, request, request_brand, 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.baseURL = 'http://192.168.1.78:8064'
// request_brand.baseURL = 'http://192.168.1.78:8064'
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
...@@ -26,8 +28,8 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -26,8 +28,8 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$defaultStartDate = '2021-07-01' Vue.prototype.$defaultStartDate = '2021-07-01'
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '3c50d4be-7211-45c1-a2c6-9792bbb3c0d9' } }) // Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-8e58ed43-8b98-43f1-932c-99ac788d426c-rop' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: '3c50d4be-7211-45c1-a2c6-9792bbb3c0d9' } }) // Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-8e58ed43-8b98-43f1-932c-99ac788d426c-rop' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) routes = getRoutes(routesData)
...@@ -51,4 +53,4 @@ function subscribe({ messenger }) { ...@@ -51,4 +53,4 @@ function subscribe({ messenger }) {
messenger.subscribe(v => { messenger.subscribe(v => {
// console.log(`监听到子应用${v.from}发来消息:`, v) // console.log(`监听到子应用${v.from}发来消息:`, v)
}) })
}
\ No newline at end of file \ No newline at end of file
}
...@@ -111,15 +111,15 @@ export default { ...@@ -111,15 +111,15 @@ export default {
this.$emit('add', type) this.$emit('add', type)
}, },
addTag(text) { addTag(text) {
// // 创建模版标签 // 创建模版标签
// let node = document.createElement(this.tag) let node = document.createElement(this.tag)
// if (navigator.userAgent.indexOf('Firefox') > 0) { if (navigator.userAgent.indexOf('Firefox') > 0) {
// node.setAttribute('contenteditable', 'false') node.setAttribute('contenteditable', 'false')
// } }
// node.innerText = text node.innerText = text
// // 添加id便于删除 // 添加id便于删除
// node.id = this.getGuid() node.id = this.getGuid()
// this.insertNode(node) this.insertNode(node)
let textarea = document.getElementsByClassName('w-textarea_input') let textarea = document.getElementsByClassName('w-textarea_input')
console.log(textarea[0].childNodes, textarea[0]?.childNodes?.length) console.log(textarea[0].childNodes, textarea[0]?.childNodes?.length)
}, },
......
...@@ -7,13 +7,18 @@ ...@@ -7,13 +7,18 @@
<div class="detail-wrap"> <div class="detail-wrap">
<el-form class="form" ref="form" :model="basicForm" label-width="128px"> <el-form class="form" ref="form" :model="basicForm" label-width="128px">
<el-form-item label="客户类型:"> <el-form-item label="客户类型:">
<span>{{ clientType == 1 ? '升级客户' : '战败客户' }}</span> <span class="client">{{ clientType == 1 ? '升级客户' : '战败客户' }}</span>
</el-form-item> </el-form-item>
<el-form-item required label="轻改专家:"> <el-form-item required label="轻改专家:">
<el-button size="small" icon="el-icon-plus" @click="openMembers"> <span v-if="selectPerson && selectPerson.staffName" class="tag-info">
<i class="el-icon-user-solid person"></i>
<span class="client name">{{ selectPerson && selectPerson.staffName }}</span>
<i class="el-icon-close del" @click="delPerson"></i>
</span>
<el-button v-else size="small" icon="el-icon-plus" @click="openMembers">
选择成员 选择成员
</el-button> </el-button>
<span>所属商户:xx门店</span> <span v-if="selectPerson && selectPerson.departmentName" class="depart-name">{{ selectPerson && selectPerson.departmentName }}</span>
</el-form-item> </el-form-item>
<el-form-item label="欢迎语:"> <el-form-item label="欢迎语:">
<!-- <label slot="label" class="required">群发内容</label> --> <!-- <label slot="label" class="required">群发内容</label> -->
...@@ -33,6 +38,10 @@ ...@@ -33,6 +38,10 @@
<glsx-dialog :title="'选择成员'" :width="'1142px'" :isVisible="membersVisible" @confirmDialog="handleConfirm" @closeDialog="membersVisible = !membersVisible"> <glsx-dialog :title="'选择成员'" :width="'1142px'" :isVisible="membersVisible" @confirmDialog="handleConfirm" @closeDialog="membersVisible = !membersVisible">
<SelectMember ref="membersForm" 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">
<el-button size="small" type="primary" @click="handleSave">提交</el-button>
<el-button type="default" size="small" @click="handleCancel">取消</el-button>
</div>
</div> </div>
</template> </template>
...@@ -109,6 +118,9 @@ export default { ...@@ -109,6 +118,9 @@ export default {
}, },
methods: { methods: {
addConfig() {}, addConfig() {},
delPerson() {
this.selectPerson = null
},
// 成员弹窗 // 成员弹窗
handleConfirm() { handleConfirm() {
console.log(this.$refs.membersForm.selectPerson) console.log(this.$refs.membersForm.selectPerson)
...@@ -131,7 +143,7 @@ export default { ...@@ -131,7 +143,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.expert-detail { .expert-detail {
background-color: #fff; background-color: #fff;
height: calc(100vh - 80px); height: calc(100% - 80px);
.header { .header {
height: 56px; height: 56px;
font-size: 16px; font-size: 16px;
...@@ -150,6 +162,36 @@ export default { ...@@ -150,6 +162,36 @@ export default {
} }
.detail-wrap { .detail-wrap {
padding: 40px; padding: 40px;
.client {
color: #333;
}
.tag-info {
display: inline-block;
border: 1px solid #e8e8ea !important;
border-radius: 4px;
width: 94px;
height: 28px;
line-height: 28px;
text-align: center;
.name {
margin: 0 5px;
}
.person {
color: #75acff;
}
.del {
cursor: pointer;
}
}
.depart-name {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
line-height: 20px;
margin-left: 8px;
}
.form { .form {
/deep/.el-form-item { /deep/.el-form-item {
& > .el-form-item__label { & > .el-form-item__label {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div class="expert-wrap"> <div class="expert-wrap">
<glsx-combi-form ref="expertRef" labelWidth="72px" defaultWidth="215px" :formObj="batchListSearch" :formData="expertForm"> <glsx-combi-form ref="expertRef" labelWidth="72px" defaultWidth="215px" :formObj="batchListSearch" :formData="expertForm">
<div slot="department"> <div slot="department">
<el-cascader popper-class="expert-cascader" ref="cascaderRef1" placeholder="请选择商户/门店" @change="getCurMerchant" :show-all-levels="false" v-model="batchListSearch.departmentName" :props="mypropParam1" :options="shopList" size="small" style="width: 320px" separator=" " filterable> <el-cascader popper-class="expert-cascader" ref="cascaderRef1" placeholder="请选择商户/门店" @change="getCurMerchant" :show-all-levels="false" v-model="batchListSearch.departmentId" :props="mypropParam1" :options="shopList" size="small" style="width: 215px" separator=" " filterable>
<template slot-scope="{ data }"> <template slot-scope="{ data }">
<el-tooltip popper-class="myToolTipClass" style="border: none" :disabled="data.label.length > 12 ? false : true" class="item" effect="light" :content="data.label" placement="top-end"> <el-tooltip popper-class="myToolTipClass" style="border: none" :disabled="data.label.length > 12 ? false : true" class="item" effect="light" :content="data.label" placement="top-end">
<div class="limitText" style="width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">{{ data.label }}</div> <div class="limitText" style="width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">{{ data.label }}</div>
...@@ -70,14 +70,14 @@ export default { ...@@ -70,14 +70,14 @@ export default {
showClientType: false, showClientType: false,
batchPageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' }, batchPageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
batchListSearch: { batchListSearch: {
departmentName: '', departmentId: '',
staffName: '', staffName: '',
businessType: '' businessType: ''
}, },
expertForm: [ expertForm: [
{ {
label: '门店', label: '门店',
name: 'departmentName', name: 'departmentId',
addHtml: 'department' addHtml: 'department'
}, },
{ {
...@@ -184,7 +184,7 @@ export default { ...@@ -184,7 +184,7 @@ export default {
getCurMerchant(val) { getCurMerchant(val) {
console.log(val, 7897) console.log(val, 7897)
let id = val[val.length - 1] let id = val[val.length - 1]
this.batchListSearch.departmentName = id this.batchListSearch.departmentId = id
// let labels = this.$refs.cascaderRef1.getCheckedNodes()[0].pathLabels // let labels = this.$refs.cascaderRef1.getCheckedNodes()[0].pathLabels
// let curLabel = labels[labels.length - 1] // let curLabel = labels[labels.length - 1]
// this.curTempMerchant = { // this.curTempMerchant = {
...@@ -328,7 +328,7 @@ export default { ...@@ -328,7 +328,7 @@ export default {
margin-top: 16px; margin-top: 16px;
padding: 20px 20px 0; padding: 20px 20px 0;
background-color: #fff; background-color: #fff;
height: calc(100vh - 148px); // height: calc(100vh - 148px);
.select_wrapper { .select_wrapper {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -345,7 +345,8 @@ export default { ...@@ -345,7 +345,8 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.writeOff { .writeOff {
margin-top: 17px; margin-top: 17px;
height: calc(100vh - 206px); // height: calc(100vh - 206px);
margin-bottom: 64px;
background-color: #fff; background-color: #fff;
.header { .header {
height: 60px; height: 60px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!