|
|
@@ -105,8 +105,8 @@
|
|
|
</el-dropdown>
|
|
|
</template>
|
|
|
|
|
|
- <template #slot-cp-class="{scope}">
|
|
|
- <el-select @change="getCpClass" v-model="currentCpClassName" filterable remote reserve-keyword placeholder="搜索并选择产品" clearable
|
|
|
+ <template #slot-cp-term-list="{scope}">
|
|
|
+ <el-select @change="getCpClass" v-model="currentCpName" filterable remote reserve-keyword placeholder="搜索并选择产品" clearable
|
|
|
:remote-method="searchCpInfo" :loading="loading" style="width:200px;margin-right:10px;" size="mini">
|
|
|
<el-option v-for="item in cpInfoList" :key="item.id" :label="`${item.name}(${item.id})`" :value="item.id"> </el-option>
|
|
|
</el-select>
|
|
|
@@ -302,7 +302,7 @@ export default {
|
|
|
unitList: [],
|
|
|
ratioTypeList:[{name:'固定比例',id:0},{name:'模糊比例',id:1}],
|
|
|
currentItemId: 0,
|
|
|
- currentCpClassName:'',
|
|
|
+ currentCpName:'',
|
|
|
currentItemClassName:'',
|
|
|
cpClassData:[],
|
|
|
cpClassStyle:"-1",
|
|
|
@@ -596,7 +596,7 @@ export default {
|
|
|
}
|
|
|
if (this.$route.query.cpId) {
|
|
|
this.cpId = this.$route.query.cpId;
|
|
|
- this.currentCpClassName = this.$route.query.cpName ? this.$route.query.cpName : ''
|
|
|
+ this.currentCpName = this.$route.query.cpName ? this.$route.query.cpName : ''
|
|
|
}
|
|
|
ctx.service(this.$service.item)
|
|
|
.set('table', {
|
|
|
@@ -704,7 +704,7 @@ export default {
|
|
|
})
|
|
|
.set('layout', [
|
|
|
['slot-tabs'],
|
|
|
- ['slot-cpClassStyle','slot-cp-class','slot-item-class','search-key','flex1','slot-add-item-btn', 'refresh-btn'],
|
|
|
+ ['slot-cpClassStyle','slot-cp-term-list','slot-item-class','search-key','flex1','slot-add-item-btn', 'refresh-btn'],
|
|
|
['data-table'],
|
|
|
['slot-more-do-btn','slot-select-cp','slot-item-suggest-class','flex1', 'pagination'],
|
|
|
])
|