miaofuhao 2 nedēļas atpakaļ
vecāks
revīzija
ddff947b03

+ 2 - 2
apps/web-ele/src/views/schedule/work/class/component/addandedit.vue

@@ -227,8 +227,8 @@ const calculateDuration = (startTime: string, endTime: string): number => {
227 227
 <template>
228 228
   <Page title="开班" :auto-content-height="true">
229 229
     <template #default>
230
-      <div style="position:场站elative" class="rounded-md bg-white p-4 shadow-md">
231
-        <div class="title">站:{{ stationName }}</div>
230
+      <div style="position: relative" class="rounded-md bg-white p-4 shadow-md">
231
+        <div class="title">站:{{ stationName }}</div>
232 232
         <div class="middle">
233 233
           <div class="left">
234 234
             <el-form

+ 4 - 4
apps/web-ele/src/views/schedule/work/class/config-data.tsx

@@ -15,12 +15,12 @@ export const querySchema: FormSchemaGetter = () => {
15 15
             label: item.stationName,
16 16
             value: item.id,
17 17
           };
18
-        }),场站
19
-        placeholder: '请选择站',
18
+        }),
19
+        placeholder: '请选择站',
20 20
         clearable: true,
21 21
       },
22 22
       fieldName: 'stationName',
23
-      defaultV场站ue: userStore.userInfo?.stations?.[0]?.id,
23
+      defaultValue: userStore.userInfo?.stations?.[0]?.id,
24 24
       label: '场站',
25 25
     },
26 26
     {
@@ -69,7 +69,7 @@ export const columns: VxeGridProps['columns'] = [
69 69
     field: 'shiftName',
70 70
     minWidth: 130,
71 71
   },
72
-  {场站
72
+  {
73 73
     title: '场站',
74 74
     field: 'stationName',
75 75
     minWidth: 130,

+ 2 - 3
apps/web-ele/src/views/schedule/work/class/index.vue

@@ -116,11 +116,10 @@ const [BasicTable, BasicTableApi] = useVbenVxeGrid({
116 116
   gridOptions,
117 117
 });
118 118
 // 定义新增抽屉
119
-
120
-const handleAddClick = asyn场站() => {
119
+const handleAddClick = async () => {
121 120
   const formValues = (await BasicTableApi.formApi?.getValues()) || {};
122 121
   if (!formValues?.stationName) {
123
-    ElMessage.warning('请先选择站');
122
+    ElMessage.warning('请先选择站');
124 123
     return;
125 124
   }
126 125
   router.replace({