Browse Source

优化

master
陈裕财 4 years ago
parent
commit
bb2c606cb2
  1. 2
      src/views/xm/core/xmIteration/XmIterationSelect.vue
  2. 8
      src/views/xm/core/xmMenu/XmMenuMng.vue

2
src/views/xm/core/xmIteration/XmIterationSelect.vue

@ -52,7 +52,7 @@
<el-button type="primary" icon="el-icon-search" @click="getXmIterations">查询</el-button> <el-button type="primary" icon="el-icon-search" @click="getXmIterations">查询</el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-button slot="reference" icon="el-icon-more"></el-button>
<el-button type="text" slot="reference" icon="el-icon-more">更多条件</el-button>
</el-popover> </el-popover>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">

8
src/views/xm/core/xmMenu/XmMenuMng.vue

@ -4,7 +4,7 @@
<el-col :span="5" v-if="!xmProduct"> <el-col :span="5" v-if="!xmProduct">
<xm-product-mng :sel-project="selProject" @row-click="onProductSelected" ref="xmProductMng" :xm-iteration="xmIteration" :simple="true"></xm-product-mng> <xm-product-mng :sel-project="selProject" @row-click="onProductSelected" ref="xmProductMng" :xm-iteration="xmIteration" :simple="true"></xm-product-mng>
</el-col> </el-col>
<el-col :span="xmProduct?24:19" class="padding-left">
<el-col :span="xmProduct?24:19" class="padding-left" v-show="filters.product && filters.product.id">
<el-row> <el-row>
<el-select v-model="filters.status" placeholder="需求状态" clearable style="width: 100px;"> <el-select v-model="filters.status" placeholder="需求状态" clearable style="width: 100px;">
<el-option :value="item.id" :label="item.name" v-for="(item,index) in dicts.menuStatus" :key="index"></el-option> <el-option :value="item.id" :label="item.name" v-for="(item,index) in dicts.menuStatus" :key="index"></el-option>
@ -464,7 +464,7 @@
if( this.filters.product && this.filters.product.id){ if( this.filters.product && this.filters.product.id){
params.productId=this.filters.product.id params.productId=this.filters.product.id
}else { }else {
this.$notify({showClose: true, message: "请先选择产品", type: 'success' });
this.$notify({showClose: true, message: "请先选择产品", type: 'warning',position:'top-left' });
return; return;
} }
@ -924,9 +924,9 @@
}, },
mounted() { mounted() {
this.filters.product=this.xmProduct this.filters.product=this.xmProduct
if(this.xmProduct){
if(this.xmProduct && this.xmProduct.id){
this.productVisible=false; this.productVisible=false;
}
}
this.$nextTick(() => { this.$nextTick(() => {
this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el); this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el);
this.getXmMenus(); this.getXmMenus();

Loading…
Cancel
Save