|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-09-16 11:27:35
|
|
|
- * @LastEditTime: 2021-09-18 17:10:56
|
|
|
+ * @LastEditTime: 2021-09-22 16:58:35
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: \hyyfClient\src\views\BioSafety\PersonAdmin.vue
|
|
@@ -19,7 +19,26 @@
|
|
|
<query-conditions :formItems="formItems" :propFormData="propFormData" @getQueryParams="handleQuery"></query-conditions>
|
|
|
|
|
|
<!-- 表格 -->
|
|
|
- <new-table :title="title" :listData="listData" :tableItems="tableItems"></new-table>
|
|
|
+ <new-table :title="title" :listData="listData" :tableItems="tableItems" :shows="tableShows">
|
|
|
+ <template v-slot:right>
|
|
|
+ <template v-if="btnSelected === 1">
|
|
|
+ <div>
|
|
|
+ <el-button size="mini">添加人员</el-button>
|
|
|
+ <el-button size="mini">添加区域</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-else-if="btnSelected === 2">
|
|
|
+ <div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ </new-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -29,7 +48,7 @@ import QueryConditions from 'components/bioSafety/QueryConditions'
|
|
|
import NewTable from 'components/newTable/NewTable'
|
|
|
|
|
|
import { formItems, propFormData } from './personAdmin/queryCondition.config'
|
|
|
-import { titles, tableItems } from './personAdmin/table.config'
|
|
|
+import { titles, tableItems, tableShows } from './personAdmin/table.config'
|
|
|
|
|
|
export default {
|
|
|
name: "PersonAdmin",
|
|
@@ -51,6 +70,7 @@ export default {
|
|
|
title: '', // 传给 BioTable 组件的 title
|
|
|
listData: [], // 传给 BioTable 组件的表格展示的值 listData
|
|
|
tableItems: [], // 传给 BioTable 组件的表格的列表 tableItems
|
|
|
+ tableShows: {}
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -58,6 +78,7 @@ export default {
|
|
|
this.propFormData = propFormData[this.btnSelected - 1]
|
|
|
this.title = titles[this.btnSelected - 1]
|
|
|
this.tableItems = tableItems[this.btnSelected - 1]
|
|
|
+ this.tableShows = tableShows
|
|
|
},
|
|
|
methods: {
|
|
|
// 获取选中的按钮情况
|