Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
e7c992b3
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1195
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
e7c992b3
编写于
10月 15, 2023
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
我的知识库托管到表单布局完成,知识库审核待完成
上级
7ac0154e
变更
33
隐藏空白更改
内联
并排
Showing
33 changed file
with
5 addition
and
1542 deletion
+5
-1542
knowlg/src/main/resources/template/js/knowledgecontent/filefolderupload.js
...esources/template/js/knowledgecontent/filefolderupload.js
+0
-422
knowlg/src/main/resources/template/js/knowledgecontent/knowledgecontentadd.js
...urces/template/js/knowledgecontent/knowledgecontentadd.js
+0
-84
knowlg/src/main/resources/template/js/knowledgecontent/knowledgecontentdetails.js
...s/template/js/knowledgecontent/knowledgecontentdetails.js
+0
-36
knowlg/src/main/resources/template/js/knowledgecontent/knowledgecontentedit.js
...rces/template/js/knowledgecontent/knowledgecontentedit.js
+0
-85
knowlg/src/main/resources/template/js/knowledgecontent/knowledgecontentlist.js
...rces/template/js/knowledgecontent/knowledgecontentlist.js
+0
-187
knowlg/src/main/resources/template/js/knowledgetype/knowledgetypeadd.js
...n/resources/template/js/knowledgetype/knowledgetypeadd.js
+0
-51
knowlg/src/main/resources/template/js/knowledgetype/knowledgetypeedit.js
.../resources/template/js/knowledgetype/knowledgetypeedit.js
+0
-43
knowlg/src/main/resources/template/js/knowledgetype/knowledgetypelist.js
.../resources/template/js/knowledgetype/knowledgetypelist.js
+0
-150
knowlg/src/main/resources/template/js/knowlgExamine/knowledgecheck.js
...ain/resources/template/js/knowlgExamine/knowledgecheck.js
+0
-0
knowlg/src/main/resources/template/js/knowlgExamine/knowledgecheckeddetail.js
...urces/template/js/knowlgExamine/knowledgecheckeddetail.js
+0
-0
knowlg/src/main/resources/template/js/knowlgExamine/knowledgechecklist.js
...resources/template/js/knowlgExamine/knowledgechecklist.js
+0
-0
knowlg/src/main/resources/template/js/knowlgExamine/knowledgeuncheckdetail.js
...urces/template/js/knowlgExamine/knowledgeuncheckdetail.js
+0
-0
knowlg/src/main/resources/template/tpl/knowledgecontent/filefolderupload.html
...urces/template/tpl/knowledgecontent/filefolderupload.html
+0
-58
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontentadd.html
...es/template/tpl/knowledgecontent/knowledgecontentadd.html
+0
-54
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontentdetails.html
...emplate/tpl/knowledgecontent/knowledgecontentdetails.html
+0
-26
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontentdetailsTemplate.tpl
.../tpl/knowledgecontent/knowledgecontentdetailsTemplate.tpl
+0
-37
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontentedit.html
...s/template/tpl/knowledgecontent/knowledgecontentedit.html
+0
-24
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontenteditTemplate.tpl
...ate/tpl/knowledgecontent/knowledgecontenteditTemplate.tpl
+0
-32
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontentlist.html
...s/template/tpl/knowledgecontent/knowledgecontentlist.html
+0
-62
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontentshow.html
...s/template/tpl/knowledgecontent/knowledgecontentshow.html
+0
-31
knowlg/src/main/resources/template/tpl/knowledgetype/knowledgetypeadd.html
...esources/template/tpl/knowledgetype/knowledgetypeadd.html
+0
-53
knowlg/src/main/resources/template/tpl/knowledgetype/knowledgetypeedit.html
...sources/template/tpl/knowledgetype/knowledgetypeedit.html
+0
-28
knowlg/src/main/resources/template/tpl/knowledgetype/knowledgetypeeditTemplate.tpl
.../template/tpl/knowledgetype/knowledgetypeeditTemplate.tpl
+0
-20
knowlg/src/main/resources/template/tpl/knowledgetype/knowledgetypelist.html
...sources/template/tpl/knowledgetype/knowledgetypelist.html
+0
-54
knowlg/src/main/resources/template/tpl/knowlgExamine/knowledgecheck.html
.../resources/template/tpl/knowlgExamine/knowledgecheck.html
+0
-0
knowlg/src/main/resources/template/tpl/knowlgExamine/knowledgecheckeddetail.html
...es/template/tpl/knowlgExamine/knowledgecheckeddetail.html
+0
-0
knowlg/src/main/resources/template/tpl/knowlgExamine/knowledgechecklist.html
...ources/template/tpl/knowlgExamine/knowledgechecklist.html
+0
-0
knowlg/src/main/resources/template/tpl/knowlgExamine/knowledgecontentshow.html
...rces/template/tpl/knowlgExamine/knowledgecontentshow.html
+0
-0
knowlg/src/main/resources/template/tpl/knowlgExamine/knowledgeuncheckdetail.html
...es/template/tpl/knowlgExamine/knowledgeuncheckdetail.html
+0
-0
web/src/main/resources/template/assets/lib/layui/customer/skyeye/sysDictDataUtil.js
...plate/assets/lib/layui/customer/skyeye/sysDictDataUtil.js
+0
-1
web/src/main/resources/template/assets/lib/layui/lay/modules/jQuery.upload.min.js
...emplate/assets/lib/layui/lay/modules/jQuery.upload.min.js
+1
-3
web/src/main/resources/template/assets/lib/layui/layui.js
web/src/main/resources/template/assets/lib/layui/layui.js
+1
-0
web/src/main/resources/template/json/skyeyeClassEnum.json
web/src/main/resources/template/json/skyeyeClassEnum.json
+3
-1
未找到文件。
knowlg/src/main/resources/template/js/knowledgecontent/filefolderupload.js
已删除
100644 → 0
浏览文件 @
7ac0154e
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
,
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
webuploader
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
// 初始化上传
loadUploadMethod
();
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(fileUploadStart)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
uoloadObj
.
upload
();
}
return
false
;
});
});
});
function
loadUploadMethod
(){
$wrap
=
$
(
'
#uploader
'
),
// 文件容器
$queue
=
$
(
'
<ul class="filelist"></ul>
'
).
appendTo
(
$wrap
.
find
(
'
.queueList
'
)
),
// 状态栏,包括进度和控制按钮
$statusBar
=
$wrap
.
find
(
'
.statusBar
'
),
// 文件总体选择信息。
$info
=
$statusBar
.
find
(
'
.info
'
),
// 上传按钮
$upload
=
$wrap
.
find
(
'
.uploadBtn
'
),
// 没选择文件之前的内容。
$placeHolder
=
$wrap
.
find
(
'
.placeholder
'
),
// 总体进度条
$progress
=
$statusBar
.
find
(
'
.progress
'
).
hide
(),
// 添加的文件数量
fileCount
=
0
,
// 添加的文件总大小
fileSize
=
0
,
// 优化retina, 在retina下这个值是2
ratio
=
window
.
devicePixelRatio
||
1
,
// 缩略图大小
thumbnailWidth
=
110
*
ratio
,
thumbnailHeight
=
110
*
ratio
,
// 可能有pedding, ready, uploading, confirm, done.
state
=
'
pedding
'
,
// 所有文件的进度信息,key为file id
percentages
=
{},
supportTransition
=
(
function
(){
var
s
=
document
.
createElement
(
'
p
'
).
style
,
r
=
'
transition
'
in
s
||
'
WebkitTransition
'
in
s
||
'
MozTransition
'
in
s
||
'
msTransition
'
in
s
||
'
OTransition
'
in
s
;
s
=
null
;
return
r
;
})(),
// WebUploader实例
uploader
;
if
(
!
WebUploader
.
Uploader
.
support
())
{
alert
(
'
Web Uploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器
'
);
throw
new
Error
(
'
WebUploader does not support the browser you are using.
'
);
}
var
md5
;
//监听分块上传过程中的三个时间点
WebUploader
.
Uploader
.
register
({
"
before-send-file
"
:
"
beforeSendFile
"
,
"
before-send
"
:
"
beforeSend
"
,
"
after-send-file
"
:
"
afterSendFile
"
},
{
//时间点1:所有分块进行上传之前调用此函数
beforeSendFile
:
function
(
file
)
{
var
deferred
=
WebUploader
.
Deferred
();
//1、计算文件的唯一标记,用于断点续传
(
new
WebUploader
.
Uploader
()).
md5File
(
file
,
0
,
10
*
1024
*
1024
)
.
progress
(
function
(
percentage
)
{
$
(
'
#
'
+
file
.
id
).
find
(
"
p.state
"
).
text
(
"
正在读取文件信息...
"
);
})
.
then
(
function
(
val
)
{
md5
=
val
;
$
(
'
#
'
+
file
.
id
).
find
(
"
p.state
"
).
text
(
"
成功获取文件信息...
"
);
//获取文件信息后进入下一步
deferred
.
resolve
();
});
return
deferred
.
promise
();
},
//时间点2:如果有分块上传,则每个分块上传之前调用此函数
beforeSend
:
function
(
block
)
{
var
deferred
=
WebUploader
.
Deferred
();
var
params
=
{
//文件唯一标记
"
md5
"
:
md5
,
//当前分块下标
"
chunk
"
:
block
.
chunk
,
//当前分块大小
"
chunkSize
"
:
block
.
end
-
block
.
start
};
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
knowlgBasePath
+
"
knowledgecontent009
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
//分块存在,跳过
deferred
.
reject
();
},
errorCallback
:
function
(
json
)
{
//分块不存在或不完整,重新发送该分块内容
deferred
.
resolve
();
},
async
:
false
});
this
.
owner
.
options
.
formData
.
md5
=
md5
;
deferred
.
resolve
();
return
deferred
.
promise
();
},
//时间点3:所有分块上传成功后调用此函数
afterSendFile
:
function
(
data
)
{
//如果分块上传成功,则通知后台合并分块
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
knowlgBasePath
+
"
knowledgecontent008
"
,
params
:
{
md5
:
md5
,
name
:
data
.
name
,
size
:
data
.
size
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
}});
}
});
// 实例化
uploader
=
WebUploader
.
create
({
pick
:
{
id
:
'
#filePicker
'
,
label
:
'
选择文件
'
,
},
formData
:
{
},
dnd
:
'
#uploader .queueList
'
,
paste
:
document
.
body
,
// swf文件路径
swf
:
fileBasePath
+
'
/assets/images/Uploader.swf
'
,
disableGlobalDnd
:
true
,
//是否禁掉整个页面的拖拽功能
chunked
:
true
,
//是否要分片处理大文件上传
chunkSize
:
10
*
1024
*
1024
,
chunkRetry
:
3
,
//网络问题上传失败后重试次数
threads
:
1
,
//上传并发数
fileSizeLimit
:
2000
*
1024
*
1024
,
//最大2GB
fileSingleSizeLimit
:
2000
*
1024
*
1024
,
resize
:
false
,
//不压缩
server
:
sysMainMation
.
knowlgBasePath
+
'
knowledgecontent007
'
,
fileNumLimit
:
300
,
// 只允许选择word文件。
accept
:
{
extensions
:
'
doc,docx
'
,
mimeTypes
:
'
.doc,.docx
'
}
});
// 添加“添加文件”的按钮,
uploader
.
addButton
({
id
:
'
#filePicker2
'
,
label
:
'
继续添加
'
});
uploader
.
onUploadProgress
=
function
(
file
,
percentage
)
{
var
$li
=
$
(
'
#
'
+
file
.
id
),
$percent
=
$li
.
find
(
'
.progress span
'
);
$percent
.
css
(
'
width
'
,
percentage
*
100
+
'
%
'
);
percentages
[
file
.
id
][
1
]
=
percentage
;
updateTotalProgress
();
};
uploader
.
onFileQueued
=
function
(
file
)
{
fileCount
++
;
fileSize
+=
file
.
size
;
if
(
fileCount
===
1
)
{
$placeHolder
.
addClass
(
'
element-invisible
'
);
$statusBar
.
show
();
}
addFile
(
file
);
setState
(
'
ready
'
);
updateTotalProgress
();
};
uploader
.
onFileDequeued
=
function
(
file
)
{
fileCount
--
;
fileSize
-=
file
.
size
;
if
(
!
fileCount
)
{
setState
(
'
pedding
'
);
}
removeFile
(
file
);
updateTotalProgress
();
};
uploader
.
on
(
'
all
'
,
function
(
type
)
{
var
stats
;
switch
(
type
)
{
case
'
uploadFinished
'
:
setState
(
'
confirm
'
);
break
;
case
'
startUpload
'
:
setState
(
'
uploading
'
);
break
;
case
'
stopUpload
'
:
setState
(
'
paused
'
);
break
;
}
});
uploader
.
on
(
'
uploadBeforeSend
'
,
function
(
block
,
data
,
headers
)
{
headers
[
'
X-Requested-With
'
]
=
'
XMLHttpRequest
'
;
$
.
extend
(
headers
,
getRequestHeaders
());
data
.
md5
=
md5
;
data
.
chunk
=
block
.
chunk
;
data
.
chunkSize
=
block
.
end
-
block
.
start
;
});
uploader
.
onError
=
function
(
code
)
{
// alert('Eroor: ' + code);
};
$upload
.
on
(
'
click
'
,
function
()
{
if
(
$
(
this
).
hasClass
(
'
disabled
'
))
{
return
false
;
}
if
(
state
===
'
ready
'
)
{
uploader
.
upload
();
}
else
if
(
state
===
'
paused
'
)
{
uploader
.
upload
();
}
else
if
(
state
===
'
uploading
'
)
{
uploader
.
stop
(
true
);
}
});
$info
.
on
(
'
click
'
,
'
.retry
'
,
function
()
{
uploader
.
retry
();
});
$info
.
on
(
'
click
'
,
'
.ignore
'
,
function
()
{
alert
(
'
todo
'
);
});
$upload
.
addClass
(
'
state-
'
+
state
);
updateTotalProgress
();
}
//当有文件添加进来时执行,负责view的创建
function
addFile
(
file
)
{
var
$li
=
$
(
'
<li id="
'
+
file
.
id
+
'
">
'
+
'
<p class="title">
'
+
file
.
name
+
'
</p>
'
+
'
<p class="imgWrap"></p>
'
+
'
<p class="progress"><span></span></p>
'
+
'
</li>
'
),
$btns
=
$
(
'
<div class="file-panel">
'
+
'
<span class="cancel">删除</span>
'
+
'
<span class="rotateRight">向右旋转</span>
'
+
'
<span class="rotateLeft">向左旋转</span></div>
'
).
appendTo
(
$li
),
$prgress
=
$li
.
find
(
'
p.progress span
'
),
$wrap
=
$li
.
find
(
'
p.imgWrap
'
),
$info
=
$
(
'
<p class="error"></p>
'
),
showError
=
function
(
code
)
{
switch
(
code
)
{
case
'
exceed_size
'
:
text
=
'
文件大小超出
'
;
break
;
case
'
interrupt
'
:
text
=
'
上传暂停
'
;
break
;
default
:
text
=
'
上传失败,请重试
'
;
break
;
}
$info
.
text
(
text
).
appendTo
(
$li
);
};
if
(
file
.
getStatus
()
===
'
invalid
'
)
{
showError
(
file
.
statusText
);
}
else
{
$wrap
.
text
(
'
预览中
'
);
uploader
.
makeThumb
(
file
,
function
(
error
,
src
)
{
if
(
error
)
{
$wrap
.
text
(
'
不能预览
'
);
return
;
}
var
img
=
$
(
'
<img src="
'
+
src
+
'
">
'
);
$wrap
.
empty
().
append
(
img
);
},
thumbnailWidth
,
thumbnailHeight
);
percentages
[
file
.
id
]
=
[
file
.
size
,
0
];
file
.
rotation
=
0
;
}
file
.
on
(
'
statuschange
'
,
function
(
cur
,
prev
)
{
if
(
prev
===
'
progress
'
)
{
$prgress
.
hide
().
width
(
0
);
}
else
if
(
prev
===
'
queued
'
)
{
$li
.
off
(
'
mouseenter mouseleave
'
);
$btns
.
remove
();
}
// 成功
if
(
cur
===
'
error
'
||
cur
===
'
invalid
'
)
{
showError
(
file
.
statusText
);
percentages
[
file
.
id
][
1
]
=
1
;
}
else
if
(
cur
===
'
interrupt
'
)
{
showError
(
'
interrupt
'
);
}
else
if
(
cur
===
'
queued
'
)
{
percentages
[
file
.
id
][
1
]
=
0
;
}
else
if
(
cur
===
'
progress
'
)
{
$info
.
remove
();
$prgress
.
css
(
'
display
'
,
'
block
'
);
}
else
if
(
cur
===
'
complete
'
)
{
$li
.
append
(
'
<span class="success"></span>
'
);
}
$li
.
removeClass
(
'
state-
'
+
prev
).
addClass
(
'
state-
'
+
cur
);
});
$li
.
on
(
'
mouseenter
'
,
function
()
{
$btns
.
stop
().
animate
({
height
:
30
});
});
$li
.
on
(
'
mouseleave
'
,
function
()
{
$btns
.
stop
().
animate
({
height
:
0
});
});
$btns
.
on
(
'
click
'
,
'
span
'
,
function
()
{
var
index
=
$
(
this
).
index
(),
deg
;
switch
(
index
)
{
case
0
:
uploader
.
removeFile
(
file
);
return
;
case
1
:
file
.
rotation
+=
90
;
break
;
case
2
:
file
.
rotation
-=
90
;
break
;
}
if
(
supportTransition
)
{
deg
=
'
rotate(
'
+
file
.
rotation
+
'
deg)
'
;
$wrap
.
css
({
'
-webkit-transform
'
:
deg
,
'
-mos-transform
'
:
deg
,
'
-o-transform
'
:
deg
,
'
transform
'
:
deg
});
}
else
{
$wrap
.
css
(
'
filter
'
,
'
progid:DXImageTransform.Microsoft.BasicImage(rotation=
'
+
(
~~
((
file
.
rotation
/
90
)
%
4
+
4
)
%
4
)
+
'
)
'
);
}
});
$li
.
appendTo
(
$queue
);
}
// 负责view的销毁
function
removeFile
(
file
)
{
var
$li
=
$
(
'
#
'
+
file
.
id
);
delete
percentages
[
file
.
id
];
updateTotalProgress
();
$li
.
off
().
find
(
'
.file-panel
'
).
off
().
end
().
remove
();
}
function
updateTotalProgress
()
{
var
loaded
=
0
,
total
=
0
,
spans
=
$progress
.
children
(),
percent
;
$
.
each
(
percentages
,
function
(
k
,
v
)
{
total
+=
v
[
0
];
loaded
+=
v
[
0
]
*
v
[
1
];
});
percent
=
total
?
loaded
/
total
:
0
;
spans
.
eq
(
0
).
text
(
Math
.
round
(
percent
*
100
)
+
'
%
'
);
spans
.
eq
(
1
).
css
(
'
width
'
,
Math
.
round
(
percent
*
100
)
+
'
%
'
);
updateStatus
();
}
function
updateStatus
()
{
var
text
=
''
,
stats
;
if
(
state
===
'
ready
'
)
{
text
=
'
选中
'
+
fileCount
+
'
个文件,共
'
+
WebUploader
.
formatSize
(
fileSize
)
+
'
。
'
;
}
else
if
(
state
===
'
confirm
'
)
{
stats
=
uploader
.
getStats
();
if
(
stats
.
uploadFailNum
)
{
text
=
'
已成功上传
'
+
stats
.
successNum
+
'
个文件至服务器,
'
+
stats
.
uploadFailNum
+
'
个文件上传失败,<a class="retry" href="#">重新上传</a>失败文件或<a class="ignore" href="#">忽略</a>
'
}
}
else
{
stats
=
uploader
.
getStats
();
text
=
'
共
'
+
fileCount
+
'
份(
'
+
WebUploader
.
formatSize
(
fileSize
)
+
'
),已上传
'
+
stats
.
successNum
+
'
份
'
;
if
(
stats
.
uploadFailNum
)
{
text
+=
'
,失败
'
+
stats
.
uploadFailNum
+
'
份
'
;
}
}
$info
.
html
(
text
);
}
function
setState
(
val
)
{
var
file
,
stats
;
if
(
val
===
state
)
{
return
;
}
$upload
.
removeClass
(
'
state-
'
+
state
);
$upload
.
addClass
(
'
state-
'
+
val
);
state
=
val
;
switch
(
state
)
{
case
'
pedding
'
:
$placeHolder
.
removeClass
(
'
element-invisible
'
);
$queue
.
parent
().
removeClass
(
'
filled
'
);
$queue
.
hide
();
$statusBar
.
addClass
(
'
element-invisible
'
);
uploader
.
refresh
();
break
;
case
'
ready
'
:
$placeHolder
.
addClass
(
'
element-invisible
'
);
$
(
'
#filePicker2
'
).
removeClass
(
'
element-invisible
'
);
$queue
.
parent
().
addClass
(
'
filled
'
);
$queue
.
show
();
$statusBar
.
removeClass
(
'
element-invisible
'
);
uploader
.
refresh
();
break
;
case
'
uploading
'
:
$
(
'
#filePicker2
'
).
addClass
(
'
element-invisible
'
);
$progress
.
show
();
$upload
.
text
(
'
暂停上传
'
);
break
;
case
'
paused
'
:
$progress
.
show
();
$upload
.
text
(
'
继续上传
'
);
break
;
case
'
confirm
'
:
$progress
.
hide
();
$upload
.
text
(
'
开始上传
'
).
addClass
(
'
disabled
'
);
stats
=
uploader
.
getStats
();
if
(
stats
.
successNum
&&
!
stats
.
uploadFailNum
)
{
setState
(
'
finish
'
);
return
;
}
break
;
case
'
finish
'
:
stats
=
uploader
.
getStats
();
if
(
stats
.
successNum
)
{
alert
(
'
上传成功
'
);
}
else
{
// 没有成功的文件,重设
state
=
'
done
'
;
location
.
reload
();
}
break
;
}
updateStatus
();
}
knowlg/src/main/resources/template/js/knowledgecontent/knowledgecontentadd.js
已删除
100644 → 0
浏览文件 @
7ac0154e
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
eleTree
'
,
'
tagEditor
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
,
eleTree
=
layui
.
eleTree
;
initTypeId
();
var
ue
=
ueEditorUtil
.
initEditor
(
'
container
'
);
// 初始化类型
function
initTypeId
(){
var
el5
;
el5
=
eleTree
.
render
({
elem
:
'
.ele5
'
,
url
:
sysMainMation
.
knowlgBasePath
+
"
knowledgetype008
"
,
defaultExpandAll
:
true
,
expandOnClickNode
:
false
,
highlightCurrent
:
true
});
$
(
"
.ele5
"
).
hide
();
$
(
"
#typeId
"
).
on
(
"
click
"
,
function
(
e
)
{
e
.
stopPropagation
();
$
(
"
.ele5
"
).
toggle
();
});
eleTree
.
on
(
"
nodeClick(data5)
"
,
function
(
d
)
{
$
(
"
#typeId
"
).
val
(
d
.
data
.
currentData
.
name
);
$
(
"
#typeId
"
).
attr
(
"
typeId
"
,
d
.
data
.
currentData
.
id
);
$
(
"
.ele5
"
).
hide
();
})
$
(
document
).
on
(
"
click
"
,
function
()
{
$
(
"
.ele5
"
).
hide
();
})
}
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
title
:
encodeURIComponent
(
$
(
"
#title
"
).
val
()),
typeId
:
isNull
(
$
(
"
#typeId
"
).
val
())
?
""
:
$
(
"
#typeId
"
).
attr
(
"
typeId
"
),
content
:
encodeURIComponent
(
ue
.
getContent
()),
label
:
$
(
'
#label
'
).
tagEditor
(
'
getTags
'
)[
0
].
tags
.
toString
()
};
if
(
isNull
(
params
.
typeId
)){
winui
.
window
.
msg
(
'
请选择所属类型
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
if
(
isNull
(
ue
.
getContent
())){
winui
.
window
.
msg
(
'
请填写内容
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
else
{
if
(
ue
.
getContentTxt
().
length
>
200
)
params
.
desc
=
encodeURI
(
ue
.
getContentTxt
().
substring
(
0
,
199
));
else
params
.
desc
=
encodeURI
(
ue
.
getContentTxt
());
}
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
knowlgBasePath
+
"
knowledgecontent002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
$
(
'
#label
'
).
tagEditor
({
initialTags
:
[],
placeholder
:
'
请填写标签
'
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
knowlg/src/main/resources/template/js/knowledgecontent/knowledgecontentdetails.js
已删除
100644 → 0
浏览文件 @
7ac0154e
var
content
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
,
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
showGrid
({
id
:
"
showForm
"
,
url
:
sysMainMation
.
knowlgBasePath
+
"
knowledgecontent006
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/knowledgecontent/knowledgecontentdetailsTemplate.tpl
'
),
ajaxSendAfter
:
function
(
json
)
{
content
=
json
.
bean
.
content
;
$
(
"
#knowledgecontentshowBox
"
).
attr
(
"
src
"
,
"
knowledgecontentshow.html
"
);
var
lavel
=
isNull
(
json
.
bean
.
label
)
?
[]
:
json
.
bean
.
label
.
split
(
'
,
'
);
var
str
=
""
;
$
.
each
(
lavel
,
function
(
i
,
item
)
{
str
+=
'
<span class="layui-badge layui-bg-blue">
'
+
item
+
'
</span>
'
;
});
$
(
'
#label
'
).
html
(
str
);
matchingLanguage
();
}
});
});
});
\ No newline at end of file
knowlg/src/main/resources/template/js/knowledgecontent/knowledgecontentedit.js
已删除
100644 → 0
浏览文件 @
7ac0154e
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
eleTree
'
,
'
tagEditor
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
function
initType
(){
treeSelectUtil
.
init
({
eleTree
:
layui
.
eleTree
,
elem
:
'
typeId
'
,
url
:
sysMainMation
.
knowlgBasePath
+
"
knowledgetype008
"
});
}
showGrid
({
id
:
"
showForm
"
,
url
:
sysMainMation
.
knowlgBasePath
+
"
knowledgecontent003
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/knowledgecontent/knowledgecontenteditTemplate.tpl
'
),
ajaxSendAfter
:
function
(
json
)
{
initType
();
$
(
"
#typeId
"
).
val
(
json
.
bean
.
typeName
);
$
(
"
#typeId
"
).
attr
(
"
typeId
"
,
json
.
bean
.
typeId
);
var
ue
=
ueEditorUtil
.
initEditor
(
'
container
'
);
ue
.
addListener
(
"
ready
"
,
function
()
{
ue
.
setContent
(
json
.
bean
.
content
);
});
var
lavel
=
isNull
(
json
.
bean
.
label
)
?
[]
:
json
.
bean
.
label
.
split
(
'
,
'
);
$
(
'
#label
'
).
tagEditor
({
initialTags
:
lavel
,
placeholder
:
'
请填写标签
'
});
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
var
msg
=
'
确认保存后将重新进行审核,是否确认保存?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
保存知识库
'
},
function
(
ind
)
{
layer
.
close
(
ind
);
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
rowId
:
parent
.
rowId
,
title
:
encodeURIComponent
(
$
(
"
#title
"
).
val
()),
typeId
:
isNull
(
$
(
"
#typeId
"
).
val
())
?
""
:
$
(
"
#typeId
"
).
attr
(
"
typeId
"
),
content
:
encodeURIComponent
(
ue
.
getContent
()),
label
:
$
(
'
#label
'
).
tagEditor
(
'
getTags
'
)[
0
].
tags
.
toString
()
};
if
(
isNull
(
params
.
typeId
)){
winui
.
window
.
msg
(
'
请选择所属类型
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
if
(
isNull
(
ue
.
getContent
())){
winui
.
window
.
msg
(
'
请填写知识库内容
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
else
{
if
(
ue
.
getContentTxt
().
length
>
200
)
params
.
desc
=
encodeURI
(
ue
.
getContentTxt
().
substring
(
0
,
199
));
else
params
.
desc
=
encodeURI
(
ue
.
getContentTxt
());
}
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
knowlgBasePath
+
"
knowledgecontent004
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
});
return
false
;
});
}
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
knowlg/src/main/resources/template/js/knowledgecontent/knowledgecontentlist.js
已删除
100644 → 0
浏览文件 @
7ac0154e
var
rowId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
,
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
eleTree
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
,
eleTree
=
layui
.
eleTree
;
authBtn
(
'
1570327662893
'
);
//新增知识库
authBtn
(
'
1570329371505
'
);
//批量上传
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
sysMainMation
.
knowlgBasePath
+
'
knowledgecontent001
'
,
cellMinWidth
:
100
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
title
'
,
title
:
'
标题
'
,
width
:
350
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
title
+
'
</a>
'
;
}},
{
field
:
'
state
'
,
title
:
'
状态
'
,
width
:
120
,
templet
:
function
(
d
)
{
if
(
d
.
state
==
'
3
'
){
return
"
<span class='state-down'>审核不通过</span>
"
;
}
else
if
(
d
.
state
==
'
2
'
){
return
"
<span class='state-up'>审核通过</span>
"
;
}
else
if
(
d
.
state
==
'
1
'
){
return
"
<span class='state-new'>审核中</span>
"
;
}
}},
{
field
:
'
typeName
'
,
title
:
'
所属分类
'
,
width
:
120
},
{
field
:
'
createTime
'
,
title
:
'
最后编辑时间
'
,
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
160
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
if
(
!
loadKnowlgType
){
initKnowlgType
();
}
}
});
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
delet
'
)
{
//删除
delet
(
data
);
}
else
if
(
layEvent
===
'
details
'
)
{
//详情
details
(
data
);
}
});
var
loadKnowlgType
=
false
;
// 初始化类型
function
initKnowlgType
(){
loadKnowlgType
=
true
;
var
el5
;
el5
=
eleTree
.
render
({
elem
:
'
.ele5
'
,
url
:
sysMainMation
.
knowlgBasePath
+
"
knowledgetype008
"
,
defaultExpandAll
:
true
,
expandOnClickNode
:
false
,
highlightCurrent
:
true
});
$
(
"
.ele5
"
).
hide
();
$
(
"
#typeId
"
).
on
(
"
click
"
,
function
(
e
)
{
e
.
stopPropagation
();
$
(
"
.ele5
"
).
toggle
();
});
eleTree
.
on
(
"
nodeClick(data5)
"
,
function
(
d
)
{
$
(
"
#typeId
"
).
val
(
d
.
data
.
currentData
.
name
);
$
(
"
#typeId
"
).
attr
(
"
typeId
"
,
d
.
data
.
currentData
.
id
);
$
(
"
.ele5
"
).
hide
();
})
$
(
document
).
on
(
"
click
"
,
function
()
{
$
(
"
.ele5
"
).
hide
();
})
}
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
refreshTable
();
}
return
false
;
});
// 添加
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
url
:
"
../../tpl/knowledgecontent/knowledgecontentadd.html
"
,
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
],
pageId
:
"
knowledgecontentadd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
// 批量上传
$
(
"
body
"
).
on
(
"
click
"
,
"
#addAllBean
"
,
function
()
{
_openNewWindows
({
url
:
"
../../tpl/knowledgecontent/filefolderupload.html
"
,
title
:
"
批量上传知识库
"
,
pageId
:
"
filefolderupload
"
,
area
:
[
'
400px
'
,
'
350px
'
],
callBack
:
function
(
refreshCode
)
{
loadTable
();
}});
});
// 删除
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
:
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
();
}});
});
}
// 编辑
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/knowledgecontent/knowledgecontentedit.html
"
,
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
],
pageId
:
"
knowledgecontentedit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}
});
}
// 详情
function
details
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/knowledgecontent/knowledgecontentdetails.html
"
,
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
knowledgecontentdetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
}});
}
//刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
refreshTable
(){
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
{
title
:
$
(
"
#title
"
).
val
(),
state
:
$
(
"
#state
"
).
val
(),
typeId
:
isNull
(
$
(
"
#typeId
"
).
val
())
?
""
:
$
(
"
#typeId
"
).
attr
(
"
typeId
"
)
};
}
exports
(
'
knowledgetypelist
'
,
{});
});
knowlg/src/main/resources/template/js/knowledgetype/knowledgetypeadd.js
已删除
100644 → 0
浏览文件 @
7ac0154e
var
parentId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
,
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
fsTree
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
fsTree
=
layui
.
fsTree
;
var
parentType
;
fsTree
.
render
({
id
:
"
parentType
"
,
url
:
sysMainMation
.
knowlgBasePath
+
"
knowledgetype001
"
,
checkEnable
:
true
,
loadEnable
:
false
,
//异步加载
chkStyle
:
"
radio
"
,
showLine
:
false
,
showIcon
:
true
,
expandSpeed
:
'
fast
'
},
function
(
id
){
parentType
=
$
.
fn
.
zTree
.
getZTreeObj
(
id
);
fuzzySearch
(
id
,
'
#name
'
,
null
,
true
);
//初始化模糊搜索方法
});
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
checkNodes
=
parentType
.
getCheckedNodes
(
true
);
var
params
=
{
name
:
$
(
"
#typeName
"
).
val
(),
parentId
:
checkNodes
.
length
==
0
?
"
0
"
:
checkNodes
[
0
].
id
};
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
knowlgBasePath
+
"
knowledgetype002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
knowlg/src/main/resources/template/js/knowledgetype/knowledgetypeedit.js
已删除
100644 → 0
浏览文件 @
7ac0154e
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
showGrid
({
id
:
"
showForm
"
,
url
:
sysMainMation
.
knowlgBasePath
+
"
knowledgetype006
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
method
:
'
GET
'
,
template
:
getFileContent
(
'
tpl/knowledgetype/knowledgetypeeditTemplate.tpl
'
),
ajaxSendAfter
:
function
(
json
)
{
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
rowId
:
parent
.
rowId
,
name
:
$
(
"
#typeName
"
).
val
()
};
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
knowlgBasePath
+
"
knowledgetype007
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
}
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
knowlg/src/main/resources/template/js/knowledgetype/knowledgetypelist.js
已删除
100644 → 0
浏览文件 @
7ac0154e
var
rowId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
tableTreeDj
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
tableTree
=
layui
.
tableTreeDj
;
authBtn
(
'
1568476869775
'
);
tableTree
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
sysMainMation
.
knowlgBasePath
+
'
knowledgetype001
'
,
where
:
getTableParams
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
name
'
,
title
:
'
名称
'
,
width
:
360
},
{
field
:
'
state
'
,
title
:
'
状态
'
,
width
:
80
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
if
(
d
.
state
==
'
3
'
){
return
"
<span class='state-down'>下线</span>
"
;
}
else
if
(
d
.
state
==
'
2
'
){
return
"
<span class='state-up'>上线</span>
"
;
}
else
if
(
d
.
state
==
'
1
'
){
return
"
<span class='state-new'>新建</span>
"
;
}
}},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
field
:
'
lastUpdateName
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
lastUpdateTime
'
,
title
:
'
最后修改时间
'
,
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
150
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
}
},
{
keyId
:
'
id
'
,
keyPid
:
'
pId
'
,
title
:
'
name
'
,
});
tableTree
.
getTable
().
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
delet
'
)
{
//删除
delet
(
data
);
}
else
if
(
layEvent
===
'
up
'
)
{
//上线
up
(
data
);
}
else
if
(
layEvent
===
'
down
'
)
{
//下线
down
(
data
);
}
});
// 添加
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
url
:
"
../../tpl/knowledgetype/knowledgetypeadd.html
"
,
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
],
pageId
:
"
knowledgetypeadd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
// 删除
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
:
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
();
}});
});
}
// 上线
function
up
(
data
)
{
var
msg
=
'
确认上线选中数据吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
上线知识库类型
'
},
function
(
index
)
{
layer
.
close
(
index
);
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
();
}});
});
}
// 下线
function
down
(
data
)
{
var
msg
=
'
确认下线选中数据吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
下线知识库类型
'
},
function
(
index
)
{
layer
.
close
(
index
);
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
();
}});
});
}
// 编辑
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/knowledgetype/knowledgetypeedit.html
"
,
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
],
pageId
:
"
knowledgetypeedit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}
});
}
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
loadTable
();
}
return
false
;
});
// 刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
tableTree
.
reload
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
{
name
:
$
(
"
#name
"
).
val
()
};
}
exports
(
'
knowledgetypelist
'
,
{});
});
knowlg/src/main/resources/template/js/knowl
edgecheck
/knowledgecheck.js
→
knowlg/src/main/resources/template/js/knowl
gExamine
/knowledgecheck.js
浏览文件 @
e7c992b3
文件已移动
knowlg/src/main/resources/template/js/knowl
edgecheck
/knowledgecheckeddetail.js
→
knowlg/src/main/resources/template/js/knowl
gExamine
/knowledgecheckeddetail.js
浏览文件 @
e7c992b3
文件已移动
knowlg/src/main/resources/template/js/knowl
edgecheck
/knowledgechecklist.js
→
knowlg/src/main/resources/template/js/knowl
gExamine
/knowledgechecklist.js
浏览文件 @
e7c992b3
文件已移动
knowlg/src/main/resources/template/js/knowl
edgecheck
/knowledgeuncheckdetail.js
→
knowlg/src/main/resources/template/js/knowl
gExamine
/knowledgeuncheckdetail.js
浏览文件 @
e7c992b3
文件已移动
knowlg/src/main/resources/template/tpl/knowledgecontent/filefolderupload.html
已删除
100644 → 0
浏览文件 @
7ac0154e
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<style>
#filePicker
div
:nth-child
(
2
)
{
position
:
absolute
!important
;
inset
:
0px
auto
auto
130px
!important
;
width
:
72px
!important
;
height
:
30px
!important
;
overflow
:
hidden
!important
;
top
:
0px
!important
;
}
</style>
</head>
<body>
<div
class=
"txtcenter"
>
<div
class=
"layui-tab layui-tab-card"
style=
"margin: 0px"
>
<ul
class=
"layui-tab-title"
>
<li
class=
"layui-this"
>
word文档上传
</li>
</ul>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-item layui-show"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
style=
"height: 240px;"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
id=
"uploader"
class=
"wu-example"
>
<div
class=
"queueList"
>
<div
id=
"dndArea"
class=
"placeholder"
>
<div
id=
"filePicker"
></div>
<p>
或将文件拖到这里,单次最多可选300个
</p>
</div>
</div>
<div
class=
"statusBar"
style=
"display:none;"
>
<div
class=
"progress"
>
<span
class=
"text"
>
0%
</span>
<span
class=
"percentage"
></span>
</div><div
class=
"info"
></div>
<div
class=
"btns"
>
<div
id=
"filePicker2"
></div><div
class=
"uploadBtn"
>
开始上传
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/knowledgecontent/
'
}).
use
(
'
filefolderupload
'
);
</script>
</body>
</html>
\ No newline at end of file
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontentadd.html
已删除
100644 → 0
浏览文件 @
7ac0154e
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin:0 auto;padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
标题
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"title"
name=
"title"
win-verify=
"required"
placeholder=
"请输入知识库标题"
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
所属类型
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"typeId"
name=
"typeId"
placeholder=
"请选择类型"
class=
"layui-input"
readonly=
"readonly"
typeId=
""
/>
<div
class=
"eleTree ele5"
lay-filter=
"data5"
></div>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
标签
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"label"
name=
"label"
placeholder=
"请填写标签"
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
内容
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<script
id=
"container"
name=
"content"
type=
"text/plain"
></script>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddBean"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ueditor/ueditor.config.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ueditor/ueditor.all.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ueditor/lang/zh-cn/zh-cn.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/knowledgecontent/
'
}).
use
(
'
knowledgecontentadd
'
);
</script>
</body>
</html>
\ No newline at end of file
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontentdetails.html
已删除
100644 → 0
浏览文件 @
7ac0154e
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<style
type=
"text/css"
>
.layui-badge
{
margin-right
:
5px
;
}
</style>
</head>
<body>
<div
style=
"padding:20px; margin:0 auto;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/knowledgecontent/
'
}).
use
(
'
knowledgecontentdetails
'
);
</script>
</body>
</html>
\ No newline at end of file
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontentdetailsTemplate.tpl
已删除
100644 → 0
浏览文件 @
7ac0154e
{{
#
bean
}}
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
标题:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
title
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
所属分类:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
typeName
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
标签:
</label>
<div
class=
"layui-input-block ver-center"
id=
"label"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
状态:
</label>
<div
class=
"layui-input-block ver-center {
{
colorClass
}
}"
>
{
{
state
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
创建时间:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
createTime
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
内容:
</label>
<div
class=
"layui-input-block ver-center"
>
<iframe
id=
"knowledgecontentshowBox"
style=
"width: 100%; border: 0px;"
scrolling=
"no"
></iframe>
</div>
</div>
{
{/
bean
}
}
\ No newline at end of file
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontentedit.html
已删除
100644 → 0
浏览文件 @
7ac0154e
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"padding:20px; margin:0 auto;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ueditor/ueditor.config.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ueditor/ueditor.all.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ueditor/lang/zh-cn/zh-cn.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/knowledgecontent/
'
}).
use
(
'
knowledgecontentedit
'
);
</script>
</body>
</html>
\ No newline at end of file
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontenteditTemplate.tpl
已删除
100644 → 0
浏览文件 @
7ac0154e
{{
#
bean
}}
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
标题
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"title"
name=
"title"
win-verify=
"required"
placeholder=
"请输入知识库标题"
class=
"layui-input"
value=
"{
{
title
}
}"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
所属类型
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"typeId"
name=
"typeId"
placeholder=
"请选择类型"
class=
"layui-input"
readonly=
"readonly"
typeId=
""
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
标签
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"label"
name=
"label"
placeholder=
"请填写标签"
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
公告内容
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<script
id=
"container"
name=
"content"
type=
"text/plain"
></script>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formEditBean"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
{
{/
bean
}
}
\ No newline at end of file
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontentlist.html
已删除
100644 → 0
浏览文件 @
7ac0154e
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"txtcenter"
style=
"margin:0 auto;padding-top:10px;"
>
<form
class=
"layui-form layui-form-pane"
action=
""
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
标题
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"title"
name=
"title"
placeholder=
"请输入知识库标题"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
状态
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"state"
>
<option
value=
""
>
全部
</option>
<option
value=
"1"
>
审核中
</option>
<option
value=
"2"
>
审核不通过
</option>
<option
value=
"3"
>
审核通过
</option>
</select>
</div>
<label
class=
"layui-form-label"
>
所属分类
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"typeId"
name=
"typeId"
placeholder=
"请选择分类"
class=
"layui-input"
readonly=
"readonly"
typeId=
""
/>
<div
class=
"eleTree ele5"
lay-filter=
"data5"
></div>
</div>
<button
type=
"reset"
class=
"layui-btn layui-btn-primary list-form-search"
><language
showName=
"com.skyeye.reset"
></language></button>
<button
class=
"layui-btn list-form-search"
lay-submit
lay-filter=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></button>
</div>
</div>
</form>
</div>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn"
auth=
"1570327662893"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
<button
id=
"addAllBean"
class=
"winui-toolbtn"
auth=
"1570329371505"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
批量上传
</button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
{{
#
if
(
auth
(
'
1570327677709
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1570327692712
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
delet
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
</script>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/knowledgecontent/
'
}).
use
(
'
knowledgecontentlist
'
);
</script>
</body>
</html>
\ No newline at end of file
knowlg/src/main/resources/template/tpl/knowledgecontent/knowledgecontentshow.html
已删除
100644 → 0
浏览文件 @
7ac0154e
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../assets/lib/layui/lay/modules/ueditor/themes/iframe.css"
>
</head>
<body
style=
"margin: 0px;"
>
<div
style=
"margin:0 auto;"
id=
"contentShow"
>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
,
}).
define
([
'
window
'
,
'
jquery
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
;
$
(
"
#contentShow
"
).
html
(
parent
.
content
);
parent
.
$
(
"
#knowledgecontentshowBox
"
).
height
(
$
(
"
body
"
).
height
()
+
30
);
});
</script>
</body>
</html>
\ No newline at end of file
knowlg/src/main/resources/template/tpl/knowledgetype/knowledgetypeadd.html
已删除
100644 → 0
浏览文件 @
7ac0154e
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/lay/modules/ztree/css/zTreeStyle/zTreeStyle.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin:0 auto;padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
名称
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"typeName"
name=
"typeName"
win-verify=
"required"
placeholder=
"请输入名称"
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
所属节点
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-inline"
style=
"width: 100%"
>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"name"
name=
"name"
placeholder=
"请输入要搜索的节点"
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-inline"
style=
"width: 100%"
>
<ul
id=
"parentType"
class=
"ztree fsTree"
method=
"POST"
isRoot=
"0"
treeIdKey=
"id"
inputs=
"parentId"
treePIdKey=
"pId"
clickCallbackInputs=
"parentId:$id"
treeName=
"name"
style=
"overflow-y: auto; height: 100%;"
></ul>
</div>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddBean"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/jquery-min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.all.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.exhide.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/fuzzysearch.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/knowledgetype/
'
}).
use
(
'
knowledgetypeadd
'
);
</script>
</body>
</html>
\ No newline at end of file
knowlg/src/main/resources/template/tpl/knowledgetype/knowledgetypeedit.html
已删除
100644 → 0
浏览文件 @
7ac0154e
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/lay/modules/ztree/css/zTreeStyle/zTreeStyle.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"padding:20px; margin:0 auto;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/jquery-min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.all.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.exhide.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/fuzzysearch.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/knowledgetype/
'
}).
use
(
'
knowledgetypeedit
'
);
</script>
</body>
</html>
\ No newline at end of file
knowlg/src/main/resources/template/tpl/knowledgetype/knowledgetypeeditTemplate.tpl
已删除
100644 → 0
浏览文件 @
7ac0154e
{{
#
bean
}}
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
名称
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"typeName"
name=
"typeName"
win-verify=
"required"
placeholder=
"请输入名称"
class=
"layui-input"
value=
"{
{
name
}
}"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
所属节点:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
parentName
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formEditBean"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
{
{/
bean
}
}
\ No newline at end of file
knowlg/src/main/resources/template/tpl/knowledgetype/knowledgetypelist.html
已删除
100644 → 0
浏览文件 @
7ac0154e
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"txtcenter"
style=
"margin:0 auto;padding-top:10px;"
>
<form
class=
"layui-form layui-form-pane"
action=
""
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
名称
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"name"
name=
"name"
placeholder=
"请输入名称"
class=
"layui-input"
/>
</div>
<button
type=
"reset"
class=
"layui-btn layui-btn-primary list-form-search"
><language
showName=
"com.skyeye.reset"
></language></button>
<button
class=
"layui-btn list-form-search"
lay-submit
lay-filter=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></button>
</div>
</div>
</form>
</div>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn"
auth=
"1568476869775"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
{{
#
if
(
d
.
state
==
3
||
d
.
state
==
1
){
}}
{{
#
if
(
auth
(
'
1568476920986
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1568476895545
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
up
"
>
上线
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1568476884756
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
delet
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
else
if
(
d
.
state
==
2
&&
auth
(
'
1568476909140
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
down
"
>
下线
<
/a
>
{{
#
}
}}
</script>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/knowledgetype/
'
}).
use
(
'
knowledgetypelist
'
);
</script>
</body>
</html>
\ No newline at end of file
knowlg/src/main/resources/template/tpl/knowl
edgecheck
/knowledgecheck.html
→
knowlg/src/main/resources/template/tpl/knowl
gExamine
/knowledgecheck.html
浏览文件 @
e7c992b3
文件已移动
knowlg/src/main/resources/template/tpl/knowl
edgecheck
/knowledgecheckeddetail.html
→
knowlg/src/main/resources/template/tpl/knowl
gExamine
/knowledgecheckeddetail.html
浏览文件 @
e7c992b3
文件已移动
knowlg/src/main/resources/template/tpl/knowl
edgecheck
/knowledgechecklist.html
→
knowlg/src/main/resources/template/tpl/knowl
gExamine
/knowledgechecklist.html
浏览文件 @
e7c992b3
文件已移动
knowlg/src/main/resources/template/tpl/knowl
edgecheck
/knowledgecontentshow.html
→
knowlg/src/main/resources/template/tpl/knowl
gExamine
/knowledgecontentshow.html
浏览文件 @
e7c992b3
文件已移动
knowlg/src/main/resources/template/tpl/knowl
edgecheck
/knowledgeuncheckdetail.html
→
knowlg/src/main/resources/template/tpl/knowl
gExamine
/knowledgeuncheckdetail.html
浏览文件 @
e7c992b3
文件已移动
web/src/main/resources/template/assets/lib/layui/customer/skyeye/sysDictDataUtil.js
浏览文件 @
e7c992b3
...
...
@@ -46,7 +46,6 @@ var sysDictDataUtil = {
<ul id="
${
showBoxId
}
Tree" class="ztree fsTree" method="get" isRoot="
${
isRoot
}
" isLoad="0" treeIdKey="id" inputs="parentId" treePIdKey="parentId"
clickCallbackInputs="parentId:$id" treeName="name" style="overflow-y: auto; height: 100%;"></ul>
</div>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/jquery-min.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.exhide.min.js"></script>
...
...
web/src/main/resources/template/assets/lib/layui/lay/modules/jQuery.upload.min.js
浏览文件 @
e7c992b3
layui
.
define
([
"
jquery
"
],
function
(
exports
)
{
var
jQuery
=
layui
.
jquery
;
(
function
(
$
)
{
(
function
(
a
)
{
(
function
(
a
)
{
a
.
fn
.
upload
=
function
(
D
)
{
var
options
=
{
"
action
"
:
"
/upload
"
,
...
...
@@ -452,7 +451,6 @@ layui.define(["jquery"], function(exports) {
}
return
uploadMin
;
}
})(
jQuery
);
})(
jQuery
);
exports
(
'
fileUpload
'
,
null
);
...
...
web/src/main/resources/template/assets/lib/layui/layui.js
浏览文件 @
e7c992b3
...
...
@@ -61,6 +61,7 @@ var dataTypeList = [
{
id
:
31
,
name
:
"
行政-会议室
"
},
{
id
:
32
,
name
:
"
行政-车辆
"
},
{
id
:
33
,
name
:
"
学校-科目
"
},
{
id
:
34
,
name
:
"
知识库-文件上传(正常情况下会被删除掉)
"
},
];
//系统cookies从哪里获取, true:从用户登陆获取;false:跨域获取
...
...
web/src/main/resources/template/json/skyeyeClassEnum.json
浏览文件 @
e7c992b3
...
...
@@ -111,7 +111,9 @@
"productWarrantyType"
:
{
"name"
:
"售后工单质保类型"
,
"className"
:
"skyeye-seal-service#com.skyeye.afterseal.classenum.ProductWarrantyType"
},
"sealOrderType"
:
{
"name"
:
"售后工单工单类型"
,
"className"
:
"skyeye-seal-service#com.skyeye.afterseal.classenum.SealOrderType"
},
"afterSealState"
:
{
"name"
:
"售后工单状态"
,
"className"
:
"skyeye-seal-service#com.skyeye.afterseal.classenum.AfterSealState"
}
"afterSealState"
:
{
"name"
:
"售后工单状态"
,
"className"
:
"skyeye-seal-service#com.skyeye.afterseal.classenum.AfterSealState"
},
"knowlgContentState"
:
{
"name"
:
"知识库状态"
,
"className"
:
"skyeye-knowlg#com.skyeye.eve.classenum.KnowlgContentState"
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录