|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-09-16 11:27:35
|
|
|
- * @LastEditTime: 2021-10-11 16:25:13
|
|
|
+ * @LastEditTime: 2021-11-18 11:23:40
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: \hyyfClient\src\views\BioSafety\PersonAdmin.vue
|
|
@@ -56,6 +56,7 @@ import TableFooter from "../../components/TableFooter"
|
|
|
|
|
|
import { formItems, propFormData } from './personAdmin/queryCondition.config'
|
|
|
import { titles, tableItems, tableShows } from './personAdmin/table.config'
|
|
|
+import { getFaceToken, getFaceGuard } from '../../utils/api'
|
|
|
|
|
|
export default {
|
|
|
name: "PersonAdmin",
|
|
@@ -92,6 +93,7 @@ export default {
|
|
|
this.title = titles[this.btnSelected - 1]
|
|
|
this.tableItems = tableItems[this.btnSelected - 1]
|
|
|
this.tableShows = tableShows
|
|
|
+ this.handleQuery()
|
|
|
},
|
|
|
methods: {
|
|
|
// 获取选中的按钮情况
|
|
@@ -105,6 +107,23 @@ export default {
|
|
|
// 获取查询条件
|
|
|
handleQuery(params) {
|
|
|
console.log(params)
|
|
|
+ let queryParams = {
|
|
|
+ pageNum: this.pageNum,
|
|
|
+ pageSize: this.size,
|
|
|
+ // startSwingTime: params.time[0] + ' 00:00:00',
|
|
|
+ // endSwingTime: params.time[1] + ' 23:59:59',
|
|
|
+ startSwingTime: '2021-11-17 00:00:00',
|
|
|
+ endSwingTime: '2021-11-18 23:59:59',
|
|
|
+ openType: 61 // 进门,刷脸
|
|
|
+ }
|
|
|
+ getFaceGuard(queryParams).then(async (res) => {
|
|
|
+ console.log('res:', res)
|
|
|
+ console.log(JSON.parse(res.result))
|
|
|
+ // 结果是 JSON 格式
|
|
|
+ this.listData = JSON.parse(res.result).data.pageData
|
|
|
+ const token = await getFaceToken()
|
|
|
+ console.log('token:', token)
|
|
|
+ })
|
|
|
},
|
|
|
// 修改size
|
|
|
sizeChange(val) {
|