|
|
@@ -6,11 +6,11 @@ |
|
|
|
<el-form-item label="分类名称"> |
|
|
|
<el-select v-model="searchParams.name"> |
|
|
|
<el-option |
|
|
|
v-for="(item, index) in dataList" |
|
|
|
:key="index" |
|
|
|
:label="item.name" |
|
|
|
:value="item.name" |
|
|
|
></el-option> |
|
|
|
v-for="(item, index) in startList" |
|
|
|
:key="index" |
|
|
|
:label="item.name" |
|
|
|
:value="item.name" |
|
|
|
></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-button type="primary" size="small" @click="search">查询</el-button> |
|
|
@@ -156,6 +156,7 @@ export default { |
|
|
|
return { |
|
|
|
searchParams: {}, |
|
|
|
loading: false, |
|
|
|
startList: [], |
|
|
|
dataList: [], |
|
|
|
count: 0, |
|
|
|
dialogTitle:'添加表', |
|
|
@@ -183,6 +184,15 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
api |
|
|
|
.getList(Object.assign({},this.searchParams,this.page)) |
|
|
|
.then((res) => { |
|
|
|
let data = res.data.data.records; |
|
|
|
this.startList = data; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.startList = []; |
|
|
|
}) |
|
|
|
this.getDataList() |
|
|
|
}, |
|
|
|
computed: { |