From 5b83b50d38c757b38dcc87a40a17d34cc2948e10 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 15 三月 2024 09:49:15 +0800
Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/PlayPai into 2.0
---
cloud-server-management/src/main/webapp/static/modular/system/tSiteType/tSiteType.js | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSiteType/tSiteType.js b/cloud-server-management/src/main/webapp/static/modular/system/tSiteType/tSiteType.js
index acfb6c6..66224e5 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tSiteType/tSiteType.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tSiteType/tSiteType.js
@@ -14,7 +14,7 @@
TSite.initColumn = function () {
return [
{field: 'selectItem', radio: true},
- {title: '主键ID', field: 'id', visible: false, align: 'center', valign: 'middle'},
+ {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'},
{title: '类型名称', field: 'name', visible: true, align: 'center', valign: 'middle'
},
];
@@ -59,7 +59,12 @@
let id = this.seItem.id
var operation = function(){
var ajax = new $ax(Feng.ctxPath + "/tSiteType/delete", function (data) {
- Feng.success("删除成功!");
+ if(data=="5002"){
+ Feng.info("已有场地使用无法删除!");
+ }else {
+ Feng.success("删除成功!");
+ }
+
TSite.table.refresh();
}, function (data) {
Feng.error("删除失败!" + data.responseJSON.message + "!");
--
Gitblit v1.7.1