achao 2 år sedan
förälder
incheckning
66c76253bb

+ 5 - 1
unimall-admin/src/views/circleManagementInfo/index.vue

@@ -82,7 +82,9 @@
 
       <el-table-column label="状态" align="center" prop="status">
         <template slot-scope="scope">
-          <span>{{ scope.row.status == 0 ? '未审核' : '已通过' }}</span>
+          <span v-if="scope.row.status == 0">未审核</span>
+          <span v-if="scope.row.status == 1">已通过</span>
+          <span v-if="scope.row.status == 3">已驳回</span>
         </template>
       </el-table-column>
       <el-table-column label="创建时间" align="center" prop="gmtCreate" width="180">
@@ -314,6 +316,7 @@ export default {
     },
     handleSubmit() {
       this.selectObj.reason = this.textarea
+      this.selectObj.status = 3
       circleManagementInfoHandle(this.selectObj).then(response => {
         if (response.data) {
           this.msgSuccess("驳回成功!");
@@ -330,6 +333,7 @@ export default {
       if (type == 1) {
         this.isShowhandle = true
       } else {
+        row.status =1
         circleManagementInfoHandle(row).then(response => {
           if (response.data) {
             this.msgSuccess("新增成功");

+ 3 - 2
xiaochengxu/pages/circle/circle.vue

@@ -75,8 +75,6 @@
 			};
 		},
 		onLoad() {
-		},
-		onShow() {
 			// this.searchVal = uni.getStorageSync("cirlce_search_val") ? uni.getStorageSync("cirlce_search_val") : ''
 			this.userInfo = uni.getStorageSync("userInfo")
 			this.$nextTick(function() {
@@ -100,6 +98,9 @@
 				this.cardList = res.data.items.filter((item)=>{return item.status==0})
 				console.log(this.cardList)
 			})
+		},
+		onShow() {
+		
 		},
 		methods: {
 			delSearchVal() {