From cbca62b053eb3dc3cc7754aa0062aaf1e04e2cb4 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期四, 22 二月 2024 16:53:36 +0800
Subject: [PATCH] 新增加接口
---
cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner.js | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner.js b/cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner.js
index 2675350..965e564 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner.js
@@ -14,7 +14,7 @@
TbBanner.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: language==1?'添加时间':(language==2?'Add Time':'Tambahkan waktu'), field: 'insertTime', visible: true, align: 'center', valign: 'middle',
formatter:function (data){
return currentTime(data)
@@ -60,7 +60,7 @@
return '<a href="javascript:void(0);" style="color: blue" onclick="TbBanner.updateState1(' + row.id +')">正常</a>'
}
if(value==2){
- return '<a href="javascript:void(0);" style="color: red" onclick="TbBanner.updateState2(' + row.id +')">隐藏</a>'
+ return '<a href="javascript:void(0);" style="color: red" onclick="TbBanner.updateState2(' + row.id +')">隐藏</a>'
}
}else if(language==2){
if(value==1){
@@ -106,13 +106,7 @@
TbBanner.check = function () {
var selected = $('#' + this.id).bootstrapTable('getSelections');
if(selected.length == 0){
- if(language==1){
- Feng.info("请先选中表格中的某一记录!");
- }else if(language==2){
- Feng.info("Please select a record in the table first!");
- }else {
- Feng.info("Pilih catatan di tabel terlebih dahulu!");
- }
+ Feng.info("请先选中表格中的某一记录!");
return false;
}else{
TbBanner.seItem = selected[0];
--
Gitblit v1.7.1