Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
bf8eddfa
提交
bf8eddfa
authored
1月 10, 2020
作者:
zgy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品独立站管理细节优化
上级
9fb648e5
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
284 行增加
和
209 行删除
+284
-209
TbCfDescripitonEntity.java
.../main/java/com/platform/entity/TbCfDescripitonEntity.java
+85
-1
TbCfDescripitonDao.xml
...rc/main/resources/com/platform/dao/TbCfDescripitonDao.xml
+74
-59
tbcfdescripiton.html
...min/src/main/webapp/WEB-INF/page/sys/tbcfdescripiton.html
+20
-27
tbcfgoodstype.html
...admin/src/main/webapp/WEB-INF/page/sys/tbcfgoodstype.html
+4
-4
tbcfplatform.html
...-admin/src/main/webapp/WEB-INF/page/sys/tbcfplatform.html
+11
-8
tbcfdescripiton.js
platform-admin/src/main/webapp/js/sys/tbcfdescripiton.js
+83
-103
tbcfgoodstwotype.js
platform-admin/src/main/webapp/js/sys/tbcfgoodstwotype.js
+2
-2
tbcfgoodstype.js
platform-admin/src/main/webapp/js/sys/tbcfgoodstype.js
+3
-3
tbcfstationitem.js
platform-admin/src/main/webapp/js/sys/tbcfstationitem.js
+2
-2
没有找到文件。
platform-admin/src/main/java/com/platform/entity/TbCfDescripitonEntity.java
浏览文件 @
bf8eddfa
package
com
.
platform
.
entity
;
package
com
.
platform
.
entity
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
...
@@ -8,7 +9,7 @@ import java.util.Date;
...
@@ -8,7 +9,7 @@ import java.util.Date;
* 表名 tb_cf_descripiton
* 表名 tb_cf_descripiton
*
*
* @author lipengjun
* @author lipengjun
* @date 20
19-10-16 11:32:22
* @date 20
20-01-10 11:01:40
*/
*/
public
class
TbCfDescripitonEntity
implements
Serializable
{
public
class
TbCfDescripitonEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -33,6 +34,43 @@ public class TbCfDescripitonEntity implements Serializable {
...
@@ -33,6 +34,43 @@ public class TbCfDescripitonEntity implements Serializable {
* 二级分类Id
* 二级分类Id
*/
*/
private
String
goodstwotypeId
;
private
String
goodstwotypeId
;
/**
* 品名图片
*/
private
String
image
;
/**
* 单件邮费
*/
private
BigDecimal
postage
;
/**
* 续件邮费
*/
private
BigDecimal
morePostage
;
/**
* 一级分类名称
*/
private
String
type
;
/**
* 二级分类名称
*/
private
String
twoType
;
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getTwoType
()
{
return
twoType
;
}
public
void
setTwoType
(
String
twoType
)
{
this
.
twoType
=
twoType
;
}
/**
/**
* 设置:品名Id
* 设置:品名Id
...
@@ -47,6 +85,7 @@ public class TbCfDescripitonEntity implements Serializable {
...
@@ -47,6 +85,7 @@ public class TbCfDescripitonEntity implements Serializable {
public
String
getDescripitionId
()
{
public
String
getDescripitionId
()
{
return
descripitionId
;
return
descripitionId
;
}
}
/**
/**
* 设置:品名名字
* 设置:品名名字
*/
*/
...
@@ -60,6 +99,7 @@ public class TbCfDescripitonEntity implements Serializable {
...
@@ -60,6 +99,7 @@ public class TbCfDescripitonEntity implements Serializable {
public
String
getDescripitionName
()
{
public
String
getDescripitionName
()
{
return
descripitionName
;
return
descripitionName
;
}
}
/**
/**
* 设置:海关编码
* 设置:海关编码
*/
*/
...
@@ -73,6 +113,7 @@ public class TbCfDescripitonEntity implements Serializable {
...
@@ -73,6 +113,7 @@ public class TbCfDescripitonEntity implements Serializable {
public
String
getDescripitionCode
()
{
public
String
getDescripitionCode
()
{
return
descripitionCode
;
return
descripitionCode
;
}
}
/**
/**
* 设置:一级分类Id
* 设置:一级分类Id
*/
*/
...
@@ -86,6 +127,7 @@ public class TbCfDescripitonEntity implements Serializable {
...
@@ -86,6 +127,7 @@ public class TbCfDescripitonEntity implements Serializable {
public
String
getGoodstypeId
()
{
public
String
getGoodstypeId
()
{
return
goodstypeId
;
return
goodstypeId
;
}
}
/**
/**
* 设置:二级分类Id
* 设置:二级分类Id
*/
*/
...
@@ -99,4 +141,46 @@ public class TbCfDescripitonEntity implements Serializable {
...
@@ -99,4 +141,46 @@ public class TbCfDescripitonEntity implements Serializable {
public
String
getGoodstwotypeId
()
{
public
String
getGoodstwotypeId
()
{
return
goodstwotypeId
;
return
goodstwotypeId
;
}
}
/**
* 设置:品名图片
*/
public
void
setImage
(
String
image
)
{
this
.
image
=
image
;
}
/**
* 获取:品名图片
*/
public
String
getImage
()
{
return
image
;
}
/**
* 设置:单件邮费
*/
public
void
setPostage
(
BigDecimal
postage
)
{
this
.
postage
=
postage
;
}
/**
* 获取:单件邮费
*/
public
BigDecimal
getPostage
()
{
return
postage
;
}
/**
* 设置:续件邮费
*/
public
void
setMorePostage
(
BigDecimal
morePostage
)
{
this
.
morePostage
=
morePostage
;
}
/**
* 获取:续件邮费
*/
public
BigDecimal
getMorePostage
()
{
return
morePostage
;
}
}
}
platform-admin/src/main/resources/com/platform/dao/TbCfDescripitonDao.xml
浏览文件 @
bf8eddfa
...
@@ -3,14 +3,15 @@
...
@@ -3,14 +3,15 @@
<mapper
namespace=
"com.platform.dao.TbCfDescripitonDao"
>
<mapper
namespace=
"com.platform.dao.TbCfDescripitonDao"
>
<resultMap
type=
"com.platform.entity.TbCfDescripitonEntity
Extends
"
id=
"tbCfDescripitonMap"
>
<resultMap
type=
"com.platform.entity.TbCfDescripitonEntity"
id=
"tbCfDescripitonMap"
>
<result
property=
"descripitionId"
column=
"descripition_id"
/>
<result
property=
"descripitionId"
column=
"descripition_id"
/>
<result
property=
"descripitionName"
column=
"descripition_name"
/>
<result
property=
"descripitionName"
column=
"descripition_name"
/>
<result
property=
"descripitionCode"
column=
"descripition_code"
/>
<result
property=
"descripitionCode"
column=
"descripition_code"
/>
<result
property=
"goodstypeId"
column=
"goodstype_id"
/>
<result
property=
"goodstypeId"
column=
"goodstype_id"
/>
<result
property=
"goodstwotypeId"
column=
"goodstwotype_id"
/>
<result
property=
"goodstwotypeId"
column=
"goodstwotype_id"
/>
<result
property=
"goodtype"
column=
"goodstype_title"
/>
<result
property=
"image"
column=
"image"
/>
<result
property=
"title"
column=
"goodstwotype_title"
/>
<result
property=
"postage"
column=
"postage"
/>
<result
property=
"morePostage"
column=
"more_postage"
/>
</resultMap>
</resultMap>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfDescripitonEntity"
>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfDescripitonEntity"
>
...
@@ -19,7 +20,10 @@
...
@@ -19,7 +20,10 @@
`descripition_name`,
`descripition_name`,
`descripition_code`,
`descripition_code`,
`goodstype_id`,
`goodstype_id`,
`goodstwotype_id`
`goodstwotype_id`,
`image`,
`postage`,
`more_postage`
from tb_cf_descripiton
from tb_cf_descripiton
where descripition_id = #{id}
where descripition_id = #{id}
</select>
</select>
...
@@ -29,23 +33,27 @@
...
@@ -29,23 +33,27 @@
`descripition_name`,
`descripition_name`,
`descripition_code`,
`descripition_code`,
`goodstype_id`,
`goodstype_id`,
`goodstwotype_id`
`goodstwotype_id`,
`image`,
`postage`,
`more_postage`
from tb_cf_descripiton
from tb_cf_descripiton
where goodstwotype_id = #{id}
where goodstwotype_id = #{id}
</select>
</select>
<select
id=
"queryList"
resultMap=
"tbCfDescripitonMap
"
>
<select
id=
"queryList"
resultType=
"com.platform.entity.TbCfDescripitonEntity
"
>
SELECT
select
d.descripition_id,
d.descripition_id,
d.descripition_name,
d.descripition_name,
d.descripition_code,
d.descripition_code,
d.goodstype_id,
d.goodstype_id,
d.goodstwotype_id,
d.goodstwotype_id,
t.goodstwotype_title,
d.image,
o.goodstype_title
d.postage,
FROM
d.more_postage,
tb_cf_descripiton d
o.goodstype_title type,
LEFT JOIN tb_cf_goodstwotype t ON t.goodstwotype_id = d.goodstwotype_id
t.goodstwotype_title twoType
LEFT JOIN tb_cf_goodstype o ON o.goodstype_id = t.goodstype_id
from tb_cf_descripiton d left join tb_cf_goodstype o on d.goodstype_id=o.goodstype_id left join
tb_cf_goodstwotype t on d.goodstwotype_id=t.goodstwotype_id
WHERE 1=1
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
<if
test=
"name != null and name.trim() != ''"
>
AND name LIKE concat('%',#{name},'%')
AND name LIKE concat('%',#{name},'%')
...
@@ -61,7 +69,6 @@
...
@@ -61,7 +69,6 @@
<if
test=
"offset != null and limit != null"
>
<if
test=
"offset != null and limit != null"
>
limit #{offset}, #{limit}
limit #{offset}, #{limit}
</if>
</if>
</select>
</select>
<select
id=
"queryTotal"
resultType=
"int"
>
<select
id=
"queryTotal"
resultType=
"int"
>
...
@@ -78,22 +85,31 @@
...
@@ -78,22 +85,31 @@
`descripition_name`,
`descripition_name`,
`descripition_code`,
`descripition_code`,
`goodstype_id`,
`goodstype_id`,
`goodstwotype_id`)
`goodstwotype_id`,
`image`,
`postage`,
`more_postage`)
values(
values(
#{descripitionId},
#{descripitionId},
#{descripitionName},
#{descripitionName},
#{descripitionCode},
#{descripitionCode},
#{goodstypeId},
#{goodstypeId},
#{goodstwotypeId})
#{goodstwotypeId},
#{image},
#{postage},
#{morePostage})
</insert>
</insert>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfDescripitonEntity"
>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfDescripitonEntity"
>
update tb_cf_descripiton
update tb_cf_descripiton
<set>
<set>
<if
test=
"descripitionName != null"
>
`descripition_name` = #{descripitionName},
</if>
<if
test=
"descripitionName != null"
>
`descripition_name` = #{descripitionName},
</if>
<if
test=
"descripitionCode != null"
>
`descripition_code` = #{descripitionCode},
</if>
<if
test=
"descripitionCode != null"
>
`descripition_code` = #{descripitionCode},
</if>
<if
test=
"goodstypeId != null"
>
`goodstype_id` = #{goodstypeId},
</if>
<if
test=
"goodstypeId != null"
>
`goodstype_id` = #{goodstypeId},
</if>
<if
test=
"goodstwotypeId != null"
>
`goodstwotype_id` = #{goodstwotypeId}
</if>
<if
test=
"goodstwotypeId != null"
>
`goodstwotype_id` = #{goodstwotypeId},
</if>
<if
test=
"image != null"
>
`image` = #{image},
</if>
<if
test=
"postage != null"
>
`postage` = #{postage},
</if>
<if
test=
"morePostage != null"
>
`more_postage` = #{morePostage}
</if>
</set>
</set>
where descripition_id = #{descripitionId}
where descripition_id = #{descripitionId}
</update>
</update>
...
@@ -108,5 +124,4 @@
...
@@ -108,5 +124,4 @@
#{descripitionId}
#{descripitionId}
</foreach>
</foreach>
</delete>
</delete>
</mapper>
</mapper>
\ No newline at end of file
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfdescripiton.html
浏览文件 @
bf8eddfa
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html
xmlns:v-bind=
"http://www.w3.org/1999/xhtml"
>
<head>
<head>
<title></title>
<title></title>
#parse("sys/header.html")
#parse("sys/header.html")
<style>
.ui-jqgrid
.ui-jqgrid-bdiv
{
height
:
auto
!important
;
}
.table
>
thead
>
tr
>
th
,
.table
>
tbody
>
tr
>
th
,
.table
>
tfoot
>
tr
>
th
,
.table
>
thead
>
tr
>
td
,
.table
>
tbody
>
tr
>
td
,
.table
>
tfoot
>
tr
>
td
{
border-top
:
2px
solid
#e7eaec
;
line-height
:
1.38857
;
padding
:
13px
;
vertical-align
:
middle
;
}
</style>
</head>
</head>
<body>
<body>
<div
id=
"rrapp"
v-cloak
style=
"height: calc(100% - 15px);"
>
<div
id=
"rrapp"
v-cloak
style=
"height: calc(100% - 15px);"
>
...
@@ -38,7 +27,6 @@
...
@@ -38,7 +27,6 @@
#end
#end
</div>
</div>
</Row>
</Row>
<div
id=
"speedp"
></div>
<table
id=
"jqGrid"
></table>
<table
id=
"jqGrid"
></table>
</div>
</div>
...
@@ -48,22 +36,27 @@
...
@@ -48,22 +36,27 @@
<Form-item
label=
"品名名字"
prop=
"descripitionName"
>
<Form-item
label=
"品名名字"
prop=
"descripitionName"
>
<i-input
v-model=
"tbCfDescripiton.descripitionName"
placeholder=
"品名名字"
/>
<i-input
v-model=
"tbCfDescripiton.descripitionName"
placeholder=
"品名名字"
/>
</Form-item>
</Form-item>
<Form-item
label=
"海关编码"
prop=
"descripitionCode"
>
<!--
<Form-item label="海关编码" prop="descripitionCode">
<i-input v-model="tbCfDescripiton.descripitionCode" placeholder="海关编码"/>
<i-input v-model="tbCfDescripiton.descripitionCode" placeholder="海关编码"/>
</Form-item>-->
<Form-item
label=
"一级分类Id"
prop=
"goodstypeId"
>
<i-input
v-model=
"tbCfDescripiton.goodstypeId"
placeholder=
"一级分类Id"
/>
</Form-item>
</Form-item>
<Form-item
label=
"商品一级分类"
prop=
"goodstypeId"
>
<Form-item
label=
"二级分类Id"
prop=
"goodstwotypeId"
>
<i-select
placeholder=
"请选择"
v-model=
"tbCfDescripiton.goodstypeId"
@
on-change=
"changeGoodstype"
>
<i-input
v-model=
"tbCfDescripiton.goodstwotypeId"
placeholder=
"二级分类Id"
/>
<i-option
v-for=
"(el,i) in Goodstype"
:key =
'i'
:value=
"el.goodstypeId"
>
{{el.goodstypeTitle}}
</i-option>
</i-select>
</Form-item>
</Form-item>
<Form-item
label=
"商品二级分类"
prop=
"goodstwotypeId"
>
<!--<Form-item label="品名图片" prop="image">
<i-select
placeholder=
"请选择"
v-model=
"tbCfDescripiton.goodstwotypeId"
>
<i-input v-model="tbCfDescripiton.image" placeholder="品名图片"/>
<i-option
</Form-item>-->
v-for=
"(el,i) in Goodstype2"
:key =
'i'
<Form-item
label=
"品名图片"
prop=
"image"
>
:value=
"el.goodstwotypeId"
>
{{el.goodstwotypeTitle}}
</i-option>
<img
v-bind:src=
"tbCfDescripiton.image"
style=
"width:200px;height:200px;"
v-show=
"!!tbCfDescripiton.image"
/>
</i-select>
<input
type=
"file"
placeholder=
"品名图片"
@
change=
"tirggerFile($event)"
/>
</Form-item>
<Form-item
label=
"单件邮费"
prop=
"postage"
>
<i-input
v-model=
"tbCfDescripiton.postage"
placeholder=
"单件邮费"
/>
</Form-item>
<Form-item
label=
"续件邮费"
prop=
"morePostage"
>
<i-input
v-model=
"tbCfDescripiton.morePostage"
placeholder=
"续件邮费"
/>
</Form-item>
</Form-item>
<Form-item>
<Form-item>
<i-button
type=
"primary"
@
click=
"handleSubmit('formValidate')"
>
提交
</i-button>
<i-button
type=
"primary"
@
click=
"handleSubmit('formValidate')"
>
提交
</i-button>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfgoodstype.html
浏览文件 @
bf8eddfa
...
@@ -48,12 +48,12 @@
...
@@ -48,12 +48,12 @@
<Form-item
label=
"商品分类标题"
prop=
"goodstypeTitle"
>
<Form-item
label=
"商品分类标题"
prop=
"goodstypeTitle"
>
<i-input
v-model=
"tbCfGoodstype.goodstypeTitle"
placeholder=
"商品分类标题"
/>
<i-input
v-model=
"tbCfGoodstype.goodstypeTitle"
placeholder=
"商品分类标题"
/>
</Form-item>
</Form-item>
<Form-item
label=
"
商品分类
排序编号"
prop=
"goodstypeSort"
>
<Form-item
label=
"排序编号"
prop=
"goodstypeSort"
>
<i-input
v-model=
"tbCfGoodstype.goodstypeSort"
placeholder=
"
商品分类
排序编号"
/>
<i-input
v-model=
"tbCfGoodstype.goodstypeSort"
placeholder=
"排序编号"
/>
</Form-item>
</Form-item>
<Form-item
label=
"商品分类跳转链接"
prop=
"goodstypeUrl"
>
<!--
<Form-item label="商品分类跳转链接" prop="goodstypeUrl">
<i-input v-model="tbCfGoodstype.goodstypeUrl" placeholder="商品分类跳转链接"/>
<i-input v-model="tbCfGoodstype.goodstypeUrl" placeholder="商品分类跳转链接"/>
</Form-item>
</Form-item>
-->
<Form-item>
<Form-item>
<i-button
type=
"primary"
@
click=
"handleSubmit('formValidate')"
>
提交
</i-button>
<i-button
type=
"primary"
@
click=
"handleSubmit('formValidate')"
>
提交
</i-button>
<i-button
type=
"warning"
@
click=
"reload"
style=
"margin-left: 8px"
/>
返回
</i-button>
<i-button
type=
"warning"
@
click=
"reload"
style=
"margin-left: 8px"
/>
返回
</i-button>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfplatform.html
浏览文件 @
bf8eddfa
...
@@ -4,9 +4,10 @@
...
@@ -4,9 +4,10 @@
<title>
平台管理
</title>
<title>
平台管理
</title>
#parse("sys/header.html")
#parse("sys/header.html")
<style>
<style>
.ui-jqgrid
.ui-jqgrid-bdiv
{
.ui-jqgrid
.ui-jqgrid-bdiv
{
height
:
auto
!important
;
height
:
auto
!important
;
}
}
.table
>
thead
>
tr
>
th
,
.table
>
tbody
>
tr
>
th
,
.table
>
tfoot
>
tr
>
th
,
.table
>
thead
>
tr
>
td
,
.table
>
tbody
>
tr
>
td
,
.table
>
tfoot
>
tr
>
td
{
.table
>
thead
>
tr
>
th
,
.table
>
tbody
>
tr
>
th
,
.table
>
tfoot
>
tr
>
th
,
.table
>
thead
>
tr
>
td
,
.table
>
tbody
>
tr
>
td
,
.table
>
tfoot
>
tr
>
td
{
border-top
:
2px
solid
#e7eaec
;
border-top
:
2px
solid
#e7eaec
;
line-height
:
1.38857
;
line-height
:
1.38857
;
...
@@ -60,7 +61,8 @@
...
@@ -60,7 +61,8 @@
<i-input v-model="tbCfPlatform.platformImg" placeholder="平台图片"/>
<i-input v-model="tbCfPlatform.platformImg" placeholder="平台图片"/>
</Form-item>-->
</Form-item>-->
<Form-item
label=
"主营商品图片"
prop=
"platformImg"
>
<Form-item
label=
"主营商品图片"
prop=
"platformImg"
>
<img
v-bind:src=
"tbCfPlatform.platformImg"
style=
"width:200px;height:200px;"
v-show=
"!!tbCfPlatform.platformImg"
/>
<img
v-bind:src=
"tbCfPlatform.platformImg"
style=
"width:200px;height:200px;"
v-show=
"!!tbCfPlatform.platformImg"
/>
<input
type=
"file"
placeholder=
"主营商品图片"
@
change=
"tirggerFile($event)"
/>
<input
type=
"file"
placeholder=
"主营商品图片"
@
change=
"tirggerFile($event)"
/>
</Form-item>
</Form-item>
<Form-item
label=
"启用状态"
prop=
"enableFlag"
>
<Form-item
label=
"启用状态"
prop=
"enableFlag"
>
...
@@ -74,7 +76,8 @@
...
@@ -74,7 +76,8 @@
</Form-item>-->
</Form-item>-->
<Form-item>
<Form-item>
<i-button
type=
"primary"
@
click=
"handleSubmit('formValidate')"
>
提交
</i-button>
<i-button
type=
"primary"
@
click=
"handleSubmit('formValidate')"
>
提交
</i-button>
<i-button
type=
"warning"
@
click=
"reload"
style=
"margin-left: 8px"
/>
返回
</i-button>
<i-button
type=
"warning"
@
click=
"reload"
style=
"margin-left: 8px"
/>
返回
</i-button>
<i-button
type=
"ghost"
@
click=
"handleReset('formValidate')"
style=
"margin-left: 8px"
>
重置
</i-button>
<i-button
type=
"ghost"
@
click=
"handleReset('formValidate')"
style=
"margin-left: 8px"
>
重置
</i-button>
</Form-item>
</Form-item>
</i-form>
</i-form>
...
...
platform-admin/src/main/webapp/js/sys/tbcfdescripiton.js
浏览文件 @
bf8eddfa
...
@@ -3,22 +3,13 @@ $(function () {
...
@@ -3,22 +3,13 @@ $(function () {
url
:
'../tbcfdescripiton/list'
,
url
:
'../tbcfdescripiton/list'
,
colModel
:
[
colModel
:
[
{
label
:
'descripitionId'
,
name
:
'descripitionId'
,
index
:
'descripition_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'descripitionId'
,
name
:
'descripitionId'
,
index
:
'descripition_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'商品品名'
,
name
:
'descripitionName'
,
index
:
'descripition_name'
,
width
:
80
},
{
label
:
'品名图片'
,
name
:
'image'
,
index
:
'image'
,
width
:
80
,
formatter
:
imageFormat
},
{
label
:
'海关编码'
,
name
:
'descripitionCode'
,
index
:
'descripition_code'
,
width
:
80
},
{
label
:
'品名名字'
,
name
:
'descripitionName'
,
index
:
'descripition_name'
,
width
:
80
},
{
label
:
'商品一级分类标题'
,
name
:
'goodtype'
,
index
:
'goodtype'
,
width
:
80
},
/*{label: '海关编码', name: 'descripitionCode', index: 'descripition_code', width: 80},*/
{
label
:
'商品二级分类标题'
,
name
:
'title'
,
index
:
'title'
,
width
:
80
}],
{
label
:
'商品一级分类'
,
name
:
'type'
,
index
:
'type'
,
width
:
80
},
shrinkToFit
:
true
,
{
label
:
'商品二级分类'
,
name
:
'twoType'
,
index
:
'twoType'
,
width
:
80
},
datatype
:
"json"
,
{
label
:
'单件邮费'
,
name
:
'postage'
,
index
:
'postage'
,
width
:
80
},
rowNum
:
15
,
{
label
:
'续件邮费'
,
name
:
'morePostage'
,
index
:
'more_postage'
,
width
:
80
}]
rowList
:[
15
,
30
,
45
],
mtype
:
"POST"
,
rownumbers
:
true
,
rownumWidth
:
40
,
gridview
:
true
,
pager
:
'#speedp'
,
sortname
:
'descripition_id'
,
viewrecords
:
true
,
sortorder
:
"desc"
});
});
});
});
...
@@ -28,9 +19,6 @@ let vm = new Vue({
...
@@ -28,9 +19,6 @@ let vm = new Vue({
showList
:
true
,
showList
:
true
,
title
:
null
,
title
:
null
,
tbCfDescripiton
:
{},
tbCfDescripiton
:
{},
Goodstype2
:
null
,
Goodstype
:
null
,
GoodstypeTwo
:
null
,
ruleValidate
:
{
ruleValidate
:
{
name
:
[
name
:
[
{
required
:
true
,
message
:
'名称不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'名称不能为空'
,
trigger
:
'blur'
}
...
@@ -41,23 +29,6 @@ let vm = new Vue({
...
@@ -41,23 +29,6 @@ let vm = new Vue({
}
}
},
},
methods
:
{
methods
:
{
changeGoodstype
(){
let
url
=
`/africa_shop/tbcfdescripiton/queryByItemType?typeId=
${
this
.
tbCfDescripiton
.
goodstypeId
}
`
console
.
log
(
'url'
,
url
)
let
that
=
this
;
Ajax
.
request
({
url
:
url
,
type
:
"get"
,
contentType
:
"application/json"
,
successCallback
:
function
(
r
)
{
console
.
log
(
'res'
,
r
)
if
(
r
.
code
===
0
){
that
.
Goodstype2
=
r
.
list
console
.
log
(
that
.
Goodstype2
)
}
}
});
},
query
:
function
()
{
query
:
function
()
{
vm
.
reload
();
vm
.
reload
();
},
},
...
@@ -92,7 +63,7 @@ let vm = new Vue({
...
@@ -92,7 +63,7 @@ let vm = new Vue({
},
},
del
:
function
(
event
)
{
del
:
function
(
event
)
{
let
descripitionIds
=
getSelectedRows
(
"#jqGrid"
);
let
descripitionIds
=
getSelectedRows
(
"#jqGrid"
);
if
(
descripitionIds
==
null
)
{
if
(
descripitionIds
==
null
)
{
return
;
return
;
}
}
...
@@ -110,9 +81,9 @@ let vm = new Vue({
...
@@ -110,9 +81,9 @@ let vm = new Vue({
});
});
});
});
},
},
getInfo
:
function
(
descripitionId
)
{
getInfo
:
function
(
descripitionId
)
{
Ajax
.
request
({
Ajax
.
request
({
url
:
"../tbcfdescripiton/info/"
+
descripitionId
,
url
:
"../tbcfdescripiton/info/"
+
descripitionId
,
async
:
true
,
async
:
true
,
successCallback
:
function
(
r
)
{
successCallback
:
function
(
r
)
{
vm
.
tbCfDescripiton
=
r
.
tbCfDescripiton
;
vm
.
tbCfDescripiton
=
r
.
tbCfDescripiton
;
...
@@ -128,7 +99,7 @@ let vm = new Vue({
...
@@ -128,7 +99,7 @@ let vm = new Vue({
}).
trigger
(
"reloadGrid"
);
}).
trigger
(
"reloadGrid"
);
vm
.
handleReset
(
'formValidate'
);
vm
.
handleReset
(
'formValidate'
);
},
},
reloadSearch
:
function
()
{
reloadSearch
:
function
()
{
vm
.
q
=
{
vm
.
q
=
{
name
:
''
name
:
''
};
};
...
@@ -141,20 +112,29 @@ let vm = new Vue({
...
@@ -141,20 +112,29 @@ let vm = new Vue({
},
},
handleReset
:
function
(
name
)
{
handleReset
:
function
(
name
)
{
handleResetForm
(
this
,
name
);
handleResetForm
(
this
,
name
);
}
},
},
created
()
{
tirggerFile
:
function
(
event
)
{
var
that
=
this
var
file
=
event
.
target
.
files
[
0
];
$
.
get
(
'../tbcfgoodstype/queryAll'
,
function
(
res
)
{
var
formData
=
new
FormData
();
// console.log(that,"this");
formData
.
append
(
"file"
,
file
);
that
.
Goodstype
=
res
.
list
;
$
.
ajax
({
// console.log(that.Goodstype);
url
:
"../api/upload/image/"
,
});
type
:
"POST"
,
$
.
get
(
'../tbcfgoodstwotype/queryAll'
,
function
(
res
)
{
data
:
formData
,
// console.log(that,"this");
cache
:
false
,
//不设置缓存
that
.
GoodstypeTwo
=
res
.
list
;
processData
:
false
,
// 不处理数据
contentType
:
false
,
// 不设置内容类型
// console.log(res);
success
:
function
(
result
)
{
result
=
JSON
.
parse
(
result
);
//console.log(result)
if
(
result
.
errno
==
0
)
{
//成功
vm
.
tbCfDescripiton
.
image
=
result
.
data
;
vm
.
$forceUpdate
();
}
else
{
iview
.
Message
.
error
(
result
.
errmsg
);
}
}
});
});
}
}
}
});
});
\ No newline at end of file
platform-admin/src/main/webapp/js/sys/tbcfgoodstwotype.js
浏览文件 @
bf8eddfa
...
@@ -3,8 +3,8 @@ $(function () {
...
@@ -3,8 +3,8 @@ $(function () {
url
:
'../tbcfgoodstwotype/list'
,
url
:
'../tbcfgoodstwotype/list'
,
colModel
:
[
colModel
:
[
{
label
:
'商品二级分类Id'
,
name
:
'goodstwotypeId'
,
index
:
'goodstwotype_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'商品二级分类Id'
,
name
:
'goodstwotypeId'
,
index
:
'goodstwotype_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'商品一级分类
标题
'
,
name
:
'goodstypeTitle'
,
index
:
'goodstype_title'
,
width
:
80
},
{
label
:
'商品一级分类'
,
name
:
'goodstypeTitle'
,
index
:
'goodstype_title'
,
width
:
80
},
{
label
:
'商品二级分类
标题
'
,
name
:
'goodstwotypeTitle'
,
index
:
'goodstwotype_title'
,
width
:
80
}],
{
label
:
'商品二级分类'
,
name
:
'goodstwotypeTitle'
,
index
:
'goodstwotype_title'
,
width
:
80
}],
shrinkToFit
:
true
,
shrinkToFit
:
true
,
datatype
:
"json"
,
datatype
:
"json"
,
rowNum
:
15
,
rowNum
:
15
,
...
...
platform-admin/src/main/webapp/js/sys/tbcfgoodstype.js
浏览文件 @
bf8eddfa
...
@@ -3,9 +3,9 @@ $(function () {
...
@@ -3,9 +3,9 @@ $(function () {
url
:
'../tbcfgoodstype/list'
,
url
:
'../tbcfgoodstype/list'
,
colModel
:
[
colModel
:
[
{
label
:
'goodstypeId'
,
name
:
'goodstypeId'
,
index
:
'goodstype_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'goodstypeId'
,
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
:
'goodstypeTitle'
,
index
:
'goodstype_title'
,
width
:
80
},
{
label
:
'
排序编号'
,
name
:
'goodstypeSort'
,
index
:
'goodstype_sort'
,
width
:
80
}
{
label
:
'商品分类跳转链接'
,
name
:
'goodstypeUrl'
,
index
:
'goodstype_url'
,
width
:
80
}
],
/*{label: '商品分类跳转链接', name: 'goodstypeUrl', index: 'goodstype_url', width: 80}*/
],
shrinkToFit
:
true
,
shrinkToFit
:
true
,
datatype
:
"json"
,
datatype
:
"json"
,
rowNum
:
15
,
rowNum
:
15
,
...
...
platform-admin/src/main/webapp/js/sys/tbcfstationitem.js
浏览文件 @
bf8eddfa
...
@@ -14,8 +14,8 @@ $(function () {
...
@@ -14,8 +14,8 @@ $(function () {
{
label
:
'点击量'
,
name
:
'itemNum'
,
index
:
'item_num'
,
width
:
45
},
{
label
:
'点击量'
,
name
:
'itemNum'
,
index
:
'item_num'
,
width
:
45
},
/*{label: '所属平台', name: 'platformCode', index: 'platform_code', width: 80},
/*{label: '所属平台', name: 'platformCode', index: 'platform_code', width: 80},
{label: '平台名', name: 'platformName', index: 'platform_name', width: 80},*/
{label: '平台名', name: 'platformName', index: 'platform_name', width: 80},*/
{
label
:
'一级分类'
,
name
:
'goodtype'
,
index
:
'goodtype'
,
width
:
80
},
{
label
:
'
商品
一级分类'
,
name
:
'goodtype'
,
index
:
'goodtype'
,
width
:
80
},
{
label
:
'二级分类'
,
name
:
'title'
,
index
:
'title'
,
width
:
80
},
{
label
:
'
商品
二级分类'
,
name
:
'title'
,
index
:
'title'
,
width
:
80
},
{
label
:
'商品品名'
,
name
:
'dname'
,
index
:
'itemDescritionId'
,
width
:
80
},
{
label
:
'商品品名'
,
name
:
'dname'
,
index
:
'itemDescritionId'
,
width
:
80
},
{
label
:
'状态'
,
name
:
'enableFlag'
,
index
:
'enable_flag'
,
width
:
60
,
formatter
:
itemStatusFormat
},
{
label
:
'状态'
,
name
:
'enableFlag'
,
index
:
'enable_flag'
,
width
:
60
,
formatter
:
itemStatusFormat
},
{
label
:
'创建日期'
,
name
:
'createTime'
,
index
:
'create_time'
,
width
:
80
}
{
label
:
'创建日期'
,
name
:
'createTime'
,
index
:
'create_time'
,
width
:
80
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论