修改推出登录 删除vuex

This commit is contained in:
zhoulingpo
2023-04-21 11:03:29 +08:00
parent 4884bd4b50
commit 37d570641d
3 changed files with 24 additions and 11 deletions
+9
View File
@@ -37,6 +37,15 @@ export default {
method: 'GET', method: 'GET',
data: data data: data
}) })
},
// 获取监控流程详情
getMonitorImg(data){
return request({
url: '/api/model/getImg',
method: 'GET',
params: data,
responseType: 'blob',
})
} }
} }
+3 -1
View File
@@ -76,7 +76,9 @@ export default {
this.$api.login.logout().then(_ => { this.$api.login.logout().then(_ => {
this.$message.success('退出成功') this.$message.success('退出成功')
this.$store.commit('saveUserInfo', null) 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 sevice = "http://"+window.location.host+"/";
// var serviceUrl = encodeURIComponent(sevice); // var serviceUrl = encodeURIComponent(sevice);
// 正式 // 正式
@@ -343,24 +343,26 @@ export default {
// 请求转换流程图 // 请求转换流程图
processNum (row) { processNum (row) {
this.imgLoading = true; this.imgLoading = true;
axios.request({ // axios.request({
url: '/libary/api/model/getImg?_t=' + new Date().getTime(), // url: '/libary/api/model/getImg',
responseType: 'blob', // responseType: 'blob',
method: 'get', // method: 'get',
params: { // data: {
prcNum:(row && row.parentFlowNum) || this.$route.query.prcNum, // modelId: row?row.id:'111s',
} // }
}).then(res => { // })
this.$api.processCenter.getMonitorImg({modelId: row?row.id:'111s'})
.then(res => {
console.log(res)
// let blob = new Blob([res.data], {type: 'image/jpg'}) // let blob = new Blob([res.data], {type: 'image/jpg'})
// let url = window.URL.createObjectURL(res.data) // let url = window.URL.createObjectURL(res.data)
this.processStep = window.URL.createObjectURL(res.data) this.processStep = window.URL.createObjectURL(res)
}).finally(_ => { }).finally(_ => {
this.imgLoading = false; this.imgLoading = false;
}) })
}, },
// 请求列表 // 请求列表
processTable (row) { processTable (row) {
debugger
this.$api.processCenter.getMonitorPageList({ this.$api.processCenter.getMonitorPageList({
prcNum:(row && row.parentFlowNum) || this.$route.query.prcNum, prcNum:(row && row.parentFlowNum) || this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : '', sortWord: this.shunxu ? this.paixu : '',