Commit 3a496661 by 杨明

活动

1 parent aa17ddbc
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
"js-message": "1.0.7" "js-message": "1.0.7"
} }
}, },
"@amap/amap-jsapi-loader": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz",
"integrity": "sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw=="
},
"@ampproject/remapping": { "@ampproject/remapping": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz",
...@@ -2577,6 +2582,14 @@ ...@@ -2577,6 +2582,14 @@
"integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==", "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==",
"dev": true "dev": true
}, },
"axios": {
"version": "0.21.4",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
"requires": {
"follow-redirects": "^1.14.0"
}
},
"babel-eslint": { "babel-eslint": {
"version": "10.1.0", "version": "10.1.0",
"resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz", "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz",
...@@ -12938,6 +12951,21 @@ ...@@ -12938,6 +12951,21 @@
"integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==", "integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==",
"dev": true "dev": true
}, },
"uppercamelcase": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/uppercamelcase/-/uppercamelcase-1.1.0.tgz",
"integrity": "sha512-C7YEMvhgrvTEKEEVqA7LXNID/1TvvIwYZqNIKLquS6y/MGSkRQAav9LnTTILlC1RqUM8eTVBOe1U/fnB652PRA==",
"requires": {
"camelcase": "^1.2.1"
},
"dependencies": {
"camelcase": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",
"integrity": "sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g=="
}
}
},
"uri-js": { "uri-js": {
"version": "4.4.1", "version": "4.4.1",
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
...@@ -13121,6 +13149,14 @@ ...@@ -13121,6 +13149,14 @@
"csstype": "^3.1.0" "csstype": "^3.1.0"
} }
}, },
"vue-amap": {
"version": "0.5.10",
"resolved": "https://registry.npmjs.org/vue-amap/-/vue-amap-0.5.10.tgz",
"integrity": "sha512-9ViNCev1vx32+zZ5RvF/TmUZNbwL9QrdA2/OnD2GlXMfQBkJy7D08Vb7379t6guqnopDPtWJ8K6gg72h9+4GUg==",
"requires": {
"uppercamelcase": "^1.1.0"
}
},
"vue-cli-plugin-element": { "vue-cli-plugin-element": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/vue-cli-plugin-element/-/vue-cli-plugin-element-1.0.1.tgz", "resolved": "https://registry.npmjs.org/vue-cli-plugin-element/-/vue-cli-plugin-element-1.0.1.tgz",
...@@ -14046,6 +14082,39 @@ ...@@ -14046,6 +14082,39 @@
"dayjs": "^1.8.25" "dayjs": "^1.8.25"
} }
}, },
"word-edit": {
"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",
"dayjs": "^1.11.10",
"element-ui": "^2.15.6",
"glsx-common": "^1.4.9",
"vue": "^2.6.11",
"vue-amap": "^0.5.10",
"vuedraggable": "^2.24.3"
},
"dependencies": {
"dayjs": {
"version": "1.11.10",
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz",
"integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ=="
},
"glsx-common": {
"version": "1.4.9",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz",
"integrity": "sha512-RQWGOGEXUPNmHkZn7n+eukkXp6L/mOfsgMo4gFtrt80ZDxGaznHMg7Isi4+IrEdvVdzp8Cju0eiCTddnZfdsJg==",
"requires": {
"axios": "^0.21.3",
"md5": "^2.3.0",
"qs": "^6.10.1",
"sha1": "^1.1.1"
}
}
}
},
"word-wrap": { "word-wrap": {
"version": "1.2.3", "version": "1.2.3",
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
"dayjs": "^1.10.7", "dayjs": "^1.10.7",
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"glsx-common": "^2.0.4", "glsx-common": "^2.0.4",
"glsx-components": "^1.2.5" "glsx-components": "^1.2.5",
"word-edit": "^1.3.5"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0", "@vue/cli-plugin-babel": "^4.1.0",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2024-01-03 12:23:36 * @Date: 2024-01-03 12:23:36
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-09 15:39:12 * @LastEditTime: 2024-01-12 13:41:22
* @FilePath: \scrm-micro-peregrination\src\mixins\model.js * @FilePath: \scrm-micro-peregrination\src\mixins\model.js
* @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
*/ */
...@@ -56,11 +56,11 @@ export default { ...@@ -56,11 +56,11 @@ export default {
val.subConditions.forEach(i => { val.subConditions.forEach(i => {
i.operators.forEach(o => { i.operators.forEach(o => {
if (o.value) { if (o.value) {
title += `并且满足${i.name}${o.name}${o.value}` title += `并且满足${i.name}${o.name}${o.value}${o.unit}`
} }
}) })
}) })
return title return title.replace(/,$/, '')
} }
} }
} }
...@@ -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-11 16:34:45 * @LastEditTime: 2024-01-12 15:42:46
* @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
--> -->
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="bg-fff pb20 journey-config gl-form-page"> <div class="bg-fff pb20 journey-config gl-form-page">
<el-form ref="form" :model="addForm" label-width="150px" rules="rules"> <el-form ref="form" :model="addForm" label-width="150px" rules="rules">
<el-form-item label="旅程名称:" :size="size" prop="name"> <el-form-item label="旅程名称:" :size="size" prop="name">
<el-input v-model="addForm.name"></el-input> <el-input v-model="addForm.name" maxLength="20"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="圈化人群的方式:" :size="size"> <el-form-item label="圈化人群的方式:" :size="size">
<el-select v-model="addForm.region" placeholder="请选择" @change="handleSelectType" :disabled="query.title"> <el-select v-model="addForm.region" placeholder="请选择" @change="handleSelectType" :disabled="query.title">
......
...@@ -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-11 17:05:35 * @LastEditTime: 2024-01-12 15:53:49
* @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
--> -->
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<div class="task-item-name">进入条件</div> <div class="task-item-name">进入条件</div>
<div class="task-item-desc">(描述用户触发何种条件后,将自动变更为该旅程阶段)</div> <div class="task-item-desc">(描述用户触发何种条件后,将自动变更为该旅程阶段)</div>
<div class="task-item-mark" v-if="stepItem.editable">该旅程阶段支持手动标记</div> <div class="task-item-mark">该旅程阶段支持手动标记</div>
</div> </div>
<div class="progress-item-content bg-fff" v-if="stepItem.conditionsList.length"> <div class="progress-item-content bg-fff" v-if="stepItem.conditionsList.length">
<div class="progress-item" v-for="(v, k) in stepItem.conditionsList" :key="k"> <div class="progress-item" v-for="(v, k) in stepItem.conditionsList" :key="k">
......
...@@ -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-09 14:29:18 * @LastEditTime: 2024-01-12 17:06:38
* @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
--> -->
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<el-option v-for="(item, index) in condition.operators" :key="index" :label="item.name" :value="index"></el-option> <el-option v-for="(item, index) in condition.operators" :key="index" :label="item.name" :value="index"></el-option>
</el-select> </el-select>
<div class="condition-input" v-if="condition.operators[operators]"> <div class="condition-input" v-if="condition.operators[operators]">
<el-input v-model="condition.operators[operators].value" maxLength="3" onKeypress="return(/^[0-9]*$/.test(String.fromCharCode(event.keyCode)))"></el-input> <el-input v-model="condition.operators[operators].value" maxLength="3" oninput="value=value.replace(/^0+|[^1-9\d]/g, '')"></el-input>
</div> </div>
<span>天&nbsp;&nbsp;切换到此旅程阶段</span> <span>天&nbsp;&nbsp;切换到此旅程阶段</span>
</template> </template>
...@@ -62,7 +62,8 @@ ...@@ -62,7 +62,8 @@
export default { export default {
data() { data() {
return { return {
step: '', step: null,
addFinal: {},
addInfo: {}, addInfo: {},
condition_i: null, condition_i: null,
conditionIndex: 0, conditionIndex: 0,
...@@ -123,13 +124,19 @@ export default { ...@@ -123,13 +124,19 @@ export default {
// } // }
// }, // },
setCondition(val, index) { setCondition(val, index) {
console.log(val)
this.step = val.id this.step = val.id
this.conditionListAll = this.$common.utils.deepClone(val) 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) 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]
const _conditions = this.stepList.find(i => i.id == val.id).conditions
_conditions.forEach(i => {
if (i.id == this.condition.id && this.condition.subConditions.length == 0 && i.subConditions.length > 0) {
this.condition.subConditions = i.subConditions
}
})
console.log(this.conditionList, 'this.conditionList')
}, },
// 保存最后一项用于新增 // 保存最后一项用于新增
delCondition(val, k) { delCondition(val, k) {
...@@ -143,6 +150,7 @@ export default { ...@@ -143,6 +150,7 @@ export default {
let l = val.length, let l = val.length,
prop = this.$common.utils.deepClone(val[l - 1]) prop = this.$common.utils.deepClone(val[l - 1])
if (!prop) prop = this.addInfo if (!prop) prop = this.addInfo
console.log(prop, 'prop')
prop.id++ prop.id++
val.push(prop) val.push(prop)
}, },
......
...@@ -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-10 17:16:34 * @LastEditTime: 2024-01-12 11:09:02
* @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
--> -->
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,7 @@ export default {
}, },
nodeKey: '', nodeKey: '',
day: 0, day: 0,
time: '', time: '09:00:00',
list: [], list: [],
modelList: [] modelList: []
} }
...@@ -62,6 +62,7 @@ export default { ...@@ -62,6 +62,7 @@ export default {
watch: { watch: {
drawerVisible(val) { drawerVisible(val) {
if (val) { if (val) {
this.time = '09:00:00'
this.getModelList() this.getModelList()
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!