Commit a96bb8db authored by Your Name's avatar Your Name

节点配送优化

parent 26550823
...@@ -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({
......
...@@ -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({
......
...@@ -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
......
// 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',
......
This diff is collapsed.
This diff is collapsed.
...@@ -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>
......
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