2
3
Quellcode durchsuchen

前端: 增项申请-删除数据时loading

baichengfei vor 5 Jahren
Ursprung
Commit
7e9f7e11bb

+ 3 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/basislist.vue

@@ -486,6 +486,7 @@ import WfHistory from '@/components/workflow/wfhistory.vue'
           type: 'warning'
         })
           .then(() => {
+            _this.tableLoading = true
             api.deleteEntity(Id, _this.$axios)
               .then(res => {
                 if (res.data.code === 0) {
@@ -495,11 +496,13 @@ import WfHistory from '@/components/workflow/wfhistory.vue'
                   })
                   // 更新
                   this.initData()
+                  _this.tableLoading = false
                 } else {
                   _this.$message({
                     type: 'warning',
                     message: res.data.message
                   })
+                  _this.tableLoading = false
                 }
               })
               .catch(() => {})

+ 4 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/goodslist.vue

@@ -369,7 +369,7 @@ import WfHistory from '@/components/workflow/wfhistory.vue'
         })
           .then(() => {
             _this.appendformData.AppendType = '01'
-            console.log(_this.appendformData.SupplierId, '_this.appendformData.SupplierId')
+            console.log(_this.appendformData.SupplierId, '增项申请主表')
             _this.appendformData.SupplierId = parseInt(_this.appendformData.SupplierId)
             if (!_this.appendformData.SupplierId && _this.IsCompanyUser == 0) {
               _this.appendformData.SupplierId = ''
@@ -490,6 +490,7 @@ import WfHistory from '@/components/workflow/wfhistory.vue'
           type: 'warning'
         })
           .then(() => {
+            _this.tableLoading = true
             api.deleteEntity(Id, _this.$axios)
               .then(res => {
                 if (res.data.code === 0) {
@@ -499,11 +500,13 @@ import WfHistory from '@/components/workflow/wfhistory.vue'
                   })
                   // 更新
                   this.initData()
+                  _this.tableLoading = false
                 } else {
                   _this.$message({
                     type: 'warning',
                     message: res.data.message
                   })
+                  _this.tableLoading = false
                 }
               })
               .catch(() => {})

+ 3 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/index.vue

@@ -409,6 +409,7 @@ import WfHistory from '@/components/workflow/wfhistory.vue'
           .then(() => {
             api.deleteEntity(Id, _this.$axios)
               .then(res => {
+                _this.tableLoading = true
                 if (res.data.code === 0) {
                   _this.$message({
                     type: 'success',
@@ -416,11 +417,13 @@ import WfHistory from '@/components/workflow/wfhistory.vue'
                   })
                   // 更新
                   this.initData()
+                  _this.tableLoading = false
                 } else {
                   _this.$message({
                     type: 'warning',
                     message: res.data.message
                   })
+                  _this.tableLoading = false
                 }
               })
               .catch(() => {})

+ 3 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/techlist.vue

@@ -489,6 +489,7 @@ import WfHistory from '@/components/workflow/wfhistory.vue'
           type: 'warning'
         })
           .then(() => {
+            _this.tableLoading = true
             api.deleteEntity(Id, _this.$axios)
               .then(res => {
                 if (res.data.code === 0) {
@@ -498,11 +499,13 @@ import WfHistory from '@/components/workflow/wfhistory.vue'
                   })
                   // 更新
                   this.initData()
+                  _this.tableLoading = false
                 } else {
                   _this.$message({
                     type: 'warning',
                     message: res.data.message
                   })
+                  _this.tableLoading = false
                 }
               })
               .catch(() => {})