Przeglądaj źródła

修复部分bug

zhengjinyi 5 lat temu
rodzic
commit
4e3405a3d0

+ 2 - 2
src/views/club/editForm.vue

@@ -62,9 +62,9 @@
         </el-radio-group>
       </el-form-item>
     </el-form>
-    <div slot="footer" class="dialog-footer" style="width:200px;margin:0 auto;padding:80px 0;float:right;">
+    <div slot="footer" class="dialog-footer" style="width:200px;margin:0 auto;padding:80px 0;float:right;margin-right:70px">
       <router-link :to="'/club/list/'">
-        <el-button>返回</el-button>
+        <el-button style="margin-right:10px">返回</el-button>
       </router-link>
       <el-button type="primary" :loading="loadingbut" @click="onSubmite()">{{ loadingbuttext }}</el-button>
     </div>

+ 2 - 2
src/views/club/form.vue

@@ -63,9 +63,9 @@
         </el-radio-group>
       </el-form-item>
     </el-form>
-    <div slot="footer" class="dialog-footer" style="width:200px;margin:0 auto;padding:80px 0;float:right;">
+    <div slot="footer" class="dialog-footer" style="width:200px;margin:0 auto;padding:80px 0;float:right;margin-right:70px">
       <router-link :to="'/club/list/'">
-        <el-button>返回</el-button>
+        <el-button style="margin-right:10px">返回</el-button>
       </router-link>
       <el-button type="primary" :loading="loadingbut" @click="onSubmite()">{{ loadingbuttext }}</el-button>
     </div>

+ 1 - 1
src/views/finance/list.vue

@@ -29,7 +29,7 @@
           />
         </el-form-item>
         <el-form-item>
-          <el-button type="success" icon="el-icon-search" @click="onSubmit">查询</el-button>
+          <el-button type="primary" icon="el-icon-search" @click="onSubmit">搜索</el-button>
         </el-form-item>
       </el-form>
     </div>

+ 2 - 2
src/views/goods/category.vue

@@ -27,9 +27,9 @@
           <img :src="row.classifyImage" alt="" width="50">
         </template>
       </el-table-column>
-      <el-table-column label="排序值" align="center" prop="sort">
+      <el-table-column label="排序值" align="center" prop="sort" width="90">
         <template slot-scope="{row}">
-          <el-input v-model="row.sort" style="width:100px;" size="small" type="number" maxlength="3" min="1" />
+          <el-input v-model="row.sort" style="width:65px;" size="small" type="number" maxlength="3" min="1" />
         </template>
       </el-table-column>
       <el-table-column class-name="status-col" label="状态" align="center" prop="status">

+ 3 - 3
src/views/goods/list-commonly.vue

@@ -76,9 +76,9 @@
           <span>{{ row.addTime | parseTime('{y}-{m}-{d} {h}:{i}:{s}') }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="排序值" align="center" prop="commonlyProductSort">
+      <el-table-column label="排序值" align="center" prop="commonlyProductSort" width="90">
         <template slot-scope="{row}">
-          <el-input v-model="row.commonlyProductSort" size="small" type="number" min="1" />
+          <el-input v-model="row.commonlyProductSort" style="60px" size="small" type="number" min="1" maxlength="3" />
         </template>
       </el-table-column>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@@ -156,7 +156,7 @@ export default {
       const sorts = []
       this.list.map(item => {
         if (item.commonlyProductSort) {
-          sorts.push(item.id + '-' + item.commonlyProductSort)
+          sorts.push(item.id + '-' + Math.abs(item.commonlyProductSort))
         }
       })
       saveGoodsSort({ newProducSorttList: sorts.join(','), modules: this.modulesId }).then(response => {

+ 3 - 3
src/views/goods/list-preferential.vue

@@ -76,9 +76,9 @@
           <span>{{ row.addTime | parseTime('{y}-{m}-{d} {h}:{i}:{s}') }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="排序值" align="center" prop="preferentialProductSort">
+      <el-table-column label="排序值" align="center" prop="preferentialProductSort" width="90">
         <template slot-scope="{row}">
-          <el-input v-model="row.preferentialProductSort" size="small" type="number" min="1" />
+          <el-input v-model="row.preferentialProductSort" style="60px" size="small" type="number" min="1" maxlength="3" />
         </template>
       </el-table-column>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@@ -156,7 +156,7 @@ export default {
       const sorts = []
       this.list.map(item => {
         if (item.preferentialProductSort) {
-          sorts.push(item.id + '-' + item.preferentialProductSort)
+          sorts.push(item.id + '-' + Math.abs(item.preferentialProductSort))
         }
       })
       saveGoodsSort({ newProducSorttList: sorts.join(','), modules: this.modulesId }).then(response => {

+ 3 - 3
src/views/goods/list-preferred.vue

@@ -76,9 +76,9 @@
           <span>{{ row.addTime | parseTime('{y}-{m}-{d} {h}:{i}:{s}') }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="排序值" align="center" prop="preferredProductSort">
+      <el-table-column label="排序值" align="center" prop="preferredProductSort" width="90">
         <template slot-scope="{row}">
-          <el-input v-model="row.preferredProductSort" size="small" type="number" min="1" />
+          <el-input v-model="row.preferredProductSort" style="60px" size="small" type="number" min="1" maxlength="3" />
         </template>
       </el-table-column>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@@ -156,7 +156,7 @@ export default {
       const sorts = []
       this.list.map(item => {
         if (item.preferredProductSort) {
-          sorts.push(item.id + '-' + item.preferredProductSort)
+          sorts.push(item.id + '-' + Math.abs(item.preferredProductSort))
         }
       })
       saveGoodsSort({ newProducSorttList: sorts.join(','), modules: this.modulesId }).then(response => {

+ 4 - 0
src/views/goods/list-select.vue

@@ -166,6 +166,10 @@ export default {
     },
     confirmChoose() {
       console.log(this.multipleSelection)
+      if (this.multipleSelection.length === 0) {
+        this.$message({ message: '警告哦,请选择商品!', type: 'warning', center: true })
+        return
+      }
       const itemsList = []
       this.multipleSelection.map(item => {
         itemsList.push(item.id)

+ 1 - 9
src/views/order/list.vue

@@ -61,13 +61,6 @@
           </el-select>
 
         </el-form-item>
-        <el-form-item class="date-box" label="付款状态:" style="width:200px;float: left;">
-          <el-select v-model="listQuery.payStatus" placeholder="付款状态" clearable style="width: 110px" class="filter-item" value="" @change="handleFilter">
-            <el-option label="待付款" value="1" />
-            <el-option label="部分付款" value="2" />
-            <el-option label="已付款" value="3" />
-          </el-select>
-        </el-form-item>
         <el-form-item class="date-box" label="退款状态:" style="width:200px;float: left;">
           <el-select v-model="listQuery.refundType" placeholder="退款状态" clearable style="width: 110px" class="filter-item" value="" @change="handleFilter">
             <el-option label="无退款" value="0" />
@@ -82,7 +75,7 @@
           </el-select>
         </el-form-item>
         <el-form-item style="width:100px;float: left;">
-          <el-button class="filter-item" type="success" icon="el-icon-search" @click="handleFilter">查询</el-button>
+          <el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">搜索</el-button>
         </el-form-item>
       </el-form>
     </div>
@@ -203,7 +196,6 @@ export default {
         status: '',
         receiptStatus: '',
         sendOutStatus: '',
-        payStatus: '',
         refundType: '',
         returnedPurchaseStatus: '',
         startTime: '',

+ 1 - 1
src/views/order/refund.vue

@@ -43,7 +43,7 @@
           />
         </el-form-item>
         <el-form-item style="width:100px;float: left;">
-          <el-button class="filter-item" type="success" icon="el-icon-search" @click="handleFilter">查询</el-button>
+          <el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">搜索</el-button>
         </el-form-item>
       </el-form>
     </div>

+ 3 - 0
src/views/other/about.vue

@@ -63,6 +63,9 @@ export default {
             setTimeout(() => {
               this.initData()
             }, 1000)
+          }).catch(() => {
+            this.loadingbut = false
+            this.loadingbuttext = '提交'
           })
         }
       })

+ 3 - 0
src/views/other/after.vue

@@ -47,6 +47,9 @@ export default {
         setTimeout(() => {
           this.initData()
         }, 1000)
+      }).catch(() => {
+        this.loadingbut = false
+        this.loadingbuttext = '提交'
       })
     }
   }

+ 3 - 0
src/views/other/notes.vue

@@ -47,6 +47,9 @@ export default {
         setTimeout(() => {
           this.initData()
         }, 1000)
+      }).catch(() => {
+        this.loadingbut = false
+        this.loadingbuttext = '提交'
       })
     }
   }