Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
ruoyi
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
范晓龙
ruoyi
Commits
6a763a11
提交
6a763a11
authored
11月 11, 2022
作者:
dingtalk_nnkplh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改新增学校设施的功能
上级
69208a91
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
53 行增加
和
11 行删除
+53
-11
add.html
...i-admin/src/main/resources/templates/system/icon/add.html
+23
-2
edit.html
...-admin/src/main/resources/templates/system/icon/edit.html
+22
-1
icon.html
...-admin/src/main/resources/templates/system/icon/icon.html
+4
-4
add.html
...i-admin/src/main/resources/templates/system/menu/add.html
+1
-1
icon.html
...-admin/src/main/resources/templates/system/menu/icon.html
+0
-0
TbSchoolFacilitiesContrastIcon.java
...m/ruoyi/system/domain/TbSchoolFacilitiesContrastIcon.java
+3
-3
没有找到文件。
ruoyi-admin/src/main/resources/templates/system/icon/add.html
浏览文件 @
6a763a11
...
@@ -19,9 +19,14 @@
...
@@ -19,9 +19,14 @@
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
设施
对应的图片序号
:
</label>
<label
class=
"col-sm-3 control-label is-required"
>
设施
图标
:
</label>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-8"
>
<input
name=
"icon"
class=
"form-control"
type=
"text"
required
>
<input
name=
"icon"
id=
"icon"
class=
"form-control"
type=
"text"
placeholder=
"选择图标"
required
>
<div
class=
"ms-parent"
style=
"width: 100%;"
>
<div
class=
"icon-drop animated flipInX"
style=
"display: none;max-height:200px;overflow-y:auto"
>
<div
data-th-include=
"system/major/icon"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</form>
...
@@ -38,6 +43,21 @@
...
@@ -38,6 +43,21 @@
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-icon-add'
).
serialize
());
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-icon-add'
).
serialize
());
}
}
}
}
$
(
function
()
{
$
(
"input[name='icon']"
).
focus
(
function
()
{
$
(
".icon-drop"
).
show
();
});
$
(
"#form-icon-add"
).
click
(
function
(
event
)
{
var
obj
=
event
.
srcElement
||
event
.
target
;
if
(
!
$
(
obj
).
is
(
"input[name='icon']"
))
{
$
(
".icon-drop"
).
hide
();
}
});
$
(
".icon-drop"
).
find
(
".ico-list img"
).
on
(
"click"
,
function
()
{
$
(
'#icon'
).
val
(
$
(
this
).
attr
(
'class'
));
});
});
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
ruoyi-admin/src/main/resources/templates/system/icon/edit.html
浏览文件 @
6a763a11
...
@@ -22,7 +22,12 @@
...
@@ -22,7 +22,12 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
设施对应的图片:
</label>
<label
class=
"col-sm-3 control-label is-required"
>
设施对应的图片:
</label>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-8"
>
<input
name=
"icon"
th:field=
"*{icon}"
class=
"form-control"
type=
"text"
required
>
<input
id=
"icon"
th:field=
"*{icon}"
class=
"form-control"
type=
"text"
required
>
<div
class=
"ms-parent"
style=
"width: 100%;"
>
<div
class=
"icon-drop animated flipInX"
style=
"display: none;max-height:200px;overflow-y:auto"
>
<div
data-th-include=
"system/major/icon"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</form>
...
@@ -39,6 +44,21 @@
...
@@ -39,6 +44,21 @@
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-icon-edit'
).
serialize
());
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-icon-edit'
).
serialize
());
}
}
}
}
$
(
function
()
{
$
(
"input[name='icon']"
).
focus
(
function
()
{
$
(
".icon-drop"
).
show
();
});
$
(
"#form-icon-edit"
).
click
(
function
(
event
)
{
var
obj
=
event
.
srcElement
||
event
.
target
;
if
(
!
$
(
obj
).
is
(
"input[name='icon']"
))
{
$
(
".icon-drop"
).
hide
();
}
});
$
(
".icon-drop"
).
find
(
".ico-list img"
).
on
(
"click"
,
function
()
{
$
(
'#icon'
).
val
(
$
(
this
).
attr
(
'class'
));
});
});
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
ruoyi-admin/src/main/resources/templates/system/icon/icon.html
浏览文件 @
6a763a11
...
@@ -18,10 +18,10 @@
...
@@ -18,10 +18,10 @@
<label>
设施名称:
</label>
<label>
设施名称:
</label>
<input
type=
"text"
name=
"facilitiesName"
/>
<input
type=
"text"
name=
"facilitiesName"
/>
</li>
</li>
<li
>
<!-- <li>--
>
<label>
设施对应的图片序号:
</label
>
<!-- <label>设施对应的图片序号:</label>--
>
<input
type=
"text"
name=
"icon"
/
>
<!-- <input type="text" name="icon"/>--
>
</li
>
<!-- </li>--
>
<li>
<li>
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
class=
"fa fa-search"
></i>
搜索
</a>
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
class=
"fa fa-search"
></i>
搜索
</a>
<a
class=
"btn btn-warning btn-rounded btn-sm"
onclick=
"$.form.reset()"
><i
class=
"fa fa-refresh"
></i>
重置
</a>
<a
class=
"btn btn-warning btn-rounded btn-sm"
onclick=
"$.form.reset()"
><i
class=
"fa fa-refresh"
></i>
重置
</a>
...
...
ruoyi-admin/src/main/resources/templates/system/menu/add.html
浏览文件 @
6a763a11
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
$
(
".icon-drop"
).
hide
();
$
(
".icon-drop"
).
hide
();
}
}
});
});
$
(
".icon-drop"
).
find
(
".ico-list i"
).
on
(
"click"
,
function
()
{
$
(
".icon-drop"
).
find
(
".ico-list i
mg
"
).
on
(
"click"
,
function
()
{
$
(
'#icon'
).
val
(
$
(
this
).
attr
(
'class'
));
$
(
'#icon'
).
val
(
$
(
this
).
attr
(
'class'
));
});
});
$
(
'input'
).
on
(
'ifChecked'
,
function
(
event
){
$
(
'input'
).
on
(
'ifChecked'
,
function
(
event
){
...
...
ruoyi-admin/src/main/resources/templates/system/menu/icon.html
浏览文件 @
6a763a11
ruoyi-system/src/main/java/com/ruoyi/system/domain/TbSchoolFacilitiesContrastIcon.java
浏览文件 @
6a763a11
...
@@ -28,7 +28,7 @@ public class TbSchoolFacilitiesContrastIcon extends BaseEntity
...
@@ -28,7 +28,7 @@ public class TbSchoolFacilitiesContrastIcon extends BaseEntity
/** 设施对应的图片 */
/** 设施对应的图片 */
@Excel
(
name
=
"设施对应的图片"
)
@Excel
(
name
=
"设施对应的图片"
)
private
Integer
icon
;
private
String
icon
;
public
void
setId
(
Long
id
)
public
void
setId
(
Long
id
)
{
{
...
@@ -57,12 +57,12 @@ public class TbSchoolFacilitiesContrastIcon extends BaseEntity
...
@@ -57,12 +57,12 @@ public class TbSchoolFacilitiesContrastIcon extends BaseEntity
{
{
return
facilitiesName
;
return
facilitiesName
;
}
}
public
void
setIcon
(
Integer
icon
)
public
void
setIcon
(
String
icon
)
{
{
this
.
icon
=
icon
;
this
.
icon
=
icon
;
}
}
public
Integer
getIcon
()
public
String
getIcon
()
{
{
return
icon
;
return
icon
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论