From c635d78b479510ebe2556a420948effcd30a0731 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期六, 21 十二月 2024 18:40:43 +0800
Subject: [PATCH] 新建德森项目分支

---
 zy-asrs-admin/src/views/system/language/edit.vue |  228 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 114 insertions(+), 114 deletions(-)

diff --git a/zy-asrs-admin/src/views/system/language/edit.vue b/zy-asrs-admin/src/views/system/language/edit.vue
index 90aaeb2..e287e83 100644
--- a/zy-asrs-admin/src/views/system/language/edit.vue
+++ b/zy-asrs-admin/src/views/system/language/edit.vue
@@ -1,114 +1,114 @@
-<script setup>
-import { ref, nextTick } from 'vue';
-import { get, post, postBlob, postForm } from '@/utils/request.js'
-import { formatMessage } from '@/utils/localeUtils.js';
-import { message } from 'ant-design-vue';
-
-const formTable = ref(null);
-const submitButton = ref(null);
-const isSave = ref(true);
-const open = ref(false);
-const initFormData = {}
-let formData = ref(initFormData);
-
-const emit = defineEmits(['tableReload'])
-
-const handleOk = (e) => {
-    nextTick(() => {
-        setTimeout(() => {
-            submitButton.value.$el.click();
-        }, 100);
-    });
-};
-
-const onFinish = values => {
-    // console.log('Success:', values);
-    open.value = false;
-    post(isSave.value ? '/api/language/save' : '/api/language/update', formData.value).then((resp) => {
-        let result = resp.data;
-        if (result.code === 200) {
-            message.success(isSave.value ? formatMessage('page.add.success', '鏂板鎴愬姛') : formatMessage('page.update.success', '鏇存柊鎴愬姛'));
-        } else {
-            message.error(result.msg);
-        }
-        emit('tableReload', 'reload')
-        nextTick(() => {
-            formTable.value.resetFields()
-        })
-    })
-};
-const onFinishFailed = errorInfo => {
-    console.log('Failed:', errorInfo);
-};
-
-
-
-defineExpose({
-    open,
-    formData,
-    initFormData,
-    isSave,
-})
-
-</script>
-
-<script>
-export default {
-    name: '鍥介檯鍖栭厤缃�-edit'
-}
-</script>
-
-<template>
-    <div>
-        <a-modal v-model:open="open"
-            :title="isSave ? formatMessage('page.add', '娣诲姞') : formatMessage('page.edit', '缂栬緫')" @ok="handleOk"
-            style="width: 600px;">
-            <a-form :model="formData" ref="formTable" name="formTable" :label-col="{ span: 8 }"
-                :wrapper-col="{ span: 16 }" style="display: flex;justify-content: space-between;flex-wrap: wrap;"
-                autocomplete="off" @finish="onFinish" @finishFailed="onFinishFailed">
-                <a-form-item :label="formatMessage('db.sys_language.name', '鍚嶇О')" name="name" style="width: 250px;"
-                    :rules="[{ required: true }]">
-                    <a-input v-model:value="formData.name" />
-                </a-form-item>
-                <a-form-item :label="formatMessage('db.sys_language.language_id', '鍥介檯鍖朓D')" name="languageId"
-                    style="width: 250px;">
-                    <a-input v-model:value="formData.languageId" />
-                </a-form-item>
-                <a-form-item :label="formatMessage('db.sys_language.locale', '鍦板尯')" name="locale" style="width: 250px;">
-                    <a-select v-model:value="formData.locale" :options="[
-                        { label: '绠�浣撲腑鏂�', value: 'zh_CN' },
-                        { label: '绻佷綋涓枃', value: 'zh_HK' },
-                        { label: '鑻辫', value: 'en_US' },
-                        { label: '瑗跨彮鐗欒', value: 'es_ES' },
-                        { label: '闃挎媺浼', value: 'ar_EG' },
-                        { label: '寰疯', value: 'de_DE' },
-                        { label: '娉曡', value: 'fr_FR' },
-                        { label: '淇勭綏鏂', value: 'ru_RU' },
-                        { label: '闊╄', value: 'ko_KR' },
-                    ]">
-                    </a-select>
-                </a-form-item>
-                <a-form-item :label="formatMessage('db.sys_language.create_time', '娣诲姞鏃堕棿')" name="createTime"
-                    style="width: 250px;">
-                    <a-date-picker v-model:value="formData.createTime" show-time format="YYYY-MM-DD HH:mm:ss"
-                        value-format="YYYY-MM-DD HH:mm:ss" />
-                </a-form-item>
-                <a-form-item :label="formatMessage('db.sys_language.update_time', '淇敼鏃堕棿')" name="updateTime"
-                    style="width: 250px;">
-                    <a-date-picker v-model:value="formData.updateTime" show-time format="YYYY-MM-DD HH:mm:ss"
-                        value-format="YYYY-MM-DD HH:mm:ss" />
-                </a-form-item>
-                <a-form-item :label="formatMessage('db.sys_language.memo', '澶囨敞')" name="memo" style="width: 250px;">
-                    <a-input v-model:value="formData.memo" />
-                </a-form-item>
-
-                <a-form-item>
-                    <a-button type="primary" html-type="submit" ref="submitButton"
-                        style="visibility: hidden;">Submit</a-button>
-                </a-form-item>
-            </a-form>
-        </a-modal>
-    </div>
-</template>
-
-<style></style>
+<script setup>
+import { ref, nextTick } from 'vue';
+import { get, post, postBlob, postForm } from '@/utils/request.js'
+import { formatMessage } from '@/utils/localeUtils.js';
+import { message } from 'ant-design-vue';
+
+const formTable = ref(null);
+const submitButton = ref(null);
+const isSave = ref(true);
+const open = ref(false);
+const initFormData = {}
+let formData = ref(initFormData);
+
+const emit = defineEmits(['tableReload'])
+
+const handleOk = (e) => {
+    nextTick(() => {
+        setTimeout(() => {
+            submitButton.value.$el.click();
+        }, 100);
+    });
+};
+
+const onFinish = values => {
+    // console.log('Success:', values);
+    open.value = false;
+    post(isSave.value ? '/api/language/save' : '/api/language/update', formData.value).then((resp) => {
+        let result = resp.data;
+        if (result.code === 200) {
+            message.success(isSave.value ? formatMessage('page.add.success', '鏂板鎴愬姛') : formatMessage('page.update.success', '鏇存柊鎴愬姛'));
+        } else {
+            message.error(result.msg);
+        }
+        emit('tableReload', 'reload')
+        nextTick(() => {
+            formTable.value.resetFields()
+        })
+    })
+};
+const onFinishFailed = errorInfo => {
+    console.log('Failed:', errorInfo);
+};
+
+
+
+defineExpose({
+    open,
+    formData,
+    initFormData,
+    isSave,
+})
+
+</script>
+
+<script>
+export default {
+    name: '鍥介檯鍖栭厤缃�-edit'
+}
+</script>
+
+<template>
+    <div>
+        <a-modal v-model:open="open"
+            :title="isSave ? formatMessage('page.add', '娣诲姞') : formatMessage('page.edit', '缂栬緫')" @ok="handleOk"
+            style="width: 600px;">
+            <a-form :model="formData" ref="formTable" name="formTable" :label-col="{ span: 8 }"
+                :wrapper-col="{ span: 16 }" style="display: flex;justify-content: space-between;flex-wrap: wrap;"
+                autocomplete="off" @finish="onFinish" @finishFailed="onFinishFailed">
+                <a-form-item :label="formatMessage('db.sys_language.name', '鍚嶇О')" name="name" style="width: 250px;"
+                    :rules="[{ required: true }]">
+                    <a-input v-model:value="formData.name" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.sys_language.language_id', '鍥介檯鍖朓D')" name="languageId"
+                    style="width: 250px;">
+                    <a-input v-model:value="formData.languageId" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.sys_language.locale', '鍦板尯')" name="locale" style="width: 250px;">
+                    <a-select v-model:value="formData.locale" :options="[
+                        { label: '绠�浣撲腑鏂�', value: 'zh_CN' },
+                        { label: '绻佷綋涓枃', value: 'zh_HK' },
+                        { label: '鑻辫', value: 'en_US' },
+                        { label: '瑗跨彮鐗欒', value: 'es_ES' },
+                        { label: '闃挎媺浼', value: 'ar_EG' },
+                        { label: '寰疯', value: 'de_DE' },
+                        { label: '娉曡', value: 'fr_FR' },
+                        { label: '淇勭綏鏂', value: 'ru_RU' },
+                        { label: '闊╄', value: 'ko_KR' },
+                    ]">
+                    </a-select>
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.sys_language.create_time', '娣诲姞鏃堕棿')" name="createTime"
+                    style="width: 250px;">
+                    <a-date-picker v-model:value="formData.createTime" show-time format="YYYY-MM-DD HH:mm:ss"
+                        value-format="YYYY-MM-DD HH:mm:ss" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.sys_language.update_time', '淇敼鏃堕棿')" name="updateTime"
+                    style="width: 250px;">
+                    <a-date-picker v-model:value="formData.updateTime" show-time format="YYYY-MM-DD HH:mm:ss"
+                        value-format="YYYY-MM-DD HH:mm:ss" />
+                </a-form-item>
+                <a-form-item :label="formatMessage('db.sys_language.memo', '澶囨敞')" name="memo" style="width: 250px;">
+                    <a-input v-model:value="formData.memo" />
+                </a-form-item>
+
+                <a-form-item>
+                    <a-button type="primary" html-type="submit" ref="submitButton"
+                        style="visibility: hidden;">Submit</a-button>
+                </a-form-item>
+            </a-form>
+        </a-modal>
+    </div>
+</template>
+
+<style></style>

--
Gitblit v1.9.1