Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
da0a783c
authored
2022-09-05 09:40:21 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/bdc/bdcdj-web
2 parents
5b2e76f2
eade0e38
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
8 deletions
.env.development
src/api/ywbl.js
src/views/ywbl/dbx/dbx.vue
src/views/ywbl/dbx/dbxdata.js
vue.config.js
.env.development
View file @
da0a783
...
...
@@ -2,7 +2,7 @@
ENV = 'development'
NODE_ENV=development
# base api
VUE_APP_BASE_API = '/
dev-api
'
VUE_APP_BASE_API = '/
bdcdj
'
# 开发环境
VUE_APP_API_BASE_URL = 'http://192.168.2.44:80
09
'
VUE_APP_API_BASE_URL = 'http://192.168.2.44:80
18
'
...
...
src/api/ywbl.js
View file @
da0a783
...
...
@@ -46,7 +46,14 @@ export function searchTaskToDo (data) {
data
})
}
// 待办箱删除接口
export
function
deleteFlow
(
data
)
{
return
request
({
url
:
'business/workFlow/deleteFlow'
,
method
:
'post'
,
data
})
}
/*
业务办理-发起业务申请流程
*/
...
...
src/views/ywbl/dbx/dbx.vue
View file @
da0a783
...
...
@@ -57,7 +57,7 @@
<
script
>
import
table
from
"@/utils/mixin/table"
;
import
{
datas
,
sendThis
}
from
"./dbxdata"
;
import
{
searchTaskToDo
}
from
"@/api/ywbl.js"
import
{
searchTaskToDo
,
deleteFlow
}
from
"@/api/ywbl.js"
import
{
mapGetters
}
from
'vuex'
export
default
{
name
:
"dbx"
,
...
...
@@ -122,7 +122,29 @@ export default {
handleSort
(
name
,
sort
)
{
console
.
log
(
name
,
sort
);
},
openDialog
()
{
del
(
item
)
{
let
formdata
=
new
FormData
();
formdata
.
append
(
"bsmSlsq"
,
item
.
bsmSlsq
);
this
.
$confirm
(
'确定要删除吗, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
deleteFlow
(
formdata
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
});
this
.
fetchData
()
}
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消删除'
});
});
console
.
log
(
999999999999999
);
},
ywhClick
(
item
)
{
...
...
src/views/ywbl/dbx/dbxdata.js
View file @
da0a783
...
...
@@ -79,7 +79,7 @@ class data extends filter {
align
:
'center'
,
fixed
:
'right'
,
render
:
(
h
,
scope
)
=>
{
return
<
el
-
button
type
=
"text"
icon
=
"el-icon-delete"
onClick
=
{()
=>
{
vm
.
openDialog
(
scope
)
}}
>
删除
<
/el-button
>
return
<
el
-
button
type
=
"text"
icon
=
"el-icon-delete"
onClick
=
{()
=>
{
vm
.
del
(
scope
.
row
)
}}
>
删除
<
/el-button
>
}
}
]
...
...
vue.config.js
View file @
da0a783
...
...
@@ -35,12 +35,12 @@ module.exports = {
errors
:
true
},
proxy
:
{
'/
dev-api
'
:
{
'/
bdcdj
'
:
{
target
:
process
.
env
.
VUE_APP_API_BASE_URL
,
//本机服务
ws
:
false
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/
dev-api
'
:
''
// 需要rewrite的,
'^/
bdcdj
'
:
''
// 需要rewrite的,
}
}
...
...
Please
register
or
sign in
to post a comment