From 12916db6e7946a31f4fbc5c48a27e7769683b034 Mon Sep 17 00:00:00 2001
From: nickchange <126672920+nickchange@users.noreply.github.com>
Date: 星期一, 23 十月 2023 18:25:02 +0800
Subject: [PATCH] 10.23
---
cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js | 28 ++++++++++++++++++++++++++--
1 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js
index 9ddafc4..d39b837 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js
@@ -148,6 +148,8 @@
var ajax = new $ax(Feng.ctxPath + "/tShop/saveImg", function(data){
if(data.code == 200){
Feng.success("保存成功")
+ TCarInfoDlg.close();
+
}
});
ajax.set("id",id);
@@ -159,6 +161,17 @@
* 提交添加
*/
TCarInfoDlg.addSubmit = function() {
+
+ const textarea = document.getElementById('introduce');
+ const text = textarea.value;
+
+ if (text.length > 1000) {
+ console.log('The text is longer than 1000 characters.');
+ Feng.error("门店介绍要求小于1000字")
+ return
+ } else {
+ console.log('The text is not longer than 1000 characters.');
+ }
this.clearData();
this.collectData();
@@ -417,6 +430,17 @@
* 提交修改
*/
TCarInfoDlg.editSubmit = function() {
+
+ const textarea = document.getElementById('introduce');
+ const text = textarea.value;
+
+ if (text.length > 1000) {
+ console.log('The text is longer than 1000 characters.');
+ Feng.error("门店介绍要求小于1000字")
+ return
+ } else {
+ console.log('The text is not longer than 1000 characters.');
+ }
this.clearData();
this.collectData();
@@ -793,7 +817,7 @@
var content='<option value="">Pilih franchisee Anda</option>';
}
$.each(data, function(k,v) {
- content += "<option value='"+v.id+"'>"+v.name+"</option>";
+ content += "<option value='"+v.code+"'>"+v.name+"</option>";
});
$("#pCode").empty().append(content);
}
@@ -835,7 +859,7 @@
var content='<option value="">Pilih franchisee Anda</option>';
}
$.each(data, function(k,v) {
- content += "<option value='"+v.id+"'>"+v.name+"</option>";
+ content += "<option value='"+v.code+"'>"+v.name+"</option>";
});
$("#cCode").empty().append(content);
}
--
Gitblit v1.7.1