|
@@ -10,14 +10,15 @@
|
|
|
<CusForm labelWidth="100px" @handleEnter="onSearch">
|
|
|
<CusFormColumn
|
|
|
label="操作人:"
|
|
|
- v-model:param="queryForm.shipId"/>
|
|
|
+ v-model:param="queryForm.operName"/>
|
|
|
<CusFormColumn
|
|
|
label="操作人单位:"
|
|
|
- link="dept"
|
|
|
- v-model:param="queryForm.shipId"/>
|
|
|
+ link="select"
|
|
|
+ v-model:param="queryForm.deptId"
|
|
|
+ :options="$store.state.dictionary.deptList"/>
|
|
|
<CusFormColumn
|
|
|
label="操作模块:"
|
|
|
- v-model:param="queryForm.shipId"
|
|
|
+ v-model:param="queryForm.operModule"
|
|
|
static
|
|
|
labelKey="label"
|
|
|
valueKey="value"
|
|
@@ -29,7 +30,7 @@
|
|
|
label="操作类型:"
|
|
|
link="select"
|
|
|
static
|
|
|
- v-model:param="queryForm.shipId"
|
|
|
+ v-model:param="queryForm.operType"
|
|
|
labelKey="label"
|
|
|
valueKey="value"
|
|
|
:options="[
|
|
@@ -93,6 +94,8 @@ import {
|
|
|
} from 'vue'
|
|
|
import {useStore} from 'vuex'
|
|
|
import {useRouter, useRoute} from 'vue-router'
|
|
|
+import {getOperationLogList} from "@/api/modules/oper-log";
|
|
|
+import {getDeptList} from "@/api/modules/dept";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: '',
|
|
@@ -136,6 +139,7 @@ export default defineComponent({
|
|
|
const ref_cusTable = ref()
|
|
|
// 获取字典
|
|
|
const initDictionary = () => {
|
|
|
+ store.dispatch('dictionary/LOAD_DEPT')
|
|
|
}
|
|
|
// 查询分页参数改变处理方法
|
|
|
const handlePage = ({page, pageSize}: any) => {
|
|
@@ -161,7 +165,6 @@ export default defineComponent({
|
|
|
pageNum: page,
|
|
|
pageSize: pageSize,
|
|
|
sort: {},
|
|
|
- text: ''
|
|
|
}
|
|
|
// 添加排序参数
|
|
|
for (const [k, v] of Object.entries(state.querySort)) {
|
|
@@ -173,28 +176,16 @@ export default defineComponent({
|
|
|
}
|
|
|
// 添加复合查询参数
|
|
|
state.loading = true
|
|
|
-
|
|
|
- // mock
|
|
|
- const arr = []
|
|
|
- for (let i = 0; i < 77; i++) {
|
|
|
- arr.push({p1: '阿三顶顶顶顶顶顶顶顶顶顶顶顶顶'})
|
|
|
- }
|
|
|
- state.queryResult.tableData = arr
|
|
|
- state.queryResult.total = arr.length
|
|
|
- state.loading = false
|
|
|
- // that.$api.patrolBoatList(that.$util.formatGetParam(queryParams)).then((res: { code: number; rows: never[]; total: number; }) => {
|
|
|
- // if (res.code === 200) {
|
|
|
- // state.queryResult.tableData = res.rows
|
|
|
- // state.queryResult.total = res.total
|
|
|
- // }
|
|
|
- // setTimeout(() => {
|
|
|
- // state.loading = false
|
|
|
- // }, 1000)
|
|
|
- // }).catch(() => {
|
|
|
- // setTimeout(() => {
|
|
|
- // state.loading = false
|
|
|
- // }, 1000)
|
|
|
- // })
|
|
|
+ that.$api.getDeptList()
|
|
|
+ that.$api.getOperationLogList(queryParams).then((res: any) => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ // state.queryResult.tableData = res.rows
|
|
|
+ // state.queryResult.total = res.total
|
|
|
+ }
|
|
|
+ state.loading = false
|
|
|
+ }).catch(() => {
|
|
|
+ state.loading = false
|
|
|
+ })
|
|
|
}
|
|
|
// 点击查询按钮后
|
|
|
const onSearch = () => {
|