diff --git a/base-vue/src/views/modules/car/car-add-or-update.vue b/base-vue/src/views/modules/car/car-add-or-update.vue index f000613..9a18464 100644 --- a/base-vue/src/views/modules/car/car-add-or-update.vue +++ b/base-vue/src/views/modules/car/car-add-or-update.vue @@ -8,19 +8,26 @@ - + + + + - - - - - - - + @@ -35,14 +42,13 @@ data () { return { visible: false, + navigationTypeOpt: [], dataForm: { carId: 0, carName: '', navigationType: '', remarks: '', - isOn: '', - createUserId: '', - createTime: '' + isOn: 0 }, dataRule: { carName: [ @@ -50,23 +56,22 @@ ], navigationType: [ { required: true, message: '导航类型不能为空', trigger: 'blur' } - ], - remarks: [ - { required: true, message: '备注不能为空', trigger: 'blur' } - ], - isOn: [ - { required: true, message: '是否启用不能为空', trigger: 'blur' } - ], - createUserId: [ - { required: true, message: '创建者ID不能为空', trigger: 'blur' } - ], - createTime: [ - { required: true, message: '创建时间不能为空', trigger: 'blur' } ] } } }, + created () { + this.getDictDetail() + }, methods: { + getDictDetail () { + this.$http({ + url: this.$http.adornUrl('/api/dict/dictDetail?code=navigation_type&page=0&size=9999'), + method: 'get' + }).then(({data}) => { + this.navigationTypeOpt = [...data.content] + }) + }, init (id) { this.dataForm.carId = id || 0 this.visible = true @@ -74,7 +79,7 @@ this.$refs['dataForm'].resetFields() if (this.dataForm.carId) { this.$http({ - url: this.$http.adornUrl(`/tickets/car/info/${this.dataForm.carId}`), + url: this.$http.adornUrl(`/car/car/info/${this.dataForm.carId}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { @@ -83,8 +88,6 @@ this.dataForm.navigationType = data.car.navigationType this.dataForm.remarks = data.car.remarks this.dataForm.isOn = data.car.isOn - this.dataForm.createUserId = data.car.createUserId - this.dataForm.createTime = data.car.createTime } }) } @@ -95,16 +98,14 @@ this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ - url: this.$http.adornUrl(`/tickets/car/${!this.dataForm.carId ? 'save' : 'update'}`), + url: this.$http.adornUrl(`/car/car/${!this.dataForm.carId ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'carId': this.dataForm.carId || undefined, 'carName': this.dataForm.carName, 'navigationType': this.dataForm.navigationType, 'remarks': this.dataForm.remarks, - 'isOn': this.dataForm.isOn, - 'createUserId': this.dataForm.createUserId, - 'createTime': this.dataForm.createTime + 'isOn': this.dataForm.isOn }) }).then(({data}) => { if (data && data.code === 0) { diff --git a/base-vue/src/views/modules/car/car.vue b/base-vue/src/views/modules/car/car.vue index 30626db..b0edc30 100644 --- a/base-vue/src/views/modules/car/car.vue +++ b/base-vue/src/views/modules/car/car.vue @@ -118,7 +118,7 @@ getDataList () { this.dataListLoading = true this.$http({ - url: this.$http.adornUrl('/tickets/car/list'), + url: this.$http.adornUrl('/car/car/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, @@ -169,7 +169,7 @@ type: 'warning' }).then(() => { this.$http({ - url: this.$http.adornUrl('/tickets/car/delete'), + url: this.$http.adornUrl('/car/car/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { diff --git a/base-vue/src/views/modules/contract/bg.jpg b/base-vue/src/views/modules/contract/bg.jpg deleted file mode 100644 index b1f4ada..0000000 Binary files a/base-vue/src/views/modules/contract/bg.jpg and /dev/null differ diff --git a/base-vue/src/views/modules/contract/contract-add-or-update_back.vue b/base-vue/src/views/modules/contract/contract-add-or-update_back.vue deleted file mode 100644 index 4504801..0000000 --- a/base-vue/src/views/modules/contract/contract-add-or-update_back.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - \ No newline at end of file diff --git a/base-vue/src/views/modules/contract/contract_back.vue b/base-vue/src/views/modules/contract/contract_back.vue deleted file mode 100644 index 0273086..0000000 --- a/base-vue/src/views/modules/contract/contract_back.vue +++ /dev/null @@ -1,246 +0,0 @@ - - - \ No newline at end of file diff --git a/base-vue/src/views/modules/material/material-add-or-update.vue b/base-vue/src/views/modules/material/material-add-or-update.vue index 71cf8ec..bdb5da6 100644 --- a/base-vue/src/views/modules/material/material-add-or-update.vue +++ b/base-vue/src/views/modules/material/material-add-or-update.vue @@ -11,7 +11,14 @@ - + + + + { + this.materialTypeOpt = [...data.content] + }) + }, init (id) { this.dataForm.materialId = id || 0 this.visible = true