This commit is contained in:
2021-12-10 17:07:29 +08:00
parent 9f3c13f893
commit f445045cc4
29 changed files with 539 additions and 868 deletions

View File

@@ -1,8 +1,8 @@
<!--
* @Author: zwq
* @Date: 2021-11-18 14:16:25
* @LastEditors: zwq
* @LastEditTime: 2021-12-08 11:22:54
* @LastEditors: gtz
* @LastEditTime: 2021-12-09 11:21:23
* @Description:
-->
<template>
@@ -53,7 +53,7 @@
this.$refs['dataForm'].resetFields()
if (this.dataForm.id) {
this.$http({
url: this.$http.adornUrl(`vehicle/get`),
url: this.$http.adornUrl(`/vehicle/get`),
method: 'post',
data: this.$http.adornData({id})
}).then(({data}) => {
@@ -63,7 +63,7 @@
})
} else {
this.$http({
url: this.$http.adornUrl(`vehicle/codeGenerator`),
url: this.$http.adornUrl(`/vehicle/codeGenerator`),
method: 'post',
data: this.$http.adornData()
}).then((data) => {
@@ -77,7 +77,7 @@
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.$http({
url: this.$http.adornUrl(`vehicle/${!this.dataForm.id ? 'add' : 'update'}`),
url: this.$http.adornUrl(`/vehicle/${!this.dataForm.id ? 'add' : 'update'}`),
method: 'post',
data: this.$http.adornData({
'id': this.dataForm.id || undefined,