Explorar o código

fix spell error

baichengfei %!s(int64=5) %!d(string=hai) anos
pai
achega
30ff8be650

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

@@ -1777,8 +1777,8 @@ func (this *OilSupplierCertController) GetApplyTimeList() {
 // @Title 修改增项是否需要限制 针对企业
 // @Description 修改年审到期时间
 // @Success 200 {object} controllers.Request
-// @router /updataisrestrict/:id [post]
-func (this *OilSupplierCertController) UpdataIsRestrict() {
+// @router /updateisrestrict/:id [post]
+func (this *OilSupplierCertController) UpdateIsRestrict() {
 	id := this.Ctx.Input.Param(":id")
 	var errinfo ErrorInfo
 	if id == "" {

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

@@ -146,9 +146,9 @@ export default {
       params: params
     })
   },
-  updataIsRestrict (id, params, myAxios) {
+  updateIsRestrict (id, params, myAxios) {
     return myAxios({
-      url: '/suppliercert/updataisrestrict/' + id,
+      url: '/suppliercert/updateisrestrict/' + id,
       method: 'post',
       params: params
     })

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

@@ -552,7 +552,7 @@
         let params = {
           IsRestrict: val
         }
-        apiCert.updataIsRestrict(this.formData.CertId, params, this.$axios).then(res => {
+        apiCert.updateIsRestrict(this.formData.CertId, params, this.$axios).then(res => {
           if (res.data.code === 0) {
             this.initDatas()
             this.$message({

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

@@ -531,7 +531,7 @@
         let params = {
           IsRestrict: val
         }
-        apiCert.updataIsRestrict(this.formData.CertId, params, this.$axios).then(res => {
+        apiCert.updateIsRestrict(this.formData.CertId, params, this.$axios).then(res => {
           if (res.data.code === 0) {
             this.initDatas()
             this.$message({

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

@@ -560,7 +560,7 @@
         let params = {
           IsRestrict: val
         }
-        apiCert.updataIsRestrict(this.formData.CertId, params, this.$axios).then(res => {
+        apiCert.updateIsRestrict(this.formData.CertId, params, this.$axios).then(res => {
           if (res.data.code === 0) {
             this.initDatas()
             this.$message({