2 次代码提交 6f2c29d49f ... 62532a5174

作者 SHA1 备注 提交日期
  闪电 62532a5174 Merge branch 'master' of http://39.164.159.226:3000/hnsh-smart-steward/smart-steward-admin 3 周之前
  闪电 7d3e9f6dcb fix: 3 周之前

+ 9 - 3
apps/web-ele/src/api/system/infoEntry/stationInfo/stationInfo.ts

@@ -27,9 +27,12 @@ export function selectAllSysAreaList() {
27 27
  * 查询所有油站信息
28 28
  * @returns 油站列表
29 29
  */
30
-export function selectAllSysStationAreaList() {
30
+export function selectAllSysStationAreaList(params: any) {
31 31
   return requestClient.get<BaseResult<StationInfoModel[]>>(
32
-    Api.selectAllSysStation,
32
+    Api.selectAllSysStationAreaList,
33
+    {
34
+      params,
35
+    },
33 36
   );
34 37
 }
35 38
 
@@ -37,9 +40,12 @@ export function selectAllSysStationAreaList() {
37 40
  * 查询所有油站信息
38 41
  * @returns 油站列表
39 42
  */
40
-export function selectAllSysStation() {
43
+export function selectAllSysStation(params: any) {
41 44
   return requestClient.get<BaseResult<StationInfoModel[]>>(
42 45
     Api.selectAllSysStation,
46
+    {
47
+      params,
48
+    },
43 49
   );
44 50
 }
45 51
 /**

+ 13 - 9
apps/web-ele/src/views/schedule/detail/components/comment.vue

@@ -69,6 +69,7 @@ const submitComment = async () => {
69 69
       targetType: 'task',
70 70
       attachments: commentImages.value.map((item) => item.fileName).join(','),
71 71
       content: commentContent.value,
72
+      score: rating.value,
72 73
     });
73 74
     commentContent.value = '';
74 75
     commentImages.value = [];
@@ -218,15 +219,18 @@ onMounted(() => {
218 219
           <div
219 220
             v-for="(item, index) in comments"
220 221
             :key="index"
221
-            class="comment_item"
222
+            class="comment-item"
222 223
           >
223 224
             <div class="reader-item mb-2 mr-2" style="flex-shrink: 0">
224 225
               {{ getLastTwoChars(item.username) }}
225 226
             </div>
226
-            <div class="comment_content">
227
-              <span style="font-size: 15px; font-weight: 900">{{
228
-                item.username
229
-              }}</span>
227
+            <div class="comment-content">
228
+              <div style="display: flex; align-items: center; gap: 8px">
229
+                <span style="font-size: 15px; font-weight: 900">{{
230
+                  item.username
231
+                }}</span>
232
+                <ElRate v-model="item.score" size="small" disabled />
233
+              </div>
230 234
               <div>{{ item.content }}</div>
231 235
               <div>
232 236
                 <AttachmentViewer :files="item.attachmentsUrl" />
@@ -239,7 +243,7 @@ onMounted(() => {
239 243
                 "
240 244
               >
241 245
                 <span style="color: #a4aab2">{{ item.createTime }}</span>
242
-                <span class="reply_btn" @click="toggleReply(index)">回复</span>
246
+                <span class="reply-btn" @click="toggleReply(index)">回复</span>
243 247
               </div>
244 248
               <div
245 249
                 v-if="item.children && item.children.length > 0"
@@ -571,7 +575,7 @@ onMounted(() => {
571 575
   }
572 576
 }
573 577
 
574
-.comment_item {
578
+.comment-item {
575 579
   display: flex;
576 580
   // align-items: center;
577 581
   // justify-content: space-between;
@@ -583,12 +587,12 @@ onMounted(() => {
583 587
   font-size: 12px;
584 588
   color: #606266;
585 589
 
586
-  .comment_content {
590
+  .comment-content {
587 591
     margin-top: 6px;
588 592
     display: flex;
589 593
     flex-direction: column;
590 594
     gap: 8px;
591
-    .reply_btn {
595
+    .reply-btn {
592 596
       color: #409eff;
593 597
       cursor: pointer;
594 598
       &:hover {

+ 15 - 16
apps/web-ele/src/views/schedule/detail/drawer/groupLog/index.vue

@@ -241,26 +241,24 @@ const evaluationItems = ref<string[]>([]);
241 241
 
242 242
 const init = async () => {
243 243
   const res: any = await employeeSettingsList({});
244
-  gridOptions.columns = [];
244
+  // gridOptions.columns = [];
245 245
   gridOptions.columns = defautTableColumns;
246
-  if (res.rows?.length) {
246
+  if (
247
+    res.rows?.length &&
248
+    !(gridOptions && gridOptions.columns && gridOptions.columns?.length > 1)
249
+  ) {
247 250
     res.rows.forEach((item: any) => {
248 251
       evaluationItems.value.push(item.dictCode);
249 252
       // @ts-ignore
250 253
       gridOptions.columns.push({
251 254
         field: `id_${item.id}`,
252 255
         title: `${item.itemName}(${item.standardScore})`,
253
-        // editRender: { name: 'input' },
254
-        // cellType: 'number',
255 256
         editRender: {
256 257
           name: 'input',
257 258
           immediate: true,
258 259
           defaultValue: 20,
259 260
         },
260 261
         slots: {
261
-          // default: (data: any) => {
262
-          //   return data.row.machineValueFirst || '-';
263
-          // },
264 262
           edit: (data: any) => {
265 263
             return (
266 264
               <ElInputNumber
@@ -274,23 +272,24 @@ const init = async () => {
274 272
             );
275 273
           },
276 274
         },
277
-        width: 150,
275
+        width: 200,
278 276
       });
279 277
     });
278
+    // @ts-ignore
279
+    gridOptions.columns.push({
280
+      field: 'evaluationWords',
281
+      title: `评语`,
282
+      editRender: { name: 'textarea' },
283
+      // cellType: 'number',
284
+      width: 200,
285
+    });
280 286
   }
281 287
 
282
-  // @ts-ignore
283
-  gridOptions.columns.push({
284
-    field: 'evaluationWords',
285
-    title: `评语`,
286
-    editRender: { name: 'textarea' },
287
-    // cellType: 'number',
288
-    width: 200,
289
-  });
290 288
   basicTableApi.setGridOptions(gridOptions);
291 289
 };
292 290
 
293 291
 onMounted(async () => {
292
+  console.log('gridOptions', gridOptions);
294 293
   await init();
295 294
   // gridOptions.columns = await tableColumns();
296 295
 });

+ 9 - 5
apps/web-ele/src/views/schedule/view/components/create/config-data.tsx

@@ -1,16 +1,16 @@
1 1
 import { h } from 'vue';
2 2
 
3
-import { useUserStore } from '@vben/stores';
3
+// import { useUserStore } from '@vben/stores';
4 4
 import { getPopupContainer } from '@vben/utils';
5 5
 
6 6
 import { queryExecutorList } from '#/api/schedule/index';
7
-import { selectAllSysStationAreaList } from '#/api/system/infoEntry/stationInfo/stationInfo';
7
+import { selectAllSysStation } from '#/api/system/infoEntry/stationInfo/stationInfo';
8 8
 import { getPostList } from '#/api/system/post/post';
9 9
 import { querybaseApilist } from '#/api/system/tasksettings/tasktemplate';
10 10
 import { getFileUploadConfig } from '#/components/upload/config';
11 11
 import { getDictOptions } from '#/utils/dict';
12 12
 
13
-const userStore = useUserStore();
13
+// const userStore = useUserStore();
14 14
 // 字典标识常量
15 15
 const DICT_KEYS = {
16 16
   // 任务类型字典标识
@@ -27,7 +27,9 @@ const getTaskTypeOptions = () => getDictOptions(DICT_KEYS.TASK_TYPE);
27 27
 let getPostListOptions = [] as any; // 执行岗位下拉
28 28
 let getUserListOptions = [] as any; // 执行人下拉
29 29
 const getPostListfn = async () => {
30
-  const { rows } = await getPostList({});
30
+  const { rows } = await getPostList({
31
+    pageSize: 10_000,
32
+  });
31 33
   getPostListOptions = rows.map((item: any) => ({
32 34
     label: item.postName,
33 35
     value: item.postId,
@@ -93,7 +95,9 @@ export const drawerFormSchema: any = (type: any) => [
93 95
     componentProps: {
94 96
       getPopupContainer,
95 97
       api: async () => {
96
-        const data = await selectAllSysStationAreaList();
98
+        const data = await selectAllSysStation({
99
+          isAll: true,
100
+        });
97 101
         return data;
98 102
       },
99 103
       multiple: true,

+ 5 - 5
apps/web-ele/src/views/workflow/category/config-data.ts

@@ -31,7 +31,7 @@ export const tableColumns: VxeGridProps['columns'] = [
31 31
     slots: { default: 'action' },
32 32
     resizable: false,
33 33
     title: '操作',
34
-    width: 180,
34
+    width: 230,
35 35
   },
36 36
 ];
37 37
 
@@ -65,10 +65,10 @@ export const drawerFormSchema: FormSchemaGetter = () => [
65 65
       checkStrictly: true,
66 66
     },
67 67
     dependencies: {
68
-      if(values) {
69
-        // 总是显示上级分类选择框,无论是新增还是编辑
70
-        return true;
71
-      },
68
+      // if(values) {
69
+      //   // 总是显示上级分类选择框,无论是新增还是编辑
70
+      //   return true;
71
+      // },
72 72
       triggerFields: ['parentId'],
73 73
     },
74 74
     fieldName: 'parentId',

+ 40 - 40
vben-admin.code-workspace

@@ -2,151 +2,151 @@
2 2
   "folders": [
3 3
     {
4 4
       "name": "@vben/web-ele",
5
-      "path": "apps/web-ele"
5
+      "path": "apps/web-ele",
6 6
     },
7 7
     {
8 8
       "name": "@vben/commitlint-config",
9
-      "path": "internal/lint-configs/commitlint-config"
9
+      "path": "internal/lint-configs/commitlint-config",
10 10
     },
11 11
     {
12 12
       "name": "@vben/eslint-config",
13
-      "path": "internal/lint-configs/eslint-config"
13
+      "path": "internal/lint-configs/eslint-config",
14 14
     },
15 15
     {
16 16
       "name": "@vben/prettier-config",
17
-      "path": "internal/lint-configs/prettier-config"
17
+      "path": "internal/lint-configs/prettier-config",
18 18
     },
19 19
     {
20 20
       "name": "@vben/stylelint-config",
21
-      "path": "internal/lint-configs/stylelint-config"
21
+      "path": "internal/lint-configs/stylelint-config",
22 22
     },
23 23
     {
24 24
       "name": "@vben/node-utils",
25
-      "path": "internal/node-utils"
25
+      "path": "internal/node-utils",
26 26
     },
27 27
     {
28 28
       "name": "@vben/tailwind-config",
29
-      "path": "internal/tailwind-config"
29
+      "path": "internal/tailwind-config",
30 30
     },
31 31
     {
32 32
       "name": "@vben/tsconfig",
33
-      "path": "internal/tsconfig"
33
+      "path": "internal/tsconfig",
34 34
     },
35 35
     {
36 36
       "name": "@vben/vite-config",
37
-      "path": "internal/vite-config"
37
+      "path": "internal/vite-config",
38 38
     },
39 39
     {
40 40
       "name": "@vben-core/design",
41
-      "path": "packages/@core/base/design"
41
+      "path": "packages/@core/base/design",
42 42
     },
43 43
     {
44 44
       "name": "@vben-core/icons",
45
-      "path": "packages/@core/base/icons"
45
+      "path": "packages/@core/base/icons",
46 46
     },
47 47
     {
48 48
       "name": "@vben-core/shared",
49
-      "path": "packages/@core/base/shared"
49
+      "path": "packages/@core/base/shared",
50 50
     },
51 51
     {
52 52
       "name": "@vben-core/typings",
53
-      "path": "packages/@core/base/typings"
53
+      "path": "packages/@core/base/typings",
54 54
     },
55 55
     {
56 56
       "name": "@vben-core/composables",
57
-      "path": "packages/@core/composables"
57
+      "path": "packages/@core/composables",
58 58
     },
59 59
     {
60 60
       "name": "@vben-core/preferences",
61
-      "path": "packages/@core/preferences"
61
+      "path": "packages/@core/preferences",
62 62
     },
63 63
     {
64 64
       "name": "@vben-core/form-ui",
65
-      "path": "packages/@core/ui-kit/form-ui"
65
+      "path": "packages/@core/ui-kit/form-ui",
66 66
     },
67 67
     {
68 68
       "name": "@vben-core/layout-ui",
69
-      "path": "packages/@core/ui-kit/layout-ui"
69
+      "path": "packages/@core/ui-kit/layout-ui",
70 70
     },
71 71
     {
72 72
       "name": "@vben-core/menu-ui",
73
-      "path": "packages/@core/ui-kit/menu-ui"
73
+      "path": "packages/@core/ui-kit/menu-ui",
74 74
     },
75 75
     {
76 76
       "name": "@vben-core/popup-ui",
77
-      "path": "packages/@core/ui-kit/popup-ui"
77
+      "path": "packages/@core/ui-kit/popup-ui",
78 78
     },
79 79
     {
80 80
       "name": "@vben-core/shadcn-ui",
81
-      "path": "packages/@core/ui-kit/shadcn-ui"
81
+      "path": "packages/@core/ui-kit/shadcn-ui",
82 82
     },
83 83
     {
84 84
       "name": "@vben-core/tabs-ui",
85
-      "path": "packages/@core/ui-kit/tabs-ui"
85
+      "path": "packages/@core/ui-kit/tabs-ui",
86 86
     },
87 87
     {
88 88
       "name": "@vben/constants",
89
-      "path": "packages/constants"
89
+      "path": "packages/constants",
90 90
     },
91 91
     {
92 92
       "name": "@vben/access",
93
-      "path": "packages/effects/access"
93
+      "path": "packages/effects/access",
94 94
     },
95 95
     {
96 96
       "name": "@vben/common-ui",
97
-      "path": "packages/effects/common-ui"
97
+      "path": "packages/effects/common-ui",
98 98
     },
99 99
     {
100 100
       "name": "@vben/hooks",
101
-      "path": "packages/effects/hooks"
101
+      "path": "packages/effects/hooks",
102 102
     },
103 103
     {
104 104
       "name": "@vben/layouts",
105
-      "path": "packages/effects/layouts"
105
+      "path": "packages/effects/layouts",
106 106
     },
107 107
     {
108 108
       "name": "@vben/plugins",
109
-      "path": "packages/effects/plugins"
109
+      "path": "packages/effects/plugins",
110 110
     },
111 111
     {
112 112
       "name": "@vben/request",
113
-      "path": "packages/effects/request"
113
+      "path": "packages/effects/request",
114 114
     },
115 115
     {
116 116
       "name": "@vben/icons",
117
-      "path": "packages/icons"
117
+      "path": "packages/icons",
118 118
     },
119 119
     {
120 120
       "name": "@vben/locales",
121
-      "path": "packages/locales"
121
+      "path": "packages/locales",
122 122
     },
123 123
     {
124 124
       "name": "@vben/preferences",
125
-      "path": "packages/preferences"
125
+      "path": "packages/preferences",
126 126
     },
127 127
     {
128 128
       "name": "@vben/stores",
129
-      "path": "packages/stores"
129
+      "path": "packages/stores",
130 130
     },
131 131
     {
132 132
       "name": "@vben/styles",
133
-      "path": "packages/styles"
133
+      "path": "packages/styles",
134 134
     },
135 135
     {
136 136
       "name": "@vben/types",
137
-      "path": "packages/types"
137
+      "path": "packages/types",
138 138
     },
139 139
     {
140 140
       "name": "@vben/utils",
141
-      "path": "packages/utils"
141
+      "path": "packages/utils",
142 142
     },
143 143
     {
144 144
       "name": "@vben/turbo-run",
145
-      "path": "scripts/turbo-run"
145
+      "path": "scripts/turbo-run",
146 146
     },
147 147
     {
148 148
       "name": "@vben/vsh",
149
-      "path": "scripts/vsh"
150
-    }
151
-  ]
152
-}
149
+      "path": "scripts/vsh",
150
+    },
151
+  ],
152
+}