|
@@ -20,6 +20,8 @@
|
|
<SetImportParamsDialog
|
|
<SetImportParamsDialog
|
|
v-model="showSetParamsDialog"
|
|
v-model="showSetParamsDialog"
|
|
v-if="showSetParamsDialog"
|
|
v-if="showSetParamsDialog"
|
|
|
|
+ :data="curParams"
|
|
|
|
+ @success="setParamSuccess"
|
|
></SetImportParamsDialog>
|
|
></SetImportParamsDialog>
|
|
<StuImportFileDialog
|
|
<StuImportFileDialog
|
|
v-model="showStuImportFileDialog"
|
|
v-model="showStuImportFileDialog"
|
|
@@ -29,7 +31,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script name="StuImport" lang="ts" setup>
|
|
<script name="StuImport" lang="ts" setup>
|
|
-import { ref } from "vue";
|
|
|
|
|
|
+import { computed, ref } from "vue";
|
|
import SetImportParamsDialog from "./SetImportParamsDialog.vue";
|
|
import SetImportParamsDialog from "./SetImportParamsDialog.vue";
|
|
import { getStuList } from "@/ap/baseDataConfig";
|
|
import { getStuList } from "@/ap/baseDataConfig";
|
|
import { useUserStore } from "@/store";
|
|
import { useUserStore } from "@/store";
|
|
@@ -43,6 +45,14 @@ const showStuImportFileDialog = ref(false);
|
|
const year = ref();
|
|
const year = ref();
|
|
const yearHalf = ref();
|
|
const yearHalf = ref();
|
|
const loading = ref(false);
|
|
const loading = ref(false);
|
|
|
|
+
|
|
|
|
+const curParams = computed(() => {
|
|
|
|
+ return {
|
|
|
|
+ year: `${year.value}`,
|
|
|
|
+ yearHalf: yearHalf.value,
|
|
|
|
+ };
|
|
|
|
+});
|
|
|
|
+
|
|
const fullYear = (num: number) => {
|
|
const fullYear = (num: number) => {
|
|
return String(num).length == 4 ? num : "20" + num;
|
|
return String(num).length == 4 ? num : "20" + num;
|
|
};
|
|
};
|
|
@@ -92,7 +102,12 @@ const columns: TableColumnsType = [
|
|
{
|
|
{
|
|
title: "操作",
|
|
title: "操作",
|
|
key: "operation",
|
|
key: "operation",
|
|
- width: 300,
|
|
|
|
|
|
+ width: 140,
|
|
|
|
+ customCell: () => {
|
|
|
|
+ return {
|
|
|
|
+ class: "operation-cell",
|
|
|
|
+ };
|
|
|
|
+ },
|
|
},
|
|
},
|
|
];
|
|
];
|
|
const dataList = ref([]);
|
|
const dataList = ref([]);
|
|
@@ -127,6 +142,11 @@ const openImportDialog = (row: any) => {
|
|
curRow.value = row;
|
|
curRow.value = row;
|
|
showStuImportFileDialog.value = true;
|
|
showStuImportFileDialog.value = true;
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+function setParamSuccess(data: any) {
|
|
|
|
+ year.value = data.year;
|
|
|
|
+ yearHalf.value = data.yearHalf;
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
.stu-import {
|
|
.stu-import {
|