From fa2ebfb41b354f862fecac18c179a9f9c2539100 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期六, 21 九月 2024 09:26:32 +0800
Subject: [PATCH] #
---
zy-asrs-admin/src/views/base/cacheSite/edit.vue | 202 +++++++++++++++++---------------------------------
1 files changed, 69 insertions(+), 133 deletions(-)
diff --git a/zy-asrs-admin/src/views/base/cacheSite/edit.vue b/zy-asrs-admin/src/views/base/cacheSite/edit.vue
index 93c1f18..21beeec 100644
--- a/zy-asrs-admin/src/views/base/cacheSite/edit.vue
+++ b/zy-asrs-admin/src/views/base/cacheSite/edit.vue
@@ -41,18 +41,18 @@
console.log('Failed:', errorInfo);
};
-const orderQueryList = ref(null);
+const orderQueryList = ref(null);
orderQuery();
-function orderQuery() {
- postForm('/api/order/query', {}).then(resp => {
+function orderQuery() {
+ postForm('/api/order/query', {}).then(resp => {
let result = resp.data;
orderQueryList.value = result.data;
})
}
-const userQueryList = ref(null);
+const userQueryList = ref(null);
userQuery();
-function userQuery() {
- postForm('/api/user/query', {}).then(resp => {
+function userQuery() {
+ postForm('/api/user/query', {}).then(resp => {
let result = resp.data;
userQueryList.value = result.data;
})
@@ -79,137 +79,73 @@
<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.man_cache_site.site_no', '绔欑偣缂栧彿') "
- name="siteNo"
- style="width: 250px;"
- >
- <a-input
- v-model:value="formData.siteNo"
- />
- </a-form-item>
- <a-form-item
- :label="formatMessage('db.man_cache_site.site_status', '绔欑偣鐘舵��') "
- name="siteStatus"
- style="width: 250px;"
- >
- <a-select
- v-model:value="formData.siteStatus"
- :options="[
- { label: '绌虹珯', value: 0 },
- { label: '婊$珯', value: 1 },
- { label: '棰勭害', value: 2 },
- ]"
- >
+ <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.man_cache_site.channel', '閫氶亾')" name="channel"
+ style="width: 250px;">
+ <a-input v-model:value="formData.channel" />
+ </a-form-item>
+ <a-form-item :label="formatMessage('db.man_cache_site.site_no', '绔欑偣缂栧彿')" name="siteNo"
+ style="width: 250px;">
+ <a-input v-model:value="formData.siteNo" />
+ </a-form-item>
+ <a-form-item :label="formatMessage('db.man_cache_site.site_status', '绔欑偣鐘舵��')" name="siteStatus"
+ style="width: 250px;">
+ <a-select v-model:value="formData.siteStatus" :options="[
+ { label: '绌虹珯', value: 0 },
+ { label: '婊$珯', value: 1 },
+ { label: '棰勭害', value: 2 },
+ ]">
</a-select>
- </a-form-item>
- <a-form-item
- :label="formatMessage('db.man_cache_site.order_id', '璁㈠崟ID') "
- name="orderId"
- style="width: 250px;"
- >
- <a-select
- v-model:value="formData.orderId"
- :placeholder="formatMessage('common.select', '璇烽�夋嫨')"
- style="width: 100%"
- show-search
- :options="orderQueryList"
- optionFilterProp="label"
- optionLabelProp="label"
- >
+ </a-form-item>
+ <a-form-item :label="formatMessage('db.man_cache_site.order_id', '璁㈠崟ID')" name="orderId"
+ style="width: 250px;">
+ <!-- <a-select v-model:value="formData.orderId" :placeholder="formatMessage('common.select', '璇烽�夋嫨')"
+ style="width: 100%" show-search :options="orderQueryList" optionFilterProp="label"
+ optionLabelProp="label">
+ </a-select> -->
+ <a-input v-model:value="formData.orderId" />
+ </a-form-item>
+ <a-form-item :label="formatMessage('db.man_cache_site.order_no', '璁㈠崟缂栧彿')" name="orderNo"
+ style="width: 250px;">
+ <a-input v-model:value="formData.orderNo" />
+ </a-form-item>
+ <!-- <a-form-item :label="formatMessage('db.man_cache_site.status', '鐘舵��')" name="status"
+ style="width: 250px;">
+ <a-select v-model:value="formData.status" :options="[
+ { label: '姝e父', value: 1 },
+ { label: '绂佺敤', value: 0 },
+ ]">
</a-select>
- </a-form-item>
- <a-form-item
- :label="formatMessage('db.man_cache_site.order_no', '璁㈠崟缂栧彿') "
- name="orderNo"
- style="width: 250px;"
- >
- <a-input
- v-model:value="formData.orderNo"
- />
- </a-form-item>
- <a-form-item
- :label="formatMessage('db.man_cache_site.status', '鐘舵��') "
- name="status"
- style="width: 250px;"
- >
- <a-select
- v-model:value="formData.status"
- :options="[
- { label: '姝e父', value: 1 },
- { label: '绂佺敤', value: 0 },
- ]"
- >
+ </a-form-item>
+ <a-form-item :label="formatMessage('db.man_cache_site.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.man_cache_site.create_by', '娣诲姞浜哄憳')" name="createBy"
+ style="width: 250px;">
+ <a-select v-model:value="formData.createBy" :placeholder="formatMessage('common.select', '璇烽�夋嫨')"
+ style="width: 100%" show-search :options="userQueryList" optionFilterProp="label"
+ optionLabelProp="label">
</a-select>
- </a-form-item>
- <a-form-item
- :label="formatMessage('db.man_cache_site.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.man_cache_site.create_by', '娣诲姞浜哄憳') "
- name="createBy"
- style="width: 250px;"
- >
- <a-select
- v-model:value="formData.createBy"
- :placeholder="formatMessage('common.select', '璇烽�夋嫨')"
- style="width: 100%"
- show-search
- :options="userQueryList"
- optionFilterProp="label"
- optionLabelProp="label"
- >
+ </a-form-item>
+ <a-form-item :label="formatMessage('db.man_cache_site.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.man_cache_site.update_by', '淇敼浜哄憳')" name="updateBy"
+ style="width: 250px;">
+ <a-select v-model:value="formData.updateBy" :placeholder="formatMessage('common.select', '璇烽�夋嫨')"
+ style="width: 100%" show-search :options="userQueryList" optionFilterProp="label"
+ optionLabelProp="label">
</a-select>
- </a-form-item>
- <a-form-item
- :label="formatMessage('db.man_cache_site.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.man_cache_site.update_by', '淇敼浜哄憳') "
- name="updateBy"
- style="width: 250px;"
- >
- <a-select
- v-model:value="formData.updateBy"
- :placeholder="formatMessage('common.select', '璇烽�夋嫨')"
- style="width: 100%"
- show-search
- :options="userQueryList"
- optionFilterProp="label"
- optionLabelProp="label"
- >
- </a-select>
- </a-form-item>
- <a-form-item
- :label="formatMessage('db.man_cache_site.memo', '澶囨敞') "
- name="memo"
- style="width: 250px;"
- >
- <a-input
- v-model:value="formData.memo"
- />
- </a-form-item>
+ </a-form-item> -->
+ <a-form-item :label="formatMessage('db.man_cache_site.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"
--
Gitblit v1.9.1