mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
专业力必修提交
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<div class="header_top">
|
||||
<div class="pathnameInp">
|
||||
<a-input
|
||||
v-model:value="nameUserNo"
|
||||
v-model:value="username"
|
||||
style="width: 270px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入操作人姓名/工号"
|
||||
/>
|
||||
@@ -30,6 +30,7 @@
|
||||
separator="至"
|
||||
:placeholder="[' 开始时间', ' 结束时间']"
|
||||
@change="searchTimeChange"
|
||||
valueFormat="YYYY-MM-DD"
|
||||
/>
|
||||
</div>
|
||||
<div style="display: flex; margin-bottom: 20px">
|
||||
@@ -62,13 +63,15 @@ export default {
|
||||
name: "UpdateRecord",
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
nameUserNo: null,
|
||||
username: null,
|
||||
searchdate: [],
|
||||
avisible: false,
|
||||
growthId: null,
|
||||
pageSize: 10,
|
||||
pageNum: 1,
|
||||
total: 0,
|
||||
startTime: "",
|
||||
endTime: "",
|
||||
});
|
||||
const pagination = computed(() => ({
|
||||
total: state.total,
|
||||
@@ -83,6 +86,9 @@ export default {
|
||||
growthId: state.growthId,
|
||||
pageSize: state.pageSize,
|
||||
pageNum: state.pageNum,
|
||||
username: state.username,
|
||||
startTime: state.startTime,
|
||||
endTime: state.endTime,
|
||||
}).then((res) => {
|
||||
console.log(res);
|
||||
tableData.value = res.data.data.records;
|
||||
@@ -117,19 +123,28 @@ export default {
|
||||
align: "center",
|
||||
},
|
||||
]);
|
||||
const searchTimeChange = (e) => {
|
||||
console.log(e, "eeeee");
|
||||
const searchTimeChange = (date) => {
|
||||
console.log(date);
|
||||
if (date) {
|
||||
state.startTime = date[0] + " 00:00:00";
|
||||
state.endTime = date[1] + " 23:59:59";
|
||||
} else {
|
||||
state.startTime = "";
|
||||
state.endTime = "";
|
||||
}
|
||||
};
|
||||
const resetLearnPath = () => {
|
||||
state.nameUserNo = null;
|
||||
state.username = null;
|
||||
state.searchdate = [];
|
||||
state.pageNum = 1;
|
||||
getList();
|
||||
};
|
||||
const closeDrawer = () => {
|
||||
state.nameUserNo = null;
|
||||
state.username = null;
|
||||
state.searchdate = [];
|
||||
state.avisible = false;
|
||||
state.startTime = "";
|
||||
state.endTime = "";
|
||||
};
|
||||
const open = (row) => {
|
||||
state.growthId = row.id;
|
||||
|
||||
Reference in New Issue
Block a user