5b013af4 by 任超

style:流程图

1 parent ef1a610f
...@@ -5,4 +5,4 @@ NODE_ENV=development ...@@ -5,4 +5,4 @@ NODE_ENV=development
5 VUE_APP_BASE_API = '/bdcdj' 5 VUE_APP_BASE_API = '/bdcdj'
6 6
7 # 开发环境 7 # 开发环境
8 VUE_APP_API_BASE_URL = 'http://192.168.2.88:8018' 8 VUE_APP_API_BASE_URL = 'http://192.168.2.95:8018'
......
...@@ -46,3 +46,14 @@ export function logoutReg (data) { ...@@ -46,3 +46,14 @@ export function logoutReg (data) {
46 data 46 data
47 }) 47 })
48 } 48 }
49 // 流程图
50 export function getWorkFlowImage (bsmSlsq) {
51 return request({
52 url: '/business/workFlow/getWorkFlowImage',
53 method: 'get',
54 responseType: 'blob',
55 params: {
56 bsmSlsq: bsmSlsq
57 }
58 })
59 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -99,20 +99,9 @@ class data extends filter { ...@@ -99,20 +99,9 @@ class data extends filter {
99 </div> 99 </div>
100 ) 100 )
101 } 101 }
102 },
103 {
104 label: '操作',
105 width: '80',
106 align: 'center',
107 fixed: 'right',
108 render: (h, scope) => {
109 return <el-button type="text" icon="el-icon-delete" onClick={() => { vm.del(scope.row) }}>删除</el-button>
110 }
111 } 102 }
112 ] 103 ]
113 } 104 }
114
115
116 } 105 }
117 let datas = new data() 106 let datas = new data()
118 export { 107 export {
......
...@@ -56,6 +56,9 @@ ...@@ -56,6 +56,9 @@
56 </div> 56 </div>
57 </div> 57 </div>
58 </div> 58 </div>
59 <dialogBox title="流程图" width="70%" isMain v-model="myValue" :isFullscreen="false" :isButton="false">
60 <img :src="imgSrc" style="margin: 20px 0" />
61 </dialogBox>
59 </div> 62 </div>
60 </template> 63 </template>
61 64
...@@ -72,10 +75,14 @@ import { ...@@ -72,10 +75,14 @@ import {
72 getNextLinkInfo, 75 getNextLinkInfo,
73 completeTask, 76 completeTask,
74 } from "@/api/fqsq.js"; 77 } from "@/api/fqsq.js";
78 import { getWorkFlowImage } from "@/api/jsydsyqFlow.js"
75 import { getForm } from "./flowform.js"; 79 import { getForm } from "./flowform.js";
76 export default { 80 export default {
77 data () { 81 data () {
78 return { 82 return {
83 // 流程图
84 imgSrc: '',
85 myValue: false,
79 // 折叠 86 // 折叠
80 isShowdrawer: true, 87 isShowdrawer: true,
81 // 默认选中 88 // 默认选中
...@@ -144,8 +151,11 @@ export default { ...@@ -144,8 +151,11 @@ export default {
144 operation (index, item) { 151 operation (index, item) {
145 let that = this; 152 let that = this;
146 switch (item.value) { 153 switch (item.value) {
147 case "lct": 154 case "B1":
148 console.log(2222222222); 155 getWorkFlowImage(this.bsmSlsq).then(res => {
156 this.imgSrc = URL.createObjectURL(res)
157 this.myValue = true
158 })
149 break; 159 break;
150 case "zsyl": 160 case "zsyl":
151 this.zsylFlag = true; 161 this.zsylFlag = true;
...@@ -176,7 +186,6 @@ export default { ...@@ -176,7 +186,6 @@ export default {
176 } 186 }
177 }); 187 });
178 // this.$alert(res.result); 188 // this.$alert(res.result);
179
180 break; 189 break;
181 case "tc": 190 case "tc":
182 window.close(); 191 window.close();
......
...@@ -75,15 +75,6 @@ class data extends filter { ...@@ -75,15 +75,6 @@ class data extends filter {
75 </div> 75 </div>
76 ) 76 )
77 } 77 }
78 },
79 {
80 label: '操作',
81 width: '80',
82 align: 'center',
83 fixed: 'right',
84 render: (h, scope) => {
85 return <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope) }}>编辑</el-button>
86 }
87 } 78 }
88 ] 79 ]
89 } 80 }
......