nickchange
2023-10-26 88d56c7c74be121a11e3760e4fc7a058ea2f6c47
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()){
@@ -294,7 +305,7 @@
        }
    },function(data){
        Feng.error("添加失败!" + data.responseJSON.message + "!");
    });
    ajax.set(this.tCarInfoData);
    ajax.set("provinceCode",pCode);
@@ -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()){