20240205
luoJunYong.123 3 years ago
parent 971bbffbee
commit 0a26826d9b
  1. 70
      src/components/case/index.vue
  2. 27
      src/components/selectBusiness/index.vue
  3. 14
      src/mixins/tipsBefore/index.js
  4. 23
      src/pages/counter/list/index.vue

@ -355,16 +355,34 @@ export default {
initState: 'system/initState' initState: 'system/initState'
}), }),
clearStore() { clearStore() {
// // //
let token = sessionStorage.getItem('token') let token = sessionStorage.getItem('token')
let cid = sessionStorage.getItem('cid') let cid = sessionStorage.getItem('cid')
let systemId = sessionStorage.getItem('systemId') let systemId = sessionStorage.getItem('systemId')
let projectId = sessionStorage.getItem('projectId') let projectId = sessionStorage.getItem('projectId')
let assessmentId = sessionStorage.getItem('assessmentId')
let classId = sessionStorage.getItem('classId')
let timestamp = sessionStorage.getItem('timestamp')
let startTime = sessionStorage.getItem('startTime')
sessionStorage.clear() sessionStorage.clear()
sessionStorage.setItem('token', token) sessionStorage.setItem('token', token)
sessionStorage.setItem('cid', cid) sessionStorage.setItem('cid', cid)
sessionStorage.setItem('systemId', systemId) sessionStorage.setItem('systemId', systemId)
sessionStorage.setItem('projectId', projectId) sessionStorage.setItem('projectId', projectId)
if(assessmentId) {
sessionStorage.setItem('assessmentId', assessmentId)
}
if(classId) {
sessionStorage.setItem('classId', classId)
}
if(timestamp) {
sessionStorage.setItem('timestamp', timestamp)
}
if(startTime) {
sessionStorage.setItem('startTime', startTime)
}
// vuexstate // vuexstate
this.initState(); this.initState();
}, },
@ -406,30 +424,30 @@ export default {
this.topicList.push(data.data.projects[i]) this.topicList.push(data.data.projects[i])
} }
} }
// if(this.topicList.length > 0){ if(this.topicList.length > 0){
// // const projectIndex = JSON.parse(sessionStorage.getItem('projectIndex')) // const projectIndex = JSON.parse(sessionStorage.getItem('projectIndex'))
// // const projectId = sessionStorage.getItem('projectId') // const projectId = sessionStorage.getItem('projectId')
// // console.log('---projectId') // console.log('---projectId')
// // console.log(projectId) // console.log(projectId)
// // if(!projectId) { // if(!projectId) {
// // this.selectProjects({
// // projectId: this.topicList[0].projectId
// // })
// // // localStorage.setItem('projectId')
// // }else {
// // this.selectProjects({
// // projectId: projectId
// // })
// // }
// this.selectProjects({ // this.selectProjects({
// projectId: this.topicList[0].projectId // projectId: this.topicList[0].projectId
// }) // })
// // localStorage.setItem('projectId')
// }else {
// this.selectProjects({
// projectId: projectId
// })
// }
this.selectProjects({
projectId: this.topicList[0].projectId
})
// this.gotuQueryVariable()
// // this.gotuQueryVariable()
// } //
}
this.getQueryCaches() this.getQueryCaches()
} }
}).catch((error)=>{ }).catch((error)=>{
@ -535,6 +553,8 @@ export default {
}, },
// //
selectProject(){ selectProject(){
this.lockIt = false
this.$router.push('/index/list')
// //
// this.lockIt = false // this.lockIt = false
// let token = sessionStorage.getItem('token') // let token = sessionStorage.getItem('token')
@ -548,12 +568,16 @@ export default {
// sessionStorage.setItem('projectId', projectId) // sessionStorage.setItem('projectId', projectId)
// this.topicList[localProjectIndex].projectId // this.topicList[localProjectIndex].projectId
// localStorage.setItem('localProjectIndex', JSON.stringify(this.projectId)) // localStorage.setItem('localProjectIndex', JSON.stringify(this.projectId))
this.$nextTick(() => {
this.clearStore() this.clearStore()
deleteCache().then((data)=>{ })
}).catch(() => {
}) // deleteCache().then((data)=>{
// }).catch(() => {
// })
let params = { let params = {
"projectId":this.projectId, "projectId":this.projectId,

@ -219,6 +219,7 @@ export default {
}); });
return return
} }
this.setBusinessKey(this.takeCheck) this.setBusinessKey(this.takeCheck)
if(!this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id) { if(!this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id) {
this.$message({ this.$message({
@ -228,6 +229,32 @@ export default {
return return
} }
this.setShowBusiness(false) this.setShowBusiness(false)
let systemData = sessionStorage.getItem('systemData')
let token = sessionStorage.getItem('token')
let cid = sessionStorage.getItem('cid')
let systemId = sessionStorage.getItem('systemId')
let projectId = sessionStorage.getItem('projectId')
let assessmentId = sessionStorage.getItem('assessmentId')
let classId = sessionStorage.getItem('classId')
let timestamp = sessionStorage.getItem('timestamp')
sessionStorage.clear()
sessionStorage.setItem('token', token)
sessionStorage.setItem('cid', cid)
sessionStorage.setItem('systemId', systemId)
sessionStorage.setItem('projectId', projectId)
if(assessmentId) {
sessionStorage.setItem('assessmentId', assessmentId)
}
if(classId) {
sessionStorage.setItem('classId', classId)
}
if(timestamp) {
sessionStorage.setItem('timestamp', timestamp)
}
// sessionStorage.setItem('systemData', systemData)
sessionStorage.setItem('businessKey', this.$store.state.system.businessKey) sessionStorage.setItem('businessKey', this.$store.state.system.businessKey)
}, },

@ -41,13 +41,13 @@ export default {
this.isNeedBefore = true this.isNeedBefore = true
this.needBefore = this.needsModule(this.moduleName) this.needBefore = this.needsModule(this.moduleName)
// 因为依赖前一个项目,所以要提示 // 因为依赖前一个项目,所以要提示
this.tipsNefore = setInterval(() => { // this.tipsNefore = setInterval(() => {
this.$message({ // this.$message({
type: 'info', // type: 'info',
message: '请先完成' + obj[this.needBefore] + '。', // message: '请先完成' + obj[this.needBefore] + '。',
center: true // center: true
}); // });
}, 3000) // }, 3000)
} }

@ -1252,6 +1252,28 @@ export default {
}) })
this.startPlay() this.startPlay()
// console.log(this.getSelectList.accountQualitySelectList) // console.log(this.getSelectList.accountQualitySelectList)
let params= {
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,4',
// lcJudgmentRuleReq:formList,
// projectId:+projectId,
// startTime:startTime,
}
getOperation(params).then((data)=>{
if(data.status == 200) {
var list = data.data.judgmentRuleReqs
console.log(list)
}
// const tt1 = JSON.parse(sessionStorage.getItem('tt1'))
// console.log('1-tt1')
// console.log(tt1)
// if(tt1) {
// for(const key in tt1) {
// this.form[tt1] = tt1[key]
// }
// }
})
}, },
mounted(){ mounted(){
@ -1924,6 +1946,7 @@ export default {
projectId:+projectId, projectId:+projectId,
startTime:startTime, startTime:startTime,
} }
addOperation(params).then((data)=>{ addOperation(params).then((data)=>{
this.setTipsOperate('成功入库') this.setTipsOperate('成功入库')
}).catch((error)=>{ }).catch((error)=>{

Loading…
Cancel
Save