Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
5d09678f
提交
5d09678f
authored
12月 21, 2020
作者:
潘鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
activity
上级
3aa74571
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
83 行增加
和
26 行删除
+83
-26
attributes.html
...rm-admin/src/main/webapp/WEB-INF/page/sys/attributes.html
+22
-6
tbcfstationitem.html
...min/src/main/webapp/WEB-INF/page/sys/tbcfstationitem.html
+28
-16
attributes.js
platform-admin/src/main/webapp/js/sys/attributes.js
+9
-3
tbcfstationitem.js
platform-admin/src/main/webapp/js/sys/tbcfstationitem.js
+24
-1
没有找到文件。
platform-admin/src/main/webapp/WEB-INF/page/sys/attributes.html
浏览文件 @
5d09678f
...
...
@@ -39,15 +39,31 @@
<Form-item
label=
"属性描述"
prop=
"attrDesc"
>
<i-input
v-model=
"attributes.attrDesc"
placeholder=
"属性描述"
/>
</Form-item>
<Form-item
label=
"状态 0:删除 1:正常"
prop=
"status"
>
<i-input
v-model=
"attributes.status"
placeholder=
"状态 0:删除 1:正常"
/>
<Form-item
label=
"是否开启"
prop=
"status"
>
<!-- <i-input v-model="attributes.status" placeholder="状态 0:删除 1:正常"/>-->
<Radio-group
v-model=
"attributes.status"
>
<Radio
label=
"1"
>
<span>
开启
</span>
</Radio>
<Radio
label=
"0"
>
<span>
关闭
</span>
</Radio>
</Radio-group>
</Form-item>
<Form-item
label=
"创建时间"
prop=
"createTime"
>
<i-input
v-model=
"attributes.createTime"
placeholder=
"创建时间"
/>
<Form-item
label=
"是否必填"
prop=
"updateTime"
>
<Radio-group
v-model=
"attributes.isNeed"
>
<Radio
label=
"1"
>
<span>
开启
</span>
</Radio>
<Radio
label=
"0"
>
<span>
关闭
</span>
</Radio>
</Radio-group>
</Form-item>
<Form-item
label=
"
更新时间"
prop=
"updateTime
"
>
<i-input
v-model=
"attributes.
updateTime"
placeholder=
"更新时间
"
/>
<Form-item
label=
"
排序"
prop=
"sort
"
>
<i-input
v-model=
"attributes.
sort"
placeholder=
"排序
"
/>
</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>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfstationitem.html
浏览文件 @
5d09678f
<!DOCTYPE html>
<html
xmlns:v-bind=
"http://www.w3.org/1999/xhtml"
>
<link
rel=
"stylesheet"
href=
"https://unpkg.com/element-ui/lib/theme-chalk/index.css"
>
<head>
<title>
站点商品
</title>
#parse("sys/header.html")
...
...
@@ -98,6 +99,7 @@
display
:
flex
;
justify-content
:
start
;
margin-bottom
:
10px
;
}
.container
.prev-li
img
{
...
...
@@ -876,7 +878,6 @@
</div>
</Upload>
</div>
</div>
</div>
...
...
@@ -1028,28 +1029,38 @@
<!-- <i-button style="margin-left:10px;" type="primary" @click='save'>保存</i-button>-->
</section>
</Card>
<Card
class=
"container"
style=
"margin-top:20px;"
>
<Card
class=
"container"
style=
"margin-top:20px;
width: 1000px
"
>
<section
class=
"form-wrapper"
>
<h4>
商品参数
</h4>
<transition-group
tag=
"ul"
name=
"slide"
>
<li
class=
"prev-li"
v-for=
"(item,index) in paramster"
:key=
"index"
style=
"margin-bottom: 0;"
>
<div>
<i-input
v-model=
"item.paramName"
size=
"small"
type=
"text"
placeholder=
"参数名称"
/>
</div>
<li
class=
"prev-li"
v-for=
"(item,index) in paramster"
:key=
"index"
style=
"margin-bottom: 0;width: 415px;float: left"
>
<div>
<i-input
v-model=
"item.paramValue"
size=
"small"
type=
"text"
placeholder=
"参数值"
/>
<!-- <i-input v-model="item.paramName" size="small" type="text" placeholder="参数名称"/>-->
<span
:style=
"`width:100px;line-height: 40px;text-align: center;height: 40px;`"
>
{{item.paramName}}
</span>
</div>
<i-button
class=
"prev-del paramster-del"
type=
"warning"
@
click=
"delParamster(index)"
>
删除
</i-button>
<!-- <div>-->
<!-- <i-input v-model="item.paramValue" size="small" type="text" placeholder="参数值"/>-->
<el-select
v-model=
"value1"
multiple
placeholder=
"参数值"
:style=
"`width: 300px;`"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
<!-- </div>-->
<!-- <i-button class="prev-del paramster-del" type="warning" @click="delParamster(index)">删除-->
<!-- </i-button>-->
</li>
</transition-group>
<i-button
size=
"small"
style=
"margin-left:15px;margin-bottom:10px;margin-top:10px;"
type=
"success"
@
click=
"addProductParams()"
>
新增参数
</i-button
>
<!-- <i-button-->
<!-- size="small"-->
<!-- style="margin-left:15px;margin-bottom:10px;margin-top:10px;"-->
<!-- type="success"-->
<!-- @click="addProductParams()"-->
<!-- >新增参数-->
<!-- </i-button>--
>
</section>
</Card>
<!-- 删除警告 -->
...
...
@@ -1094,6 +1105,7 @@
<p>
还未保存,是否退出?
</p>
</Modal>
</Card>
<script
src=
"https://unpkg.com/element-ui/lib/index.js"
></script>
<script
src=
"${rc.contextPath}/js/plugins/Sortable.min.js"
></script>
<script
src=
"${rc.contextPath}/statics/libs/iview.js"
></script>
<script
src=
"${rc.contextPath}/js/sys/tbcfstationitem.js?_${date.systemTime}"
></script>
...
...
platform-admin/src/main/webapp/js/sys/attributes.js
浏览文件 @
5d09678f
...
...
@@ -5,9 +5,12 @@ $(function () {
{
label
:
'id'
,
name
:
'id'
,
index
:
'id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'属性名'
,
name
:
'attrName'
,
index
:
'attr_name'
,
width
:
80
},
{
label
:
'属性描述'
,
name
:
'attrDesc'
,
index
:
'attr_desc'
,
width
:
80
},
{
label
:
'状态 0:删除 1:正常'
,
name
:
'status'
,
index
:
'status'
,
width
:
80
},
{
label
:
'创建时间'
,
name
:
'createTime'
,
index
:
'create_time'
,
width
:
80
},
{
label
:
'更新时间'
,
name
:
'updateTime'
,
index
:
'update_time'
,
width
:
80
}]
{
label
:
'是否开启'
,
name
:
'status'
,
index
:
'status'
,
width
:
80
},
{
label
:
'是否必填'
,
name
:
'isNeed'
,
index
:
'isNeed'
,
width
:
80
},
{
label
:
'排序'
,
name
:
'sort'
,
index
:
'sort'
,
width
:
80
},
// {label: '创建时间', name: 'createTime', index: 'create_time', width: 80},
// {label: '更新时间', name: 'updateTime', index: 'update_time', width: 80}
]
});
});
...
...
@@ -47,6 +50,9 @@ let vm = new Vue({
},
saveOrUpdate
:
function
(
event
)
{
let
url
=
vm
.
attributes
.
id
==
null
?
"../attributes/save"
:
"../attributes/update"
;
console
.
log
(
vm
.
attributes
)
vm
.
attributes
.
sort
=
parseInt
(
vm
.
attributes
.
sort
)
vm
.
attributes
.
isNeed
=
true
Ajax
.
request
({
url
:
url
,
params
:
JSON
.
stringify
(
vm
.
attributes
),
...
...
platform-admin/src/main/webapp/js/sys/tbcfstationitem.js
浏览文件 @
5d09678f
...
...
@@ -141,6 +141,25 @@ let vm = new Vue({
// 细粒度价格控制,
handleProductAttr_Batch
:
[],
//商品参数
options
:
[{
value
:
'选项1'
,
label
:
'黄金糕'
},
{
value
:
'选项2'
,
label
:
'双皮奶'
},
{
value
:
'选项3'
,
label
:
'蚵仔煎'
},
{
value
:
'选项4'
,
label
:
'龙须面'
},
{
value
:
'选项5'
,
label
:
'北京烤鸭'
}],
value1
:
[],
},
methods
:
{
delSku
(
id
,
i
)
{
...
...
@@ -1193,7 +1212,11 @@ let vm = new Vue({
},
0
)
}
this
.
reload
();
}
},
//商品参数
},
created
()
{
this
.
getTagsData
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论