【修改】提交

This commit is contained in:
zhoulingpo
2023-05-18 21:17:13 +08:00
parent 30f932ede2
commit c7b565b65b
8 changed files with 15 additions and 7 deletions
+1
View File
@@ -87,6 +87,7 @@ export default {
this.$store.commit('saveUserInfo', null) this.$store.commit('saveUserInfo', null)
this.$store.commit('setHandleProcess', null) this.$store.commit('setHandleProcess', null)
this.$store.commit('savePathUrl', null) this.$store.commit('savePathUrl', null)
this.$store.commit('activeTab', null)
this.$store.commit('removeDicts', null) this.$store.commit('removeDicts', null)
localStorage.removeItem('cookie') localStorage.removeItem('cookie')
// var sevice = "http://"+window.location.host+"/"; // var sevice = "http://"+window.location.host+"/";
-1
View File
@@ -1104,7 +1104,6 @@ export default {
}, },
watch: { watch: {
visible (val) { visible (val) {
debugger
this.isVisible = val this.isVisible = val
this.tableChecked = null this.tableChecked = null
if (this.maxSelected === 1) { if (this.maxSelected === 1) {
+2
View File
@@ -83,6 +83,7 @@ instance.interceptors.response.use(function (response) {
store.commit('savePathUrl', null) store.commit('savePathUrl', null)
store.commit('setHandleProcess', null) store.commit('setHandleProcess', null)
store.commit('removeDicts', null) store.commit('removeDicts', null)
store.commit('activeTab', null)
localStorage.removeItem('cookie') localStorage.removeItem('cookie')
router.push('/login') router.push('/login')
Message.error('登录超时过期') Message.error('登录超时过期')
@@ -98,6 +99,7 @@ instance.interceptors.response.use(function (response) {
store.commit('savePathUrl', null) store.commit('savePathUrl', null)
store.commit('setHandleProcess', null) store.commit('setHandleProcess', null)
store.commit('removeDicts', null) store.commit('removeDicts', null)
store.commit('activeTab', null)
localStorage.removeItem('cookie') localStorage.removeItem('cookie')
router.push('/login') router.push('/login')
Message.error('登录超时过期') Message.error('登录超时过期')
+1
View File
@@ -124,6 +124,7 @@ export default {
this.$message.warning('暂无权限,请联系管理员授权') this.$message.warning('暂无权限,请联系管理员授权')
this.$store.commit('saveUserInfo', null) this.$store.commit('saveUserInfo', null)
this.$store.commit('setHandleProcess', null) this.$store.commit('setHandleProcess', null)
this.$store.commit('activeTab', null)
this.$store.commit('savePathUrl', null) this.$store.commit('savePathUrl', null)
this.$store.commit('removeDicts', null) this.$store.commit('removeDicts', null)
// var sevice = "http://"+window.location.host+"/"; // var sevice = "http://"+window.location.host+"/";
+1
View File
@@ -46,6 +46,7 @@ export default {
this.$message.warning('暂无权限,请联系管理员授权') this.$message.warning('暂无权限,请联系管理员授权')
this.$store.commit('saveUserInfo', null) this.$store.commit('saveUserInfo', null)
this.$store.commit('setHandleProcess', null) this.$store.commit('setHandleProcess', null)
this.$store.commit('activeTab', null)
this.$store.commit('savePathUrl', null) this.$store.commit('savePathUrl', null)
this.$store.commit('removeDicts', null) this.$store.commit('removeDicts', null)
// var sevice = "http://"+window.location.host+"/"; // var sevice = "http://"+window.location.host+"/";
+1 -3
View File
@@ -261,7 +261,7 @@ export default {
} }
item.reportId = item['id'] item.reportId = item['id']
delete item['id'] delete item['id']
item.power='' item.power='2'
templateL.push(item) templateL.push(item)
}) })
this.tableData=templateL this.tableData=templateL
@@ -315,7 +315,6 @@ export default {
twoApproveName:item.twoApproveName, twoApproveName:item.twoApproveName,
userId:this.userId, userId:this.userId,
} }
debugger
delete item['oneApprove'] delete item['oneApprove']
delete item['oneApproveName'] delete item['oneApproveName']
delete item['twoApprove'] delete item['twoApprove']
@@ -332,7 +331,6 @@ export default {
}, },
// 保存 // 保存
handleSave(){ handleSave(){
debugger
this.saveLoading = true this.saveLoading = true
if(this.tableData.length==0){ if(this.tableData.length==0){
this.$message.warning('至少需要选择一条报告数据') this.$message.warning('至少需要选择一条报告数据')
+1
View File
@@ -110,6 +110,7 @@ import tabs from '../userCenter/processCenter/tabs.vue'
console.log(data) console.log(data)
this.checkList=data this.checkList=data
}); });
let name=this.controlNode('RXXTU4A5YN')?'first':'' let name=this.controlNode('RXXTU4A5YN')?'first':''
this.isShowbtn= name =='first'?true:false this.isShowbtn= name =='first'?true:false
+8 -3
View File
@@ -55,9 +55,14 @@ export default {
this.form = JSON.parse(JSON.stringify(data)) this.form = JSON.parse(JSON.stringify(data))
console.log(this.form,"hhh") console.log(this.form,"hhh")
}) })
let name=this.controlNode('RXXTU4A5YN')?'first':(this.controlNode('NXQ54Q9QP4')?'fourth':'five') if(this.$store.getters.activeTab == ''){
this.$store.commit('setActiveTabIndex',name) let name=this.controlNode('RXXTU4A5YN')?'first':(this.controlNode('NXQ54Q9QP4')?'fourth':'five')
this.activeName=this.$store.getters.activeTab ?this.$store.getters.activeTab:name this.$store.commit('setActiveTabIndex',name)
this.activeName=this.$store.getters.activeTab ?this.$store.getters.activeTab:name
}else{
this.activeName=this.$store.getters.activeTab ?this.$store.getters.activeTab:name
}
}, },
methods: { methods: {
controlNode(node) { controlNode(node) {