|
@@ -39,7 +39,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #slot-cp-class="{scope}">
|
|
<template #slot-cp-class="{scope}">
|
|
|
- <el-select size="mini" v-model="currentCpClassId" placeholder="请选分类" style="width:150px;margin-right:10px;" @change="getCpClass" clearable>
|
|
|
|
|
|
|
+ <el-select size="mini" v-model="currentCpClassName" placeholder="请选分类" style="width:150px;margin-right:10px;" @change="getCpClass" clearable>
|
|
|
<el-option v-for="item in cpClassData" :key="item.value" :label="item.name" :value="item.id"> </el-option>
|
|
<el-option v-for="item in cpClassData" :key="item.value" :label="item.name" :value="item.id"> </el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</template>
|
|
</template>
|
|
@@ -68,6 +68,7 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
cpClassData:[],
|
|
cpClassData:[],
|
|
|
|
|
+ currentCpClassName:'',
|
|
|
currentCpClassId:'',
|
|
currentCpClassId:'',
|
|
|
app: null,
|
|
app: null,
|
|
|
sortLink: '',
|
|
sortLink: '',
|
|
@@ -112,6 +113,7 @@ export default {
|
|
|
this.app = app;
|
|
this.app = app;
|
|
|
if (this.$route.query.classId) {
|
|
if (this.$route.query.classId) {
|
|
|
this.currentCpClassId = this.$route.query.classId
|
|
this.currentCpClassId = this.$route.query.classId
|
|
|
|
|
+ this.currentCpClassName = this.$route.query.className
|
|
|
}
|
|
}
|
|
|
ctx.service(this.$service.cp)
|
|
ctx.service(this.$service.cp)
|
|
|
.set('table', {
|
|
.set('table', {
|