5b013af4 by 任超

style:流程图

1 parent ef1a610f
......@@ -5,4 +5,4 @@ NODE_ENV=development
VUE_APP_BASE_API = '/bdcdj'
# 开发环境
VUE_APP_API_BASE_URL = 'http://192.168.2.88:8018'
VUE_APP_API_BASE_URL = 'http://192.168.2.95:8018'
......
......@@ -45,4 +45,15 @@ export function logoutReg (data) {
method: 'post',
data
})
}
// 流程图
export function getWorkFlowImage (bsmSlsq) {
return request({
url: '/business/workFlow/getWorkFlowImage',
method: 'get',
responseType: 'blob',
params: {
bsmSlsq: bsmSlsq
}
})
}
\ No newline at end of file
......
......@@ -99,20 +99,9 @@ class data extends filter {
</div>
)
}
},
{
label: '操作',
width: '80',
align: 'center',
fixed: 'right',
render: (h, scope) => {
return <el-button type="text" icon="el-icon-delete" onClick={() => { vm.del(scope.row) }}>删除</el-button>
}
}
]
}
}
let datas = new data()
export {
......
......@@ -56,6 +56,9 @@
</div>
</div>
</div>
<dialogBox title="流程图" width="70%" isMain v-model="myValue" :isFullscreen="false" :isButton="false">
<img :src="imgSrc" style="margin: 20px 0" />
</dialogBox>
</div>
</template>
......@@ -72,10 +75,14 @@ import {
getNextLinkInfo,
completeTask,
} from "@/api/fqsq.js";
import { getWorkFlowImage } from "@/api/jsydsyqFlow.js"
import { getForm } from "./flowform.js";
export default {
data () {
return {
// 流程图
imgSrc: '',
myValue: false,
// 折叠
isShowdrawer: true,
// 默认选中
......@@ -144,8 +151,11 @@ export default {
operation (index, item) {
let that = this;
switch (item.value) {
case "lct":
console.log(2222222222);
case "B1":
getWorkFlowImage(this.bsmSlsq).then(res => {
this.imgSrc = URL.createObjectURL(res)
this.myValue = true
})
break;
case "zsyl":
this.zsylFlag = true;
......@@ -176,7 +186,6 @@ export default {
}
});
// this.$alert(res.result);
break;
case "tc":
window.close();
......
......@@ -75,15 +75,6 @@ class data extends filter {
</div>
)
}
},
{
label: '操作',
width: '80',
align: 'center',
fixed: 'right',
render: (h, scope) => {
return <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope) }}>编辑</el-button>
}
}
]
}
......