|
@@ -7,11 +7,7 @@
|
|
|
:placeholder="'请输入' + tableQueryType"
|
|
:placeholder="'请输入' + tableQueryType"
|
|
|
>
|
|
>
|
|
|
<template #prepend>
|
|
<template #prepend>
|
|
|
- <el-select
|
|
|
|
|
- v-model="tableQueryType"
|
|
|
|
|
- style="width: 74px"
|
|
|
|
|
- @change="handleTableQueryTypeChange"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-select v-model="tableQueryType" style="width: 74px" @change="handleTableQueryTypeChange">
|
|
|
<el-option value="姓名" />
|
|
<el-option value="姓名" />
|
|
|
<el-option value="工号" />
|
|
<el-option value="工号" />
|
|
|
</el-select>
|
|
</el-select>
|
|
@@ -32,9 +28,7 @@
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
<div style="float: right">
|
|
<div style="float: right">
|
|
|
- <el-button type="primary" @click="submitTableQuery" style="width: 65px; height: 32px"
|
|
|
|
|
- >搜 索</el-button
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-button type="primary" @click="submitTableQuery" style="width: 65px; height: 32px">搜 索</el-button>
|
|
|
<el-button @click="resetTable" style="width: 65px; height: 32px">重 置</el-button>
|
|
<el-button @click="resetTable" style="width: 65px; height: 32px">重 置</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -47,15 +41,10 @@
|
|
|
highlight-current-row
|
|
highlight-current-row
|
|
|
@sort-change="handleSortChange"
|
|
@sort-change="handleSortChange"
|
|
|
>
|
|
>
|
|
|
- <el-table-column label="姓名" prop="nickname" align="center"></el-table-column>
|
|
|
|
|
|
|
+ <el-table-column label="姓名" prop="realname" align="center"></el-table-column>
|
|
|
<el-table-column label="工号" prop="staffNo" align="center"></el-table-column>
|
|
<el-table-column label="工号" prop="staffNo" align="center"></el-table-column>
|
|
|
<el-table-column label="部门" prop="deptName" align="center"></el-table-column>
|
|
<el-table-column label="部门" prop="deptName" align="center"></el-table-column>
|
|
|
- <el-table-column
|
|
|
|
|
- label="累计积分"
|
|
|
|
|
- prop="score"
|
|
|
|
|
- sortable="custom"
|
|
|
|
|
- align="center"
|
|
|
|
|
- ></el-table-column>
|
|
|
|
|
|
|
+ <el-table-column label="累计积分" prop="score" sortable="custom" align="center"></el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
v-model:current-page="tableQueryParams.pageNumber"
|
|
v-model:current-page="tableQueryParams.pageNumber"
|
|
@@ -72,10 +61,7 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import { ref } from 'vue';
|
|
import { ref } from 'vue';
|
|
|
import { defineProps } from 'vue';
|
|
import { defineProps } from 'vue';
|
|
|
- import {
|
|
|
|
|
- type ScoreTableRecord,
|
|
|
|
|
- type ScoreTableQueryBody,
|
|
|
|
|
- } from '@/api/datamanagement/dataplatform';
|
|
|
|
|
|
|
+ import { type ScoreTableRecord, type ScoreTableQueryBody } from '@/api/datamanagement/dataplatform';
|
|
|
|
|
|
|
|
const scoreTableRef = ref();
|
|
const scoreTableRef = ref();
|
|
|
|
|
|
|
@@ -93,7 +79,7 @@
|
|
|
pageNumber: 1,
|
|
pageNumber: 1,
|
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
|
deptId: '',
|
|
deptId: '',
|
|
|
- // nickname: "",
|
|
|
|
|
|
|
+ // realname: "",
|
|
|
// staffNo: "",
|
|
// staffNo: "",
|
|
|
// order: "",
|
|
// order: "",
|
|
|
});
|
|
});
|
|
@@ -127,7 +113,7 @@
|
|
|
if (v === '姓名') {
|
|
if (v === '姓名') {
|
|
|
delete tableQueryParams.value.staffNo;
|
|
delete tableQueryParams.value.staffNo;
|
|
|
} else {
|
|
} else {
|
|
|
- delete tableQueryParams.value.nickname;
|
|
|
|
|
|
|
+ delete tableQueryParams.value.realname;
|
|
|
}
|
|
}
|
|
|
tableQueryTypeContent.value = '';
|
|
tableQueryTypeContent.value = '';
|
|
|
};
|
|
};
|
|
@@ -139,7 +125,7 @@
|
|
|
const tableQueryTypeContent = ref<string>();
|
|
const tableQueryTypeContent = ref<string>();
|
|
|
function submitTableQuery() {
|
|
function submitTableQuery() {
|
|
|
if (tableQueryType.value === '姓名') {
|
|
if (tableQueryType.value === '姓名') {
|
|
|
- tableQueryParams.value.nickname = tableQueryTypeContent.value;
|
|
|
|
|
|
|
+ tableQueryParams.value.realname = tableQueryTypeContent.value;
|
|
|
} else {
|
|
} else {
|
|
|
tableQueryParams.value.staffNo = tableQueryTypeContent.value;
|
|
tableQueryParams.value.staffNo = tableQueryTypeContent.value;
|
|
|
}
|
|
}
|