修改推出登录 删除vuex
This commit is contained in:
@@ -37,6 +37,15 @@ export default {
|
||||
method: 'GET',
|
||||
data: data
|
||||
})
|
||||
},
|
||||
// 获取监控流程详情
|
||||
getMonitorImg(data){
|
||||
return request({
|
||||
url: '/api/model/getImg',
|
||||
method: 'GET',
|
||||
params: data,
|
||||
responseType: 'blob',
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -76,7 +76,9 @@ export default {
|
||||
this.$api.login.logout().then(_ => {
|
||||
this.$message.success('退出成功')
|
||||
this.$store.commit('saveUserInfo', null)
|
||||
|
||||
this.$store.commit('savePathUrl', null)
|
||||
this.$store.commit('saveMenuName', null)
|
||||
this.$store.commit('saveMenuData', null)
|
||||
// var sevice = "http://"+window.location.host+"/";
|
||||
// var serviceUrl = encodeURIComponent(sevice);
|
||||
// 正式
|
||||
|
||||
@@ -343,24 +343,26 @@ export default {
|
||||
// 请求转换流程图
|
||||
processNum (row) {
|
||||
this.imgLoading = true;
|
||||
axios.request({
|
||||
url: '/libary/api/model/getImg?_t=' + new Date().getTime(),
|
||||
responseType: 'blob',
|
||||
method: 'get',
|
||||
params: {
|
||||
prcNum:(row && row.parentFlowNum) || this.$route.query.prcNum,
|
||||
}
|
||||
}).then(res => {
|
||||
// axios.request({
|
||||
// url: '/libary/api/model/getImg',
|
||||
// responseType: 'blob',
|
||||
// method: 'get',
|
||||
// data: {
|
||||
// modelId: row?row.id:'111s',
|
||||
// }
|
||||
// })
|
||||
this.$api.processCenter.getMonitorImg({modelId: row?row.id:'111s'})
|
||||
.then(res => {
|
||||
console.log(res)
|
||||
// let blob = new Blob([res.data], {type: 'image/jpg'})
|
||||
// let url = window.URL.createObjectURL(res.data)
|
||||
this.processStep = window.URL.createObjectURL(res.data)
|
||||
this.processStep = window.URL.createObjectURL(res)
|
||||
}).finally(_ => {
|
||||
this.imgLoading = false;
|
||||
})
|
||||
},
|
||||
// 请求列表
|
||||
processTable (row) {
|
||||
debugger
|
||||
this.$api.processCenter.getMonitorPageList({
|
||||
prcNum:(row && row.parentFlowNum) || this.$route.query.prcNum,
|
||||
sortWord: this.shunxu ? this.paixu : '',
|
||||
|
||||
Reference in New Issue
Block a user