Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
SHR
/
tFIMS
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a4cfe44f
authored
Sep 02, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除
1 parent
31c96fba
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
145 additions
and
133 deletions
src/router/routes.js
src/views/deviceManagement/index.vue
src/views/maintainManagement/index.vue
src/views/materiaOrderManagement/index.vue
src/views/materialList/index.vue
src/views/subSysManagement/index.vue
src/views/trafficManagement/index.vue
src/views/userManage/user/index.vue
src/router/routes.js
View file @
a4cfe44
...
@@ -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
// }
// },
// '10201': {
// path: '/page1',
// name: 'page1',
// meta: {
// auth: true,
// title: '页面 1',
// id: '10201',
// pid: '102',
// cache: true
// },
// },
// component: _import('trafficManagement'),
// component: _import('demo/page1')
// auth: {
// 'operation': [{
// id: '10201',
// pid: '102',
// label: '编辑'
// }, {
// id: '10202',
// pid: '102',
// label: '删除'
// }],
// 'action': [{
// id: '10203',
// pid: '102',
// label: '添加车辆'
// }]
// }
// },
// },
// '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'
:
{
'103'
:
{
path
:
'/subSysManagement'
,
path
:
'/subSysManagement'
,
icon
:
'th-list'
,
icon
:
'th-list'
,
...
...
src/views/deviceManagement/index.vue
View file @
a4cfe44
...
@@ -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
=>
{})
}
}
...
...
src/views/maintainManagement/index.vue
View file @
a4cfe44
...
@@ -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
=>
{})
}
}
...
...
src/views/materiaOrderManagement/index.vue
View file @
a4cfe44
...
@@ -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
=>
{})
}
}
...
...
src/views/materialList/index.vue
View file @
a4cfe44
...
@@ -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
=>
{})
}
}
}
}
}
}
...
...
src/views/subSysManagement/index.vue
View file @
a4cfe44
...
@@ -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
=>
{})
}
}
...
...
src/views/trafficManagement/index.vue
View file @
a4cfe44
...
@@ -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
=>
{})
}
}
...
...
src/views/userManage/user/index.vue
View file @
a4cfe44
...
@@ -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
=>
{});
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment