|
@@ -1,7 +1,7 @@
|
|
<!--
|
|
<!--
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2021-09-16 11:27:35
|
|
* @Date: 2021-09-16 11:27:35
|
|
- * @LastEditTime: 2021-09-26 14:55:04
|
|
|
|
|
|
+ * @LastEditTime: 2021-09-26 15:23:17
|
|
* @LastEditors: Please set LastEditors
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: In User Settings Edit
|
|
* @Description: In User Settings Edit
|
|
* @FilePath: \hyyfClient\src\views\BioSafety\StiflingAdmin.vue
|
|
* @FilePath: \hyyfClient\src\views\BioSafety\StiflingAdmin.vue
|
|
@@ -12,7 +12,12 @@
|
|
<query-conditions :formItems="formItems" :propFormData="propFormData" @getQueryParams="handleQuery"></query-conditions>
|
|
<query-conditions :formItems="formItems" :propFormData="propFormData" @getQueryParams="handleQuery"></query-conditions>
|
|
|
|
|
|
<!-- 表格 -->
|
|
<!-- 表格 -->
|
|
- <new-table :title="title" :listData="listData" :tableItems="tableItems" :shows="tableShows" :height="height"></new-table>
|
|
|
|
|
|
+ <new-table :title="title" :listData="listData" :tableItems="tableItems" :shows="tableShows" :height="height" @selectionChange="handleSelectChange">
|
|
|
|
+ <!-- 按钮 -->
|
|
|
|
+ <template v-slot:handler="scope">
|
|
|
|
+ <el-button @click="handleClick(scope.row)">删除</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </new-table>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -34,7 +39,15 @@ export default {
|
|
formItems: [], // 传给 QueryCondition 组件的 formItems
|
|
formItems: [], // 传给 QueryCondition 组件的 formItems
|
|
propFormData: {}, // 传给 QueryCondition 组件的 propFormData
|
|
propFormData: {}, // 传给 QueryCondition 组件的 propFormData
|
|
title: '', // 传给 BioTable 组件的 title
|
|
title: '', // 传给 BioTable 组件的 title
|
|
- listData: [], // 传给 BioTable 组件的表格展示的值 listData
|
|
|
|
|
|
+ // listData: [], // 传给 BioTable 组件的表格展示的值 listData
|
|
|
|
+ listData: [
|
|
|
|
+ {
|
|
|
|
+ place: '一一一',
|
|
|
|
+ startTime: '2222',
|
|
|
|
+ endTime: '3333',
|
|
|
|
+ long: '4444'
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
tableItems: [], // 传给 BioTable 组件的表格的列表 tableItems
|
|
tableItems: [], // 传给 BioTable 组件的表格的列表 tableItems
|
|
tableShows: {},
|
|
tableShows: {},
|
|
height: 550
|
|
height: 550
|
|
@@ -51,6 +64,12 @@ export default {
|
|
// 获取查询条件
|
|
// 获取查询条件
|
|
handleQuery(params) {
|
|
handleQuery(params) {
|
|
console.log(params)
|
|
console.log(params)
|
|
|
|
+ },
|
|
|
|
+ handleClick(row) {
|
|
|
|
+ console.log(row)
|
|
|
|
+ },
|
|
|
|
+ handleSelectChange(rows) {
|
|
|
|
+ console.log(rows)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
}
|
|
}
|