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 = {
data() {
return {
getListApi: this.$apis.journeyConfig.getListApi,
pageConf: {pageSize: 'pageSize', pageNum: 'pageNumber', totalCount: 'total'},
tableParams: {
listName: 'list',
tableOption: true,
tableColumns: [
{
label: '模板ID',
prop: 'instId',
},
{
label: '旅程模板名称',
prop: 'instName',
},
{
label: '旅程阶段',
prop: 'instRemark',
addHtml: 'instRemark',
width:320
},
{
label: '门店名称',
prop: 'sopTplGrant',
formatter: cellValue => {
return cellValue.sopTplGrant && cellValue.sopTplGrant.groupName
}
},
{
label: '创建时间',
prop: 'createTime',
},
{
label: '修改时间',
prop: 'updateTime',
}
],
},
tableButtonList: [
{
type: 'el-button',
name: '模板实例详情',
attrs: {
type: 'text'
},
listeners: {
click: row => this.gotoDetails(row.instId)
}
}
],
data() {
return {
getListApi: this.$apis.journeyConfig.getListApi,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNumber', totalCount: 'total' },
tableParams: {
listName: 'list',
tableOption: true,
tableColumns: [
{
label: '模板ID',
prop: 'instId'
},
{
label: '旅程模板名称',
prop: 'instName'
},
{
label: '旅程阶段',
prop: 'instRemark',
addHtml: 'instRemark',
width: 320
},
{
label: '门店名称',
prop: 'sopTplGrant',
formatter: cellValue => {
return cellValue.sopTplGrant && cellValue.sopTplGrant.groupName
}
},
{
label: '创建时间',
prop: 'createTime'
},
{
label: '修改时间',
prop: 'updateTime'
}
]
},
tableButtonList: [
{
type: 'el-button',
name: '模板实例详情',
attrs: {
type: 'text'
},
listeners: {
click: row => this.gotoDetails(row.instId)
}
}
]
}
}
}
export default tableConfig
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-22 20:36:05
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -332,9 +332,23 @@ export default {
this.statVisible = true
},
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.split('-')[n] || '').replace('文字备注:', '')
},
//查看详情
getEmpDetail() {
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-27 11:29:17
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -135,7 +135,9 @@ export default {
},
handleSure() {
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 => {
conditionListAll.conditions.forEach(j => {
if (i.id == j.id) {
......@@ -144,8 +146,8 @@ export default {
}
})
})
console.log(conditionList, conditionListAll,9)
this.$emit('closeActivity', { conditionList: {...conditionListAll,flag:conditionList.flag}, condition_i })
console.log(conditionList, conditionListAll, 9)
this.$emit('closeActivity', { conditionList: { ...conditionListAll, flag: conditionList.flag }, condition_i })
},
handleAddEmp() {
this.membersVisible = true
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-25 13:34:43
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -141,7 +141,6 @@ export default {
this.conditionList = this.$common.utils.deepClone(conditions)
if (this.conditionList.conditions) this.conditionList.conditions = this.conditionList.conditions.filter(i => !i.isHide)
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!