Commit 8b223115 by 胡悦

修改样式

1 parent 3050dcbb
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
<div v-if="$route.params.url == 'submit'"> <div v-if="$route.params.url == 'submit'">
<el-button <el-button
class="import-btn" class="import-btn"
style="display: block;" style="display: block;width: 120px;"
:size="btn_size"
type="primary" type="primary"
>上传{{item.docName}} >上传{{item.docName}}
<input <input
...@@ -189,6 +190,7 @@ export default { ...@@ -189,6 +190,7 @@ export default {
'$route.params'(val) { '$route.params'(val) {
console.log(val, 'watch') console.log(val, 'watch')
if (val.vehicleId) { if (val.vehicleId) {
if (this.$refs.vehicleSubmitForm) this.$refs.vehicleSubmitForm.$children[0].clearValidate()
findVehDoc({ vehicleId: val.vehicleId }).then(res => { findVehDoc({ vehicleId: val.vehicleId }).then(res => {
if (val.url == 'submit') { if (val.url == 'submit') {
this.submitData.forEach(item => { this.submitData.forEach(item => {
...@@ -213,6 +215,7 @@ export default { ...@@ -213,6 +215,7 @@ export default {
}, },
mounted() { mounted() {
let params = this.$route.params let params = this.$route.params
if (this.$refs.vehicleSubmitForm) this.$refs.vehicleSubmitForm.$children[0].clearValidate()
findVehDoc({ vehicleId: params.vehicleId }).then(res => { findVehDoc({ vehicleId: params.vehicleId }).then(res => {
if (params.url == 'submit') { if (params.url == 'submit') {
this.submitData.forEach(item => { this.submitData.forEach(item => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!