roose 5 سال پیش
والد
کامیت
d465690af4
2فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 3 3
      src/layout/follow/followList.vue
  2. 2 1
      src/views/follow/followindex.vue

+ 3 - 3
src/layout/follow/followList.vue

@@ -25,7 +25,7 @@
             <template slot-scope="scope">
             <template slot-scope="scope">
               <el-button v-if="scope.row.orcredit == 0" @click.prevent="tongguosp(scope.row.orcredit,scope.row._id)" type="text" icon="el-icon-s-help" title="通过"></el-button>
               <el-button v-if="scope.row.orcredit == 0" @click.prevent="tongguosp(scope.row.orcredit,scope.row._id)" type="text" icon="el-icon-s-help" title="通过"></el-button>
               <el-button v-if="scope.row.orcredit == 2" @click.prevent="tongguosp(scope.row.orcredit,scope.row._id)" type="text" icon="el-icon-s-check" title="放款"></el-button>
               <el-button v-if="scope.row.orcredit == 2" @click.prevent="tongguosp(scope.row.orcredit,scope.row._id)" type="text" icon="el-icon-s-check" title="放款"></el-button>
-              <el-button @click.prevent="deleteRow(scope.row._id)" type="text" icon="el-icon-warning-outline" title="拒绝"></el-button>
+              <el-button @click.prevent="deleteRow(scope.row._id,'')" type="text" icon="el-icon-warning-outline" title="拒绝"></el-button>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
         </el-table>
         </el-table>
@@ -83,8 +83,8 @@ export default {
   created() {},
   created() {},
   computed: {},
   computed: {},
   methods: {
   methods: {
-    deleteRow(id) {
-      this.$emit('deleteRow', id);
+    deleteRow(id,delValue) {
+      this.$emit('deleteRow', id,delValue);
     },
     },
     clickRest(id) {
     clickRest(id) {
       this.$emit('clickRest', id);
       this.$emit('clickRest', id);

+ 2 - 1
src/views/follow/followindex.vue

@@ -84,7 +84,8 @@ export default {
       this.$set(this, `total`, res.total);
       this.$set(this, `total`, res.total);
     },
     },
     // 删除
     // 删除
-    async deleteRow(id) {
+    async deleteRow(id,deleteRow) {
+      this.delForm.delValue = deleteRow;
       this.deleteVisible = true;
       this.deleteVisible = true;
     //   this.$prompt('请输拒绝信息', '提示', {
     //   this.$prompt('请输拒绝信息', '提示', {
     //   confirmButtonText: '确定',
     //   confirmButtonText: '确定',