069ab92c by 任超

style:流程图

1 parent cf1e1de2
......@@ -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'
......
......@@ -59,7 +59,7 @@ export default {
},
heightNum: {
type: Number,
default: 285,
default: 260,
},
maxHeight: {
type: Number,
......
<template>
<transition name="fade" mode="out-in" v-if="isShow">
<div class="ls-mask" v-loading="loading">
<div class="ls-mask-window" :style="{'width':width,'height':height}">
<div class="ls-mask-window" :style="{'width':width,'minHeight':height}">
<div :style="{'text-align':titleStyle}"><b>{{title}}</b></div>
<i class="el-icon-close" @click="onCancel"></i>
<div class="ls-mask-content">
......@@ -30,7 +30,7 @@ export default {
editItem: "",
titleStyle: 'center',
width: "75%",
height: "500px",
height: "230px",
formData: "",//父组件传递的参数 负责传给子组件
}
},
......@@ -82,6 +82,7 @@ export default {
left: 0;
top: 0;
background: rgba(0, 0, 0, 0.3);
border-radius: 5px;
}
.ls-mask-window {
......@@ -103,7 +104,6 @@ export default {
}
.ls-mask-footer {
height: 45px;
border-top: 1px solid #f0f0f0;
display: flex;
justify-content: flex-end;
......@@ -112,6 +112,7 @@ export default {
width: 98%;
bottom: 10px;
right: 12px;
padding-top: 10px;
}
/deep/.el-icon-close {
......
<!--
功能:流程图
作者:calliope
-->
<template>
<div class='flowChart'>
<img :src="formData" alt="">
</div>
</template>
<script>
export default {
props: {
formData: {
type: String,
default: ''
}
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
.flowChart {
margin: 20px 0;
}
</style>
\ No newline at end of file
......@@ -56,9 +56,6 @@
</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>
......@@ -82,7 +79,6 @@ export default {
return {
// 流程图
imgSrc: '',
myValue: false,
// 折叠
isShowdrawer: true,
// 默认选中
......@@ -154,7 +150,11 @@ export default {
case "B1":
getWorkFlowImage(this.bsmSlsq).then(res => {
this.imgSrc = URL.createObjectURL(res)
this.myValue = true
this.$popup({
title: '流程图',
editItem: 'workflow/components/flowChart',
formData: this.imgSrc
})
})
break;
case "zsyl":
......
......@@ -106,7 +106,7 @@ export default {
fetchData () {
if (this.bsmSqyw) {
this.queryForm.sqywbm = this.djywbm;
console.log(this.queryForm, this.bsmSqyw);
selectScBdcdy({ ...this.queryForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
......