Commit a96bb8db authored by Your Name's avatar Your Name

节点配送优化

parent 26550823
......@@ -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) {
return axios({
......
......@@ -67,6 +67,14 @@ export function getTransportList(parameter) {
params: parameter
})
}
// 配送方式开启关闭
export function transportMakeUse(parameter) {
return axios({
url: 'transport/transport-methods/make-use',
method: 'get',
params: parameter
})
}
//修改配送方式详情
export function modifyDistributionDetail(parameter) {
return axios({
......
......@@ -49,7 +49,8 @@ import {
notification,
Cascader,
Collapse,
Tree
Tree,
TreeSelect
} from 'ant-design-vue'
// import VueCropper from 'vue-cropper'
......@@ -95,6 +96,7 @@ Vue.use(notification)
Vue.use(Cascader)
Vue.use(Collapse)
Vue.use(Tree)
Vue.use(TreeSelect)
Vue.prototype.$confirm = Modal.confirm
Vue.prototype.$message = message
......
// with polyfills
import 'core-js/stable'
import 'regenerator-runtime/runtime'
import {TreeSelect} from "ant-design-vue";
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/'
import { VueAxios } from './utils/request'
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
// import VueQuillEditor from 'vue-quill-editor'
// import 'quill/dist/quill.core.css'
// import 'quill/dist/quill.snow.css'
// import 'quill/dist/quill.bubble.css'
import VueAMap from 'vue-amap';
// mock
......@@ -26,12 +26,12 @@ import './components/global.less'
import common from '@/static/js/common.js'
Vue.config.productionTip = false
Vue.component(TreeSelect)
Vue.prototype.common=common
// mount axios Vue.$http and this.$http
Vue.use(VueAxios)
Vue.use(VueQuillEditor)
// Vue.use(VueQuillEditor)
Vue.use(VueAMap)
VueAMap.initAMapApiLoader({
key: 'your amap key',
......
This diff is collapsed.
This diff is collapsed.
......@@ -15,12 +15,12 @@
:data="loadData"
:showPagination="pagination"
>
<span slot="switchAction" slot-scope="">
<span slot="switchAction" slot-scope="text, record">
<template>
<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-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>
</template>
</span>
......@@ -49,7 +49,7 @@
// , addMenu, updateMenu, deleteMenu
import moment from 'moment'
import { STable } from '@/components'
import { getTransportList } from '@/api/delivery'
import { getTransportList,transportMakeUse } from '@/api/delivery'
export default {
name: 'delivery',
components: {
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment