Преглед на файлове

Update couponGiveChiose.vue

lex преди 2 години
родител
ревизия
dbc29b9435
променени са 1 файла, в които са добавени 15 реда и са изтрити 13 реда
  1. 15 13
      src/views/couponManager/couponGiveChiose.vue

+ 15 - 13
src/views/couponManager/couponGiveChiose.vue

@@ -22,7 +22,6 @@
           style="width: 180px !important"
           v-model.trim="searchForm.organId"
           clearable
-          multiple
           placeholder="请选择分部"
         >
           <el-option
@@ -33,11 +32,15 @@
           ></el-option>
         </el-select>
       </el-form-item>
-      <el-form-item prop="ops">
-        <el-select v-model="searchForm.ops" placeholder="使用状态" clearable>
+      <el-form-item prop="usageStatus">
+        <el-select
+          v-model="searchForm.usageStatus"
+          placeholder="使用状态"
+          clearable
+        >
           <el-option label="未使用" :value="0"></el-option>
           <el-option label="已使用" :value="1"></el-option>
-          <el-option label="已撤销" :value="1"></el-option>
+          <el-option label="已过期" :value="2"></el-option>
         </el-select>
       </el-form-item>
       <el-form-item>
@@ -89,7 +92,7 @@ import { getIssueRecordDetail } from "./api.js";
 import pagination from "@/components/Pagination/index";
 export default {
   components: {
-    pagination,
+    pagination
   },
   props: ["activeRow"],
   data() {
@@ -98,15 +101,15 @@ export default {
       searchForm: {
         search: null,
         organId: null,
-        usageStatus: null,
+        usageStatus: null
       },
       rules: {
         // 分页规则
         limit: 10, // 限制显示条数
         page: 1, // 当前页
         total: 0, // 总条数
-        page_size: [10, 20, 40, 50], // 选择限制显示条数
-      },
+        page_size: [10, 20, 40, 50] // 选择限制显示条数
+      }
     };
   },
   async mounted() {
@@ -120,7 +123,7 @@ export default {
           page: this.rules.page,
           rows: this.rules.limit,
           ...this.searchForm,
-          issueId: this.activeRow.id,
+          issueId: this.activeRow.id
         });
         this.tableList = res.data.rows;
         this.rules.total = res.data.total;
@@ -133,9 +136,8 @@ export default {
     onReSet() {
       this.$refs.searchForm.resetFields();
       this.search();
-    },
-  },
+    }
+  }
 };
 </script>
-<style lang="less" scoped>
-</style>
+<style lang="less" scoped></style>