Selaa lähdekoodia

bug修复【ID1007550】

chenrui 4 vuotta sitten
vanhempi
commit
36fa59945f
1 muutettua tiedostoa jossa 7 lisäystä ja 2 poistoa
  1. 7 2
      src/views/promotionRulesManagement/promotionRules/list.vue

+ 7 - 2
src/views/promotionRulesManagement/promotionRules/list.vue

@@ -52,8 +52,11 @@
       bordered>
       <!-- 促销时间 -->
       <template slot="activeDate" slot-scope="text, record">
-        <span v-if="record.activeDateStart || record.activeDateEnd">{{ record.activeDateStart }} 至 {{ record.activeDateEnd }}</span>
-        <span v-else>--</span>
+        <div v-if="record.activeDateEnable != '0'">
+          <span v-if="record.activeDateStart || record.activeDateEnd">{{ record.activeDateStart }} 至 {{ record.activeDateEnd }}</span>
+          <span v-else>--</span>
+        </div>
+        <span v-else>不限</span>
       </template>
       <!-- 状态 -->
       <template slot="enabledFlag" slot-scope="text, record">
@@ -70,12 +73,14 @@
         <a-button
           size="small"
           type="link"
+          v-if="record.enabledFlag != 1"
           class="button-primary"
           @click="handleRule(record)"
           id="promotionRulesList-rule-btn">规则设置</a-button>
         <a-button
           size="small"
           type="link"
+          v-if="record.enabledFlag != 1"
           class="button-info"
           @click="handleEdit(record)"
           id="promotionRulesList-edit-btn">编辑</a-button>