Ver código fonte

瑞恒分配任务

Zimo 1 mês atrás
pai
commit
8dfb08e259
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      pages/ruihen-task/components/form.vue

+ 4 - 2
pages/ruihen-task/components/form.vue

@@ -371,7 +371,9 @@ const loadDeviceOptions = async (init = false) => {
       raw: item,
     }));
 
-    form.value.deviceIds = deviceOptions.value.map((item) => item.value);
+    if (!init) {
+      form.value.deviceIds = deviceOptions.value.map((item) => item.value);
+    }
   } finally {
     deviceLoading.value = false;
   }
@@ -561,7 +563,7 @@ defineExpose({
           align="right"
           placeholder="请选择施工设备"
           :localdata="deviceOptions"
-          placement="bottom"
+          placement="top"
           hideRight
           multiple
           :disabled="isReadonly || deviceLoading"