From 797b148b48d6fd1a584c0a2b639cd6f0fef81411 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期二, 24 十月 2023 20:33:34 +0800
Subject: [PATCH] 权限添加

---
 cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 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 50f4faf..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
@@ -162,6 +162,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();
     if(!this.validate()){
@@ -420,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