Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
033b04b5
提交
033b04b5
authored
4月 13, 2020
作者:
zgy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改商品管理功能:除管理员,其他人员只能看到自己上传的商品
上级
8c98b2d5
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
13 行增加
和
3 行删除
+13
-3
TbCfStationItemController.java
...va/com/platform/controller/TbCfStationItemController.java
+5
-0
TbCfStationItemDao.xml
...rc/main/resources/com/platform/dao/TbCfStationItemDao.xml
+4
-1
tbcfstationitem.html
...min/src/main/webapp/WEB-INF/page/sys/tbcfstationitem.html
+1
-1
tbcfstationitem.js
platform-admin/src/main/webapp/js/sys/tbcfstationitem.js
+3
-1
没有找到文件。
platform-admin/src/main/java/com/platform/controller/TbCfStationItemController.java
浏览文件 @
033b04b5
...
...
@@ -64,6 +64,11 @@ public class TbCfStationItemController extends ApiBaseAction {
@RequiresPermissions
(
"tbcfstationitem:list"
)
@ResponseBody
public
R
list
(
@RequestParam
Map
<
String
,
Object
>
params
)
{
if
(!
Constant
.
SUPER_ADMIN
.
equals
(
ShiroUtils
.
getUserId
()))
{
params
.
put
(
"creator"
,
ShiroUtils
.
getUserId
());
}
String
userId
=
ShiroUtils
.
getUserId
();
System
.
out
.
println
(
userId
);
//查询列表数据
Query
query
=
new
Query
(
params
);
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfStationItemDao.xml
浏览文件 @
033b04b5
...
...
@@ -144,6 +144,9 @@
left JOIN tb_cf_express_template e ON i.item_descrition_id = e.template_id
left join sys_user u on i.creator=u.user_id
WHERE 1=1 and i.enable_flag!=0
<if
test=
"creator != null and creator.trim() != ''"
>
AND creator=#{creator}
</if>
<if
test=
"name != null and name.trim() != ''"
>
AND item_name LIKE concat('%',#{name},'%') or item_id LIKE concat('%',#{name},'%')
</if>
...
...
@@ -300,7 +303,7 @@
<if
test=
"itemSku != null"
>
`item_sku` = #{itemSku},
</if>
<if
test=
"itemTop != null"
>
`item_top` = #{itemTop},
</if>
<if
test=
"supplier != null"
>
`supplier` = #{supplier},
</if>
<if
test=
"skuImgs != null"
>
`sku_imgs` = #{skuImgs},
</if>
<if
test=
"skuImgs != null"
>
`sku_imgs` = #{skuImgs},
</if>
<if
test=
"platformCode != null"
>
`platform_code` = #{platformCode},
</if>
<if
test=
"platformName != null"
>
`platform_name` = #{platformName},
</if>
<if
test=
"enableFlag != null"
>
`enable_flag` = #{enableFlag},
</if>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfstationitem.html
浏览文件 @
033b04b5
...
...
@@ -588,7 +588,7 @@
multiple
action=
"../api/osstest/uploadtest"
:before-upload=
"handleBeforeUpload"
:on-success=
"handleSuccess"
:show-upload-list=
"false"
accept=
"image/jpeg, image/png"
>
:on-success=
"
v
handleSuccess"
:show-upload-list=
"false"
accept=
"image/jpeg, image/png"
>
<i-button
icon=
"ios-cloud-upload-outline"
>
请选择图片
</i-button>
</upload>
<div
style=
"display: flex;position: relative;"
>
...
...
platform-admin/src/main/webapp/js/sys/tbcfstationitem.js
浏览文件 @
033b04b5
...
...
@@ -298,6 +298,7 @@ let vm = new Vue({
vm
.
tbCfStationItem
.
putaway
=
this
.
putaway
this
.
$set
(
vm
.
tbCfStationItem
,
'tree'
,
this
.
attrItem
)
let
_this
=
this
console
.
log
(
11111
,
vm
.
uploadList
)
vm
.
tbCfStationItem
.
itemImg
=
vm
.
uploadList
.
map
(
res
=>
res
).
join
(
';'
);
vm
.
tbCfStationItem
.
itemDesc
=
encodeURI
(
UE
.
getEditor
(
'itemDesc'
).
getContent
());
// 富文本取值
vm
.
tbCfStationItem
.
itemDesc
=
vm
.
tbCfStationItem
.
itemDesc
.
replace
(
/ /g
,
" "
);
...
...
@@ -523,8 +524,9 @@ let vm = new Vue({
// },
/** ******************************************************************************************** */
handleSuccess
(
response
,
file
,
fileList
)
{
v
handleSuccess
(
response
,
file
,
fileList
)
{
// "http://diaosaas-prod.oss-cn-shenzhen.aliyuncs.com/education/155728894307110106.jpg"
console
.
log
(
'shangchuan'
,
response
)
vm
.
uploadList
.
push
(
response
);
$
(
"#itemImg"
).
show
();
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论