Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
f4b73bfc
提交
f4b73bfc
authored
3月 31, 2020
作者:
zgy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
完成一级分类图片
上级
d08b1ac3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
19 行增加
和
15 行删除
+19
-15
TbCfGoodstypeDao.xml
.../src/main/resources/com/platform/dao/TbCfGoodstypeDao.xml
+15
-11
tbcfgoodstype.html
...admin/src/main/webapp/WEB-INF/page/sys/tbcfgoodstype.html
+2
-2
tbcfgoodstype.js
platform-admin/src/main/webapp/js/sys/tbcfgoodstype.js
+2
-2
没有找到文件。
platform-admin/src/main/resources/com/platform/dao/TbCfGoodstypeDao.xml
浏览文件 @
f4b73bfc
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<result
property=
"goodstypeTitle"
column=
"goodstype_title"
/>
<result
property=
"goodstypeTitle"
column=
"goodstype_title"
/>
<result
property=
"goodstypeSort"
column=
"goodstype_sort"
/>
<result
property=
"goodstypeSort"
column=
"goodstype_sort"
/>
<result
property=
"goodstypeUrl"
column=
"goodstype_url"
/>
<result
property=
"goodstypeUrl"
column=
"goodstype_url"
/>
<result
property=
"goodstypeImage"
column=
"goodstype_image"
/>
</resultMap>
</resultMap>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfGoodstypeEntity"
>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfGoodstypeEntity"
>
...
@@ -15,7 +16,8 @@
...
@@ -15,7 +16,8 @@
`goodstype_id`,
`goodstype_id`,
`goodstype_title`,
`goodstype_title`,
`goodstype_sort`,
`goodstype_sort`,
`goodstype_url`
`goodstype_url`,
`goodstype_image`
from tb_cf_goodstype
from tb_cf_goodstype
where goodstype_id = #{id}
where goodstype_id = #{id}
</select>
</select>
...
@@ -25,7 +27,8 @@
...
@@ -25,7 +27,8 @@
`goodstype_id`,
`goodstype_id`,
`goodstype_title`,
`goodstype_title`,
`goodstype_sort`,
`goodstype_sort`,
`goodstype_url`
`goodstype_url`,
`goodstype_image`
from tb_cf_goodstype
from tb_cf_goodstype
where goodstype_title = #{title}
where goodstype_title = #{title}
</select>
</select>
...
@@ -35,7 +38,8 @@
...
@@ -35,7 +38,8 @@
`goodstype_id`,
`goodstype_id`,
`goodstype_title`,
`goodstype_title`,
`goodstype_sort`,
`goodstype_sort`,
`goodstype_url`
`goodstype_url`,
`goodstype_image`
from tb_cf_goodstype
from tb_cf_goodstype
WHERE 1=1
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
<if
test=
"name != null and name.trim() != ''"
>
...
@@ -67,12 +71,12 @@
...
@@ -67,12 +71,12 @@
`goodstype_id`,
`goodstype_id`,
`goodstype_title`,
`goodstype_title`,
`goodstype_sort`,
`goodstype_sort`,
`goodstype_
url
`)
`goodstype_
image
`)
values(
values(
#{goodstypeId},
#{goodstypeId},
#{goodstypeTitle},
#{goodstypeTitle},
#{goodstypeSort},
#{goodstypeSort},
#{goodstype
Url
})
#{goodstype
Image
})
</insert>
</insert>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfGoodstypeEntity"
>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfGoodstypeEntity"
>
...
@@ -80,7 +84,7 @@
...
@@ -80,7 +84,7 @@
<set>
<set>
<if
test=
"goodstypeTitle != null"
>
`goodstype_title` = #{goodstypeTitle},
</if>
<if
test=
"goodstypeTitle != null"
>
`goodstype_title` = #{goodstypeTitle},
</if>
<if
test=
"goodstypeSort != null"
>
`goodstype_sort` = #{goodstypeSort},
</if>
<if
test=
"goodstypeSort != null"
>
`goodstype_sort` = #{goodstypeSort},
</if>
<if
test=
"goodstype
Url != null"
>
`goodstype_url` = #{goodstypeUrl
}
</if>
<if
test=
"goodstype
Image != null"
>
`goodstype_image` = #{goodstypeImage
}
</if>
</set>
</set>
where goodstype_id = #{goodstypeId}
where goodstype_id = #{goodstypeId}
</update>
</update>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfgoodstype.html
浏览文件 @
f4b73bfc
...
@@ -49,8 +49,8 @@
...
@@ -49,8 +49,8 @@
<i-input
v-model=
"tbCfGoodstype.goodstypeTitle"
placeholder=
"商品分类标题"
/>
<i-input
v-model=
"tbCfGoodstype.goodstypeTitle"
placeholder=
"商品分类标题"
/>
</Form-item>
</Form-item>
<Form-item
label=
"一级分类图片"
prop=
"goodstype
Url
"
>
<Form-item
label=
"一级分类图片"
prop=
"goodstype
Image
"
>
<img
v-bind:src=
"tbCfGoodstype.goodstype
Url"
v-show=
"!!tbCfGoodstype.goodstypeUrl
"
/>
<img
v-bind:src=
"tbCfGoodstype.goodstype
Image"
v-show=
"!!tbCfGoodstype.goodstypeImage
"
/>
<input
type=
"file"
placeholder=
"一级分类图片"
@
change=
"tirggerFile($event)"
/>
<input
type=
"file"
placeholder=
"一级分类图片"
@
change=
"tirggerFile($event)"
/>
</Form-item>
</Form-item>
...
...
platform-admin/src/main/webapp/js/sys/tbcfgoodstype.js
浏览文件 @
f4b73bfc
...
@@ -5,7 +5,7 @@ $(function () {
...
@@ -5,7 +5,7 @@ $(function () {
{
label
:
'ID'
,
name
:
'goodstypeId'
,
index
:
'goodstype_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'ID'
,
name
:
'goodstypeId'
,
index
:
'goodstype_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'商品一级分类'
,
name
:
'goodstypeTitle'
,
index
:
'goodstype_title'
,
width
:
80
},
{
label
:
'商品一级分类'
,
name
:
'goodstypeTitle'
,
index
:
'goodstype_title'
,
width
:
80
},
{
label
:
'排序编号'
,
name
:
'goodstypeSort'
,
index
:
'goodstype_sort'
,
width
:
80
},
{
label
:
'排序编号'
,
name
:
'goodstypeSort'
,
index
:
'goodstype_sort'
,
width
:
80
},
{
label
:
'一级分类图片'
,
name
:
'goodstype
Url'
,
index
:
'goodstype_url
'
,
width
:
80
,
formatter
:
imageFormat
}],
{
label
:
'一级分类图片'
,
name
:
'goodstype
Image'
,
index
:
'goodstype_image
'
,
width
:
80
,
formatter
:
imageFormat
}],
shrinkToFit
:
true
,
shrinkToFit
:
true
,
datatype
:
"json"
,
datatype
:
"json"
,
rowNum
:
15
,
rowNum
:
15
,
...
@@ -136,7 +136,7 @@ let vm = new Vue({
...
@@ -136,7 +136,7 @@ let vm = new Vue({
result
=
JSON
.
parse
(
result
);
result
=
JSON
.
parse
(
result
);
//console.log(result)
//console.log(result)
if
(
result
.
errno
==
0
)
{
//成功
if
(
result
.
errno
==
0
)
{
//成功
vm
.
tbCfGoodstype
.
goodstype
Url
=
result
.
data
;
vm
.
tbCfGoodstype
.
goodstype
Image
=
result
.
data
;
vm
.
$forceUpdate
();
vm
.
$forceUpdate
();
}
else
{
}
else
{
iview
.
Message
.
error
(
result
.
errmsg
);
iview
.
Message
.
error
(
result
.
errmsg
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论