Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
aa3b964b
提交
aa3b964b
authored
11月 11, 2020
作者:
潘鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
微调样式
上级
00ec3d66
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
117 行增加
和
48 行删除
+117
-48
platform.properties
platform-admin/src/main/resources/dev/platform.properties
+6
-6
platform.properties
platform-admin/src/main/resources/prod/platform.properties
+9
-9
advertisement.html
...admin/src/main/webapp/WEB-INF/page/sys/advertisement.html
+6
-1
menu.html
platform-admin/src/main/webapp/WEB-INF/page/sys/menu.html
+1
-1
tbcfstationitem.html
...min/src/main/webapp/WEB-INF/page/sys/tbcfstationitem.html
+7
-6
term.html
platform-admin/src/main/webapp/WEB-INF/page/sys/term.html
+44
-14
tbcfstationitem.js
platform-admin/src/main/webapp/js/sys/tbcfstationitem.js
+2
-2
term.js
platform-admin/src/main/webapp/js/sys/term.js
+42
-9
没有找到文件。
platform-admin/src/main/resources/dev/platform.properties
浏览文件 @
aa3b964b
...
...
@@ -2,13 +2,13 @@
#jdbc.username=root
#jdbc.password=root
#jdbc.url=jdbc:mysql://47.106.242.175:3306/chinafrica
?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#
jdbc.username=root
#
jdbc.password=diaoyun666
jdbc.url
=
jdbc:mysql://47.106.242.175:3306/afrishop_test
?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
jdbc.username
=
root
jdbc.password
=
diaoyun666
jdbc.url
:
jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
jdbc.username
:
root
jdbc.password
:
Diaoyunnuli.8
#
jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
#
jdbc.username: root
#
jdbc.password: Diaoyunnuli.8
jdbc.initialSize
=
5
jdbc.maxActive
=
30
...
...
platform-admin/src/main/resources/prod/platform.properties
浏览文件 @
aa3b964b
#jdbc.url=jdbc:mysql://localhost:3306/
platform
?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#jdbc.url=jdbc:mysql://localhost:3306/
chinafrica
?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#jdbc.username=root
#jdbc.password=root
#jdbc.url=jdbc:mysql://47.106.242.175:3306/chinafrica
?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#
jdbc.username=root
#
jdbc.password=diaoyun666
jdbc.url
=
jdbc:mysql://47.106.242.175:3306/afrishop_test
?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
jdbc.username
=
root
jdbc.password
=
diaoyun666
jdbc.url
:
jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
jdbc.username
:
root
jdbc.password
:
Diaoyunnuli.8
#
jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
#
jdbc.username: root
#
jdbc.password: Diaoyunnuli.8
jdbc.initialSize
=
5
jdbc.maxActive
=
30
jdbc.maxActive
=
30
jdbc.minPoolSize
=
2
jdbc.maxIdleTime
=
30000
jdbc.idleConnectionTestPeriod
=
100
jdbc.idleConnectionTestPeriod
=
100
platform-admin/src/main/webapp/WEB-INF/page/sys/advertisement.html
浏览文件 @
aa3b964b
...
...
@@ -19,7 +19,12 @@
min-width
:
1200px
;
margin
:
0
auto
;
}
.ui-jqgrid-bdiv
{
height
:
500px
!important
;
}
.edit-container
{
height
:
600px
!important
;
}
.category-container
{
min-height
:
600px
;
padding-bottom
:
80px
;
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/menu.html
浏览文件 @
aa3b964b
...
...
@@ -13,7 +13,7 @@
</div>
<div
class=
"buttons-group"
>
#if($shiro.hasPermission("sys:menu:save"))
<i-button
type=
"info"
@
click=
"add"
><i
class=
"fa fa-plus"
></i>
新增
</i-button>
<i-button
type=
"info"
@
click=
"add"
><i
class=
"fa fa-plus"
></i>
新增
</i-button>
#end
#if($shiro.hasPermission("sys:menu:update"))
<i-button
type=
"warning"
@
click=
"update"
><i
class=
"fa fa-pencil-square-o"
></i>
修改
</i-button>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfstationitem.html
浏览文件 @
aa3b964b
...
...
@@ -116,7 +116,7 @@
padding-right
:
2px
;
height
:
100px
;
}
#itemImg
:hover
{
.bigImg
:hover
{
transform
:
scale
(
3
);
}
...
...
@@ -596,13 +596,14 @@
<i-button
type=
"info"
@
click=
"exportExcel"
><i
class=
"fa fa-chevron-down"
></i>
导出
</i-button>
#end
#if($shiro.hasPermission("tbcfstationitem:delete"))
<i-button
type=
"error"
@
click=
"changeItemStatus(0)"
><i
class=
"fa fa-trash-o"
></i>
删除
</i-button>
#end
<i-button
type=
"warning"
@
click=
"changeItemsTop"
><i
class=
"fa fa-arrow-down"
></i>
取消置顶
</i-button>
<i-button
type=
"success"
@
click=
"changeItemsunTop"
><i
class=
"fa fa-arrow-up"
></i>
置顶
</i-button>
#if($shiro.hasPermission("tbcfstationitem:delete"))
<i-button
type=
"error"
@
click=
"changeItemStatus(0)"
:style=
"`margin-left:100px`"
><i
class=
"fa fa-trash-o"
></i>
删除
</i-button>
#end
</div>
</div>
...
...
@@ -703,7 +704,7 @@
<Form-item
label=
"成本价"
prop=
"costPrice"
style=
"width: 800px"
>
<i-input
v-model=
"tbCfStationItem.costPrice"
placeholder=
"成本价"
/>
</Form-item>
<Form-item
label=
"商品图片"
prop=
"itemImg"
>
<Form-item
label=
"商品图片"
prop=
"itemImg"
>
<!-- <i-input v-model="xPicture.pictureUrl" placeholder="图片地址"/> -->
<upload
multiple
...
...
@@ -714,7 +715,7 @@
</upload>
<div
id=
"imgWrapper"
style=
"display: flex;position: relative;"
>
<div
v-for=
"item in uploadList"
style=
"margin-left: 5px;"
:data-img-path=
"item"
>
<img
:src=
"item"
width=
"100"
height=
"100"
id=
"itemImg"
>
<img
:src=
"item"
width=
"100"
height=
"100"
id=
"itemImg"
>
<i
class=
"ivu-icon ivu-icon-ios-trash-outline"
style=
"cursor:pointer;display: flex;font-size: 24px;position: relative;left:11px"
@
click=
"delImg1(item)"
></i>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/term.html
浏览文件 @
aa3b964b
...
...
@@ -33,27 +33,57 @@
<Card
v-show=
"!showList"
>
<p
slot=
"title"
>
{{title}}
</p>
<i-form
ref=
"formValidate"
:model=
"term"
:rules=
"ruleValidate"
:label-width=
"80"
>
<Form-item
label=
"父条款ID,一级条款为0"
prop=
"parentId"
>
<i-input
v-model=
"term.parentId"
placeholder=
"父条款ID,一级条款为0"
/
>
</Form-item
>
<!-- <Form-item label="父条款ID,一级条款为0" prop="parentId">--
>
<!-- <i-input v-model="term.parentId" placeholder="父条款ID,一级条款为0"/>--
>
<!-- </Form-item>--
>
<Form-item
label=
"条款名称"
prop=
"termName"
>
<i-input
v-model=
"term.termName"
placeholder=
"条款名称"
/>
</Form-item>
<Form-item
label=
"条款内容"
prop=
"termContent"
>
<span>
条款目录
</span>
<select
@
change=
"changeProduct($event)"
>
<!-- <option v-model="term.termName">Volvo</option>-->
<option
value=
"0"
>
上级目录
</option>
<option
v-for=
"(el,index) in Allfa.list"
:key=
"index"
:value=
"el.id"
>
{{el.termName}}
</option>
<!-- <option :value="audi">Audi</option>-->
</select>
<!-- <Form-item label="上级菜单" v-if="term.type == 2" prop="parentName">-->
<!-- <i-input v-model="menu.parentName" @on-click="termTree" icon="eye" readonly="readonly"-->
<!-- placeholder="一级菜单"/>-->
<!-- </Form-item>-->
<!-- <Form-item label="上级菜单" v-if="term.type != 2">-->
<!-- <i-input v-model="menu.parentName" @on-click="termTree" icon="eye" readonly="readonly"-->
<!-- placeholder="一级菜单"/>-->
<!-- </Form-item>-->
<Form-item
label=
"条款内容"
prop=
"termContent"
v-if=
"flag"
>
<i-input
v-model=
"term.termContent"
placeholder=
"条款内容"
/>
</Form-item>
<Form-item
label=
"创建时间"
prop=
"createTime"
>
<i-input
v-model=
"term.createTime"
placeholder=
"创建时间"
/>
</Form-item>
<Form-item
label=
"更新时间"
prop=
"updateTime"
>
<i-input
v-model=
"term.updateTime"
placeholder=
"更新时间"
/>
</Form-item>
<Form-item
label=
"状态 0:无效 1:有效"
prop=
"status"
>
<i-input
v-model=
"term.status"
placeholder=
"状态 0:无效 1:有效"
/>
<Form-item
label=
"条款内容"
prop=
"termContent"
v-if=
"!flag"
>
<i-input
v-model=
"term.termContent"
placeholder=
"父级不可用"
readonly=
"readonly"
/>
</Form-item>
<Form-item
label=
"排序"
prop=
"sort"
>
<i-input
v-model=
"term.sort"
placeholder=
"排序"
/>
<!-- <Form-item label="创建时间" prop="createTime">-->
<!-- <i-input v-model="term.createTime" placeholder="创建时间"/>-->
<!-- </Form-item>-->
<!-- <Form-item label="更新时间" prop="updateTime">-->
<!-- <i-input v-model="term.updateTime" placeholder="更新时间"/>-->
<!-- </Form-item>-->
<!-- <Form-item label="状态 0:无效 1:有效" prop="status">-->
<!-- <i-input v-model="term.status" placeholder="状态 0:无效 1:有效"/>-->
<!-- </Form-item>-->
<Form-item
label=
"状态"
prop=
"status"
>
<Radio-group
v-model=
"term.status"
>
<Radio
label=
"1"
>
<span>
有效
</span>
</Radio>
<Radio
label=
"0"
>
<span>
无效
</span>
</Radio>
</Radio-group>
</Form-item>
<!-- <Form-item label="排序" prop="sort">-->
<!-- <i-input v-model="term.sort" placeholder="排序"/>-->
<!-- </Form-item>-->
<Form-item>
<i-button
type=
"primary"
@
click=
"handleSubmit('formValidate')"
>
提交
</i-button>
<i-button
type=
"warning"
@
click=
"reload"
style=
"margin-left: 8px"
/>
返回
</i-button>
...
...
platform-admin/src/main/webapp/js/sys/tbcfstationitem.js
浏览文件 @
aa3b964b
...
...
@@ -8,9 +8,9 @@ $(function () {
label
:
'商品图片'
,
name
:
'itemImg'
,
index
:
'item_img'
,
width
:
80
,
formatter
:
function
(
value
,
grid
,
rows
)
{
if
(
value
.
indexOf
(
';'
))
{
let
firstImg
=
value
.
split
(
';'
)[
0
];
return
'<img src="'
+
firstImg
+
'" style="width:50px;height:50px;" id="itemImg" />'
return
'<img src="'
+
firstImg
+
'" style="width:50px;height:50px;" id="itemImg"
class="bigImg"
/>'
}
return
'<img src="'
+
value
+
'" style="width:50px;height:50px;" id="itemImg" //>'
return
'<img src="'
+
value
+
'" style="width:50px;height:50px;" id="itemImg"
class="bigImg"
//>'
}
},
{
label
:
'商品编号'
,
name
:
'itemCode'
,
index
:
'item_code'
,
width
:
60
},
...
...
platform-admin/src/main/webapp/js/sys/term.js
浏览文件 @
aa3b964b
$
(
function
()
{
$
(
"#jqGrid"
).
Grid
({
url
:
'../term/list'
,
colModel
:
[
{
label
:
'id'
,
name
:
'id'
,
index
:
'id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'父条款ID,一级条款为0'
,
name
:
'parentId'
,
index
:
'parent_id'
,
width
:
80
},
colModel
:
[
//
{label: 'id', name: 'id', index: 'id', key: true, hidden: true},
//
{label: '父条款ID,一级条款为0', name: 'parentId', index: 'parent_id', width: 80},
{
label
:
'条款名称'
,
name
:
'termName'
,
index
:
'term_name'
,
width
:
80
},
{
label
:
'条款内容'
,
name
:
'termContent'
,
index
:
'term_content'
,
width
:
80
},
{
label
:
'创建时间'
,
name
:
'createTime'
,
index
:
'create_time'
,
width
:
80
},
{
label
:
'更新时间'
,
name
:
'updateTime'
,
index
:
'update_time'
,
width
:
80
},
//
{label: '更新时间', name: 'updateTime', index: 'update_time', width: 80},
{
label
:
'状态 0:无效 1:有效'
,
name
:
'status'
,
index
:
'status'
,
width
:
80
},
{
label
:
'排序'
,
name
:
'sort'
,
index
:
'sort'
,
width
:
80
}]
// {label: '排序', name: 'sort', index: 'sort', width: 80}
]
});
});
...
...
@@ -18,7 +19,7 @@ let vm = new Vue({
data
:
{
showList
:
true
,
title
:
null
,
term
:
{},
term
:
{
parentId
:
'0'
},
ruleValidate
:
{
name
:
[
{
required
:
true
,
message
:
'名称不能为空'
,
trigger
:
'blur'
}
...
...
@@ -26,7 +27,9 @@ let vm = new Vue({
},
q
:
{
name
:
''
}
},
Allfa
:{},
flag
:
false
},
methods
:
{
query
:
function
()
{
...
...
@@ -36,6 +39,7 @@ let vm = new Vue({
vm
.
showList
=
false
;
vm
.
title
=
"新增"
;
vm
.
term
=
{};
vm
.
getFainfo
();
},
update
:
function
(
event
)
{
let
id
=
getSelectedRow
(
"#jqGrid"
);
...
...
@@ -66,7 +70,6 @@ let vm = new Vue({
if
(
ids
==
null
){
return
;
}
confirm
(
'确定要删除选中的记录?'
,
function
()
{
Ajax
.
request
({
url
:
"../term/delete"
,
...
...
@@ -112,6 +115,36 @@ let vm = new Vue({
},
handleReset
:
function
(
name
)
{
handleResetForm
(
this
,
name
);
}
},
changeProduct
(
e
)
{
vm
.
term
.
parentId
=
e
.
target
.
value
console
.
log
(
vm
.
term
.
parentId
)
if
(
vm
.
term
.
parentId
==
0
){
vm
.
flag
=
false
;
}
else
{
vm
.
flag
=
true
;
}
},
getFainfo
(){
Ajax
.
request
({
url
:
"../term/queryAll"
,
async
:
true
,
successCallback
:
function
(
r
)
{
console
.
log
(
r
)
vm
.
Allfa
=
r
}
});
}
},
created
(){
Ajax
.
request
({
url
:
"../term/queryAll"
,
async
:
true
,
successCallback
:
function
(
r
)
{
// console.log(r)
vm
.
Allfa
=
r
}
});
// console.log(this.term.parentId)
}
});
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论