Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bms-vue-obear
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
daywrite
bms-vue-obear
Commits
9f5f4d96
Commit
9f5f4d96
authored
Mar 17, 2019
by
daywrite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete功能添加
parent
e111a349
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
element.js
src/apis/element.js
+2
-1
scheduleItem.vue
src/components/common/scheduleItem.vue
+22
-1
No files found.
src/apis/element.js
View file @
9f5f4d96
const
urlEnd
=
'?duplextrans'
const
dev
=
process
.
env
.
NODE_ENV
===
'development'
let
urlEnd
=
dev
?
'?duplextrans'
:
''
export
default
{
export
default
{
getScheduleList
:
{
getScheduleList
:
{
url
:
'/vue/schedule/list'
+
urlEnd
url
:
'/vue/schedule/list'
+
urlEnd
...
...
src/components/common/scheduleItem.vue
View file @
9f5f4d96
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<el-button
type=
"primary"
size=
"mini"
><i
class=
"el-icon-share el-icon--left"
></i>
留言
</el-button>
<el-button
type=
"primary"
size=
"mini"
><i
class=
"el-icon-share el-icon--left"
></i>
留言
</el-button>
<el-button
type=
"primary"
size=
"mini"
><i
class=
"el-icon-share el-icon--left"
></i>
汇报
</el-button>
<el-button
type=
"primary"
size=
"mini"
><i
class=
"el-icon-share el-icon--left"
></i>
汇报
</el-button>
<el-button
type=
"primary"
size=
"mini"
><i
class=
"el-icon-share el-icon--left"
></i>
编辑
</el-button>
<el-button
type=
"primary"
size=
"mini"
><i
class=
"el-icon-share el-icon--left"
></i>
编辑
</el-button>
<el-button
type=
"primary"
size=
"mini"
><i
class=
"el-icon-share el-icon--left"
></i>
删除
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"deleteSch(item.id)"
><i
class=
"el-icon-share el-icon--left"
></i>
删除
</el-button>
</div>
</div>
</div>
</div>
</el-col>
</el-col>
...
@@ -68,6 +68,10 @@
...
@@ -68,6 +68,10 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
requestWithJsonAPI
,
api
}
from
'@/lib/commonMixin'
export
default
{
export
default
{
name
:
'scheduleItem'
,
name
:
'scheduleItem'
,
...
@@ -91,6 +95,23 @@ export default {
...
@@ -91,6 +95,23 @@ export default {
},
},
mounted
()
{
mounted
()
{
},
methods
:
{
deleteSch
(
id
)
{
this
.
$confirm
(
'删除该待办事项?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
requestWithJsonAPI
(
api
.
deleteSchedule
)
.
then
((
res
)
=>
{
console
.
log
(
res
)
})
}).
catch
(()
=>
{
this
.
$message
.
info
(
'取消删除'
)
})
}
}
}
}
}
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment