From 230015cfc9e0c89e86d65796ab37db8d0de0615d Mon Sep 17 00:00:00 2001
From: chengxiangling <291105840@qq.com>
Date: 星期一, 12 五月 2025 10:06:21 +0800
Subject: [PATCH] 提交钣金订单管理有无风险i18nwatch监听切换中英文

---
 src/views/mainPlan/sheetMetalOrderManage/index.vue |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/src/views/mainPlan/sheetMetalOrderManage/index.vue b/src/views/mainPlan/sheetMetalOrderManage/index.vue
index ddd90c4..fad4dfc 100644
--- a/src/views/mainPlan/sheetMetalOrderManage/index.vue
+++ b/src/views/mainPlan/sheetMetalOrderManage/index.vue
@@ -49,7 +49,7 @@
             prop="mainPartNumber"
           >
             <el-input
-              :style="{ width:'280px' }"
+              :style="{ width: '280px' }"
               v-model="queryParams.mainPartNumber"
               :placeholder="`${$t('common.common.placeholder')}${$t(
                 'plan.query.itemNumber'
@@ -269,16 +269,7 @@
 const { t, locale } = useI18n();
 const basicStore = useBasicStore();
 const { proxy } = getCurrentInstance();
-const delayRiskOptions = ref([
-  {
-    label: t("plan.options.hasRisk"),
-    value: "1",
-  },
-  {
-    label: t("plan.options.noRisk"),
-    value: "0",
-  },
-]);
+const delayRiskOptions = ref([]);
 const radio = ref(1);
 const customicDate = ref("");
 const openDialog = ref(false);
@@ -330,6 +321,16 @@
 watch(
   locale,
   (newLocale) => {
+    delayRiskOptions.value = [
+      {
+        label: t("plan.options.hasRisk"),
+        value: "1",
+      },
+      {
+        label: t("plan.options.noRisk"),
+        value: "0",
+      },
+    ];
     columns.value = [
       { type: "checkbox", width: 60, align: "center", fixed: "left" },
       {

--
Gitblit v1.9.3