npmapps 1.2.0 → 1.3.1

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.
Files changed (120) hide show
  1. package/README.md +41 -0
  2. package/files/part-002 +4 -0
  3. package/get.js +193 -0
  4. package/manifest.json +28 -0
  5. package/package.json +17 -10
  6. package/PUBLISH.md +0 -268
  7. package/app/wujie-wk/t.html +0 -90
  8. package/app/wujie-wk/wujie-vue2-child/.eslintrc.js +0 -19
  9. package/app/wujie-wk/wujie-vue2-child/README.md +0 -24
  10. package/app/wujie-wk/wujie-vue2-child/babel.config.js +0 -5
  11. package/app/wujie-wk/wujie-vue2-child/docs/superpowers/plans/2026-05-29-quill-editor.md +0 -836
  12. package/app/wujie-wk/wujie-vue2-child/docs/superpowers/specs/2026-05-29-quill-editor-design.md +0 -210
  13. package/app/wujie-wk/wujie-vue2-child/jsconfig.json +0 -19
  14. package/app/wujie-wk/wujie-vue2-child/package-lock.json +0 -21333
  15. package/app/wujie-wk/wujie-vue2-child/package.json +0 -63
  16. package/app/wujie-wk/wujie-vue2-child/postcss.config.js +0 -10
  17. package/app/wujie-wk/wujie-vue2-child/public/favicon.ico +0 -0
  18. package/app/wujie-wk/wujie-vue2-child/public/index.html +0 -17
  19. package/app/wujie-wk/wujie-vue2-child/public/rili.jpg +0 -0
  20. package/app/wujie-wk/wujie-vue2-child/public//344/270/200/351/224/256/351/273/221/346/232/227.html +0 -136
  21. package/app/wujie-wk/wujie-vue2-child/src/App.vue +0 -110
  22. package/app/wujie-wk/wujie-vue2-child/src/assets/bpmn-camunda.jpg +0 -0
  23. package/app/wujie-wk/wujie-vue2-child/src/assets/css/diagram.less +0 -17
  24. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/Icon.less +0 -31
  25. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app-codes.css +0 -26
  26. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.eot +0 -0
  27. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.svg +0 -60
  28. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.ttf +0 -0
  29. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.woff +0 -0
  30. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.woff2 +0 -0
  31. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/config.json +0 -248
  32. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-bottom-tool.svg +0 -30
  33. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-horizontal-center-tool.svg +0 -85
  34. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-left-tool.svg +0 -84
  35. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-right-tool.svg +0 -80
  36. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-top-tool.svg +0 -84
  37. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-vertical-center-tool.svg +0 -89
  38. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/distribute-horizontally-tool.svg +0 -95
  39. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/distribute-vertically-tool.svg +0 -99
  40. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/set-color-tool.svg +0 -111
  41. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-bottom-tool.svg +0 -30
  42. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-horizontal-center-tool.svg +0 -30
  43. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-left-tool.svg +0 -30
  44. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-right-tool.svg +0 -30
  45. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-top-tool.svg +0 -30
  46. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-vertical-center-tool.svg +0 -30
  47. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/distribute-horizontally-tool.svg +0 -30
  48. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/distribute-vertically-tool.svg +0 -30
  49. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/set-color-tool.svg +0 -63
  50. package/app/wujie-wk/wujie-vue2-child/src/assets/logo.png +0 -0
  51. package/app/wujie-wk/wujie-vue2-child/src/components/EllTable/README.md +0 -70
  52. package/app/wujie-wk/wujie-vue2-child/src/components/EllTable/article.md +0 -184
  53. package/app/wujie-wk/wujie-vue2-child/src/components/EllTable/index.js +0 -213
  54. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/CalendarSkeleton.vue +0 -147
  55. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/CodeBlock.vue +0 -199
  56. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/MonthSelect.vue +0 -376
  57. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/README.md +0 -485
  58. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/example.vue +0 -1747
  59. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/index.vue +0 -2720
  60. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/mockData.js +0 -475
  61. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/recruitmentAdapter.js +0 -51
  62. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/utils.js +0 -202
  63. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/FunctionSelector.vue +0 -123
  64. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/OperatorSelector.vue +0 -184
  65. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/ParameterSelector.vue +0 -123
  66. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/api.js +0 -69
  67. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/index.vue +0 -435
  68. package/app/wujie-wk/wujie-vue2-child/src/components/HelloWorld.vue +0 -58
  69. package/app/wujie-wk/wujie-vue2-child/src/components/PageHeader/index.vue +0 -158
  70. package/app/wujie-wk/wujie-vue2-child/src/components/Splitter/README.md +0 -144
  71. package/app/wujie-wk/wujie-vue2-child/src/components/Splitter/example.vue +0 -84
  72. package/app/wujie-wk/wujie-vue2-child/src/components/Splitter/index.vue +0 -203
  73. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/ToolBar.vue +0 -357
  74. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/customTranslate/customTranslate.js +0 -12
  75. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/customTranslate/translationsGerman.js +0 -241
  76. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/index.vue +0 -261
  77. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/xmlData.js +0 -29
  78. package/app/wujie-wk/wujie-vue2-child/src/directives/filldown.js +0 -155
  79. package/app/wujie-wk/wujie-vue2-child/src/directives/filldownTable.js +0 -291
  80. package/app/wujie-wk/wujie-vue2-child/src/main.js +0 -40
  81. package/app/wujie-wk/wujie-vue2-child/src/router/index.js +0 -72
  82. package/app/wujie-wk/wujie-vue2-child/src/store/index.js +0 -23
  83. package/app/wujie-wk/wujie-vue2-child/src/utils/winBox.js +0 -23
  84. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/A.vue +0 -12
  85. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/B.vue +0 -10
  86. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/MagicalComponentsForELFormItem.vue +0 -78
  87. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/index.vue +0 -59
  88. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/tableMouseHorizontalWheel.vue +0 -184
  89. package/app/wujie-wk/wujie-vue2-child/src/views/Home.vue +0 -27
  90. package/app/wujie-wk/wujie-vue2-child/src/views/RouterJump.vue +0 -145
  91. package/app/wujie-wk/wujie-vue2-child/src/views/calendar/index.vue +0 -19
  92. package/app/wujie-wk/wujie-vue2-child/src/views/css.vue +0 -57
  93. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/EllipsisText.vue +0 -73
  94. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/HoverCard.vue +0 -69
  95. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/TableHover.vue +0 -130
  96. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/inputSlo.vue +0 -42
  97. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/tableFixed.vue +0 -148
  98. package/app/wujie-wk/wujie-vue2-child/src/views/echarts/echart-dome.vue +0 -73
  99. package/app/wujie-wk/wujie-vue2-child/src/views/echarts/index.vue +0 -118
  100. package/app/wujie-wk/wujie-vue2-child/src/views/echarts/pei3d.vue +0 -658
  101. package/app/wujie-wk/wujie-vue2-child/src/views/element/bpmn/index.vue +0 -15
  102. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/attendanceCycle/index.vue +0 -131
  103. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/attendanceGroup/index.vue +0 -147
  104. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/attendancePersonnel/index.vue +0 -158
  105. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/companyCalendar/index.vue +0 -147
  106. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/shift/index.vue +0 -147
  107. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/shiftRotationSystem/index.vue +0 -147
  108. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/columnManagement.vue +0 -340
  109. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/dialogInput.vue +0 -71
  110. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/elTableJsx.vue +0 -1826
  111. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/formTable.vue +0 -595
  112. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/index.vue +0 -29
  113. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/simpleTable.vue +0 -189
  114. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx.zip +0 -0
  115. package/app/wujie-wk/wujie-vue2-child/src/views/element/index.vue +0 -39
  116. package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/README.md +0 -163
  117. package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/example.vue +0 -307
  118. package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/index.vue +0 -409
  119. package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/toolbar.js +0 -122
  120. package/app/wujie-wk/wujie-vue2-child/vue.config.js +0 -15
@@ -1,131 +0,0 @@
1
- <template>
2
- <div class="attendanceCycle" v-loading="loading">
3
- <div class="header">
4
- <div class="left">
5
- <el-button size="mini" type="primary" @click="onSave">选择</el-button>
6
- </div>
7
- <div class="right">
8
- <el-select
9
- size="mini"
10
- v-model="year"
11
- placeholder="请选择"
12
- @change="yearChange"
13
- >
14
- <el-option
15
- v-for="item in options"
16
- :key="item.yearId"
17
- :label="item.yearName"
18
- :value="item.yearId"
19
- >
20
- </el-option>
21
- </el-select>
22
- </div>
23
- </div>
24
- <el-table
25
- size="mini"
26
- :data="tableData"
27
- style="width: 100%"
28
- border
29
- @row-click="handleRowClick"
30
- >
31
- <!-- 单选框列 -->
32
- <el-table-column width="50">
33
- <template slot-scope="scope">
34
- <el-radio
35
- :value="currentRow.monthId"
36
- :label="scope.row.monthId"
37
- >&nbsp;</el-radio>
38
- </template>
39
- </el-table-column>
40
- <el-table-column prop="monthName" label="名称"></el-table-column>
41
- <el-table-column prop="monthName" label="开始日期"></el-table-column>
42
- <el-table-column prop="monthName" label="结束日期"></el-table-column>
43
- </el-table>
44
- </div>
45
- </template>
46
-
47
- <script>
48
- import {
49
- getOpenAttendanceCycleMonthListApi,
50
- getOpenAttendanceCycleYearListApi,
51
- } from "../../employeeSchedulingManagement/data.js";
52
-
53
- export default {
54
- // 考勤周期
55
- props: {
56
- close: {
57
- type: Function,
58
- default: () => {},
59
- },
60
- setData:{
61
- type: Function,
62
- default: () => {},
63
- },
64
- },
65
-
66
- data() {
67
- return {
68
- loading: false,
69
- tableData: [],
70
- year: "2025",
71
- options: [],
72
- currentRow: {
73
- monthId: "",
74
- }, // 当前选中的行
75
- };
76
- },
77
- mounted() {
78
- this.loading = false;
79
- this.getTableData();
80
- this.getYearList();
81
- },
82
- methods: {
83
- getTableData() {
84
- this.loading = true;
85
- getOpenAttendanceCycleMonthListApi(this.year).then((res) => {
86
- this.tableData = res;
87
- console.log(res, "res");
88
- this.loading = false;
89
- });
90
- },
91
- getYearList() {
92
- getOpenAttendanceCycleYearListApi().then((res) => {
93
- this.options = res;
94
- });
95
- },
96
- yearChange() {
97
- this.getTableData();
98
- },
99
- handleRowClick(row) {
100
- this.currentRow = row; // 点击行时更新选中状态
101
- },
102
- onSave() {
103
- if (this.currentRow.monthId === "") {
104
- return this.$message.error("请选择");
105
- }
106
- this.close();
107
- this.setData(this.currentRow);
108
- },
109
-
110
- },
111
- };
112
- </script>
113
-
114
- <style lang="less" scoped>
115
- .attendanceCycle {
116
- .header {
117
- display: flex;
118
- justify-content: space-between;
119
- align-items: center;
120
- margin-bottom: 10px;
121
- .left {
122
- display: flex;
123
- align-items: center;
124
- }
125
- .right {
126
- display: flex;
127
- align-items: center;
128
- }
129
- }
130
- }
131
- </style>
@@ -1,147 +0,0 @@
1
- <template>
2
- <div class="attendanceCycle" v-loading="loading">
3
- <div class="header">
4
- <div class="left">
5
- <el-button size="mini" type="primary" @click="onSave">选择</el-button>
6
- </div>
7
- <div class="right">
8
-
9
- </div>
10
- </div>
11
- <el-table
12
- size="mini"
13
- :data="tableData"
14
- style="width: 100%"
15
- border
16
- @row-click="handleRowClick"
17
- >
18
- <!-- 单选框列 -->
19
- <el-table-column width="50">
20
- <template slot-scope="scope">
21
- <el-radio
22
- :value="currentRow.monthId"
23
- :label="scope.row.monthId"
24
- >&nbsp;</el-radio>
25
- </template>
26
- </el-table-column>
27
- <el-table-column prop="monthId" label="编码"></el-table-column>
28
- <el-table-column prop="monthName" label="名称"></el-table-column>
29
- <el-table-column prop="monthName" label="企业日历"></el-table-column>
30
- <el-table-column prop="monthName" label="轮班制度"></el-table-column>
31
- <el-table-column prop="monthName" label="状态"></el-table-column>
32
- </el-table>
33
- <div class="footer">
34
- <div class="left">
35
-
36
- </div>
37
- <div class="right">
38
- <el-pagination
39
- @size-change="handleSizeChange"
40
- @current-change="handleCurrentChange"
41
- :current-page="currentPage"
42
- :page-sizes="[10, 20, 30, 100]"
43
- :page-size="10"
44
- layout="total, sizes, prev, pager, next"
45
- :total="total"
46
- >
47
- </el-pagination>
48
- </div>
49
- </div>
50
- </div>
51
- </template>
52
-
53
- <script>
54
- import {
55
- getOpenAttendanceCycleMonthListApi,
56
- } from "../../employeeSchedulingManagement/data.js";
57
-
58
- export default {
59
- // 考勤组
60
- props: {
61
- close: {
62
- type: Function,
63
- default: () => {},
64
- },
65
- setData:{
66
- type: Function,
67
- default: () => {},
68
- },
69
- },
70
-
71
- data() {
72
- return {
73
- loading: false,
74
- tableData: [],
75
- year: "2025",
76
- options: [],
77
- currentRow: {
78
- monthId: "",
79
- }, // 当前选中的行
80
- currentPage: 1,
81
- total: 11110,
82
- };
83
- },
84
- mounted() {
85
- this.loading = false;
86
- this.getTableData();
87
- this.getYearList();
88
- },
89
- methods: {
90
- getTableData() {
91
- this.loading = true;
92
- getOpenAttendanceCycleMonthListApi(this.year).then((res) => {
93
- this.tableData = res;
94
- console.log(res, "res");
95
- this.loading = false;
96
- });
97
- },
98
-
99
- yearChange() {
100
- this.getTableData();
101
- },
102
- handleRowClick(row) {
103
- this.currentRow = row; // 点击行时更新选中状态
104
- },
105
- onSave() {
106
- if (this.currentRow.monthId === "") {
107
- return this.$message.error("请选择");
108
- }
109
- this.close();
110
- this.setData(this.currentRow);
111
- },
112
- handleSizeChange(val) {
113
- this.currentPage = 1;
114
- this.getTableData();
115
- },
116
- handleCurrentChange(val) {
117
- this.currentPage = val;
118
- this.getTableData();
119
- },
120
-
121
-
122
- },
123
- };
124
- </script>
125
-
126
- <style lang="less" scoped>
127
- .attendanceCycle {
128
- .header {
129
- display: flex;
130
- justify-content: space-between;
131
- align-items: center;
132
- margin-bottom: 10px;
133
- .left {
134
- display: flex;
135
- align-items: center;
136
- }
137
- .right {
138
- display: flex;
139
- align-items: center;
140
- }
141
- }
142
- .footer {
143
- display: flex;
144
- justify-content: space-between;
145
- }
146
- }
147
- </style>
@@ -1,158 +0,0 @@
1
- <template>
2
- <div class="attendanceCycle" v-loading="loading">
3
- <div class="header">
4
- <div class="left">
5
- <el-button size="mini" type="primary" @click="onSave">选择</el-button>
6
- </div>
7
- <div class="right"></div>
8
- </div>
9
- <el-table
10
- size="mini"
11
- :data="tableData"
12
- style="width: 100%"
13
- border
14
- @row-click="handleRowClick"
15
- @selection-change="handleSelectionChange"
16
- ref="multipleTable"
17
- >
18
- <!-- 单选框列 -->
19
- <el-table-column width="50" v-if="!multiple">
20
- <template slot-scope="scope">
21
- <el-radio :value="currentRow.monthId" :label="scope.row.monthId"
22
- >&nbsp;</el-radio
23
- >
24
- </template>
25
- </el-table-column>
26
- <el-table-column v-else type="selection" width="55"></el-table-column>
27
- <el-table-column prop="monthId" label="工号"></el-table-column>
28
- <el-table-column prop="monthName" label="姓名"></el-table-column>
29
- <el-table-column prop="monthName" label="机构"></el-table-column>
30
- <el-table-column prop="monthName" label="部门"></el-table-column>
31
- <el-table-column prop="monthName" label="考勤组"></el-table-column>
32
- <el-table-column prop="monthName" label="生效日期"></el-table-column>
33
- </el-table>
34
- <div class="footer">
35
- <div class="left"></div>
36
- <div class="right">
37
- <el-pagination
38
- @size-change="handleSizeChange"
39
- @current-change="handleCurrentChange"
40
- :current-page="currentPage"
41
- :page-sizes="[10, 20, 30, 100]"
42
- :page-size="10"
43
- layout="total, sizes, prev, pager, next"
44
- :total="total"
45
- >
46
- </el-pagination>
47
- </div>
48
- </div>
49
- </div>
50
- </template>
51
-
52
- <script>
53
- import { getOpenAttendanceCycleMonthListApi } from "../../employeeSchedulingManagement/data.js";
54
-
55
- export default {
56
- // 考勤人员
57
- props: {
58
- close: {
59
- type: Function,
60
- default: () => {},
61
- },
62
- setData: {
63
- type: Function,
64
- default: () => {},
65
- },
66
- multiple: {
67
- type: Boolean,
68
- default: false,
69
- },
70
- },
71
-
72
- data() {
73
- return {
74
- loading: false,
75
- tableData: [],
76
- year: "2025",
77
- options: [],
78
- currentRow: {
79
- monthId: "",
80
- }, // 当前选中的行
81
- currentPage: 1,
82
- total: 11110,
83
- multipleSelection: [],
84
- };
85
- },
86
- mounted() {
87
- this.loading = false;
88
- this.getTableData();
89
- },
90
- methods: {
91
- getTableData() {
92
- this.loading = true;
93
- getOpenAttendanceCycleMonthListApi(this.year).then((res) => {
94
- this.tableData = res;
95
- console.log(res, "res");
96
- this.loading = false;
97
- });
98
- },
99
-
100
- yearChange() {
101
- this.getTableData();
102
- },
103
- handleRowClick(row) {
104
- this.currentRow = row; // 点击行时更新选中状态
105
- },
106
- onSave() {
107
- let data;
108
- if (this.multiple) {
109
- if (this.multipleSelection.length === 0)
110
- return this.$message.error("请选择");
111
- data = this.multipleSelection;
112
- } else {
113
- if (this.currentRow.monthId === "") {
114
- return this.$message.error("请选择");
115
- }
116
- data = this.currentRow;
117
- }
118
- this.close();
119
- this.setData(data);
120
- },
121
- handleSizeChange(val) {
122
- this.currentPage = 1;
123
- this.getTableData();
124
- },
125
- handleCurrentChange(val) {
126
- this.currentPage = val;
127
- this.getTableData();
128
- },
129
-
130
- handleSelectionChange(val) {
131
- this.multipleSelection = val;
132
- },
133
- },
134
- };
135
- </script>
136
-
137
- <style lang="less" scoped>
138
- .attendanceCycle {
139
- .header {
140
- display: flex;
141
- justify-content: space-between;
142
- align-items: center;
143
- margin-bottom: 10px;
144
- .left {
145
- display: flex;
146
- align-items: center;
147
- }
148
- .right {
149
- display: flex;
150
- align-items: center;
151
- }
152
- }
153
- .footer {
154
- display: flex;
155
- justify-content: space-between;
156
- }
157
- }
158
- </style>
@@ -1,147 +0,0 @@
1
- <template>
2
- <div class="attendanceCycle" v-loading="loading">
3
- <div class="header">
4
- <div class="left">
5
- <el-button size="mini" type="primary" @click="onSave">选择</el-button>
6
- </div>
7
- <div class="right">
8
-
9
- </div>
10
- </div>
11
- <el-table
12
- size="mini"
13
- :data="tableData"
14
- style="width: 100%"
15
- border
16
- @row-click="handleRowClick"
17
- >
18
- <!-- 单选框列 -->
19
- <el-table-column width="50">
20
- <template slot-scope="scope">
21
- <el-radio
22
- :value="currentRow.monthId"
23
- :label="scope.row.monthId"
24
- >&nbsp;</el-radio>
25
- </template>
26
- </el-table-column>
27
- <el-table-column prop="monthId" label="表集合"></el-table-column>
28
- <el-table-column prop="monthId" label="编码"></el-table-column>
29
- <el-table-column prop="monthName" label="名称"></el-table-column>
30
- <el-table-column prop="monthName" label="起始年度"></el-table-column>
31
- <el-table-column prop="monthName" label="终止年度"></el-table-column>
32
- <el-table-column prop="monthName" label="公共假日为工作日"></el-table-column>
33
- </el-table>
34
- <div class="footer">
35
- <div class="left">
36
-
37
- </div>
38
- <div class="right">
39
- <el-pagination
40
- @size-change="handleSizeChange"
41
- @current-change="handleCurrentChange"
42
- :current-page="currentPage"
43
- :page-sizes="[10, 20, 30, 100]"
44
- :page-size="10"
45
- layout="total, sizes, prev, pager, next"
46
- :total="total"
47
- >
48
- </el-pagination>
49
- </div>
50
- </div>
51
- </div>
52
- </template>
53
-
54
- <script>
55
- import {
56
- getOpenAttendanceCycleMonthListApi,
57
- } from "../../employeeSchedulingManagement/data.js";
58
-
59
- export default {
60
- // 企业日历
61
- props: {
62
- close: {
63
- type: Function,
64
- default: () => {},
65
- },
66
- setData:{
67
- type: Function,
68
- default: () => {},
69
- },
70
- },
71
-
72
- data() {
73
- return {
74
- loading: false,
75
- tableData: [],
76
- year: "2025",
77
- options: [],
78
- currentRow: {
79
- monthId: "",
80
- }, // 当前选中的行
81
- currentPage: 1,
82
- total: 11110,
83
- };
84
- },
85
- mounted() {
86
- this.loading = false;
87
- this.getTableData();
88
- },
89
- methods: {
90
- getTableData() {
91
- this.loading = true;
92
- getOpenAttendanceCycleMonthListApi(this.year).then((res) => {
93
- this.tableData = res;
94
- console.log(res, "res");
95
- this.loading = false;
96
- });
97
- },
98
-
99
- yearChange() {
100
- this.getTableData();
101
- },
102
- handleRowClick(row) {
103
- this.currentRow = row; // 点击行时更新选中状态
104
- },
105
- onSave() {
106
- if (this.currentRow.monthId === "") {
107
- return this.$message.error("请选择");
108
- }
109
- this.close();
110
- this.setData(this.currentRow);
111
- },
112
- handleSizeChange(val) {
113
- this.currentPage = 1;
114
- this.getTableData();
115
- },
116
- handleCurrentChange(val) {
117
- this.currentPage = val;
118
- this.getTableData();
119
- },
120
-
121
-
122
- },
123
- };
124
- </script>
125
-
126
- <style lang="less" scoped>
127
- .attendanceCycle {
128
- .header {
129
- display: flex;
130
- justify-content: space-between;
131
- align-items: center;
132
- margin-bottom: 10px;
133
- .left {
134
- display: flex;
135
- align-items: center;
136
- }
137
- .right {
138
- display: flex;
139
- align-items: center;
140
- }
141
- }
142
- .footer {
143
- display: flex;
144
- justify-content: space-between;
145
- }
146
- }
147
- </style>