From e16180612c9dfe2e879f79039d4670640867331d Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期三, 25 十月 2023 11:22:52 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/PlayPai
---
cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js | 26 +++++++++++++++++++++++++-
1 files changed, 25 insertions(+), 1 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 0344d49..d8fd5ba 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();
@@ -292,7 +305,7 @@
}
},function(data){
- Feng.error("添加失败!" + data.responseJSON.message + "!");
+
});
ajax.set(this.tCarInfoData);
ajax.set("provinceCode",pCode);
@@ -418,6 +431,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();
if(!this.validate()){
--
Gitblit v1.7.1