Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
13cae5cc
提交
13cae5cc
authored
8月 06, 2020
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
轮播图版本区分
上级
cc46ee8a
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
48 行增加
和
15 行删除
+48
-15
TbCfHomePageDao.xml
...n/src/main/resources/com/platform/dao/TbCfHomePageDao.xml
+8
-3
tbcfhomepage.html
...-admin/src/main/webapp/WEB-INF/page/sys/tbcfhomepage.html
+19
-7
tbcfhomepage.js
platform-admin/src/main/webapp/js/sys/tbcfhomepage.js
+19
-3
OssUtil.java
...form-common/src/main/java/com/platform/utils/OssUtil.java
+2
-2
没有找到文件。
platform-admin/src/main/resources/com/platform/dao/TbCfHomePageDao.xml
浏览文件 @
13cae5cc
...
...
@@ -47,9 +47,11 @@
from tb_cf_home_page
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND name LIKE concat('%',#{name},'%')
AND img_name LIKE concat('%',#{name},'%')
</if>
<if
test=
"version != null and version.trim() != ''"
>
AND img_version =#{version}
</if>
<choose>
<when
test=
"sidx != null and sidx.trim() != ''"
>
order by ${sidx} ${order}
...
...
@@ -67,7 +69,10 @@
select count(*) from tb_cf_home_page
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND name LIKE concat('%',#{name},'%')
AND img_name LIKE concat('%',#{name},'%')
</if>
<if
test=
"version != null and version.trim() != ''"
>
AND img_version =#{version}
</if>
</select>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfhomepage.html
浏览文件 @
13cae5cc
...
...
@@ -98,9 +98,21 @@
<div
v-show=
"showList"
style=
"height: 100%;"
>
<Row
:gutter=
"16"
>
<div
class=
"search-group"
>
<i-col
span=
"4"
>
<i-input
v-model=
"q.name"
@
on-enter=
"query"
placeholder=
"名称"
/>
</i-col>
<span>
名称:
<i-input
v-model=
"q.name"
@
on-enter=
"query"
placeholder=
"名称"
style=
"width:160px"
/>
</span>
<span>
版本:
<i-select
v-model=
"q.version"
@
on-enter=
"query"
placeholder=
"版本"
style=
"width:160px"
>
<i-option
v-for=
"(el,i) in versionList"
:key=
'i'
:value=
"el.value"
>
{{el.label}}
</i-option>
</i-select>
</span>
<i-button
@
click=
"query"
>
查询
</i-button>
<i-button
@
click=
"reloadSearch"
>
重置
</i-button>
</div>
...
...
@@ -298,10 +310,10 @@
<!-- </Form-item>-->
<Form-item
label=
"是否展示"
prop=
"enableFlag"
>
<i-select
placeholder=
"请选择"
v-model=
"tbCfHomePage.enableFlag"
>
<i-option
v-for=
"(el,i) in chooseOptions"
:key=
'i'
:value=
"el.value"
>
{{el.label}}
</i-option>
</i-select>
<i-option
v-for=
"(el,i) in chooseOptions"
:key=
'i'
:value=
"el.value"
>
{{el.label}}
</i-option>
</i-select>
</Form-item>
<Form-item>
<i-button
type=
"primary"
@
click=
"handleSubmit('formValidate')"
>
提交
</i-button>
...
...
platform-admin/src/main/webapp/js/sys/tbcfhomepage.js
浏览文件 @
13cae5cc
...
...
@@ -29,6 +29,20 @@ $(function () {
let
vm
=
new
Vue
({
el
:
'#rrapp'
,
data
:
{
versionList
:
[
{
value
:
0
,
label
:
'app旧版'
},
{
value
:
1
,
label
:
'app新版'
},
{
value
:
2
,
label
:
'PC官网'
}
],
chooseOptions
:
null
,
typeActive
:
0
,
//显示索引
items
:
[
...
...
@@ -150,7 +164,8 @@ let vm = new Vue({
]
},
q
:
{
name
:
''
name
:
''
,
version
:
''
},
version
:
''
,
versionOptions
:
[
...
...
@@ -288,14 +303,15 @@ let vm = new Vue({
vm
.
showList
=
true
;
let
page
=
$
(
"#jqGrid"
).
jqGrid
(
'getGridParam'
,
'page'
);
$
(
"#jqGrid"
).
jqGrid
(
'setGridParam'
,
{
postData
:
{
'name'
:
vm
.
q
.
name
},
postData
:
{
'name'
:
vm
.
q
.
name
,
'version'
:
vm
.
q
.
version
},
page
:
page
}).
trigger
(
"reloadGrid"
);
vm
.
handleReset
(
'formValidate'
);
},
reloadSearch
:
function
()
{
vm
.
q
=
{
name
:
''
name
:
''
,
version
:
''
};
vm
.
reload
();
},
...
...
platform-common/src/main/java/com/platform/utils/OssUtil.java
浏览文件 @
13cae5cc
...
...
@@ -382,11 +382,11 @@ public class OssUtil {
}
public
static
void
main
(
String
[]
args
)
throws
Exception
{
File
file
=
new
File
(
"
C:\\Users\\Administrator\\Pictures\\year.jp
g"
);
File
file
=
new
File
(
"
D:\\123.pn
g"
);
byte
[]
b
=
File2byte
(
file
);
System
.
out
.
println
(
b
);
// boolean flag = deleteFile("https://diaosaas-prod.oss-cn-shenzhen.aliyuncs.com/africa-shop/Afrishop/157865444910310855.png");
String
s
=
upload
(
b
,
"
year.jpg
"
,
"Afrishop"
);
String
s
=
upload
(
b
,
"
afrishop
"
,
"Afrishop"
);
System
.
out
.
println
(
s
);
// System.out.println(flag);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论