优化表结构
This commit is contained in:
@@ -153,7 +153,7 @@
|
||||
{field: 'id', width: 35, align: "center", checkbox: true},
|
||||
{title: '编号 ', field: 'number', width: 80},
|
||||
{title: '名称', field: 'name', width: 100},
|
||||
{title: '上级编号', field: 'pnumber', width: 80},
|
||||
{title: '上级编号', field: 'parentNumber', width: 80},
|
||||
{title: '链接', field: 'url', width: 250},
|
||||
{title: '排序', field: 'sort', width: 60},
|
||||
{
|
||||
@@ -257,7 +257,7 @@
|
||||
if (r) {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "/functions/batchDeleteFunctionsByIds",
|
||||
url: "/function/batchDeleteFunctionsByIds",
|
||||
dataType: "json",
|
||||
data: ({
|
||||
ids: functionsID
|
||||
@@ -299,7 +299,7 @@
|
||||
}
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "/functions/batchDeleteFunctionsByIds",
|
||||
url: "/function/batchDeleteFunctionsByIds",
|
||||
dataType: "json",
|
||||
async: false,
|
||||
data: ({
|
||||
@@ -339,7 +339,7 @@
|
||||
iconBtnFun();
|
||||
oldFunctions = "";
|
||||
functionsID = 0;
|
||||
url = '/functions/add';
|
||||
url = '/function/add';
|
||||
}
|
||||
|
||||
//保存信息
|
||||
@@ -380,7 +380,7 @@
|
||||
var rowsdata = $("#tableData").datagrid("getRows")[index];
|
||||
$("#Number").textbox("setValue", rowsdata.number);
|
||||
$("#Name").focus().textbox("setValue", rowsdata.name);
|
||||
$("#PNumber").textbox("setValue", rowsdata.pnumber);
|
||||
$("#PNumber").textbox("setValue", rowsdata.parentNumber);
|
||||
$("#URL").textbox("setValue", rowsdata.url);
|
||||
$("#State").attr("checked", rowsdata.state);
|
||||
$("#Sort").textbox("setValue", rowsdata.sort);
|
||||
@@ -389,8 +389,8 @@
|
||||
$("#Type").textbox("setValue", rowsdata.type);
|
||||
//点击icon图标弹出页面
|
||||
iconBtnFun();
|
||||
if (rowsdata.pushbtn) {
|
||||
var arr = rowsdata.pushbtn.split(",");
|
||||
if (rowsdata.pushBtn) {
|
||||
var arr = rowsdata.pushBtn.split(",");
|
||||
var pushBtnArray = [];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (arr[i]) {
|
||||
@@ -411,7 +411,7 @@
|
||||
functionsID = rowsdata.id;
|
||||
//焦点在名称输入框==定焦在输入文字后面
|
||||
$("#Name").val("").focus().val(rowsdata.name);
|
||||
url = '/functions/update?id=' + rowsdata.id;
|
||||
url = '/function/update?id=' + rowsdata.id;
|
||||
}
|
||||
|
||||
//点击icon图标弹出页面
|
||||
@@ -432,7 +432,7 @@
|
||||
if (name.length > 0 && (oldFunctions.length == 0 || name != oldFunctions)) {
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "/functions/checkIsNameExist",
|
||||
url: "/function/checkIsNameExist",
|
||||
dataType: "json",
|
||||
async: false,
|
||||
data: ({
|
||||
@@ -480,7 +480,7 @@
|
||||
var type = $.trim($("#searchType").val());
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "/functions/list",
|
||||
url: "/function/list",
|
||||
dataType: "json",
|
||||
data: ({
|
||||
search: JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user