Commit a4cfe44f by cwq0219

删除

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