Browse Source

修复盲票列表bug

hwb0 3 years ago
parent
commit
83a13beffa
2 changed files with 4 additions and 9 deletions
  1. 3 9
      src/views/business/ticket/index.vue
  2. 1 0
      vue.config.js

+ 3 - 9
src/views/business/ticket/index.vue

@@ -209,7 +209,7 @@
             >编辑</el-button
             >
             <el-button
-              v-if="
+             v-show="
                 scope.row.status.value === 'off' ||
                 scope.row.status.value === 'done'
               "
@@ -219,14 +219,14 @@
               >上架</el-button
             >
             <el-button
-              v-if="scope.row.status.value === 'on'"
+             v-show="scope.row.status.value === 'on'"
               v-hasPermi="['business:ticket:on']"
               type="text"
               @click="setStatus(scope.row, 'off')"
               >下架</el-button
             >
             <el-button
-              v-if="scope.row.status.value === 'done'"
+             v-show="scope.row.status.value === 'done'"
               v-hasPermi="['business:ticket:remove']"
               type="text"
               class="del"
@@ -328,13 +328,7 @@ export default {
 
     // 盲票组列表
     getList(reset) {
-      if (this.loading) {
-        return;
-      }
       this.loading = true;
-      if (reset) {
-        this.queryParams = { pageNum: 1, pageSize: 20 };
-      }
       getTicketList( 'pageNum=' + this.pageParams.pageNum + '&pageSize=' + this.pageParams.pageSize + '&orderByColumn='+ this.pageParams.orderByColumn +'&isAsc='+ this.pageParams.isAsc +'&',
         this.queryParams
       )

+ 1 - 0
vue.config.js

@@ -35,6 +35,7 @@ module.exports = {
       [process.env.VUE_APP_BASE_API]: {
       //target: `http://113.31.163.91:8090`,
       // target: `http://localhost:8080`,
+      // target: `https://mp-api.51jiazhu.com`,
       target: `https://test-mp.quanshu123.com`,
         changeOrigin: true,
         pathRewrite: {