|
@@ -108,7 +108,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
|
@@ -108,7 +108,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
108
|
, function () {
|
108
|
, function () {
|
109
|
loading = layer.load(2);
|
109
|
loading = layer.load(2);
|
110
|
$.ajax({
|
110
|
$.ajax({
|
111
|
- url: domainName + '/api-web/sysConf/delete?access_token=' + accessToken,
|
111
|
+ url: domainName + '/api-u/sysConf/delete?access_token=' + accessToken,
|
112
|
type: 'POST',
|
112
|
type: 'POST',
|
113
|
async: false,
|
113
|
async: false,
|
114
|
data: {
|
114
|
data: {
|
|
@@ -178,7 +178,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
|
@@ -178,7 +178,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
178
|
var param = {roleIds: rolelist.toString(), confIds: confList};
|
178
|
var param = {roleIds: rolelist.toString(), confIds: confList};
|
179
|
$.ajax({
|
179
|
$.ajax({
|
180
|
type: "post",
|
180
|
type: "post",
|
181
|
- url: domainName + "/api-web/sysConf/power?access_token=" + accessToken,
|
181
|
+ url: domainName + "/api-u/sysConf/power?access_token=" + accessToken,
|
182
|
contentType: 'application/json;charset=UTF-8',
|
182
|
contentType: 'application/json;charset=UTF-8',
|
183
|
data: JSON.stringify(param),
|
183
|
data: JSON.stringify(param),
|
184
|
async: false,
|
184
|
async: false,
|
|
@@ -209,16 +209,16 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
|
@@ -209,16 +209,16 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
209
|
//初始化类型下拉列表框
|
209
|
//初始化类型下拉列表框
|
210
|
function initconfTypeSelect() {
|
210
|
function initconfTypeSelect() {
|
211
|
$.ajax({
|
211
|
$.ajax({
|
212
|
- url: domainName + '/api-web/manage/ddic/findSucDdics/conf_type?access_token=' + accessToken,
|
|
|
213
|
- type: 'POST',
|
212
|
+ url: domainName + '/api-u/sysConf/getParentList?access_token=' + accessToken,
|
|
|
213
|
+ type: 'GET',
|
214
|
async: false,
|
214
|
async: false,
|
215
|
success: function (res) {
|
215
|
success: function (res) {
|
216
|
typeSelect = xmSelect.render({
|
216
|
typeSelect = xmSelect.render({
|
217
|
el: '.type',
|
217
|
el: '.type',
|
218
|
name: 'type',
|
218
|
name: 'type',
|
219
|
prop: {
|
219
|
prop: {
|
220
|
- name: 'ddicName',
|
|
|
221
|
- value: 'ddicCode'
|
220
|
+ name: 'name',
|
|
|
221
|
+ value: 'code'
|
222
|
},
|
222
|
},
|
223
|
filterable: true, //允许搜索
|
223
|
filterable: true, //允许搜索
|
224
|
clickClose: true, //点击后关闭选择框
|
224
|
clickClose: true, //点击后关闭选择框
|
|
@@ -246,7 +246,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
|
@@ -246,7 +246,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
246
|
//xmSelect.get("#rt_conf_pid")[0].setValue();
|
246
|
//xmSelect.get("#rt_conf_pid")[0].setValue();
|
247
|
$("#form-conf-edit").find("input[name='id']").val(id)
|
247
|
$("#form-conf-edit").find("input[name='id']").val(id)
|
248
|
$.ajax({
|
248
|
$.ajax({
|
249
|
- url: common.domainName + '/api-web/sysConf/findById?access_token=' + accessToken,
|
249
|
+ url: common.domainName + '/api-u/sysConf/findById?access_token=' + accessToken,
|
250
|
async: false,
|
250
|
async: false,
|
251
|
type: 'POST',
|
251
|
type: 'POST',
|
252
|
data: {
|
252
|
data: {
|
|
@@ -283,7 +283,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
|
@@ -283,7 +283,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
283
|
}
|
283
|
}
|
284
|
loading = layer.load(2);
|
284
|
loading = layer.load(2);
|
285
|
$.ajax({
|
285
|
$.ajax({
|
286
|
- url: domainName + '/api-web/sysConf/save?access_token=' + accessToken,
|
286
|
+ url: domainName + '/api-u/sysConf/save?access_token=' + accessToken,
|
287
|
type: 'post',
|
287
|
type: 'post',
|
288
|
data: JSON.stringify(bean),
|
288
|
data: JSON.stringify(bean),
|
289
|
async: false,
|
289
|
async: false,
|
|
@@ -320,7 +320,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
|
@@ -320,7 +320,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
320
|
loading = layer.load(2)
|
320
|
loading = layer.load(2)
|
321
|
conditions.confValue = $("#confSearchForm").find("input[name='confValue']").val();
|
321
|
conditions.confValue = $("#confSearchForm").find("input[name='confValue']").val();
|
322
|
admin.req({
|
322
|
admin.req({
|
323
|
- url: domainName + '/api-web/sysConf/findConf?access_token=' + accessToken
|
323
|
+ url: domainName + '/api-u/sysConf/findConf?access_token=' + accessToken
|
324
|
, type: "POST"
|
324
|
, type: "POST"
|
325
|
, data: JSON.stringify(conditions)
|
325
|
, data: JSON.stringify(conditions)
|
326
|
, contentType: "application/json; charset=utf-8"
|
326
|
, contentType: "application/json; charset=utf-8"
|
|
@@ -427,7 +427,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
|
@@ -427,7 +427,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
427
|
}
|
427
|
}
|
428
|
}
|
428
|
}
|
429
|
$.ajax({
|
429
|
$.ajax({
|
430
|
- url: domainName + '/api-web/sysConf/save?access_token=' + accessToken,
|
430
|
+ url: domainName + '/api-u/sysConf/save?access_token=' + accessToken,
|
431
|
type: 'post',
|
431
|
type: 'post',
|
432
|
async: false,
|
432
|
async: false,
|
433
|
data: JSON.stringify(bean),
|
433
|
data: JSON.stringify(bean),
|
|
@@ -477,7 +477,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
|
@@ -477,7 +477,7 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
477
|
//code不能重复
|
477
|
//code不能重复
|
478
|
function notRepetition(agr1,agr2){
|
478
|
function notRepetition(agr1,agr2){
|
479
|
admin.req({
|
479
|
admin.req({
|
480
|
- url:common.domainName + '/api-web/sysConf/code'
|
480
|
+ url:common.domainName + '/api-u/sysConf/code'
|
481
|
,async: false
|
481
|
,async: false
|
482
|
, data:{
|
482
|
, data:{
|
483
|
oldCode:agr2
|
483
|
oldCode:agr2
|
|
@@ -499,4 +499,4 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
|
@@ -499,4 +499,4 @@ layui.define(['form', 'table', 'admin', 'layer', 'laytpl', 'common', 'view', 'se |
499
|
return {getCheckStatusData: getCheckStatusData}
|
499
|
return {getCheckStatusData: getCheckStatusData}
|
500
|
});
|
500
|
});
|
501
|
})
|
501
|
})
|
502
|
-; |
|
|
|
|
502
|
+; |