Commit 109bb155 by 杨明

fixed

1 parent b2002101
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-22 19:29:52
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-08 09:20:15
* @FilePath: \scrm-micro-peregrination\src\views\journeyConfig\config\table-config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const tableConfig = { const tableConfig = {
data() { data() {
return { return {
getListApi: this.$apis.journeyConfig.getListApi, getListApi: this.$apis.journeyConfig.getListApi,
pageConf: {pageSize: 'pageSize', pageNum: 'pageNumber', totalCount: 'total'}, pageConf: { pageSize: 'pageSize', pageNum: 'pageNumber', totalCount: 'total' },
tableParams: { tableParams: {
listName: 'list', listName: 'list',
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: [
{ {
label: '模板ID', label: '模板ID',
prop: 'instId', prop: 'instId'
}, },
{ {
label: '旅程模板名称', label: '旅程模板名称',
prop: 'instName', prop: 'instName'
}, },
{ {
label: '旅程阶段', label: '旅程阶段',
prop: 'instRemark', prop: 'instRemark',
addHtml: 'instRemark', addHtml: 'instRemark',
width:320 width: 320
}, },
{ {
label: '门店名称', label: '门店名称',
...@@ -30,13 +38,13 @@ const tableConfig = { ...@@ -30,13 +38,13 @@ const tableConfig = {
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createTime', prop: 'createTime'
}, },
{ {
label: '修改时间', label: '修改时间',
prop: 'updateTime', prop: 'updateTime'
} }
], ]
}, },
tableButtonList: [ tableButtonList: [
{ {
...@@ -47,15 +55,11 @@ const tableConfig = { ...@@ -47,15 +55,11 @@ const tableConfig = {
}, },
listeners: { listeners: {
click: row => this.gotoDetails(row.instId) click: row => this.gotoDetails(row.instId)
} }
} }
], ]
} }
} }
} }
export default tableConfig export default tableConfig
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-22 20:36:05 * @Date: 2023-12-22 20:36:05
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-03 12:32:18 * @LastEditTime: 2024-01-08 12:18:31
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\CollapseItem.vue * @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\CollapseItem.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -332,9 +332,23 @@ export default { ...@@ -332,9 +332,23 @@ export default {
this.statVisible = true this.statVisible = true
}, },
spiltString(val, n) { spiltString(val, n) {
const title = JSON.parse(val.paramRemark).title let title = ''
try {
title += JSON.parse(val.paramRemark).title
} catch (error) {}
val.conditions.forEach(item => {
title += JSON.parse(item.paramRemark).title
item.subConditions &&
item.subConditions.length &&
item.subConditions.forEach(i => {
i.operators.forEach(o => {
if (o.value) {
title += `并且满足${i.name}${o.name}${o.value}`
}
})
})
})
return title return title
// return (title.split('-')[n] || '').replace('文字备注:', '')
}, },
//查看详情 //查看详情
getEmpDetail() { getEmpDetail() {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-27 11:29:17 * @Date: 2023-09-27 11:29:17
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-05 12:42:14 * @LastEditTime: 2024-01-08 10:31:05
* @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\relatedActivity.vue * @FilePath: \scrm-micro-scene\src\views\journeyConfig\components\relatedActivity.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -135,7 +135,9 @@ export default { ...@@ -135,7 +135,9 @@ export default {
}, },
handleSure() { handleSure() {
const { conditionList, conditionListAll, condition_i } = this.$refs.conditionForm const { conditionList, conditionListAll, condition_i } = this.$refs.conditionForm
console.log(conditionList, 'conditionList') conditionList.conditions.forEach(i => {
i.subConditions = i.subConditions.filter(sub => sub.value !== '')
})
conditionList.conditions.forEach(i => { conditionList.conditions.forEach(i => {
conditionListAll.conditions.forEach(j => { conditionListAll.conditions.forEach(j => {
if (i.id == j.id) { if (i.id == j.id) {
...@@ -144,8 +146,8 @@ export default { ...@@ -144,8 +146,8 @@ export default {
} }
}) })
}) })
console.log(conditionList, conditionListAll,9) console.log(conditionList, conditionListAll, 9)
this.$emit('closeActivity', { conditionList: {...conditionListAll,flag:conditionList.flag}, condition_i }) this.$emit('closeActivity', { conditionList: { ...conditionListAll, flag: conditionList.flag }, condition_i })
}, },
handleAddEmp() { handleAddEmp() {
this.membersVisible = true this.membersVisible = true
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-25 13:34:43 * @Date: 2023-12-25 13:34:43
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-05 17:11:41 * @LastEditTime: 2024-01-08 10:28:06
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\condition.vue * @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\condition.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -141,7 +141,6 @@ export default { ...@@ -141,7 +141,6 @@ export default {
this.conditionList = this.$common.utils.deepClone(conditions) this.conditionList = this.$common.utils.deepClone(conditions)
if (this.conditionList.conditions) this.conditionList.conditions = this.conditionList.conditions.filter(i => !i.isHide) if (this.conditionList.conditions) this.conditionList.conditions = this.conditionList.conditions.filter(i => !i.isHide)
this.condition = this.conditionList.conditions[0] this.condition = this.conditionList.conditions[0]
console.log(this.condition)
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!