Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newShopFront
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
newshop
newShopFront
Commits
a96bb8db
Commit
a96bb8db
authored
Dec 25, 2019
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
节点配送优化
parent
26550823
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
349 additions
and
727 deletions
+349
-727
authority.js
src/api/authority.js
+16
-0
delivery.js
src/api/delivery.js
+8
-0
components_use.js
src/core/lazy_lib/components_use.js
+3
-1
main.js
src/main.js
+7
-7
menuList.vue
src/views/authority/menuList.vue
+293
-308
test.vue
src/views/authority/test.vue
+0
-407
distributionManage.vue
src/views/delivery/distributionManage.vue
+22
-4
No files found.
src/api/authority.js
View file @
a96bb8db
...
@@ -34,6 +34,22 @@ export function getMenuDetails (parameter) {
...
@@ -34,6 +34,22 @@ export function getMenuDetails (parameter) {
}
}
})
})
}
}
// 添加权限节点
export
function
addAuthorityNode
(
parameter
)
{
return
axios
({
url
:
'authority/authority-nodes/node-add'
,
method
:
'post'
,
data
:
parameter
})
}
// 修改权限节点
export
function
updateAuthorityNode
(
parameter
)
{
return
axios
({
url
:
'authority/authority-nodes/node-update'
,
method
:
'put'
,
data
:
parameter
})
}
// 获取角色列表
// 获取角色列表
export
function
getRoleList
(
parameter
)
{
export
function
getRoleList
(
parameter
)
{
return
axios
({
return
axios
({
...
...
src/api/delivery.js
View file @
a96bb8db
...
@@ -67,6 +67,14 @@ export function getTransportList(parameter) {
...
@@ -67,6 +67,14 @@ export function getTransportList(parameter) {
params
:
parameter
params
:
parameter
})
})
}
}
// 配送方式开启关闭
export
function
transportMakeUse
(
parameter
)
{
return
axios
({
url
:
'transport/transport-methods/make-use'
,
method
:
'get'
,
params
:
parameter
})
}
//修改配送方式详情
//修改配送方式详情
export
function
modifyDistributionDetail
(
parameter
)
{
export
function
modifyDistributionDetail
(
parameter
)
{
return
axios
({
return
axios
({
...
...
src/core/lazy_lib/components_use.js
View file @
a96bb8db
...
@@ -49,7 +49,8 @@ import {
...
@@ -49,7 +49,8 @@ import {
notification
,
notification
,
Cascader
,
Cascader
,
Collapse
,
Collapse
,
Tree
Tree
,
TreeSelect
}
from
'ant-design-vue'
}
from
'ant-design-vue'
// import VueCropper from 'vue-cropper'
// import VueCropper from 'vue-cropper'
...
@@ -95,6 +96,7 @@ Vue.use(notification)
...
@@ -95,6 +96,7 @@ Vue.use(notification)
Vue
.
use
(
Cascader
)
Vue
.
use
(
Cascader
)
Vue
.
use
(
Collapse
)
Vue
.
use
(
Collapse
)
Vue
.
use
(
Tree
)
Vue
.
use
(
Tree
)
Vue
.
use
(
TreeSelect
)
Vue
.
prototype
.
$confirm
=
Modal
.
confirm
Vue
.
prototype
.
$confirm
=
Modal
.
confirm
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$message
=
message
...
...
src/main.js
View file @
a96bb8db
// with polyfills
// with polyfills
import
'core-js/stable'
import
'core-js/stable'
import
'regenerator-runtime/runtime'
import
'regenerator-runtime/runtime'
import
{
TreeSelect
}
from
"ant-design-vue"
;
import
Vue
from
'vue'
import
Vue
from
'vue'
import
App
from
'./App.vue'
import
App
from
'./App.vue'
import
router
from
'./router'
import
router
from
'./router'
import
store
from
'./store/'
import
store
from
'./store/'
import
{
VueAxios
}
from
'./utils/request'
import
{
VueAxios
}
from
'./utils/request'
import
VueQuillEditor
from
'vue-quill-editor'
//
import VueQuillEditor from 'vue-quill-editor'
import
'quill/dist/quill.core.css'
//
import 'quill/dist/quill.core.css'
import
'quill/dist/quill.snow.css'
//
import 'quill/dist/quill.snow.css'
import
'quill/dist/quill.bubble.css'
//
import 'quill/dist/quill.bubble.css'
import
VueAMap
from
'vue-amap'
;
import
VueAMap
from
'vue-amap'
;
// mock
// mock
...
@@ -26,12 +26,12 @@ import './components/global.less'
...
@@ -26,12 +26,12 @@ import './components/global.less'
import
common
from
'@/static/js/common.js'
import
common
from
'@/static/js/common.js'
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
Vue
.
component
(
TreeSelect
)
Vue
.
prototype
.
common
=
common
Vue
.
prototype
.
common
=
common
// mount axios Vue.$http and this.$http
// mount axios Vue.$http and this.$http
Vue
.
use
(
VueAxios
)
Vue
.
use
(
VueAxios
)
Vue
.
use
(
VueQuillEditor
)
//
Vue.use(VueQuillEditor)
Vue
.
use
(
VueAMap
)
Vue
.
use
(
VueAMap
)
VueAMap
.
initAMapApiLoader
({
VueAMap
.
initAMapApiLoader
({
key
:
'your amap key'
,
key
:
'your amap key'
,
...
...
src/views/authority/menuList.vue
View file @
a96bb8db
This diff is collapsed.
Click to expand it.
src/views/authority/test.vue
deleted
100644 → 0
View file @
26550823
This diff is collapsed.
Click to expand it.
src/views/delivery/distributionManage.vue
View file @
a96bb8db
...
@@ -15,12 +15,12 @@
...
@@ -15,12 +15,12 @@
:data=
"loadData"
:data=
"loadData"
:showPagination=
"pagination"
:showPagination=
"pagination"
>
>
<span
slot=
"switchAction"
slot-scope=
""
>
<span
slot=
"switchAction"
slot-scope=
"
text, record
"
>
<template>
<template>
<a-row
type=
"flex"
justify=
"start"
align=
"middle"
>
<a-row
type=
"flex"
justify=
"start"
align=
"middle"
>
<a-col><a-switch
checkedChildren=
"开"
unCheckedChildren=
"关"
defaultChecked
/></a-col>
<a-col><a-switch
@
change=
"changeState($event,record.GUID,'1')"
:defaultChecked=
"stateValue(record.POINTS_STATE)"
checkedChildren=
"开"
unCheckedChildren=
"关"
/></a-col>
<a-col><a-divider
type=
"vertical"
/></a-col>
<a-col><a-divider
type=
"vertical"
/></a-col>
<a-col><a-switch
checkedChildren=
"开"
unCheckedChildren=
"关"
defaultChecked
/></a-col>
<a-col><a-switch
@
change=
"changeState($event,record.GUID,'2')"
:defaultChecked=
"stateValue(record.STATE)"
checkedChildren=
"开"
unCheckedChildren=
"关"
/></a-col>
</a-row>
</a-row>
</
template
>
</
template
>
</span>
</span>
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
// , addMenu, updateMenu, deleteMenu
// , addMenu, updateMenu, deleteMenu
import
moment
from
'moment'
import
moment
from
'moment'
import
{
STable
}
from
'@/components'
import
{
STable
}
from
'@/components'
import
{
getTransportList
}
from
'@/api/delivery'
import
{
getTransportList
,
transportMakeUse
}
from
'@/api/delivery'
export
default
{
export
default
{
name
:
'delivery'
,
name
:
'delivery'
,
components
:
{
components
:
{
...
@@ -114,6 +114,24 @@ export default {
...
@@ -114,6 +114,24 @@ export default {
}
}
},
},
stateValue
(
value
){
if
(
value
==
'1'
){
return
true
;
}
else
{
return
false
;
}
},
changeState
(
e
,
guid
,
type
){
let
number
=
e
?
'1'
:
'0'
;
let
data
=
{
'GUID'
:
guid
,
'TYPE'
:
type
,
'NUMBER'
:
number
,
}
transportMakeUse
(
data
).
then
(
res
=>
{
console
.
log
(
res
)
})
}
}
}
}
}
</
script
>
</
script
>
...
...
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