Commit a4cfe44f by cwq0219

删除

1 parent 31c96fba
...@@ -65,99 +65,96 @@ export const sys = [ ...@@ -65,99 +65,96 @@ export const sys = [
* 所有需动态过滤的资源点 * 所有需动态过滤的资源点
*/ */
export const resources = { export const resources = {
'102': {
path: '/page',
icon: 'folder-o',
name: '页面',
meta: {
auth: true,
title: '页面',
id: '102',
pid: '0',
cache: true
}
},
'10201': {
path: '/page1',
name: 'page1',
meta: {
auth: true,
title: '页面 1',
id: '10201',
pid: '102',
cache: true
},
component: _import('demo/page1')
},
'10202': {
path: '/page2',
name: 'page2',
meta: {
auth: true,
title: '页面 2',
id: '10202',
pid: '102',
cache: true
},
component: _import('demo/page2'),
auth: [{ // 列表操作
id: '1020201',
pid: '10202',
label: '查看'
}, { //
id: '1020202',
pid: '10202',
label: '编辑'
}],
},
'10203': {
path: '/page3',
name: '页面 3',
meta: {
auth: true,
title: '页面 3',
id: '10203',
pid: '102'
},
auth: [{ // 列表操作
id: '1020301',
pid: '10203',
label: '查看'
}, { //
id: '1020302',
pid: '10203',
label: '编辑'
}],
component: _import('demo/page3')
},
// '102': { // '102': {
// path: 'trafficManagement', // path: '/page',
// icon: 'train', // icon: 'folder-o',
// name: '车辆管理', // name: '页面',
// meta: { // meta: {
// auth: true, // auth: true,
// title: '车辆管理', // title: '页面',
// id: '102', // id: '102',
// pid: '0' // pid: '0',
// cache: true
// }
// }, // },
// component: _import('trafficManagement'), // '10201': {
// auth: { // path: '/page1',
// 'operation': [{ // name: 'page1',
// meta: {
// auth: true,
// title: '页面 1',
// id: '10201', // id: '10201',
// pid: '102', // pid: '102',
// label: '编辑' // cache: true
// }, { // },
// component: _import('demo/page1')
// },
// '10202': {
// path: '/page2',
// name: 'page2',
// meta: {
// auth: true,
// title: '页面 2',
// id: '10202', // id: '10202',
// pid: '102', // pid: '102',
// label: '删除' // cache: true
// },
// component: _import('demo/page2'),
// auth: [{ // 列表操作
// id: '1020201',
// pid: '10202',
// label: '查看'
// }, { //
// id: '1020202',
// pid: '10202',
// label: '编辑'
// }], // }],
// 'action': [{ // },
// '10203': {
// path: '/page3',
// name: '页面 3',
// meta: {
// auth: true,
// title: '页面 3',
// id: '10203', // id: '10203',
// pid: '102', // pid: '102'
// label: '添加车辆'
// }]
// }
// }, // },
// auth: [{ // 列表操作
// id: '1020301',
// pid: '10203',
// label: '查看'
// }, { //
// id: '1020302',
// pid: '10203',
// label: '编辑'
// }],
// component: _import('demo/page3')
// },
'102': {
path: 'trafficManagement',
icon: 'train',
name: '车辆管理',
meta: {
auth: true,
title: '车辆管理',
id: '102',
pid: '0'
},
component: _import('trafficManagement'),
auth: [{
id: '10201',
pid: '102',
label: '编辑'
}, {
id: '10202',
pid: '102',
label: '删除'
}, {
id: '10203',
pid: '102',
label: '添加车辆'
}]
},
'103': { '103': {
path: '/subSysManagement', path: '/subSysManagement',
icon: 'th-list', icon: 'th-list',
......
...@@ -278,11 +278,16 @@ export default { ...@@ -278,11 +278,16 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
console.log(index) // // console.log(index)
console.log(row) // console.log(row)
this.$message({ // this.$message({
type: 'success', // type: 'success',
message: '删除成功' // message: '删除成功'
// })
removeApi(row).then(res => {
notice.okTips()
}).catch(err => {
notice.errorTips()
}) })
}).catch(err => {}) }).catch(err => {})
} }
......
...@@ -312,11 +312,16 @@ export default { ...@@ -312,11 +312,16 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
console.log(index) // console.log(index)
console.log(row) // console.log(row)
this.$message({ // this.$message({
type: 'success', // type: 'success',
message: '删除成功' // message: '删除成功'
// })
removeApi(row).then(res => {
notice.okTips()
}).catch(err => {
notice.errorTips()
}) })
}).catch(err => {}) }).catch(err => {})
} }
......
...@@ -248,11 +248,16 @@ export default { ...@@ -248,11 +248,16 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
console.log(index) // console.log(index)
console.log(row) // console.log(row)
this.$message({ // this.$message({
type: 'success', // type: 'success',
message: '删除成功' // message: '删除成功'
// })
removeApi(row).then(res => {
notice.okTips()
}).catch(err => {
notice.errorTips()
}) })
}).catch(err => {}) }).catch(err => {})
} }
......
...@@ -156,21 +156,6 @@ export default { ...@@ -156,21 +156,6 @@ export default {
this.currentPage = value this.currentPage = value
// 调接口 // 调接口
this.loadingGetList() this.loadingGetList()
},
handleDelete (index, row) {
this.$confirm('确认删除?', '删除', {
comfirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
console.log(index)
console.log(row)
this.$message({
type: 'success',
message: '删除成功'
})
}).catch(err => {})
} }
} }
} }
......
...@@ -265,11 +265,16 @@ export default { ...@@ -265,11 +265,16 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
console.log(index) // console.log(index)
console.log(row) // console.log(row)
this.$message({ // this.$message({
type: 'success', // type: 'success',
message: '删除成功' // message: '删除成功'
// })
removeApi(row).then(res => {
notice.okTips()
}).catch(err => {
notice.errorTips()
}) })
}).catch(err => {}) }).catch(err => {})
} }
......
...@@ -261,11 +261,16 @@ export default { ...@@ -261,11 +261,16 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
console.log(index) // console.log(index)
console.log(row) // console.log(row)
this.$message({ // this.$message({
type: 'success', // type: 'success',
message: '删除成功' // message: '删除成功'
// })
removeApi(row).then(res => {
notice.okTips()
}).catch(err => {
notice.errorTips()
}) })
}).catch(err => {}) }).catch(err => {})
} }
......
...@@ -285,12 +285,17 @@ export default { ...@@ -285,12 +285,17 @@ export default {
type: "warning" type: "warning"
}) })
.then(() => { .then(() => {
console.log(index); // console.log(index)
console.log(row); // console.log(row)
this.$message({ // this.$message({
type: "success", // type: 'success',
message: "删除成功" // message: '删除成功'
}); // })
removeApi(row).then(res => {
notice.okTips()
}).catch(err => {
notice.errorTips()
})
}) })
.catch(err => {}); .catch(err => {});
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!