Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web
Showing
5 changed files
with
37 additions
and
8 deletions
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | ENV = 'development' | 2 | ENV = 'development' |
| 3 | NODE_ENV=development | 3 | NODE_ENV=development |
| 4 | # base api | 4 | # base api |
| 5 | VUE_APP_BASE_API = '/dev-api' | 5 | VUE_APP_BASE_API = '/bdcdj' |
| 6 | 6 | ||
| 7 | # 开发环境 | 7 | # 开发环境 |
| 8 | VUE_APP_API_BASE_URL = 'http://192.168.2.44:8009' | 8 | VUE_APP_API_BASE_URL = 'http://192.168.2.44:8018' | ... | ... |
| ... | @@ -46,7 +46,14 @@ export function searchTaskToDo (data) { | ... | @@ -46,7 +46,14 @@ export function searchTaskToDo (data) { |
| 46 | data | 46 | data |
| 47 | }) | 47 | }) |
| 48 | } | 48 | } |
| 49 | 49 | // 待办箱删除接口 | |
| 50 | export function deleteFlow (data) { | ||
| 51 | return request({ | ||
| 52 | url: 'business/workFlow/deleteFlow', | ||
| 53 | method: 'post', | ||
| 54 | data | ||
| 55 | }) | ||
| 56 | } | ||
| 50 | /* | 57 | /* |
| 51 | 业务办理-发起业务申请流程 | 58 | 业务办理-发起业务申请流程 |
| 52 | */ | 59 | */ | ... | ... |
| ... | @@ -57,7 +57,7 @@ | ... | @@ -57,7 +57,7 @@ |
| 57 | <script> | 57 | <script> |
| 58 | import table from "@/utils/mixin/table"; | 58 | import table from "@/utils/mixin/table"; |
| 59 | import { datas, sendThis } from "./dbxdata"; | 59 | import { datas, sendThis } from "./dbxdata"; |
| 60 | import { searchTaskToDo } from "@/api/ywbl.js" | 60 | import { searchTaskToDo,deleteFlow } from "@/api/ywbl.js" |
| 61 | import { mapGetters } from 'vuex' | 61 | import { mapGetters } from 'vuex' |
| 62 | export default { | 62 | export default { |
| 63 | name: "dbx", | 63 | name: "dbx", |
| ... | @@ -122,7 +122,29 @@ export default { | ... | @@ -122,7 +122,29 @@ export default { |
| 122 | handleSort (name, sort) { | 122 | handleSort (name, sort) { |
| 123 | console.log(name, sort); | 123 | console.log(name, sort); |
| 124 | }, | 124 | }, |
| 125 | openDialog () { | 125 | del (item) { |
| 126 | let formdata = new FormData(); | ||
| 127 | formdata.append("bsmSlsq", item.bsmSlsq); | ||
| 128 | this.$confirm('确定要删除吗, 是否继续?', '提示', { | ||
| 129 | confirmButtonText: '确定', | ||
| 130 | cancelButtonText: '取消', | ||
| 131 | type: 'warning' | ||
| 132 | }).then(() => { | ||
| 133 | deleteFlow(formdata).then(res => { | ||
| 134 | if (res.code === 200) { | ||
| 135 | this.$message({ | ||
| 136 | type: 'success', | ||
| 137 | message: '删除成功!' | ||
| 138 | }); | ||
| 139 | this.fetchData() | ||
| 140 | } | ||
| 141 | }) | ||
| 142 | }).catch(() => { | ||
| 143 | this.$message({ | ||
| 144 | type: 'info', | ||
| 145 | message: '已取消删除' | ||
| 146 | }); | ||
| 147 | }); | ||
| 126 | console.log(999999999999999); | 148 | console.log(999999999999999); |
| 127 | }, | 149 | }, |
| 128 | ywhClick (item) { | 150 | ywhClick (item) { | ... | ... |
| ... | @@ -79,7 +79,7 @@ class data extends filter { | ... | @@ -79,7 +79,7 @@ class data extends filter { |
| 79 | align: 'center', | 79 | align: 'center', |
| 80 | fixed: 'right', | 80 | fixed: 'right', |
| 81 | render: (h, scope) => { | 81 | render: (h, scope) => { |
| 82 | return <el-button type="text" icon="el-icon-delete" onClick={() => { vm.openDialog(scope) }}>删除</el-button> | 82 | return <el-button type="text" icon="el-icon-delete" onClick={() => { vm.del(scope.row) }}>删除</el-button> |
| 83 | } | 83 | } |
| 84 | } | 84 | } |
| 85 | ] | 85 | ] | ... | ... |
| ... | @@ -35,12 +35,12 @@ module.exports = { | ... | @@ -35,12 +35,12 @@ module.exports = { |
| 35 | errors: true | 35 | errors: true |
| 36 | }, | 36 | }, |
| 37 | proxy: { | 37 | proxy: { |
| 38 | '/dev-api': { | 38 | '/bdcdj': { |
| 39 | target: process.env.VUE_APP_API_BASE_URL,//本机服务 | 39 | target: process.env.VUE_APP_API_BASE_URL,//本机服务 |
| 40 | ws: false, | 40 | ws: false, |
| 41 | changeOrigin: true, | 41 | changeOrigin: true, |
| 42 | pathRewrite: { | 42 | pathRewrite: { |
| 43 | '^/dev-api': '' // 需要rewrite的, | 43 | '^/bdcdj': '' // 需要rewrite的, |
| 44 | } | 44 | } |
| 45 | } | 45 | } |
| 46 | 46 | ... | ... |
-
Please register or sign in to post a comment