Kaynağa Gözat

视频素材批量审核添加loading

朱鑫波 3 yıl önce
ebeveyn
işleme
09209df32a
2 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. 4 0
      src/views/modules/material/videoMaterial.vue
  2. 2 2
      vue.config.js

+ 4 - 0
src/views/modules/material/videoMaterial.vue

@@ -504,6 +504,7 @@ a {
         @click="passTheAudit"
         :disabled="checkArr.length == 0"
         v-if="active == '0'"
+        :loading="passTheAuditLoading"
         type="primary"
         >批量通过审核</a-button
       >
@@ -2381,6 +2382,7 @@ export default {
 				scopedSlots: {customRender: 'refuseDetail'}
 			},
 		],
+    passTheAuditLoading:false,
 		toutiaoMateriaLoading: false,
 		defaultCurrentToutiao: 1,
 		materiaDataTotalToutiao: 0,
@@ -3545,7 +3547,9 @@ export default {
       if(this.checkArr.length == 0){
         this.$message.error('请选择素材')
       }else{
+        this.passTheAuditLoading = true
         this.postDataAction('/ctop/materialInfo/batchEditStatus', {ids:this.checkArr, status:'1'}).then(res=>{
+          this.passTheAuditLoading = false
           if(res.success){
             this.$message.success(res.message)
             this.checkArr = []

+ 2 - 2
vue.config.js

@@ -97,7 +97,7 @@ module.exports = {
       '/jeecg-boot': {
         // target: 'http://192.168.1.8:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
         // target: 'http://192.168.1.3:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
-        target: 'http://192.168.1.3:7001', //请求本地 需要jeecg-boot后台项目  蒙蒙
+        // target: 'http://192.168.1.3:7001', //请求本地 需要jeecg-boot后台项目  蒙蒙
         // target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.1.62:7001', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.6.162:9806', //请求本地 需要jeecg-boot后台项目  祚云
@@ -108,7 +108,7 @@ module.exports = {
         // target: 'http://192.168.1.59:7701', //请求本地 需要jeecg-boot后台项目  赵西安
         // target: 'http://192.168.1.193:8080', //请求本地 需要jeecg-boot后台项目  李煜一
         // target: 'http://192.168.1.193:31012', //请求本地 需要jeecg-boot后台项目  李煜一
-        // target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
+        target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目
         //  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目