Commit 4addff47 by 匡雅琴

素材禁用编辑修改

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