Browse Source

优化

master
陈裕财 4 years ago
parent
commit
e10523a974
  1. 7
      src/views/xm/core/xmMenu/XmEpicFeatures.vue
  2. 15
      src/views/xm/core/xmMenu/XmEpicFeaturesSelect.vue

7
src/views/xm/core/xmMenu/XmEpicFeatures.vue

@ -5,10 +5,8 @@
<el-row >
<span style="float:left;">
<el-input style="width:120px;" v-model="filters.key" placeholder="名称模糊查询" clearable></el-input>
<el-button icon="el-icon-search" @click="searchXmMenus()"></el-button>
<el-popover style="padding-left:10px;"
<el-input style="width:60%;" v-model="filters.key" placeholder="名称 按回车" clearable @keyup.enter.native="searchXmMenus()"></el-input>
<el-popover style="padding-left:10px;"
placement="top-start"
width="250"
trigger="click" >
@ -91,6 +89,7 @@
</template>
<el-table-column prop="menuName" label="史诗、特性名称" min-width="150" >
<template slot="header">史诗特性名称 &nbsp;<el-button type="text" @click="unselectRow()">清除选中的行</el-button></template>
<template slot-scope="scope">
<div v-if="scope.row.dclass=='1'" class="icon" style="background-color: rgb(255, 153, 51);">
<i class="el-icon-s-promotion"></i>

15
src/views/xm/core/xmMenu/XmEpicFeaturesSelect.vue

@ -17,6 +17,7 @@
</el-table-column>
</template>
<el-table-column prop="menuName" label="史诗、特性名称" min-width="150" >
<template slot="header">史诗特性名称 &nbsp;<el-button type="text" @click="unselectRow()">清除选中的行</el-button></template>
<template slot-scope="scope">
<div v-if="scope.row.dclass=='1'" class="icon" style="background-color: rgb(255, 153, 51);">
<i class="el-icon-s-promotion"></i>
@ -339,18 +340,18 @@
},
rowClick: function(row, event, column){
if(this.editForm && row.menuId===this.editForm.menuId){
this.editForm=null;
this.$emit('row-click',null)
this.$refs.table.setCurrentRow();
return;
}
this.editForm=row
this.$emit('row-click',row, event, column);// @row-click="rowClick"
},
selectConfirm(){
this.$emit('menus-selected',this.sels)
}
},
unselectRow(){
this.editForm=null;
this.$emit('row-click',null)
this.$refs.table.setCurrentRow();
},
},//end methods
components: {
XmProductSelect,

Loading…
Cancel
Save