From 862b585f0426b8eff0a5fbb676e067123ed5f108 Mon Sep 17 00:00:00 2001
From: dshclm <3321914460@qq.com>
Date: Fri, 31 May 2024 08:58:32 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E4=BA=A7=E7=99=BB=E8=AE=B0=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E6=9B=B4=E6=94=B9=E5=9C=B0=E5=8C=BA=E9=80=89=E6=8B=A9?=
=?UTF-8?q?=E6=96=B9=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../main/resources/static/ruoyi/js/getCity.js | 16 ++++
.../src/main/resources/templates/include.html | 1 +
.../templates/system/fileprovide/add.html | 61 +++++++++++++--
.../system/fileprovide/fileprovide.html | 50 ++++++++++++-
.../system/property/property/add.html | 61 +++++++++++++--
.../system/property/property/edit.html | 61 +++++++++++++--
.../system/property/property/property.html | 75 +++++++++++++++++--
7 files changed, 299 insertions(+), 26 deletions(-)
create mode 100644 ruoyi-admin/src/main/resources/static/ruoyi/js/getCity.js
diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/getCity.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/getCity.js
new file mode 100644
index 0000000..3e63d90
--- /dev/null
+++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/getCity.js
@@ -0,0 +1,16 @@
+function getCity(datas,value){
+ if ($.common.isEmpty(datas) || $.common.isEmpty(value)) {
+ return '';
+ }
+ var actions = []
+ $.each(datas, function(index, city) {
+ if (city.id === ('' + value)) {
+ actions.push($.common.sprintf("%s", city.name));
+ return false;
+ }
+ });
+ if (actions.length === 0) {
+ actions.push($.common.sprintf("%s", value))
+ }
+ return actions.join('');
+}
diff --git a/ruoyi-admin/src/main/resources/templates/include.html b/ruoyi-admin/src/main/resources/templates/include.html
index 894cc5f..5233317 100644
--- a/ruoyi-admin/src/main/resources/templates/include.html
+++ b/ruoyi-admin/src/main/resources/templates/include.html
@@ -39,6 +39,7 @@
+
diff --git a/ruoyi-admin/src/main/resources/templates/system/fileprovide/add.html b/ruoyi-admin/src/main/resources/templates/system/fileprovide/add.html
index dce45cf..9982156 100644
--- a/ruoyi-admin/src/main/resources/templates/system/fileprovide/add.html
+++ b/ruoyi-admin/src/main/resources/templates/system/fileprovide/add.html
@@ -7,18 +7,28 @@