inl-ui 0.0.21 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inl-ui",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/types/src/index.d.ts",
@@ -1,5 +1,6 @@
1
1
  import { defineComponent, ref, watch } from "vue";
2
2
  import useVModel from "@/pageComponent/hooks/useVModel";
3
+ import dayjs from "dayjs";
3
4
  import { message } from "ant-design-vue";
4
5
  import { FileExcelTwoTone, InboxOutlined } from "@ant-design/icons-vue";
5
6
 
@@ -16,6 +17,7 @@ const BatchImportModal = defineComponent({
16
17
  },
17
18
  setup(props, { emit }) {
18
19
  const isVisible = useVModel(props, "visible", emit);
20
+ const templateFileName = ref("");
19
21
 
20
22
  const isLoading = ref(false);
21
23
  const fileList = ref<any[]>([]);
@@ -34,6 +36,9 @@ const BatchImportModal = defineComponent({
34
36
  if (!val) {
35
37
  fileList.value = [];
36
38
  isLoading.value = false;
39
+ } else {
40
+ const day = dayjs();
41
+ templateFileName.value = `批量导入成员_${day.format("YYYY_M_D_HHmm")}`;
37
42
  }
38
43
  });
39
44
 
@@ -41,6 +46,7 @@ const BatchImportModal = defineComponent({
41
46
  <div class="batchImportModal">
42
47
  <a-modal
43
48
  title="批量导入"
49
+ width={800}
44
50
  v-model={[isVisible.value, "visible"]}
45
51
  v-slots={{
46
52
  footer: () => (
@@ -75,8 +81,9 @@ const BatchImportModal = defineComponent({
75
81
  <a
76
82
  target="_BLANK"
77
83
  href="/api/common/v1/employee/export/template"
84
+ download={templateFileName.value}
78
85
  >
79
- 人员模版
86
+ {templateFileName.value}
80
87
  </a>
81
88
  </span>
82
89
  ),
@@ -147,7 +147,7 @@ const EmployeeTable = defineComponent({
147
147
  const day = dayjs();
148
148
  const aEl = document.createElement("a");
149
149
  aEl.href = "/api/common/v1/employee/export/multi";
150
- aEl.download = `批量导出成员_${day.format("YYYY_M_D_ms")}`;
150
+ aEl.download = `批量导出成员_${day.format("YYYY_M_D_HHmm")}`;
151
151
  aEl.click();
152
152
  };
153
153
 
@@ -167,8 +167,9 @@ const EmployeeTable = defineComponent({
167
167
  disabled={!selectIdList.value.length}
168
168
  onClick={handleExport}
169
169
  >
170
- 批量导出
170
+ 导出选中
171
171
  </a-button>
172
+ <a-button onClick={handleExport}>导出全部</a-button>
172
173
  </a-space>
173
174
  <a-input
174
175
  style={{ width: "200px" }}