Commit 2e0dd5d2 by 王志慧

fixed

1 parent 41af4786
......@@ -1879,51 +1879,6 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"ssri": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
......@@ -1932,28 +1887,6 @@
"requires": {
"minipass": "^3.1.1"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
}
}
},
......@@ -13320,6 +13253,75 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-style-loader": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",
......@@ -14097,9 +14099,9 @@
}
},
"word-edit": {
"version": "1.3.4",
"resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.3.4.tgz",
"integrity": "sha512-bKrEsBiqeadYsUuwVyLx95z64Fk2aNk+0II4dqE4HtAL92ejd/Jpz6SemZbpbM3UdsoYA3PeFG9/hHopI+AyBQ==",
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.3.5.tgz",
"integrity": "sha512-9vc+0V3l+QNXrmsZQd800DuE2aftlNxloFPCgJz6hnn68DrimH3IP9UM2xliBkld8I6FHtHAMLZWhlMuJ6f5Nw==",
"requires": {
"@amap/amap-jsapi-loader": "^1.0.1",
"core-js": "^3.6.5",
......
......@@ -16,7 +16,7 @@
"el-tree-transfer": "^2.2.6",
"glsx-common": "^2.0.4",
"glsx-components": "^1.2.5",
"word-edit": "^1.3.4"
"word-edit": "^1.3.5"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
......
......@@ -6,7 +6,7 @@
* @FilePath: \live\src\api\modules\common.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http_common,http } from '@/main'
import { http_common,http_upload } from '@/main'
const pictureUpload = params => {
params.method = 'glsx.accounts.biz.common.pictureUpload'
return http_common({
......@@ -21,7 +21,7 @@ const compressVideo = params => {
// params.method = '/video/compression/upload'
// params.sessionId = session
// let paramsVideo = JSON.(params)
return http({
return http_upload({
url: '/rpc-scrm-entmicro-container/video/compression/upload',
method: 'POST',
data: params,
......
......@@ -23,3 +23,5 @@ export const http = params => Vue.prototype.$http(params)
export const http_common = params => Vue.prototype.$http_common(params)
export const http_sop = params => Vue.prototype.$http_sop(params)
export const http_merchant = params => Vue.prototype.$http_merchant(params)
export const http_upload = params => Vue.prototype.$http_upload(params)
......@@ -124,6 +124,7 @@ export default {
methods: {
getDetail(order) {
this.$apis.journeyConfig.getInstIdDetail({ instId: this.query.instId }).then(res => {
console.log(res,'res')
const instParam = JSON.parse(res.instParam)
this.dataTypeCode = instParam.dataTypeCode
//xbpzj 关联续保膨胀金
......@@ -148,7 +149,7 @@ export default {
if (instStatus == -1) {
this.journeyStatus = 4
}
const nodes = res.nodes
const nodes = res.nodes.filter(item=>item.nodeSkip!=1)
const configList = []
for (let k in stages) {
let list = []
......
......@@ -35,6 +35,14 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$http_sop = new common.Http({ response: response_sop, request: request_sop, sign, secret, alert: message.error, headers: { token: globalState.session.token, 'Content-Type': 'application/json' } })
Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
Vue.prototype.$http_merchant = new common.Http({ response, request:request_merchant, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_upload = new common.Http({
response: { ...response, data_key: 'result', code_success_value: true, code_key: 'success' },
request,
sign,
secret,
alert: message.error,
headers: { token: globalState.session.token, 'Content-Type': 'multipart/form-data' }
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers)
......
......@@ -276,8 +276,6 @@ export default {
},
created() {},
mounted() {
console.log(this.stepItem)
console.log(this.activityInfo)
},
methods: {
//获取已选择标签
......@@ -384,7 +382,6 @@ export default {
showEdit(v, k) {
const { title } = this.$route.query,
{ label, conditionsList, editable, flag } = this.stepItem
console.log(conditionsList, 8)
this.conditionInfo = {
title,
flag,
......
......@@ -10,7 +10,7 @@
</template>
<el-form-item :label="labelName + ':'">
<GLEditor ref="welcome" :form="'customer'" :mapList="mapList" style="line-height: 12px; width: 580px" :maxNum="60" boxHeight="200" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<GLEditor ref="welcome" :form="'customer'" :mapList="mapList" style="line-height: 12px; width: 580px" :maxNum="maxNum" boxHeight="200" :btnList="btnList" @previewWord="previewForm"></GLEditor>
</el-form-item>
</el-form>
<div class="explain" v-show="taskType == 8 || taskType == 9">
......@@ -68,6 +68,7 @@ export default {
data() {
return {
visible: false,
maxNum:50,
labelName: '',
tplForm: {
followerTypeId: '',
......@@ -102,25 +103,28 @@ export default {
}
},
taskType(newVal) {
console.log(newVal)
this.changeEdit(newVal)
switch (this.taskType) {
case 7:
this.title = '企微提醒模版'
this.labelName = '提醒内容'
this.maxNum = 50
break
case 5:
this.title = '门店助手提醒模版'
this.labelName = '提醒内容'
this.maxNum = 50
break
case 8:
case 9:
this.title = '营销模板'
this.labelName = '营销内容'
this.maxNum = 200
break
case 10:
this.title = '短信模版'
this.labelName = '短信内容'
this.maxNum = 50
break
}
}
......@@ -413,6 +417,6 @@ export default {
font-size: 14px;
color: #999999;
line-height: 22px;
margin: 12px 0 0 154px;
margin: -12px 0 0 154px;
}
</style>
<template>
<div class="tag-main select-tag">
<GLDialog bigTitle="选择标签"
mode="big"
:visible.sync="dialogVisible"
:before-close="handleClose">
<GLDialog bigTitle="选择标签" mode="big" :visible.sync="dialogVisible" :before-close="handleClose">
<div class="tag-panel">
<div class="tag-panel-select">
<div class="tag-title">选择标签</div>
<div class="tag-select-box">
<div class="tag-box-header">
<el-input size="small"
v-model="labelGroupName"
placeholder="请输入搜索内容"></el-input>
<el-button size="small"
type="primary"
@click="handleSearch">查询</el-button>
<el-input size="small" v-model="labelGroupName" placeholder="请输入搜索内容"></el-input>
<el-button size="small" type="primary" @click="handleSearch">查询</el-button>
</div>
<div class="checkbox-group-box"
:style="{ height: heightBox + 'px' }"
v-loading="loading">
<div style="margin-bottom: 8px"
v-for="(item, index) in labelTreeRets"
:key="index">
<span class="el-tree-node__expand-icon el-icon-caret-right"
:class="{ expanded: item.checked }"
@click.self="item.checked = !item.checked"></span>
<el-checkbox :indeterminate="item.isIndeterminate"
v-model="item.checkAll"
@change="handleCheckAllChange(item.checkAll, index)">{{
item.labelGroup.name
}}({{ item.tagChecked.length }}/{{ item.labelList.length }} 项)
</el-checkbox>
<div class="checkbox-group-box" :style="{ height: heightBox + 'px' }" v-loading="loading">
<div style="margin-bottom: 8px" v-for="(item, index) in labelTreeRets" :key="index">
<span class="el-tree-node__expand-icon el-icon-caret-right" :class="{ expanded: item.checked }" @click.self="item.checked = !item.checked"></span>
<el-checkbox :indeterminate="item.isIndeterminate" v-model="item.checkAll" @change="handleCheckAllChange(item.checkAll, index)">{{ item.labelGroup.name }}({{ item.tagChecked.length }}/{{ item.labelList.length }} 项)</el-checkbox>
<div style="margin: 15px 0"></div>
<el-checkbox-group class="tag-group"
v-model="item.tagChecked"
@change="handleCheckedChange(item.tagChecked, index)"
v-if="item.checked">
<el-checkbox v-for="(itm, idx) in item.labelList"
:label="itm"
:key="idx">{{ itm.name }}</el-checkbox>
<el-checkbox-group class="tag-group" v-model="item.tagChecked" @change="handleCheckedChange(item.tagChecked, index)" v-if="item.checked">
<el-checkbox v-for="(itm, idx) in item.labelList" :label="itm" :key="idx">{{ itm.name }}</el-checkbox>
</el-checkbox-group>
</div>
</div>
</div>
</div>
<div class="tag-panel-selected">
<div class="tag-title">已选标签
<div class="tag-title">
已选标签
<!-- <image src="@/assets/icon-info.png"/>-->
<el-tooltip effect="light"
popper-class="tool-gltip">
<img class="tag-img"
src="@/assets/icon-tip.png"
alt="" />
<el-tooltip effect="light" popper-class="tool-gltip">
<img class="tag-img" src="@/assets/icon-tip.png" alt="" />
<div slot="content">
<div class="tag-content">
<p class="tag-ex">说明:</p>
<p>标签组内已选标签取<span class="tag-ex">并集(或)</span>,即满足一个条件即可、标签组之间取<span
class="tag-ex">交集(且)</span>,即同时满足标签组条件。</p>
<img src="@/assets/groupTips.png"
alt="" />
<p>
标签组内已选标签取
<span class="tag-ex">并集(或)</span>
,即满足一个条件即可、标签组之间取
<span class="tag-ex">交集(且)</span>
,即同时满足标签组条件。
</p>
<img src="@/assets/groupTips.png" alt="" />
</div>
</div>
</el-tooltip>
</div>
<div class="tag-select-box">
<div class="tag-box-header">标签名称({{ selectNum }}项)</div>
<div class="tag-selected-box"
:style="{ height: heightBox + 'px' }">
<div v-show="!!selectNum"
class="tag-line-and"
:style="{ height: heightBox + 'px' }">
<div class="tag-box-header">
标签名称({{ selectNum }}项)
<span @click="clearTag">清空</span>
</div>
<div class="tag-selected-box" :style="{ height: heightBox + 'px' }">
<div v-show="!!selectNum" class="tag-line-and" :style="{ height: heightBox + 'px' }">
<p class="tag-line"></p>
<p class="tag-and"
:style="{ top: heightBox / 2 - 20 + 'px' }">且</p>
<p class="tag-and" :style="{ top: heightBox / 2 - 20 + 'px' }">且</p>
</div>
<div class="label-box">
<div v-for="(item, index) in labelTreeRetSelect"
:key="index">
<p class="tag-selected-label"
v-show="item.tagChecked.length">{{ item.labelGroup.name }}:</p>
<span v-for="(tag, idx) in item.tagChecked"
:key="idx">
<span class="tag-txt"
v-show="idx != 0">或</span>
<el-tag :title="tag.name"
type="info"
class="customer-tag-selected-item"
:key="idx"
v-if="tag"
closable
:disable-transitions="false"
@close="remove(item, idx)">
<div v-for="(item, index) in labelTreeRetSelect" :key="index">
<p class="tag-selected-label" v-show="item.tagChecked.length">{{ item.labelGroup.name }}:</p>
<span v-for="(tag, idx) in item.tagChecked" :key="idx">
<span class="tag-txt" v-show="idx != 0">或</span>
<el-tag :title="tag.name" type="info" class="customer-tag-selected-item" :key="idx" v-if="tag" closable :disable-transitions="false" @close="remove(item, idx)">
{{ tag.name.length > 11 ? tag.name.slice(0, 11) + '...' : tag.name }}
</el-tag>
</span>
......@@ -101,18 +68,10 @@
</div>
</div>
</div>
<span slot="footer"
class="dialog-footer">
<a class="dialog-jump"
@click="jumpUrl"
v-if="this.$globalState.session.accountLevel == 4 && this.$globalState.session.merchantModel == 2">没有意向标签?点我创建</a>
<el-button size="small"
@click="handleClose">
取 消
</el-button>
<el-button size="small"
type="primary"
@click="handleSelect">确 定</el-button>
<span slot="footer" class="dialog-footer">
<a class="dialog-jump" @click="jumpUrl" v-if="this.$globalState.session.accountLevel == 4 && this.$globalState.session.merchantModel == 2">没有意向标签?点我创建</a>
<el-button size="small" @click="handleClose">取 消</el-button>
<el-button size="small" type="primary" @click="handleSelect">确 定</el-button>
</span>
</GLDialog>
</div>
......@@ -158,6 +117,19 @@ export default {
}
},
methods: {
clearTag() {
this.labelTreeRets.forEach(item => {
this.labelTreeRetSelect.forEach(itm => {
item.tagChecked =[];
itm.tagChecked=[]
})
})
this.labelTreeRets.forEach((item, index) => {
this.$nextTick(() => {
this.handleCheckedChange(item.tagChecked, index, 1)
})
})
},
jumpUrl() {
util.openUrl(location.origin + '/custom/tagsManage/index')
this.dialogVisible = false
......@@ -173,7 +145,6 @@ export default {
this.querylabeltree()
},
querylabeltree(selectItem) {
console.log('selectItem', selectItem);
this.loading = true
this.$apis.journeyConfig
.querylabeltree({
......@@ -362,6 +333,9 @@ export default {
margin-left: 42px;
height: 100%;
overflow-y: scroll;
.el-tag {
margin-right: 0px;
}
}
.tag-selected-label {
......@@ -426,11 +400,16 @@ export default {
margin-left: 10px;
.tag-box-header {
display: flex;
justify-content: space-between;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
padding-left: 20px !important;
padding: 0 16px !important;
span {
color: #5850ff;
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!