|
@@ -7,11 +7,11 @@
|
|
|
{{ column_name || '信息管理' }}
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="btn">
|
|
|
- <el-button type="primary" size="mini" @click="drawer = true">添加</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="add()">添加</el-button>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="list">
|
|
|
- <data-table :fields="fields" :data="list" :total="total" :opera="opera" @edit="toEdit" @delete="toDelete"></data-table>
|
|
|
+ <data-table :fields="fields" :data="list" :total="total" :opera="opera" @edit="toEdit" @delete="toDelete" @query="search"></data-table>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -145,6 +145,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // 添加
|
|
|
+ add() {
|
|
|
+ this.form = {};
|
|
|
+ this.drawer = true;
|
|
|
+ },
|
|
|
// 修改
|
|
|
toEdit({ data }) {
|
|
|
this.$set(this, 'form', data);
|