Commit 065d94a3 by 前端

Merge branch 'xuyl_dev_v3.3.0' into 'v3.3.0'

更新3.3.0联调后代码

See merge request !387
2 parents 1bb037a9 4ddcfdbd
...@@ -349,7 +349,7 @@ export default { ...@@ -349,7 +349,7 @@ export default {
mounted() { mounted() {
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.routeInfo.addOrEdit != 1 ? this.getMaterialInfo() : '' this.routeInfo.addOrEdit != 1 ? this.getMaterialInfo() : ''
this.routeInfo.addOrEdit != 1 ? (this.routeInfo.status != 1 ? this.forbidEdit() : '') : '' this.routeInfo.addOrEdit == 3 ? this.forbidEdit() : ''
this.title = this.titleObj[this.routeInfo.addOrEdit] this.title = this.titleObj[this.routeInfo.addOrEdit]
// this.notDisplayProperties = this.routeInfo.addOrEdit == 3 && this.routeInfo.status != 1 // this.notDisplayProperties = this.routeInfo.addOrEdit == 3 && this.routeInfo.status != 1
this.notDisplayProperties = this.routeInfo.addOrEdit == 3 this.notDisplayProperties = this.routeInfo.addOrEdit == 3
...@@ -576,12 +576,17 @@ export default { ...@@ -576,12 +576,17 @@ export default {
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.$apis.common.pictureUpload({file: base64}).then(res => { this.$apis.common.pictureUpload({file: base64}).then(res => {
if (res) { if (res) {
if (Array.isArray(this.materialAddForm[params])) { if (Array.isArray(this.materialAddForm[params]) || this.materialAddForm[params] == null) {
if (this.materialAddForm[params].length > 8) { if (this.materialAddForm[params] && this.materialAddForm[params].length > 8) {
this.$message.error('图片最多可上传9张') this.$message.error('图片最多可上传9张')
return return
} else { } else {
this.materialAddForm[params].push(res) if (!this.materialAddForm[params]) {
this.materialAddForm[params] = []
this.materialAddForm[params][0] = res
} else {
this.materialAddForm[params].push(res)
}
} }
} else { } else {
this.materialAddForm[params] = res this.materialAddForm[params] = res
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!