Commit 23a12e05 by zhangxw

联调修改

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