diff --git a/src/api/modules/process.js b/src/api/modules/process.js
index 509cb58..80f9b1d 100644
--- a/src/api/modules/process.js
+++ b/src/api/modules/process.js
@@ -76,7 +76,7 @@ export default {
// 导出
exportStandard(data) {
return request({
- url: '/api/historyExport',
+ url: '/api/task/historyExport',
method: 'get',
params: data ,
responseType:'blob'
@@ -92,7 +92,6 @@ export default {
},
// 通用流程详细信息查询
getProcessDetail( data ){
- console.log(data,"datdtatdtatdatdtat")
return request({
url: '/api/queryDetail',
method: 'get',
diff --git a/src/components/Menu.vue b/src/components/Menu.vue
index ef0ac64..a418acc 100644
--- a/src/components/Menu.vue
+++ b/src/components/Menu.vue
@@ -57,6 +57,7 @@ export default {
methods: {
handleRouter (item) {
this.$store.commit('setActiveTabIndex','')
+ console.log("我点击的",item)
if (item.belong == 0) {
this.$store.commit('saveMenuName', item.label)
if (this.$route.path == '/system/401Page') {
@@ -78,12 +79,16 @@ export default {
})
} else {
this.$store.commit('saveMenuName', item.label)
- this.$router.push({ name: 'urlIndex', query: param })
+ this.$router.push({ name: 'urlIndex', query: {
+ id:param.id
+ } })
}
} else {
if (this.$route.path === item.href) return
// delete(this.$route.query.itemHref)
- this.$router.push({ path: item.href, query: this.$route.query })
+ this.$router.push({ path: item.href, query: {
+ id:this.$route.query.id
+ } })
}
}
},
diff --git a/src/components/ProcessMixin.vue b/src/components/ProcessMixin.vue
index 960bc14..49b7ceb 100644
--- a/src/components/ProcessMixin.vue
+++ b/src/components/ProcessMixin.vue
@@ -28,7 +28,10 @@
taskId: '',
userId: '',
},
- processOld:{} //存储流程的就信息
+ processOld:{} , //存储流程的就信息
+ prcId: '',
+ prcNum: '',
+ prcName:''
}
},
methods: {
@@ -101,11 +104,15 @@
})
},
// 获取流程详细信息
- getProcessDetail(params){
+ getProcessDetail(){
return new Promise((resolve,reject)=>{
- this.$api.process.getProcessDetail(params).then(res=>{
+ this.$api.process.getProcessDetail({
+ prcId: this.prcId,
+ prcType: this.prcType
+ }).then(res=>{
let data=res.data
- this.processOld=data.data
+ this.processOld=data
+ console.log( this.processOld,"processOld")
resolve()
}).catch(err=>{
reject()
diff --git a/src/utils/Enum/enum.js b/src/utils/Enum/enum.js
index 48b0c0d..b594b8e 100644
--- a/src/utils/Enum/enum.js
+++ b/src/utils/Enum/enum.js
@@ -2,8 +2,8 @@
import Esenum from './index.js'
// 权限申请
export const PERMISSION = new Esenum([
- { label: '预览', value: 1 },
- { label: '预览+下载', value: 2 }
+ { label: '预览', value: "1" },
+ { label: '预览+下载', value: "2" }
])
// 流程状态
export const PROCESSSTATE = new Esenum(
diff --git a/src/utils/request.js b/src/utils/request.js
index ab21b0a..7195f80 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -87,6 +87,26 @@ instance.interceptors.response.use(function (response) {
// 登录过期
if (error.response.status === 401) {
store.commit('saveUserInfo', null)
+ store.commit('saveUserInfo', null)
+ store.commit('savePathUrl', null)
+ store.commit('saveMenuName', null)
+ store.commit('saveMenuData', null)
+ router.push('/login')
+ Message.error('登录超时过期')
+ // window.open(BASE_URL.BASE_CHANGAN + "/logout?service=" + BASE_URL.BASE_LOCAL + "/login?loginType=1", '_self');
+ // var url = 'http://192.168.144.22:9966/login?loginType=1'
+ // // var url = 'http://10.64.23.30:7766/home'
+ //
+ // return window.open('http://192.168.144.29:9090/cas/login?service='+url, '_self');
+ // // return window.open('https://caddmuat.changan.com.cn/cas/login?service='+url, '_self');
+ }
+ // 登录过期
+ if (error.response.status === 500) {
+ store.commit('saveUserInfo', null)
+ store.commit('saveUserInfo', null)
+ store.commit('savePathUrl', null)
+ store.commit('saveMenuName', null)
+ store.commit('saveMenuData', null)
router.push('/login')
Message.error('登录超时过期')
// window.open(BASE_URL.BASE_CHANGAN + "/logout?service=" + BASE_URL.BASE_LOCAL + "/login?loginType=1", '_self');
diff --git a/src/views/permissionApplication/components/reportDialog.vue b/src/views/permissionApplication/components/reportDialog.vue
index ef58bd2..d493866 100644
--- a/src/views/permissionApplication/components/reportDialog.vue
+++ b/src/views/permissionApplication/components/reportDialog.vue
@@ -48,8 +48,9 @@
-
-
+
+
+