Commit 7ba9d347 by 黑潮

update: 按钮禁用

parent 4108c9f9
......@@ -16,7 +16,7 @@
<el-option v-for="(v, i) in onlineOptions" :key="i" :label="v.label" :value="v.value"></el-option>
</el-select>
<el-button type="text" @click="showSearch = !showSearch" class="senior-search">高级搜索<i :class="showSearch ? 'el-icon-d-arrow-left' : 'el-icon-d-arrow-right'"></i></el-button>
<el-button type="primary" @click="resetFilter">重置</el-button>
<el-button type="primary" @click="resetFilter" :disabled="resetDisable">重置</el-button>
<!-- <el-checkbox class="vertical-middle" v-if="$store.state.marketing.isShowSelf" v-model="listParams.showSelfFlag" :true-label="1" :false-label="0" label="仅看本人" border @change="search" /> -->
<!-- <el-date-picker v-model="dateTime" style="width:250px" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="search"></el-date-picker> -->
<el-button class="fr" type="primary" @click="$router.push('/ecm/add')">新建计划</el-button>
......@@ -470,6 +470,9 @@ export default {
}
},
computed: {
resetDisable() {
return !this.listParams.searchName && this.listParams.effectType === '' && !this.listParams.marketingType && this.listParams.onlineStatus === '' && !this.dateTime && !this.listParams.marketingActivityId && !this.listParams.showSelfFlag;
},
isOpenFlag(item) {
return item => {
if (!item) return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment