Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
401386c2
提交
401386c2
authored
1月 14, 2020
作者:
zgy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改商品品名bug
上级
ea327de5
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
57 行增加
和
13 行删除
+57
-13
tbcfdescripiton.html
...min/src/main/webapp/WEB-INF/page/sys/tbcfdescripiton.html
+29
-13
tbcfdescripiton.js
platform-admin/src/main/webapp/js/sys/tbcfdescripiton.js
+28
-0
没有找到文件。
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfdescripiton.html
浏览文件 @
401386c2
...
...
@@ -6,7 +6,7 @@
</head>
<body>
<div
id=
"rrapp"
v-cloak
style=
"height: calc(100% - 15px);"
>
<div
v-show=
"showList"
style=
"height: 100%;"
>
<div
v-show=
"showList"
style=
"height: 100%;"
>
<Row
:gutter=
"16"
>
<div
class=
"search-group"
>
<i-col
span=
"4"
>
...
...
@@ -27,29 +27,44 @@
#end
</div>
</Row>
<table
id=
"jqGrid"
></table>
<table
id=
"jqGrid"
></table>
</div>
<Card
v-show=
"!showList"
>
<p
slot=
"title"
>
{{title}}
</p>
<i-form
ref=
"formValidate"
:model=
"tbCfDescripiton"
:rules=
"ruleValidate"
:label-width=
"80"
>
<i-form
ref=
"formValidate"
:model=
"tbCfDescripiton"
:rules=
"ruleValidate"
:label-width=
"80"
>
<Form-item
label=
"品名名字"
prop=
"descripitionName"
>
<i-input
v-model=
"tbCfDescripiton.descripitionName"
placeholder=
"品名名字"
/>
</Form-item>
<!-- <Form-item label="海关编码" prop="descripitionCode">
<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 label="海关编码" prop="descripitionCode">
<i-input v-model="tbCfDescripiton.descripitionCode" placeholder="海关编码"/>
</Form-item>-->
<!-- <Form-item label="一级分类" prop="goodstypeId">
<i-input v-model="tbCfDescripiton.goodstypeId" placeholder="一级分类"/>
</Form-item>
<Form-item label="二级分类" prop="goodstwotypeId">
<i-input v-model="tbCfDescripiton.goodstwotypeId" placeholder="二级分类"/>
</Form-item>-->
<Form-item
label=
"商品一级分类"
prop=
"goodstypeId"
>
<i-select
placeholder=
"请选择"
v-model=
"tbCfDescripiton.goodstypeId"
@
on-change=
"changeGoodstype"
>
<i-option
v-for=
"(el,i) in Goodstype"
:key=
'i'
:value=
"el.goodstypeId"
>
{{el.goodstypeTitle}}
</i-option>
</i-select>
</Form-item>
<Form-item
label=
"二级分类Id"
prop=
"goodstwotypeId"
>
<i-input
v-model=
"tbCfDescripiton.goodstwotypeId"
placeholder=
"二级分类Id"
/>
<Form-item
label=
"商品二级分类"
prop=
"goodstwotypeId"
>
<i-select
placeholder=
"请选择"
v-model=
"tbCfDescripiton.goodstwotypeId"
@
on-change=
"changeGoodstype2"
>
<i-option
v-for=
"(el,i) in Goodstype2"
:key=
'i'
:value=
"el.goodstwotypeId"
>
{{el.goodstwotypeTitle}}
</i-option>
</i-select>
</Form-item>
<!--<Form-item label="品名图片" prop="image">
<i-input v-model="tbCfDescripiton.image" placeholder="品名图片"/>
</Form-item>-->
<Form-item
label=
"品名图片"
prop=
"image"
>
<img
v-bind:src=
"tbCfDescripiton.image"
style=
"width:200px;height:200px;"
v-show=
"!!tbCfDescripiton.image"
/>
<img
v-bind:src=
"tbCfDescripiton.image"
v-show=
"!!tbCfDescripiton.image"
/>
<input
type=
"file"
placeholder=
"品名图片"
@
change=
"tirggerFile($event)"
/>
</Form-item>
<Form-item
label=
"单件邮费"
prop=
"postage"
>
...
...
@@ -60,11 +75,12 @@
</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>
<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>
</Form-item>
</i-form>
</Card>
</Card>
</div>
<script
src=
"${rc.contextPath}/js/sys/tbcfdescripiton.js?_${date.systemTime}"
></script>
...
...
platform-admin/src/main/webapp/js/sys/tbcfdescripiton.js
浏览文件 @
401386c2
...
...
@@ -16,8 +16,11 @@ $(function () {
let
vm
=
new
Vue
({
el
:
'#rrapp'
,
data
:
{
Goodstype
:
null
,
Goodstype2
:
null
,
showList
:
true
,
title
:
null
,
changeGoodstype2
:
null
,
tbCfDescripiton
:
{},
ruleValidate
:
{
name
:
[
...
...
@@ -29,6 +32,25 @@ let vm = new Vue({
}
},
methods
:
{
//获取二级分类
changeGoodstype
()
{
let
url
=
"../tbcfstationitem/queryByItemType?typeId="
+
this
.
tbCfDescripiton
.
goodstypeId
;
// console.log('url',url)
let
that
=
this
;
Ajax
.
request
({
url
:
url
,
type
:
"get"
,
contentType
:
"application/json"
,
successCallback
:
function
(
r
)
{
if
(
r
.
code
===
0
)
{
that
.
Goodstype2
=
r
.
list
if
(
r
.
list
.
length
===
0
)
{
that
.
tbCfStationItem
.
itemCategorytwo
=
null
}
}
}
});
},
query
:
function
()
{
vm
.
reload
();
},
...
...
@@ -136,5 +158,11 @@ let vm = new Vue({
}
});
}
},
created
()
{
$
.
get
(
'../tbcfgoodstype/queryAll'
,
res
=>
{
this
.
Goodstype
=
res
.
list
;
console
.
log
(
'一级分类'
,
this
.
Goodstype
)
})
}
});
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论