diff --git a/src/views/firstLevelDoor/freightVehiclesPort/fleetFilingApplication/components/list.vue b/src/views/firstLevelDoor/freightVehiclesPort/fleetFilingApplication/components/list.vue index 4bae605..ae0de10 100644 --- a/src/views/firstLevelDoor/freightVehiclesPort/fleetFilingApplication/components/list.vue +++ b/src/views/firstLevelDoor/freightVehiclesPort/fleetFilingApplication/components/list.vue @@ -69,7 +69,7 @@ - + @@ -128,10 +128,10 @@ export default{ this.getList() }, methods: { - getAuditType(IS_AUDIT){ - if (IS_AUDIT === '1'){ + getAuditType(IS_AUDIT) { + if (IS_AUDIT === '1') { return '审核通过' - }else { + } else { return '未审核' } }, @@ -161,10 +161,11 @@ export default{ this.listLoading = false }) }, - handleAdd(){ + handleAdd() { + this.form.ADD_MOTORCADE_NAME = '' this.addLoading = true }, - saveMotorcade(){ + saveMotorcade() { this.$refs.form.validate((valid) => { if (valid) { requestFN( @@ -181,19 +182,20 @@ export default{ this.addLoading = false }) } else { - this.$message.error('请填写完整信息'); + this.$message.error('请填写完整信息') } }) }, - handleEdit(row){ + handleEdit(row) { this.form.MOTORCADE_ID = row.MOTORCADE_ID + this.form.ADD_MOTORCADE_NAME = row.MOTORCADE_NAME this.editLoading = true }, - editMotorcade(){ + editMotorcade() { requestFN( '/mkmj/management/motorcadeInfoManagement', { - MOTORCADE_ID : this.form.MOTORCADE_ID, + MOTORCADE_ID: this.form.MOTORCADE_ID, MOTORCADE_NAME: this.form.ADD_MOTORCADE_NAME, CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID } @@ -214,11 +216,11 @@ export default{ requestFN( '/mkmj/management/deleteMotorCade', { - MOTORCADE_ID : row.MOTORCADE_ID + MOTORCADE_ID: row.MOTORCADE_ID } ).then((data) => { - this.listLoading = false - this.getList() + this.listLoading = false + this.getList() }).catch((e) => { this.listLoading = false })