Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
linshenxs-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈超
linshenxs-shop
Commits
ed06e8e8
Commit
ed06e8e8
authored
Jul 19, 2022
by
fuqiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/page/login/index.vue
parents
fdc23120
b0f6c22c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
60 additions
and
33 deletions
+60
-33
src/components/ckeditor/index.vue
+16
-4
src/const/crud/mall/merchantMallorder.js
+2
-1
src/page/login/index.vue
+2
-4
src/views/businessGoods/goodsEdit/goods_api.js
+18
-8
src/views/businessGoods/goodsEdit/goods_edit.vue
+12
-8
src/views/businessGoods/index.vue
+1
-4
src/views/businessOrder/details.vue
+1
-1
src/views/businessOrder/index.vue
+8
-3
No files found.
src/components/ckeditor/index.vue
View file @
ed06e8e8
...
@@ -7,11 +7,13 @@
...
@@ -7,11 +7,13 @@
:mode=
"mode"
:mode=
"mode"
@
onChange=
"onChange"
@
onChange=
"onChange"
@
onCreated=
"onCreated"
/>
@
onCreated=
"onCreated"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
Uploader
}
from
'@/util/oss'
import
{
Editor
,
Toolbar
}
from
'@wangeditor/editor-for-vue'
import
{
Editor
,
Toolbar
}
from
'@wangeditor/editor-for-vue'
import
"@wangeditor/editor/dist/css/style.css"
import
"@wangeditor/editor/dist/css/style.css"
...
@@ -30,7 +32,16 @@
...
@@ -30,7 +32,16 @@
MENU_CONF
:
{
MENU_CONF
:
{
uploadImage
:
{
uploadImage
:
{
async
customUpload
(
file
,
insertFn
)
{
async
customUpload
(
file
,
insertFn
)
{
let
r
=
await
UPLOADER
.
upload
(
'images'
,
file
)
let
bucket
=
''
if
(
file
.
type
.
startsWith
(
'image'
))
{
bucket
=
'images'
}
else
if
(
file
.
type
.
startsWith
(
'video'
))
{
bucket
=
'videos'
}
else
{
req
.
onError
(
'不支持的文件格式'
)
return
}
let
r
=
await
Uploader
.
upload
(
bucket
,
file
)
insertFn
(
r
.
url
,
''
,
r
.
url
)
insertFn
(
r
.
url
,
''
,
r
.
url
)
}
}
}
}
...
@@ -56,12 +67,13 @@
...
@@ -56,12 +67,13 @@
this
.
editor
=
Object
.
seal
(
editor
)
// 一定要用 Object.seal() ,否则会报错
this
.
editor
=
Object
.
seal
(
editor
)
// 一定要用 Object.seal() ,否则会报错
},
},
onChange
(
editor
)
{
onChange
(
editor
)
{
//console.log(editor.getHtml())
this
.
$emit
(
'changed'
,
editor
.
getHtml
())
this
.
$emit
(
'changed'
,
editor
.
getHtml
())
}
}
},
},
mounted
()
{
this
.
html
=
this
.
content
mounted
()
{
// alert("[ mounted ] this.content: "+this.content)
this
.
html
=
this
.
content
},
},
beforeDestroy
()
{
beforeDestroy
()
{
if
(
this
.
editor
)
{
if
(
this
.
editor
)
{
...
...
src/const/crud/mall/merchantMallorder.js
View file @
ed06e8e8
...
@@ -38,7 +38,8 @@ export const tableOption = {
...
@@ -38,7 +38,8 @@ export const tableOption = {
"label"
:
"状态"
,
"label"
:
"状态"
,
"prop"
:
"state"
,
"prop"
:
"state"
,
"search"
:
true
,
"search"
:
true
,
"dicUrl"
:
"/admin/merchantMallOrder/getMerchantOrderStateOptions"
,
"dicUrl"
:
"/admin/mallOrder/getOrderStateOptions"
,
},
},
{
{
"type"
:
"input"
,
"type"
:
"input"
,
...
...
src/page/login/index.vue
View file @
ed06e8e8
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"login-logo"
>
<div
class=
"login-logo"
>
<img
src=
"/img/logo.jpg"
alt=
""
/>
<img
src=
"/img/logo.jpg"
alt=
""
/>
</div>
</div>
<p
class=
"login-tip"
>
{{
website
.
title
}}
</p>
<p
class=
"login-tip"
>
巨雾商家管理后台
</p>
<div
class=
"login-border"
>
<div
class=
"login-border"
>
<div
class=
"login-main"
>
<div
class=
"login-main"
>
<!--
<h4
class=
"login-title"
>
<!--
<h4
class=
"login-title"
>
...
@@ -33,9 +33,7 @@
...
@@ -33,9 +33,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"login-copyright"
>
<div
class=
"login-copyright"
>
All Rights Reserved
</div>
{{
website
.
copyright
}}
</div>
<top-color
v-show=
"false"
/>
<top-color
v-show=
"false"
/>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/businessGoods/goodsEdit/goods_api.js
View file @
ed06e8e8
...
@@ -41,15 +41,25 @@ export function getGoodsDetails(query) {
...
@@ -41,15 +41,25 @@ export function getGoodsDetails(query) {
}
}
// addOrEditGoods(this.form)
// .then((res)=>{
// this.$message.success('添加成功')
// this.$emit('success')
// }).catch(e => {
// this.$message.success('添加失败')
// });
// }).catch(() => {
// this.tableLoading = false
// })
// export function addOrEditGoods(data) {
// return request({
// url: '/admin/merchantMallGoods/addOrEditGoods',
// method: 'post',
// params: data
//
// })
// }
export
function
addOrEditGoods
(
data
)
{
return
request
({
url
:
'/admin/mallGoods/addOrEditGoods'
,
method
:
'post'
,
params
:
data
})
}
/*** 自定义添加 ***/
/*** 自定义添加 ***/
...
...
src/views/businessGoods/goodsEdit/goods_edit.vue
View file @
ed06e8e8
...
@@ -189,6 +189,7 @@
...
@@ -189,6 +189,7 @@
getGoodsDetails
,
getGoodsDetails
,
addOrEditGoods
,
addOrEditGoods
,
getMerchantByAccount
,
getMerchantByAccount
,
addOrEdit
}
from
'./goods_api.js'
}
from
'./goods_api.js'
export
default
{
export
default
{
...
@@ -687,23 +688,26 @@
...
@@ -687,23 +688,26 @@
{
account
:
account
}
{
account
:
account
}
).
then
(
response
=>
{
).
then
(
response
=>
{
this
.
form
.
merchantId
=
response
.
data
.
data
.
id
this
.
form
.
merchantId
=
response
.
data
.
data
.
id
this
.
$http
.
post
(
'/admin/merchantMallGoods/addOrEditGoods'
,
JSON
.
stringify
(
this
.
form
),
this
.
$http
.
post
(
'/admin/mallGoods/addOrEdit'
,
JSON
.
stringify
(
this
.
form
),
{
headers
:{
'Content-Type'
:
'application/json;charset=UTF-8'
}})
{
headers
:{
'Content-Type'
:
'application/json;charset=UTF-8'
}})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
$message
.
success
(
'
添加
成功'
)
this
.
$message
.
success
(
'
操作
成功'
)
this
.
$emit
(
'success'
)
this
.
$emit
(
'success'
)
}).
catch
(
e
=>
{
}).
catch
(
e
=>
{
this
.
$message
.
success
(
'添加
失败'
)
this
.
$message
.
success
(
'操作
失败'
)
});
});
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
tableLoading
=
false
this
.
tableLoading
=
false
})
})
}
else
{
}
else
{
addOrEditGoods
(
this
.
form
).
then
(
data
=>
{
this
.
$http
.
post
(
'/admin/merchantMallGoods/addOrEditGoods'
,
JSON
.
stringify
(
this
.
form
),
this
.
$message
.
success
(
'修改成功'
)
{
headers
:{
'Content-Type'
:
'application/json;charset=UTF-8'
}})
this
.
$emit
(
'success'
)
.
then
((
res
)
=>
{
}).
catch
(()
=>
{
this
.
$message
.
success
(
'操作成功'
)
this
.
$emit
(
'success'
)
}).
catch
(
e
=>
{
this
.
$message
.
success
(
'操作失败'
)
});
});
}
}
}
}
...
...
src/views/businessGoods/index.vue
View file @
ed06e8e8
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
<el-button
type=
"button"
size=
"small"
<el-button
type=
"button"
size=
"small"
@
click=
"lookDetail(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
详情
</el-button>
@
click=
"lookDetail(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
详情
</el-button>
<el-button
type=
"button"
size=
"small"
<el-button
type=
"button"
size=
"small"
v-if=
"scope.row.state!=0"
@
click=
"handleUpdate(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
编辑
</el-button>
@
click=
"handleUpdate(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
编辑
</el-button>
<el-button
type=
"button"
size=
"small"
<el-button
type=
"button"
size=
"small"
@
click=
"handleDel(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
删除
</el-button>
@
click=
"handleDel(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
删除
</el-button>
...
@@ -98,10 +99,6 @@
...
@@ -98,10 +99,6 @@
this
.
id
=
row
.
id
this
.
id
=
row
.
id
this
.
goodsEditVue
=
true
this
.
goodsEditVue
=
true
}
}
// console.log("执行编辑方法")
// this.id=row.id
// console.log("赋值id:"+row.id)
// this.goodsEditVue=true
},
},
// 添加
// 添加
add
()
{
add
()
{
...
...
src/views/businessOrder/details.vue
View file @
ed06e8e8
...
@@ -309,7 +309,7 @@
...
@@ -309,7 +309,7 @@
loadInfo
()
{
loadInfo
()
{
this
.
loading
=
true
this
.
loading
=
true
getOrderInfo
({
getOrderInfo
({
orderNo
:
this
.
id
id
:
this
.
id
}).
then
(
r
=>
{
}).
then
(
r
=>
{
this
.
loading
=
false
this
.
loading
=
false
this
.
info
=
this
.
zmRes
(
r
)
this
.
info
=
this
.
zmRes
(
r
)
...
...
src/views/businessOrder/index.vue
View file @
ed06e8e8
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<el-button
type=
"button"
size=
"small"
<el-button
type=
"button"
size=
"small"
@
click=
"checkTheDetails(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
详情
</el-button>
@
click=
"checkTheDetails(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
详情
</el-button>
<el-button
type=
"button"
size=
"small"
<el-button
type=
"button"
size=
"small"
v-if=
"
scope.row.state == 1 || scope.row.state == 2
"
v-if=
"
qwlAuth(scope.row)>=0
"
@
click=
"viewLogistics(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
查看物流
</el-button>
@
click=
"viewLogistics(scope.row)"
style=
"color: #409EFF;margin: 5px;padding: 0px;border: 0px"
>
查看物流
</el-button>
<el-button
type=
"button"
size=
"small"
<el-button
type=
"button"
size=
"small"
v-if=
"scope.row.state == 0"
v-if=
"scope.row.state == 0"
...
@@ -184,7 +184,12 @@
...
@@ -184,7 +184,12 @@
}
}
},
},
// 取消订单
qwlAuth
:
function
(
row
)
{
let
str
=
row
.
state
let
text
=
'3,6'
//待收货,已完成
return
text
.
search
(
str
)
},
// 是否可以取消订单
cancelOrderButAuth
:
function
(
row
)
{
cancelOrderButAuth
:
function
(
row
)
{
let
str
=
row
.
state
let
str
=
row
.
state
let
text
=
'0,1,2,3,4'
let
text
=
'0,1,2,3,4'
...
@@ -267,7 +272,7 @@
...
@@ -267,7 +272,7 @@
},
},
// 查看详情
// 查看详情
checkTheDetails
(
row
){
checkTheDetails
(
row
){
this
.
$router
.
push
(
'/businessOrder/details?id='
+
row
.
orderNo
)
this
.
$router
.
push
(
'/businessOrder/details?id='
+
row
.
id
)
},
},
// 列表查询
// 列表查询
getList
(
page
,
params
)
{
getList
(
page
,
params
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment