|
@@ -3,6 +3,7 @@
|
|
|
<save-form
|
|
|
:inline="true"
|
|
|
class="searchForm"
|
|
|
+ ref="searchForm"
|
|
|
:model="searchForm"
|
|
|
@submit="onSearch"
|
|
|
@reset="onReSet"
|
|
@@ -56,12 +57,17 @@
|
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
:data="tableList"
|
|
|
>
|
|
|
- <el-table-column label="具体型号" align="center" prop="id">
|
|
|
+ <el-table-column label="乐器名称" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<copy-text>{{ scope.row.goodsName }}</copy-text>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="乐器分类" align="center" prop="name">
|
|
|
+ <el-table-column label="具体型号" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <copy-text>{{ scope.row.specification }}</copy-text>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="乐器分类" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<copy-text>{{ scope.row.goodsCategoryName }}</copy-text>
|
|
|
</template>
|
|
@@ -139,7 +145,10 @@ export default {
|
|
|
this.pageInfo.page = 1;
|
|
|
this.getList()
|
|
|
},
|
|
|
- onReSet() {},
|
|
|
+ onReSet() {
|
|
|
+ this.$refs['searchForm'].resetFields()
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
async getList() {
|
|
|
try{
|
|
|
const res = await getInstrument({...this.searchForm,rows:this.pageInfo.limit,page:this.pageInfo.page})
|