浏览代码

fix spell error

baichengfei 5 年之前
父节点
当前提交
9a75f1b297

+ 4 - 4
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercert.go

@@ -1129,8 +1129,8 @@ func (this *OilSupplierCertController) CreateAccessCardNo() {
 // @Title 修改准入标识
 // @Description 修改准入标识
 // @Success 200 {object} controllers.Request
-// @router /updatainflag/ [get]
-func (this *OilSupplierCertController) UpdataInFlag() {
+// @router /updateinflag/ [get]
+func (this *OilSupplierCertController) UpdateInFlag() {
 	t := time.Now()
 	session := utils.DBE.NewSession()
 	var certentitys []suppliercert.OilSupplierCert
@@ -1673,8 +1673,8 @@ func (this *OilSupplierCertController) ReInput() {
 // @Title 修改年审到期时间
 // @Description 修改年审到期时间
 // @Success 200 {object} controllers.Request
-// @router /updataapplytime/:id [post]
-func (this *OilSupplierCertController) UpdataApplyTime() {
+// @router /updateapplytime/:id [post]
+func (this *OilSupplierCertController) UpdateApplyTime() {
 
 	session := utils.DBE.NewSession()
 

+ 4 - 4
src/dashoo.cn/frontend_web/src/api/oilsupplier/suppliercert.js

@@ -106,9 +106,9 @@ export default {
       method: 'GET'
     })
   },
-  updataInFlag (myAxios) {
+  UpdateInFlag (myAxios) {
     return myAxios({
-      url: '/suppliercert/updatainflag/',
+      url: '/suppliercert/updateinflag/',
       method: 'GET'
     })
   },
@@ -125,9 +125,9 @@ export default {
       params: params
     })
   },
-  updataApplyTime (entityId, params, myAxios) {
+  UpdateApplyTime (entityId, params, myAxios) {
     return myAxios({
-      url: '/suppliercert/updataapplytime/' + entityId,
+      url: '/suppliercert/updateapplytime/' + entityId,
       method: 'post',
       data: params
     })

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstore/_opera/basisedit.vue

@@ -582,7 +582,7 @@
       saveApplyTime () {
         this.$refs['formDataApplyTime'].validate((valid) => {
           if (valid) {
-            apiCert.updataApplyTime(this.formData.CertId, this.formDataApplyTime, this.$axios).then(res => {
+            apiCert.UpdateApplyTime(this.formData.CertId, this.formDataApplyTime, this.$axios).then(res => {
               if (res.data.code === 0) {
                 this.initDatas()
                 this.dialogApplyTime = false

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstore/_opera/goodsedit.vue

@@ -561,7 +561,7 @@
       saveApplyTime () {
         this.$refs['formDataApplyTime'].validate((valid) => {
           if (valid) {
-            apiCert.updataApplyTime(this.formData.CertId, this.formDataApplyTime, this.$axios).then(res => {
+            apiCert.UpdateApplyTime(this.formData.CertId, this.formDataApplyTime, this.$axios).then(res => {
               if (res.data.code === 0) {
                 this.initDatas()
                 this.dialogApplyTime = false

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstore/_opera/techedit.vue

@@ -590,7 +590,7 @@
       saveApplyTime () {
         this.$refs['formDataApplyTime'].validate((valid) => {
           if (valid) {
-            apiCert.updataApplyTime(this.formData.CertId, this.formDataApplyTime, this.$axios).then(res => {
+            apiCert.UpdateApplyTime(this.formData.CertId, this.formDataApplyTime, this.$axios).then(res => {
               if (res.data.code === 0) {
                 this.initDatas()
                 this.dialogApplyTime = false