Commit 23a12e05 by zhangxw

联调修改

1 parent d93d101d
......@@ -79,7 +79,7 @@ export default {
if (AllImgExt.indexOf(extName) === -1) {
return this.$message.error('上传格式不正确')
}
const size = e.size / 1024 / 1024
const size = file.size / 1024 / 1024
const maxSize = this.checkObj.maxSize
if (size > maxSize) {
return this.$message.error(`上传文件不可超过${maxSize}M`)
......
......@@ -240,7 +240,7 @@ export default {
contractSubjectType: '',
typeData: []
},
checkobj: {
checkObj: {
fileTypes: '.png|.jpg|.jpeg',
maxSize: 10
}
......@@ -253,16 +253,16 @@ export default {
},
watch: {
saleMode: {
deep: true,
handler(val) {
if (val == 1) {
this.$set(this.contractObj, 'contractSubjectType', 1)
} else if (val == 2) {
this.$set(this.contractObj, 'contractSubjectType', 2)
}
}
},
// saleMode: {
// deep: true,
// handler(val) {
// if (val == 1) {
// this.$set(this.contractObj, 'contractSubjectType', 1)
// } else if (val == 2) {
// this.$set(this.contractObj, 'contractSubjectType', 2)
// }
// }
// },
'contractObj.contractSubjectType': {
deep: true,
handler(val) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!