Commit 3e58955b authored by youjie's avatar youjie

no message

parent e3f3bc73
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
background: #ffffff; background: #ffffff;
z-index: 3; z-index: 3;
position: relative; position: relative;
margin-top: 100px; margin-top: 150px;
border-radius: 15px; border-radius: 15px;
} }
.examList-popup-closure{ .examList-popup-closure{
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
:show-file-list="false" :show-file-list="false"
:disabled="show" :disabled="show"
> >
<q-btn color="accent" icon="cloud_upload" label="选择文件"></q-btn> <q-btn color="accent" icon="cloud_upload" label="选择文件" :disabled="show"></q-btn>
</el-upload> </el-upload>
</div> </div>
</div> </div>
...@@ -125,6 +125,19 @@ ...@@ -125,6 +125,19 @@
} }
}; };
}, },
watch: {
uploadParm: {
immediate: true,
handler(val) {
if (val) {
if(!val.ExamName){
this.Error('请输入考试名称');
}
}
},
deep: true
}
},
created() { created() {
}, },
...@@ -136,12 +149,9 @@ ...@@ -136,12 +149,9 @@
}, },
methods: { methods: {
uploadFile(files) {//文件上传 uploadFile(files) {//文件上传
if(!this.uploadParm.ExamName){ if(!this.uploadParm.ExamName){
uni.showToast({ this.Error('请输入考试名称');
title:'请输入考试名称',
icon:'none',
duration: 500
})
return return
} }
this.show = true this.show = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment