Browse Source

标签优化

master
陈裕财 5 years ago
parent
commit
1775213c18
  1. 7
      src/views/xm/core/skill/skillMng.vue
  2. 11
      src/views/xm/core/xmProduct/XmProductSelect.vue

7
src/views/xm/core/skill/skillMng.vue

@ -194,6 +194,7 @@ export default {
} }
console.log(convert); console.log(convert);
this.convertSkills = convert; this.convertSkills = convert;
localStorage.setItem("skill_"+this.userInfo.branchId,JSON.stringify(convert))
} else { } else {
this.$message({ this.$message({
message: tips.msg, message: tips.msg,
@ -420,7 +421,13 @@ export default {
// //
}, },
mounted() { mounted() {
var localSkills=localStorage.getItem("skill_"+this.userInfo.branchId)
if(localSkills){
this.convertSkills=JSON.parse(localSkills)
}else{
this.getAllHrSkill(); this.getAllHrSkill();
}
// this.$nextTick(() => { // this.$nextTick(() => {
// this.getAllHrSkill(); // this.getAllHrSkill();
// }); // });

11
src/views/xm/core/xmProduct/XmProductSelect.vue

@ -5,6 +5,15 @@
<el-table max-height="650" :data="xmProducts" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;"> <el-table max-height="650" :data="xmProducts" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="index" width="55"></el-table-column> <el-table-column sortable type="index" width="55"></el-table-column>
<el-table-column prop="productName" label="产品名称" min-width="150" > <el-table-column prop="productName" label="产品名称" min-width="150" >
<template slot="header" slot-scope="scope">
<div>
产品名称 <el-input v-model="filters.key" style="width:60%;" placeholder="按产品名称模糊搜索">
<template slot="append">
<el-button icon="el-icon-search" @click="searchXmProducts"></el-button>
</template>
</el-input>
</div>
</template>
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.id}}&nbsp;&nbsp;<el-link type="primary">{{scope.row.productName}}</el-link> {{scope.row.id}}&nbsp;&nbsp;<el-link type="primary">{{scope.row.productName}}</el-link>
</template> </template>
@ -114,7 +123,7 @@
params.orderBy= orderBys.join(",") params.orderBy= orderBys.join(",")
} }
if(this.filters.key!==""){ if(this.filters.key!==""){
//params.xxx=this.filters.key
params.key=this.filters.key
}else{ }else{
//params.xxx=xxxxx //params.xxx=xxxxx
} }

Loading…
Cancel
Save