wangxy 1 kuukausi sitten
vanhempi
commit
3492eb83da
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      pages/admin/Hetong/sanfangHetong.vue

+ 3 - 3
pages/admin/Hetong/sanfangHetong.vue

@@ -45,12 +45,12 @@
 									<view @click="handleDelete(item)" class="del-btn-box">
 										<icon class="del-btn"></icon>
 									</view>
-									<button type="default" class="phone-green-btn ht-head-btn" @click="tuisong(item)">推送</button>
+									<button type="default" class="phone-green-btn ht-head-btn" v-if="item.status == 0" @click="tuisong(item)">推送</button>
 									<button type="default" class="phone-green-btn ht-head-btn"
 										@click.stop="handlePreview(item)">预览</button>
 									<button type="default" class="phone-white-btn ht-head-btn"
-										@click.stop="handleEditor(item)">编辑</button>
-									<button type="default"  class="phone-white-btn ht-head-btn"
+										@click.stop="handleEditor(item)" v-if="item.status<2">编辑</button>
+									<button type="default" v-if="item.status==1" class="phone-white-btn ht-head-btn"
 										@click.stop="handleShengxiao(item)">生效</button>
 								</view>
 								<view class="card-body-row">