Commit af8544c8 by 杨明

模板

1 parent 3ffa4bf2
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-05 17:24:08 * @Date: 2023-09-05 17:24:08
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-03 12:27:30 * @LastEditTime: 2024-01-03 14:47:20
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.vue * @FilePath: \scrm-micro-journey\src\views\journeyConfig\index.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
--> -->
...@@ -32,9 +32,9 @@ ...@@ -32,9 +32,9 @@
<div class="journey-step-info" v-for="(val, k) in configList" :key="k"> <div class="journey-step-info" v-for="(val, k) in configList" :key="k">
<template v-if="val.label"> <template v-if="val.label">
<collapse-item :stepItem="val" :activityInfo="activityInfo" :key="k" :ref="`collapse_${k}`"> <collapse-item :stepItem="val" :activityInfo="activityInfo" :key="k" :ref="`collapse_${k}`">
<el-button type="text" @click.stop="openCondition(k)">新增</el-button> <el-button type="text" @click.stop="openCondition(k)">新增条件</el-button>
<el-button type="text" @click.stop="handleEditJ(k)">编辑</el-button> <el-button type="text" @click.stop="handleEditJ(k)">编辑名称</el-button>
<el-button type="text" @click.stop="handleDelete(k)">删除</el-button> <el-button type="text" @click.stop="handleDelete(k)">删除阶段</el-button>
</collapse-item> </collapse-item>
</template> </template>
<div class="journey-add-panel" v-if="addStatus && k == addNo"> <div class="journey-add-panel" v-if="addStatus && k == addNo">
...@@ -196,7 +196,7 @@ export default { ...@@ -196,7 +196,7 @@ export default {
} }
}) })
}, },
cancelStep() { cancelModel() {
this.$router.go(-1) this.$router.go(-1)
}, },
handleDelete(k) { handleDelete(k) {
...@@ -228,6 +228,10 @@ export default { ...@@ -228,6 +228,10 @@ export default {
Object.assign(this.configList[len], { label, editable }) Object.assign(this.configList[len], { label, editable })
this.addStatus = false this.addStatus = false
}, },
cancelStep() {
this.addStatus = false
this.configList.splice(this.addNo, 1)
},
handleEditJ(i) { handleEditJ(i) {
this.addNo = i this.addNo = i
this.addStatus = true this.addStatus = true
......
...@@ -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-03 10:23:21 * @LastEditTime: 2024-01-04 14:24:58
* @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
--> -->
...@@ -134,8 +134,18 @@ export default { ...@@ -134,8 +134,18 @@ export default {
}) })
}, },
handleSure() { handleSure() {
const { conditionList, condition_i } = this.$refs.conditionForm; const { conditionList, conditionListAll, condition_i } = this.$refs.conditionForm
this.$emit('closeActivity', { conditionList, condition_i }) console.log(conditionList)
conditionList.conditions.forEach(i => {
conditionListAll.conditions.forEach(j => {
if (i.id == j.id) {
j.value = i.value
j.subConditions = i.subConditions
}
})
})
console.log(conditionList, conditionListAll)
this.$emit('closeActivity', { conditionList: conditionListAll, 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-03 10:19:09 * @LastEditTime: 2024-01-04 14:28:04
* @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
--> -->
...@@ -91,9 +91,11 @@ export default { ...@@ -91,9 +91,11 @@ export default {
} }
}, },
methods: { methods: {
setCondition(val,index) { setCondition(val, index) {
this.step = val.id this.step = val.id
this.conditionListAll = this.$common.utils.deepClone(val)
this.conditionList = this.$common.utils.deepClone(val) this.conditionList = this.$common.utils.deepClone(val)
if (this.conditionList.conditions) this.conditionList.conditions = this.conditionList.conditions.filter(i => !i.isHide)
this.condition_i = index this.condition_i = index
this.condition = this.conditionList.conditions && this.conditionList.conditions[0] this.condition = this.conditionList.conditions && this.conditionList.conditions[0]
}, },
...@@ -110,7 +112,9 @@ export default { ...@@ -110,7 +112,9 @@ export default {
const conditions = this.stepList.find(item => { const conditions = this.stepList.find(item => {
return item.id == e return item.id == e
}) })
this.conditionListAll = this.$common.utils.deepClone(conditions)
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)
this.condition = this.conditionList.conditions[0] this.condition = this.conditionList.conditions[0]
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-25 14:31:26 * @Date: 2023-12-25 14:31:26
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-02 17:59:48 * @LastEditTime: 2024-01-04 10:57:42
* @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\sopItem.vue * @FilePath: \scrm-micro-peregrination\src\views\journeyModel\components\sopItem.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEVid * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEVid
--> -->
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<span>请设置营销时间:</span> <span>请设置营销时间:</span>
<el-input-number v-model="day" :min="1" :max="1000" :size="size"></el-input-number> <el-input-number v-model="day" :min="1" :max="1000" :size="size"></el-input-number>
<span>天后,当日</span> <span>天后,当日</span>
<el-time-picker v-model="time" :size="size"></el-time-picker> <el-time-picker v-model="time" :size="size" format="HH:mm" value-format="HH:mm"></el-time-picker>
<span>发送</span> <span>发送</span>
</div> </div>
<div class="sop-item flex"> <div class="sop-item flex">
...@@ -56,22 +56,22 @@ export default { ...@@ -56,22 +56,22 @@ export default {
} }
}, },
inject: ['app'], inject: ['app'],
watch:{ watch: {
drawerVisible(val) { drawerVisible(val) {
if(val) { if (val) {
this.getModelList() this.getModelList()
} }
} }
}, },
methods: { methods: {
getModelList() { getModelList() {
this.$apis.journeyModel.SopTplNodeProtosList({ dataTypeCode: this.app.dataTypeCode }).then(res => { this.$apis.journeyModel.SopTplNodeProtosList({ dataTypeCode: this.app.dataTypeCode, groupCode: 'notify' }).then(res => {
this.modelList = res this.modelList = res
}) })
}, },
saveForm() { saveForm() {
const model = { const model = {
time: new Date(this.time).toLocaleTimeString().substring(0, 5), time: this.time,
day: this.day, day: this.day,
nodeProtoId: this.nodeKey nodeProtoId: this.nodeKey
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!