branchErp/src/views/manage/posirecordlog/index.vue
2025-09-23 10:04:22 +08:00

150 lines
3.2 KiB
Vue

<template>
<div class="row"
style="padding: 35px">
<div class="col-12 row">
<fln-table :config="state.tableConfig"
:refreshCount="state.tableConfig.refreshCount">
<template #search-header>
<div class="col-12 row font-18"
style="color: #764cf6; border-bottom: 1px solid #c1b2e5;">
<div class="fl-py-sm"
style="border-bottom: 4px solid #764cf6;">
岗位操作记录
</div>
</div>
</template>
</fln-table>
</div>
</div>
</template>
<script setup>
// 岗位
import { NButton } from "naive-ui";
import {
ref,
reactive,
onBeforeMount,
onMounted,
getCurrentInstance,
computed,
} from "vue";
import { processError, processSuccess } from "@/utils/helper/message";
import { useRouter } from "vue-router";
import flnTable from "@/components/flnlayout/table/flntable.vue";
const currentInstance = getCurrentInstance();
const { $request } = currentInstance.appContext.config.globalProperties;
const title = ref("");
const state = reactive({
btnLoading: false,
selectedRows: [],
tableConfig: {
tableScrollWitdh: 600,
rowKey: "ID",
refreshCount: 0,
listUrl: {
resDataField: "list",
pageField: "page",
pageSizeField: "pageSize",
url: "/position/v2/log/list",
},
searchConfig: [
{
type: "select",
label: "操作类型",
field: "operateType",
options: [
{
label: "新增",
value: "add",
},
{
label: "修改",
value: "edit",
},
{
label: "删除",
value: "del",
},
{
label: "查看",
value: "detail",
},
],
},
{
type: "text",
label: "操作人",
field: "operatorName",
placeholder: "",
},
{
type: "text",
label: "操作人账号",
field: "OperatorTel",
placeholder: "",
},
{
type: "rangdate",
label: "操作时间",
field: ["StartCreatedAt", "EndCreatedAt"],
placeholder: ["开始", "结束"],
},
],
columns: [
{
type: 'select',
title: "操作类型",
field: "operateType",
config: {
options: [
{
label: "新增",
value: "add",
},
{
label: "修改",
value: "edit",
},
{
label: "删除",
value: "del",
},
{
label: "查看",
value: "detail",
},
],
}
},
{
type: "tooltip",
title: "操作详情",
field: "info",
},
{
type: "tooltip",
title: "操作人",
field: "operatorName",
},
{
title: "操作人账号",
field: "OperatorTel",
},
{
title: "操作时间",
field: "createdAt",
},
],
},
});
onBeforeMount(() => {
});
onMounted(() => { });
</script>
<style lang="scss" scoped>
</style>