Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yongxinda-admin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
yongxinda-admin
Commits
cfde2396
提交
cfde2396
authored
11月 21, 2022
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
64f18f19
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
83 行增加
和
113 行删除
+83
-113
config.ts
src/services/api/config.ts
+2
-2
mainConfig.vue
src/views/commodityManage/components/mainConfig.vue
+2
-2
edit.vue
src/views/commodityManage/edit.vue
+3
-3
list.vue
src/views/commodityManage/list.vue
+55
-56
shelves.vue
src/views/commodityManage/shelves.vue
+9
-30
category.vue
src/views/marketManage/category.vue
+2
-2
order.vue
src/views/marketManage/order.vue
+3
-11
topic.vue
src/views/promotion/topic.vue
+1
-1
topicCreate.vue
src/views/promotion/topicCreate.vue
+2
-2
topicEdit.vue
src/views/promotion/topicEdit.vue
+2
-2
vite.config.ts
vite.config.ts
+2
-2
没有找到文件。
src/services/api/config.ts
浏览文件 @
cfde2396
...
@@ -13,7 +13,7 @@ service.interceptors.request.use(
...
@@ -13,7 +13,7 @@ service.interceptors.request.use(
config
=>
{
config
=>
{
const
token
=
sessionStorage
.
getItem
(
'token'
)
const
token
=
sessionStorage
.
getItem
(
'token'
)
if
(
token
)
{
if
(
token
)
{
config
.
headers
=
{
'Authorization'
:
`
${
token
}
`
,
...
config
.
headers
}
config
.
headers
=
{
'Authorization'
:
`
${
token
}
`
,
...
config
.
headers
}
}
}
return
config
return
config
}
}
...
@@ -25,7 +25,7 @@ service.interceptors.response.use(
...
@@ -25,7 +25,7 @@ service.interceptors.response.use(
// 数据请求成功后 相应操作
// 数据请求成功后 相应操作
const
responseData
=
res
.
data
const
responseData
=
res
.
data
if
(
responseData
.
code
!==
200
)
{
if
(
responseData
.
code
!==
200
)
{
ElMessage
.
error
(
responseData
.
m
essage
)
ElMessage
.
error
(
responseData
.
m
sg
)
}
}
return
responseData
return
responseData
},
},
...
...
src/views/commodityManage/components/mainConfig.vue
浏览文件 @
cfde2396
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
<el-button
type=
"primary"
size=
"small"
@
click=
"handlemainConfigShow"
>
添加
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"handlemainConfigShow"
>
添加
</el-button>
</div>
</div>
<el-table
:data=
"mainConfigurationsData.mainConfigurationsList"
border
>
<el-table
:data=
"mainConfigurationsData.mainConfigurationsList"
border
>
<el-table-column
prop
erty
=
"name"
label=
"名称"
/>
<el-table-column
prop=
"name"
label=
"名称"
/>
<el-table-column
prop
erty
=
"brand"
label=
"品牌"
/>
<el-table-column
prop=
"brand"
label=
"品牌"
/>
<el-table-column
align=
"center"
label=
"操作"
width=
"100"
class-name=
"small-padding fixed-width"
>
<el-table-column
align=
"center"
label=
"操作"
width=
"100"
class-name=
"small-padding fixed-width"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
<el-button
type=
"warning"
size=
"small"
@
click=
"handlemainConfigDelete(scope.row)"
>
删除
<el-button
type=
"warning"
size=
"small"
@
click=
"handlemainConfigDelete(scope.row)"
>
删除
...
...
src/views/commodityManage/edit.vue
浏览文件 @
cfde2396
...
@@ -122,15 +122,15 @@
...
@@ -122,15 +122,15 @@
</el-row>
</el-row>
<el-table
:data=
"specifications"
>
<el-table
:data=
"specifications"
>
<el-table-column
prop
erty
=
"specification"
label=
"规格名"
/>
<el-table-column
prop=
"specification"
label=
"规格名"
/>
<el-table-column
prop
erty
=
"value"
label=
"规格值"
align=
"center"
>
<el-table-column
prop=
"value"
label=
"规格值"
align=
"center"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-tag
type=
"primary"
>
<el-tag
type=
"primary"
>
{{
scope
.
row
.
value
}}
{{
scope
.
row
.
value
}}
</el-tag>
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop
erty
=
"customSpec"
label=
"自定义规格"
align=
"center"
>
<el-table-column
prop=
"customSpec"
label=
"自定义规格"
align=
"center"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-tag
v-if=
"scope.row.customSpec"
type=
"primary"
>
<el-tag
v-if=
"scope.row.customSpec"
type=
"primary"
>
{{
scope
.
row
.
customSpec
}}
{{
scope
.
row
.
customSpec
}}
...
...
src/views/commodityManage/list.vue
浏览文件 @
cfde2396
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table
v-loading=
"listLoading"
:data=
"list"
element-loading-text=
"正在查询中。。。"
border
fit
highlight-current-row
>
<el-table-column
type=
"expand"
>
<el-table-column
type=
"expand"
>
<template
#
default=
"props"
>
<template
#
default=
"props"
>
<el-form
label-position=
"left"
style=
"padding-left: 3%
;
"
>
<el-form
label-position=
"left"
style=
"padding-left: 3%"
>
<el-form-item
label=
"商品编号"
>
<el-form-item
label=
"商品编号"
>
<span>
{{
props
.
row
.
goodsSn
}}
</span>
<span>
{{
props
.
row
.
goodsSn
}}
</span>
</el-form-item>
</el-form-item>
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<el-table-column
align=
"center"
min-width=
"100"
label=
"名称"
prop=
"name"
/>
<el-table-column
align=
"center"
min-width=
"100"
label=
"名称"
prop=
"name"
/>
<el-table-column
align=
"center"
prop
erty
=
"iconUrl"
label=
"图片"
>
<el-table-column
align=
"center"
prop=
"iconUrl"
label=
"图片"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-image
v-if=
"scope.row.picUrl.split('http').length > 1"
:src=
"scope.row.picUrl"
<el-image
v-if=
"scope.row.picUrl.split('http').length > 1"
:src=
"scope.row.picUrl"
style=
"width: 40px; height: 40px"
></el-image>
style=
"width: 40px; height: 40px"
></el-image>
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop
erty
=
"iconUrl"
label=
"分享图"
>
<el-table-column
align=
"center"
prop=
"iconUrl"
label=
"分享图"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<img
:src=
"scope.row.shareUrl"
width=
"40"
/>
<img
:src=
"scope.row.shareUrl"
width=
"40"
/>
</
template
>
</
template
>
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<el-table-column
align=
"center"
label=
"是否新品"
prop=
"isNew"
>
<el-table-column
align=
"center"
label=
"是否新品"
prop=
"isNew"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-tag
:type=
"scope.row.isNew ? 'success' : 'error'"
>
{{
<el-tag
:type=
"scope.row.isNew ? 'success' : 'error'"
>
{{
scope
.
row
.
isNew
?
"新品"
:
"非新品"
scope
.
row
.
isNew
?
'新品'
:
'非新品'
}}
</el-tag>
}}
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
<el-table-column
align=
"center"
label=
"是否热品"
prop=
"isHot"
>
<el-table-column
align=
"center"
label=
"是否热品"
prop=
"isHot"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-tag
:type=
"scope.row.isHot ? 'success' : 'error'"
>
{{
<el-tag
:type=
"scope.row.isHot ? 'success' : 'error'"
>
{{
scope
.
row
.
isHot
?
"热品"
:
"非热品"
scope
.
row
.
isHot
?
'热品'
:
'非热品'
}}
</el-tag>
}}
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
<el-table-column
align=
"center"
label=
"是否在售"
prop=
"isOnSale"
>
<el-table-column
align=
"center"
label=
"是否在售"
prop=
"isOnSale"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-tag
:type=
"scope.row.isOnSale ? 'success' : 'error'"
>
{{
<el-tag
:type=
"scope.row.isOnSale ? 'success' : 'error'"
>
{{
scope
.
row
.
isOnSale
?
"在售"
:
"未售"
scope
.
row
.
isOnSale
?
'在售'
:
'未售'
}}
</el-tag>
}}
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -119,50 +119,50 @@
...
@@ -119,50 +119,50 @@
</template>
</template>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
ref
}
from
"vue"
;
import
{
ref
}
from
'vue'
import
{
ElMessage
,
ElMessageBox
,
ElNotification
}
from
"element-plus"
;
import
{
ElMessage
,
ElMessageBox
,
ElNotification
}
from
'element-plus'
import
{
listGoods
,
deleteGoods
}
from
"@/services/api/commodityManage/list"
;
import
{
listGoods
,
deleteGoods
}
from
'@/services/api/commodityManage/list'
import
htmlDetails
from
'@/components/htmlDetails.vue'
import
htmlDetails
from
'@/components/htmlDetails.vue'
import
LitemallPage
from
"@/components/pagination/litemallPage.vue"
;
import
LitemallPage
from
'@/components/pagination/litemallPage.vue'
import
shelves
from
'./shelves.vue'
import
shelves
from
'./shelves.vue'
import
edit
from
'./edit.vue'
import
edit
from
'./edit.vue'
let
list
=
ref
([])
;
let
list
=
ref
([])
let
total
=
ref
(
0
)
;
let
total
=
ref
(
0
)
let
listLoading
=
ref
(
true
)
;
let
listLoading
=
ref
(
true
)
let
shelvesRef
=
ref
()
;
let
shelvesRef
=
ref
()
let
editRef
=
ref
()
;
let
editRef
=
ref
()
let
editId
=
ref
()
;
let
editId
=
ref
()
let
listQuery
=
ref
({
let
listQuery
=
ref
({
page
:
1
,
page
:
1
,
limit
:
10
,
limit
:
10
,
goodsSn
:
undefined
,
goodsSn
:
undefined
,
name
:
undefined
,
name
:
undefined
,
sort
:
"add_time"
,
sort
:
'add_time'
,
order
:
"desc"
,
order
:
'desc'
,
}
as
any
)
;
}
as
any
)
let
action
=
ref
(
import
.
meta
.
env
.
VITE_APP_BASE_URL
+
'/goods/upload'
)
let
action
=
ref
(
import
.
meta
.
env
.
VITE_APP_BASE_URL
+
'/goods/upload'
)
let
headers
=
ref
({
'Authorization'
:
sessionStorage
.
getItem
(
"token"
)
})
let
headers
=
ref
({
Authorization
:
sessionStorage
.
getItem
(
'token'
)
})
let
downloadLoading
=
ref
(
false
)
;
let
downloadLoading
=
ref
(
false
)
let
htmlData
=
ref
({
let
htmlData
=
ref
({
htmlVisible
:
false
,
htmlVisible
:
false
,
title
:
'商品详情'
,
title
:
'商品详情'
,
details
:
''
details
:
''
,
})
})
let
getList
=
()
=>
{
let
getList
=
()
=>
{
listLoading
.
value
=
true
;
listLoading
.
value
=
true
listGoods
(
listQuery
.
value
)
listGoods
(
listQuery
.
value
)
.
then
((
res
:
any
)
=>
{
.
then
((
res
:
any
)
=>
{
list
.
value
=
res
.
data
.
list
;
list
.
value
=
res
.
data
.
list
total
.
value
=
res
.
data
.
total
;
total
.
value
=
res
.
data
.
total
listLoading
.
value
=
false
;
listLoading
.
value
=
false
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
list
.
value
=
[]
;
list
.
value
=
[]
total
.
value
=
0
;
total
.
value
=
0
listLoading
.
value
=
false
;
listLoading
.
value
=
false
})
;
})
}
;
}
getList
()
getList
()
let
sizeChange
=
(
val
:
number
)
=>
{
let
sizeChange
=
(
val
:
number
)
=>
{
...
@@ -176,47 +176,47 @@ let currentChange = (val: number) => {
...
@@ -176,47 +176,47 @@ let currentChange = (val: number) => {
}
}
let
handleFilter
=
()
=>
{
let
handleFilter
=
()
=>
{
listQuery
.
value
.
page
=
1
;
listQuery
.
value
.
page
=
1
getList
()
;
getList
()
}
;
}
let
handleCreate
=
()
=>
{
let
handleCreate
=
()
=>
{
shelvesRef
.
value
.
shelvesDrawer
=
true
shelvesRef
.
value
.
shelvesDrawer
=
true
}
;
}
let
handleUpdate
=
(
row
:
any
)
=>
{
let
handleUpdate
=
(
row
:
any
)
=>
{
editRef
.
value
.
init
(
row
.
id
)
editRef
.
value
.
init
(
row
.
id
)
editRef
.
value
.
editDrawer
=
true
editRef
.
value
.
editDrawer
=
true
}
;
}
let
showDetail
=
(
detail
:
any
)
=>
{
let
showDetail
=
(
detail
:
any
)
=>
{
htmlData
.
value
.
htmlVisible
=
true
htmlData
.
value
.
htmlVisible
=
true
htmlData
.
value
.
details
=
detail
htmlData
.
value
.
details
=
detail
}
;
}
let
handleDelete
=
(
row
:
any
)
=>
{
let
handleDelete
=
(
row
:
any
)
=>
{
ElMessageBox
.
confirm
(
"确定删除?"
,
"警告"
,
{
ElMessageBox
.
confirm
(
'确定删除?'
,
'警告'
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
'取消'
,
type
:
"warning"
,
type
:
'warning'
,
center
:
true
,
center
:
true
,
})
})
.
then
(()
=>
{
.
then
(()
=>
{
deleteGoods
(
row
)
deleteGoods
(
row
)
.
then
((
res
:
any
)
=>
{
.
then
((
res
:
any
)
=>
{
ElNotification
({
ElNotification
({
type
:
"success"
,
type
:
'success'
,
title
:
"成功"
,
title
:
'成功'
,
message
:
"删除成功"
,
message
:
'删除成功'
,
})
;
})
getList
()
;
getList
()
})
})
.
catch
((
res
:
any
)
=>
{
.
catch
((
res
:
any
)
=>
{
ElNotification
({
ElNotification
({
type
:
"error"
,
type
:
'error'
,
title
:
"失败"
,
title
:
'失败'
,
message
:
res
.
data
.
errmsg
,
message
:
res
.
data
.
errmsg
,
})
;
})
})
;
})
})
})
.
catch
(()
=>
{
})
;
.
catch
(()
=>
{
})
}
;
}
// 导入文件删除
// 导入文件删除
let
handleRemove
=
(
uploadFile
:
any
,
uploadFiles
:
any
)
=>
{
let
handleRemove
=
(
uploadFile
:
any
,
uploadFiles
:
any
)
=>
{
...
@@ -274,9 +274,9 @@ let handleDownload = () => {
...
@@ -274,9 +274,9 @@ let handleDownload = () => {
// "brandId",
// "brandId",
// ];
// ];
// excel.export_json_to_excel2(tHeader, list, filterVal, "商品信息");
// excel.export_json_to_excel2(tHeader, list, filterVal, "商品信息");
downloadLoading
.
value
=
false
;
downloadLoading
.
value
=
false
// });
// });
}
;
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
@@ -307,4 +307,4 @@ let handleDownload = () => {
...
@@ -307,4 +307,4 @@ let handleDownload = () => {
:deep
(
.el-upload-list--text
)
{
:deep
(
.el-upload-list--text
)
{
display
:
none
;
display
:
none
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/commodityManage/shelves.vue
浏览文件 @
cfde2396
...
@@ -120,15 +120,15 @@
...
@@ -120,15 +120,15 @@
</el-row>
</el-row>
<el-table
:data=
"specifications"
>
<el-table
:data=
"specifications"
>
<el-table-column
prop
erty
=
"specification"
label=
"规格名"
align=
"left"
/>
<el-table-column
prop=
"specification"
label=
"规格名"
align=
"left"
/>
<el-table-column
prop
erty
=
"value"
label=
"规格值"
align=
"center"
>
<el-table-column
prop=
"value"
label=
"规格值"
align=
"center"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-tag
type=
"primary"
>
<el-tag
type=
"primary"
>
{{
scope
.
row
.
value
}}
{{
scope
.
row
.
value
}}
</el-tag>
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop
erty
=
"customSpec"
label=
"自定义规格"
align=
"center"
>
<el-table-column
prop=
"customSpec"
label=
"自定义规格"
align=
"center"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-tag
v-if=
"scope.row.customSpec"
type=
"primary"
>
<el-tag
v-if=
"scope.row.customSpec"
type=
"primary"
>
{{
scope
.
row
.
customSpec
}}
{{
scope
.
row
.
customSpec
}}
...
@@ -138,11 +138,6 @@
...
@@ -138,11 +138,6 @@
</el-tag>
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!-- <el-table-column property="picUrl" label="规格图片">
<template #default="scope">
<img v-if="scope.row.picUrl" :src="scope.row.picUrl" width="40" />
</template>
</el-table-column> -->
<el-table-column
align=
"center"
label=
"操作"
width=
"250"
class-name=
"small-padding fixed-width"
>
<el-table-column
align=
"center"
label=
"操作"
width=
"250"
class-name=
"small-padding fixed-width"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-button
type=
"primary"
size=
"small"
<el-button
type=
"primary"
size=
"small"
...
@@ -176,17 +171,6 @@
...
@@ -176,17 +171,6 @@
<el-form-item
label=
"自定义规格"
>
<el-form-item
label=
"自定义规格"
>
<el-switch
v-model=
"specForm.customSpec"
@
change=
"dictSwitchChange"
/>
<el-switch
v-model=
"specForm.customSpec"
@
change=
"dictSwitchChange"
/>
</el-form-item>
</el-form-item>
<!-- <el-form-item label="规格图片" prop="picUrl">
<el-upload :action="uploadPath" :show-file-list="false" :headers="headers"
:on-success="uploadSpecPicUrl" class="avatar-uploader" accept=".jpg,.jpeg,.png,.gif">
<div v-if="specForm.picUrl">
<img :src="specForm.picUrl" class="avatar" />
</div>
<el-icon v-else class="avatar-uploader-icon">
<Plus />
</el-icon>
</el-upload>
</el-form-item> -->
</el-form>
</el-form>
<
template
#
footer
class=
"dialog-footer"
>
<
template
#
footer
class=
"dialog-footer"
>
<el-button
@
click=
"handleSpecificationClose"
>
取消
</el-button>
<el-button
@
click=
"handleSpecificationClose"
>
取消
</el-button>
...
@@ -209,12 +193,11 @@
...
@@ -209,12 +193,11 @@
import
{
ref
}
from
"vue"
;
import
{
ref
}
from
"vue"
;
import
{
publishGoods
,
listCatAndBrand
}
from
"@/services/api/commodityManage/list"
;
import
{
publishGoods
,
listCatAndBrand
}
from
"@/services/api/commodityManage/list"
;
import
{
uploadPath
}
from
"@/services/api/storage"
;
import
{
uploadPath
}
from
"@/services/api/storage"
;
import
{
ElMessageBox
,
ElMessage
,
ElNotification
}
from
"element-plus"
;
import
{
ElMessageBox
,
ElMessage
}
from
"element-plus"
;
import
{
listGoods
}
from
"@/services/api/commodityManage/list"
;
import
{
listGoods
}
from
"@/services/api/commodityManage/list"
;
import
{
getDictList
,
getDictItemList
}
from
'@/services/api/market/auxiliary'
import
{
getDictList
,
getDictItemList
}
from
'@/services/api/market/auxiliary'
import
richTextEditor
from
'@/components/richTextEditor.vue'
import
richTextEditor
from
'@/components/richTextEditor.vue'
import
selectSpec
from
'./components/selectSpec.vue'
import
selectSpec
from
'./components/selectSpec.vue'
import
{
AnyColumn
}
from
"element-plus/lib/components/table-v2/src/common"
;
let
shelvesDrawer
=
ref
(
false
)
let
shelvesDrawer
=
ref
(
false
)
let
newKeywordVisible
=
ref
(
false
);
let
newKeywordVisible
=
ref
(
false
);
...
@@ -310,10 +293,8 @@ let handleCancel = () => {
...
@@ -310,10 +293,8 @@ let handleCancel = () => {
let
deleteData
=
[]
as
any
//记录删除数据
let
deleteData
=
[]
as
any
//记录删除数据
// deleteIndexData 记录被删除的数据, deleteIndex 记录被删除数据的索引
// deleteIndexData 记录被删除的数据, deleteIndex 记录被删除数据的索引
let
productsData
=
(
data
:
any
,
deleteIndex
:
any
,
deleteIndexData
:
any
)
=>
{
let
productsData
=
(
data
:
any
)
=>
{
products
.
value
=
data
products
.
value
=
data
console
.
log
(
data
,
deleteIndex
,
deleteIndexData
);
}
}
let
handlePublish
=
()
=>
{
let
handlePublish
=
()
=>
{
const
finalGoods
=
{
const
finalGoods
=
{
...
@@ -325,9 +306,8 @@ let handlePublish = () => {
...
@@ -325,9 +306,8 @@ let handlePublish = () => {
publishGoods
(
finalGoods
)
publishGoods
(
finalGoods
)
.
then
((
res
:
any
)
=>
{
.
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
El
Notification
({
El
Message
({
type
:
'success'
,
type
:
'success'
,
title
:
"成功"
,
message
:
"创建成功"
,
message
:
"创建成功"
,
});
});
emits
(
'initShelves'
)
emits
(
'initShelves'
)
...
@@ -335,10 +315,8 @@ let handlePublish = () => {
...
@@ -335,10 +315,8 @@ let handlePublish = () => {
}
}
})
})
.
catch
((
res
)
=>
{
.
catch
((
res
)
=>
{
ElMessageBox
.
alert
(
"业务错误:"
+
res
.
msg
,
"警告"
,
{
console
.
log
(
res
,
'上架错误'
);
confirmButtonText
:
"确定"
,
type
:
"error"
,
});
});
});
}
}
let
handleClose
=
(
tag
:
any
)
=>
{
let
handleClose
=
(
tag
:
any
)
=>
{
...
@@ -437,6 +415,7 @@ let handleSpecificationAdd = () => {
...
@@ -437,6 +415,7 @@ let handleSpecificationAdd = () => {
}
}
specForm
.
value
.
customSpec
=
false
specForm
.
value
.
customSpec
=
false
specVisiable
.
value
=
false
;
specVisiable
.
value
=
false
;
dictSwitch
.
value
=
false
}
else
{
}
else
{
ElMessage
({
ElMessage
({
type
:
'warning'
,
type
:
'warning'
,
...
...
src/views/marketManage/category.vue
浏览文件 @
cfde2396
...
@@ -12,13 +12,13 @@
...
@@ -12,13 +12,13 @@
<el-table-column
align=
"center"
label=
"类目名"
prop=
"name"
/>
<el-table-column
align=
"center"
label=
"类目名"
prop=
"name"
/>
<el-table-column
align=
"center"
prop
erty
=
"iconUrl"
label=
"类目图标"
>
<el-table-column
align=
"center"
prop=
"iconUrl"
label=
"类目图标"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
<img
v-if=
"scope.row.iconUrl"
:src=
"scope.row.iconUrl"
width=
"40"
/>
<img
v-if=
"scope.row.iconUrl"
:src=
"scope.row.iconUrl"
width=
"40"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop
erty
=
"picUrl"
label=
"类目图片"
>
<el-table-column
align=
"center"
prop=
"picUrl"
label=
"类目图片"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-image
:src=
"scope.row.picUrl"
style=
"width: 100px; height: 40px"
:preview-src-list=
"srcList"
<el-image
:src=
"scope.row.picUrl"
style=
"width: 100px; height: 40px"
:preview-src-list=
"srcList"
preview-teleported
:initial-index=
"scope.$index"
/>
preview-teleported
:initial-index=
"scope.$index"
/>
...
...
src/views/marketManage/order.vue
浏览文件 @
cfde2396
...
@@ -194,18 +194,13 @@
...
@@ -194,18 +194,13 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
:data=
"payForm.goodsList"
>
<el-table
:data=
"payForm.goodsList"
>
<el-table-column
prop
erty
=
"goodsName"
label=
"商品"
/>
<el-table-column
prop=
"goodsName"
label=
"商品"
/>
<el-table-column
label=
"规格"
>
<el-table-column
label=
"规格"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
{{
scope
.
row
.
specifications
.
join
(
'-'
)
}}
{{
scope
.
row
.
specifications
.
join
(
'-'
)
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
property=
"onumber"
width=
"100"
label=
"下单数量"
/>
<el-table-column
prop=
"onumber"
width=
"100"
label=
"下单数量"
/>
<!-- <el-table-column label="实际数量" width="100">
<template #default="scope">
<el-input-number v-model="scope.row.number" :min="0" :controls="false" />
</template>
</el-table-column> -->
</el-table>
</el-table>
<
template
#
footer
class=
"dialog-footer"
>
<
template
#
footer
class=
"dialog-footer"
>
<el-button
@
click=
"payDialogVisible = false"
>
取消
</el-button>
<el-button
@
click=
"payDialogVisible = false"
>
取消
</el-button>
...
@@ -251,8 +246,7 @@
...
@@ -251,8 +246,7 @@
<
script
setup
lang=
'ts'
>
<
script
setup
lang=
'ts'
>
import
{
ref
,
reactive
,
nextTick
}
from
'vue'
import
{
ref
,
reactive
,
nextTick
}
from
'vue'
import
moment
from
'moment'
import
{
ElMessageBox
,
ElNotification
}
from
'element-plus'
;
import
{
ElMessage
,
ElMessageBox
,
ElNotification
}
from
'element-plus'
;
import
{
detailOrder
,
listOrder
,
listChannel
,
refundOrder
,
payOrder
,
deleteOrder
,
shipOrder
}
from
'@/services/api/market/order'
import
{
detailOrder
,
listOrder
,
listChannel
,
refundOrder
,
payOrder
,
deleteOrder
,
shipOrder
}
from
'@/services/api/market/order'
import
LitemallPage
from
"@/components/pagination/litemallPage.vue"
;
import
LitemallPage
from
"@/components/pagination/litemallPage.vue"
;
...
@@ -346,7 +340,6 @@ let getList = () => {
...
@@ -346,7 +340,6 @@ let getList = () => {
}
}
if
(
listQuery
.
orderId
)
{
if
(
listQuery
.
orderId
)
{
detailOrder
(
listQuery
.
orderId
).
then
((
res
:
any
)
=>
{
detailOrder
(
listQuery
.
orderId
).
then
((
res
:
any
)
=>
{
console
.
log
(
res
,
'订单'
);
list
.
value
=
[]
list
.
value
=
[]
if
(
res
.
data
.
order
)
{
if
(
res
.
data
.
order
)
{
list
.
value
.
push
(
res
.
data
.
order
)
list
.
value
.
push
(
res
.
data
.
order
)
...
@@ -361,7 +354,6 @@ let getList = () => {
...
@@ -361,7 +354,6 @@ let getList = () => {
}
else
{
}
else
{
Reflect
.
deleteProperty
(
listQuery
,
'timeArray'
)
Reflect
.
deleteProperty
(
listQuery
,
'timeArray'
)
listOrder
(
listQuery
).
then
((
res
:
any
)
=>
{
listOrder
(
listQuery
).
then
((
res
:
any
)
=>
{
console
.
log
(
res
,
'数据'
);
list
.
value
=
res
.
data
.
list
list
.
value
=
res
.
data
.
list
total
.
value
=
res
.
data
.
total
total
.
value
=
res
.
data
.
total
listLoading
.
value
=
false
listLoading
.
value
=
false
...
...
src/views/promotion/topic.vue
浏览文件 @
cfde2396
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<el-table-column
align=
"center"
label=
"专题子标题"
min-width=
"200"
prop=
"subtitle"
/>
<el-table-column
align=
"center"
label=
"专题子标题"
min-width=
"200"
prop=
"subtitle"
/>
<el-table-column
align=
"center"
prop
erty
=
"picUrl"
label=
"图片"
>
<el-table-column
align=
"center"
prop=
"picUrl"
label=
"图片"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
<el-image
:src=
"scope.row.picUrl"
:preview-src-list=
"srcList"
style=
"width: 40px; height: 40px"
<el-image
:src=
"scope.row.picUrl"
:preview-src-list=
"srcList"
style=
"width: 40px; height: 40px"
preview-teleported
:initial-index=
"scope.$index"
/>
preview-teleported
:initial-index=
"scope.$index"
/>
...
...
src/views/promotion/topicCreate.vue
浏览文件 @
cfde2396
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<el-table
:data=
"goodsList"
border
fit
highlight-current-row
>
<el-table
:data=
"goodsList"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
label=
"商品ID"
prop=
"id"
/>
<el-table-column
align=
"center"
label=
"商品ID"
prop=
"id"
/>
<el-table-column
align=
"center"
prop
erty
=
"picUrl"
label=
"图片"
>
<el-table-column
align=
"center"
prop=
"picUrl"
label=
"图片"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
<img
:src=
"scope.row.picUrl"
width=
"60"
>
<img
:src=
"scope.row.picUrl"
width=
"60"
>
</
template
>
</
template
>
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
highlight-current-row
@
selection-change=
"handleSelectionChange"
>
highlight-current-row
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
label=
"商品ID"
prop=
"id"
/>
<el-table-column
align=
"center"
label=
"商品ID"
prop=
"id"
/>
<el-table-column
align=
"center"
prop
erty
=
"picUrl"
label=
"图片"
>
<el-table-column
align=
"center"
prop=
"picUrl"
label=
"图片"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<img
:src=
"scope.row.picUrl"
width=
"40"
>
<img
:src=
"scope.row.picUrl"
width=
"40"
>
</
template
>
</
template
>
...
...
src/views/promotion/topicEdit.vue
浏览文件 @
cfde2396
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<el-table
:data=
"goodsList"
border
fit
highlight-current-row
>
<el-table
:data=
"goodsList"
border
fit
highlight-current-row
>
<el-table-column
align=
"center"
label=
"商品ID"
prop=
"id"
/>
<el-table-column
align=
"center"
label=
"商品ID"
prop=
"id"
/>
<el-table-column
align=
"center"
prop
erty
=
"picUrl"
label=
"图片"
>
<el-table-column
align=
"center"
prop=
"picUrl"
label=
"图片"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
<img
:src=
"scope.row.picUrl"
width=
"60"
>
<img
:src=
"scope.row.picUrl"
width=
"60"
>
</
template
>
</
template
>
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
highlight-current-row
@
selection-change=
"handleSelectionChange"
>
highlight-current-row
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
label=
"商品ID"
prop=
"id"
/>
<el-table-column
align=
"center"
label=
"商品ID"
prop=
"id"
/>
<el-table-column
align=
"center"
prop
erty
=
"picUrl"
label=
"图片"
>
<el-table-column
align=
"center"
prop=
"picUrl"
label=
"图片"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<img
:src=
"scope.row.picUrl"
width=
"40"
>
<img
:src=
"scope.row.picUrl"
width=
"40"
>
</
template
>
</
template
>
...
...
vite.config.ts
浏览文件 @
cfde2396
...
@@ -89,11 +89,11 @@ export default ({ command, mode }) => {
...
@@ -89,11 +89,11 @@ export default ({ command, mode }) => {
// '/foo': '',
// '/foo': '',
// 选项写法
// 选项写法
"/admin"
:
{
"/admin"
:
{
target
:
"http://192.168.0.
9:8089
/"
,
target
:
"http://192.168.0.
60:82
/"
,
// rewrite: (path) => path.replace(/^\/api/, '') http://192.168.0.9:8089/
// rewrite: (path) => path.replace(/^\/api/, '') http://192.168.0.9:8089/
},
},
"/wx"
:
{
"/wx"
:
{
target
:
"http://192.168.0.
9:8089
/"
,
target
:
"http://192.168.0.
60:82
/"
,
// rewrite: (path) => path.replace(/^\/api/, '')
// rewrite: (path) => path.replace(/^\/api/, '')
},
},
// 正则表达式写法
// 正则表达式写法
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论