da0a783c by 任超
2 parents 5b2e76f2 eade0e38
......@@ -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:8009'
VUE_APP_API_BASE_URL = 'http://192.168.2.44:8018'
......
......@@ -46,7 +46,14 @@ export function searchTaskToDo (data) {
data
})
}
// 待办箱删除接口
export function deleteFlow (data) {
return request({
url: 'business/workFlow/deleteFlow',
method: 'post',
data
})
}
/*
业务办理-发起业务申请流程
*/
......
......@@ -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) {
......
......@@ -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>
}
}
]
......
......@@ -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的,
}
}
......