提交 11d20b89 编写于 作者: Skyeye云's avatar Skyeye云

【知识库】拆分微服务完成

上级 872372b6
......@@ -16,7 +16,7 @@ layui.config({
var loadNum = 0;
var interval = null;
AjaxPostUtil.request({url: reqBasePath + "knowledgecontent006", params:{rowId: rowId}, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgecontent006", params: {rowId: rowId}, type: 'json', callback: function (json) {
$("#title").html(json.bean.title);
content = json.bean.content;
$("#knowledgecontentshowBox").attr("src", "contentshow.html");
......
......@@ -16,7 +16,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'knowledgecontent016',
url: sysMainMation.knowlgBasePath + 'knowledgecontent016',
cellMinWidth: 100,
where: getTableParams(),
even: true,
......@@ -63,7 +63,7 @@ layui.config({
var el5;
el5 = eleTree.render({
elem: '.ele5',
url: "knowledgetype008",
url: sysMainMation.knowlgBasePath + "knowledgetype008",
defaultExpandAll: true,
expandOnClickNode: false,
highlightCurrent: true
......
......@@ -18,7 +18,7 @@ layui.config({
var loadNum = 0;
var interval = null;
AjaxPostUtil.request({url: reqBasePath + "knowledgecontent011", params: {rowId:parent.rowId}, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgecontent011", params: {rowId: parent.rowId}, type: 'json', callback: function (json) {
var str = getDataUseHandlebars(beanTemplate, json);
$("#checkDetails").html(str);
content = json.bean.content;
......@@ -66,7 +66,7 @@ layui.config({
return false;
}
}
AjaxPostUtil.request({url: reqBasePath + "knowledgecontent012", params: params, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgecontent012", params: params, type: 'json', callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
......
......@@ -13,7 +13,7 @@ layui.config({
var loadNum = 0;
var interval = null;
AjaxPostUtil.request({url: reqBasePath + "knowledgecontent015", params: {rowId:parent.rowId}, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgecontent015", params: {rowId: parent.rowId}, type: 'json', callback: function (json) {
var str = getDataUseHandlebars(beanTemplate, json);
$("#showForm").html(str);
if(json.bean.state == 2){
......
......@@ -14,23 +14,14 @@ layui.config({
laydate = layui.laydate,
eleTree = layui.eleTree;
//未审核表的提交时间
laydate.render({
elem: '#createTime', //指定元素
range: '~'
});
// 未审核表的提交时间
laydate.render({elem: '#createTime', range: '~'});
//已审核表的提交时间
laydate.render({
elem: '#checkedCreateTime',
range: '~'
});
// 已审核表的提交时间
laydate.render({elem: '#checkedCreateTime', range: '~'});
//已审核表的审核时间
laydate.render({
elem: '#checkedExamineTime',
range: '~'
});
laydate.render({elem: '#checkedExamineTime', range: '~'});
authBtn('1568973352669');//未审核
authBtn('1568973377977');//已审核
......@@ -79,7 +70,7 @@ layui.config({
id: 'messageNoCheckTable',
elem: '#messageNoCheckTable',
method: 'post',
url: reqBasePath + 'knowledgecontent010',
url: sysMainMation.knowlgBasePath + 'knowledgecontent010',
where: getNoCheckTableParams(),
even: true,
page: true,
......@@ -122,7 +113,7 @@ layui.config({
var el5;
el5 = eleTree.render({
elem: '.ele5',
url: "knowledgetype008",
url: sysMainMation.knowlgBasePath + "knowledgetype008",
defaultExpandAll: true,
expandOnClickNode: false,
highlightCurrent: true
......@@ -213,7 +204,7 @@ layui.config({
id: 'messageCheckedTable',
elem: '#messageCheckedTable',
method: 'post',
url: reqBasePath + 'knowledgecontent013',
url: sysMainMation.knowlgBasePath + 'knowledgecontent013',
where: getCheckTableParams(),
even: true,
page: true,
......@@ -263,7 +254,7 @@ layui.config({
var el2;
el2 = eleTree.render({
elem: '.ele2',
url: "knowledgetype008",
url: sysMainMation.knowlgBasePath + "knowledgetype008",
defaultExpandAll: true,
expandOnClickNode: false,
highlightCurrent: true
......
......@@ -12,7 +12,7 @@ layui.config({
var loadNum = 0;
var interval = null;
AjaxPostUtil.request({url: reqBasePath + "knowledgecontent014", params: {rowId:parent.rowId}, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgecontent014", params: {rowId: parent.rowId}, type: 'json', callback: function (json) {
var str = getDataUseHandlebars(beanTemplate, json);
$("#showForm").html(str);
content = json.bean.content;
......
......@@ -101,7 +101,7 @@ function loadUploadMethod(){
//当前分块大小
"chunkSize": block.end - block.start
};
AjaxPostUtil.request({url: reqBasePath + "knowledgecontent009", params: params, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgecontent009", params: params, type: 'json', callback: function (json) {
//分块存在,跳过
deferred.reject();
}, errorCallback: function (json) {
......@@ -115,7 +115,7 @@ function loadUploadMethod(){
//时间点3:所有分块上传成功后调用此函数
afterSendFile: function (data) {
//如果分块上传成功,则通知后台合并分块
AjaxPostUtil.request({url: reqBasePath + "knowledgecontent008", params: {md5: md5, name: data.name, size: data.size}, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgecontent008", params: {md5: md5, name: data.name, size: data.size}, type: 'json', callback: function (json) {
}});
}
});
......@@ -140,7 +140,7 @@ function loadUploadMethod(){
fileSizeLimit: 2000 * 1024 * 1024,//最大2GB
fileSingleSizeLimit: 2000 * 1024 * 1024,
resize: false,//不压缩
server: reqBasePath + 'knowledgecontent007',
server: sysMainMation.knowlgBasePath + 'knowledgecontent007',
fileNumLimit: 300,
// 只允许选择word文件。
accept: {
......
......@@ -21,7 +21,7 @@ layui.config({
var el5;
el5 = eleTree.render({
elem: '.ele5',
url: reqBasePath + "knowledgetype008",
url: sysMainMation.knowlgBasePath + "knowledgetype008",
defaultExpandAll: true,
expandOnClickNode: false,
highlightCurrent: true
......@@ -64,7 +64,7 @@ layui.config({
else
params.desc = encodeURI(ue.getContentTxt());
}
AjaxPostUtil.request({url: reqBasePath + "knowledgecontent002", params: params, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgecontent002", params: params, type: 'json', callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
......
......@@ -14,8 +14,8 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "knowledgecontent006",
params: {rowId:parent.rowId},
url: sysMainMation.knowlgBasePath + "knowledgecontent006",
params: {rowId: parent.rowId},
pagination: false,
template: getFileContent('tpl/knowledgecontent/knowledgecontentdetailsTemplate.tpl'),
ajaxSendAfter:function (json) {
......
......@@ -16,7 +16,7 @@ layui.config({
var el5;
el5 = eleTree.render({
elem: '.ele5',
url: reqBasePath + "knowledgetype008",
url: sysMainMation.knowlgBasePath + "knowledgetype008",
defaultExpandAll: true,
expandOnClickNode: false,
highlightCurrent: true
......@@ -38,7 +38,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "knowledgecontent003",
url: sysMainMation.knowlgBasePath + "knowledgecontent003",
params: {rowId:parent.rowId},
pagination: false,
template: getFileContent('tpl/knowledgecontent/knowledgecontenteditTemplate.tpl'),
......@@ -85,7 +85,7 @@ layui.config({
else
params.desc = encodeURI(ue.getContentTxt());
}
AjaxPostUtil.request({url: reqBasePath + "knowledgecontent004", params: params, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgecontent004", params: params, type: 'json', callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
......
......@@ -19,7 +19,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'knowledgecontent001',
url: sysMainMation.knowlgBasePath + 'knowledgecontent001',
cellMinWidth: 100,
where: getTableParams(),
even: true,
......@@ -71,7 +71,7 @@ layui.config({
var el5;
el5 = eleTree.render({
elem: '.ele5',
url: "knowledgetype008",
url: sysMainMation.knowlgBasePath + "knowledgetype008",
defaultExpandAll: true,
expandOnClickNode: false,
highlightCurrent: true
......@@ -128,7 +128,7 @@ layui.config({
function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "knowledgecontent005", params:{rowId: data.id}, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgecontent005", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}});
......
......@@ -15,7 +15,7 @@ layui.config({
var parentType;
fsTree.render({
id: "parentType",
url: reqBasePath + "knowledgetype001",
url: sysMainMation.knowlgBasePath + "knowledgetype001",
checkEnable: true,
loadEnable: false,//异步加载
chkStyle: "radio",
......@@ -36,7 +36,7 @@ layui.config({
name: $("#typeName").val(),
parentId: checkNodes.length == 0 ? "0" : checkNodes[0].id
};
AjaxPostUtil.request({url: reqBasePath + "knowledgetype002", params: params, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgetype002", params: params, type: 'json', callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
......
......@@ -12,7 +12,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "knowledgetype006",
url: sysMainMation.knowlgBasePath + "knowledgetype006",
params: {rowId:parent.rowId},
pagination: false,
method: 'GET',
......@@ -26,7 +26,7 @@ layui.config({
rowId: parent.rowId,
name: $("#typeName").val()
};
AjaxPostUtil.request({url: reqBasePath + "knowledgetype007", params: params, type: 'json', method: "POST", callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgetype007", params: params, type: 'json', method: "POST", callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
......
......@@ -17,7 +17,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'knowledgetype001',
url: sysMainMation.knowlgBasePath + 'knowledgetype001',
where: getTableParams(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'},
......@@ -78,7 +78,7 @@ layui.config({
function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "knowledgetype003", params:{rowId: data.id}, type: 'json', method: "DELETE", callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgetype003", params:{rowId: data.id}, type: 'json', method: "DELETE", callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}});
......@@ -90,7 +90,7 @@ layui.config({
var msg = '确认上线选中数据吗?';
layer.confirm(msg, { icon: 3, title: '上线知识库类型' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "knowledgetype004", params: {rowId: data.id}, type: 'json', method: 'POST', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgetype004", params: {rowId: data.id}, type: 'json', method: 'POST', callback: function (json) {
winui.window.msg("上线成功", {icon: 1, time: 2000});
loadTable();
}});
......@@ -102,7 +102,7 @@ layui.config({
var msg = '确认下线选中数据吗?';
layer.confirm(msg, { icon: 3, title: '下线知识库类型' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "knowledgetype005", params: {rowId: data.id}, type: 'json', method: 'POST', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.knowlgBasePath + "knowledgetype005", params: {rowId: data.id}, type: 'json', method: 'POST', callback: function (json) {
winui.window.msg("下线成功", {icon: 1, time: 2000});
loadTable();
}});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册