This commit is contained in:
zhutianqi
2022-01-25 13:01:53 +08:00
parent ce19812bf4
commit b127c22f04
3 changed files with 230 additions and 12 deletions
@@ -250,6 +250,7 @@ export default {
name: 'consultationDetails',
data() {
return {
freshClueNum: '',
itermsConditionsFlag: false,
itermsConditionsTitle: '',
options: [],
@@ -385,7 +386,7 @@ export default {
},
//编辑
selectStandardPro(type, row) {
this.type = type
this.type = type
if (type === 'edit') {
this.id = row.id
this.opiniontitle = '编辑意见内容'
@@ -394,16 +395,34 @@ export default {
this.opinionContent.oldText = row.oldText
this.opinionContent.newText = row.newText
this.opinionContent.cause = row.cause
this.isDialog = true
} else {
this.id = ''
this.opiniontitle = '新增意见'
this.opinionContent.partCode = ''
this.opinionContent.reason = ''
this.opinionContent.oldText = ''
this.opinionContent.newText = ''
this.opinionContent.cause = ''
localStorage.setItem('freshClueNum', new Date().getTime())
this.freshClueNum = localStorage.getItem('freshClueNum') || '';
let routeData = this.$router.resolve({
name: "AddFileDetails",
query: {
attId: this.fileInfoList[0].attId,
userId: this.$store.getters.userInfo.userId || '',
userName: this.$store.getters.userInfo.userName || '',
deptName: this.$store.getters.userInfo.institutionName || '',
deptId: this.$store.getters.userInfo.institutionId || '',
standId: JSON.parse(this.$route.query.item.files)[0].standId,
fileType: JSON.parse(this.$route.query.item.files)[0].standFileClassify,
ideaId: this.$route.query.item.id,
cid: this.$route.query.item.cid,
}
});
window.open(routeData.href, '_blank')
// return
// this.id = ''
// this.opiniontitle = '新增意见'
// this.opinionContent.partCode = ''
// this.opinionContent.reason = ''
// this.opinionContent.oldText = ''
// this.opinionContent.newText = ''
// this.opinionContent.cause = ''
}
this.isDialog = true
},
//删除
deleteStand(id) {
@@ -449,8 +468,8 @@ export default {
cause: this.opinionContent.cause,
userId: this.$store.getters.userInfo.userId || '',
userName: this.$store.getters.userInfo.userName || '',
deptName: this.$store.getters.userInfo.orgName || '',
deptId: this.$store.getters.userInfo.orgId || ''
deptName: this.$store.getters.userInfo.institutionName || '',
deptId: this.$store.getters.userInfo.institutionId || '',
}
if (this.type === 'edit') {
form.id = this.id
@@ -498,6 +517,11 @@ export default {
}
},
mounted() {
window.addEventListener("storage", ev => {
if(ev.key === 'freshClueNum'){
this.getList()
}
})
if (JSON.parse(this.$route.query.item.wkfiles).length) {
this.fileInfoLists = JSON.parse(this.$route.query.item.wkfiles)
} else {
@@ -522,7 +546,7 @@ export default {
this.getList()
this.getIdeaKey()
this.getFileInfo()
}
},
}
</script>