|
|
|
|
|
|
|
|
<el-form-item label="分类名称"> |
|
|
<el-form-item label="分类名称"> |
|
|
<el-select v-model="searchParams.name"> |
|
|
<el-select v-model="searchParams.name"> |
|
|
<el-option |
|
|
<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-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-button type="primary" size="small" @click="search">查询</el-button> |
|
|
<el-button type="primary" size="small" @click="search">查询</el-button> |
|
|
|
|
|
|
|
|
return { |
|
|
return { |
|
|
searchParams: {}, |
|
|
searchParams: {}, |
|
|
loading: false, |
|
|
loading: false, |
|
|
|
|
|
startList: [], |
|
|
dataList: [], |
|
|
dataList: [], |
|
|
count: 0, |
|
|
count: 0, |
|
|
dialogTitle:'添加表', |
|
|
dialogTitle:'添加表', |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
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() |
|
|
this.getDataList() |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |