Commit 894478c5 by 胡悦

Merge branch 'kuangyq_fix_v2.0.0' of http://192.168.3.233:8090/saas/scrm-micro-m…

…arketing into kuangyq_fix_v2.0.0
2 parents b2df89c1 4addff47
......@@ -244,6 +244,7 @@ export default {
},
mounted() {
this.routeInfo = this.$route.query
console.log(this.routeInfo, 'this.routeInfo');
this.routeInfo.addOrEdit != 1 ? this.getMaterialInfo() : ''
this.title = this.titleObj[this.routeInfo.addOrEdit]
this.materialInsert()
......@@ -285,6 +286,9 @@ export default {
getMaterialInfo() {
var params = {}
params.id = this.routeInfo.id
if (this.routeInfo.status == -1) {
params.flag = 0
}
this.$apis.material.materialDetail(params).then(res => {
this.materialAddForm = res
if (this.materialAddForm.businessType) {
......
......@@ -424,6 +424,7 @@ export default {
$title: encodeURI(addOrEdit == 1 ? '创建营销素材' : '编辑营销素材')
}
addOrEdit != 1 && (params.id = scope.id)
addOrEdit != 1 && (params.status = scope.status)
this.$router.push({
path: '/material/addMaterial',
query: params
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!