合并分支 'fix_bug_first_stage' 到 'master'
Fix bug first stage 查看合并请求 laws-nio/laws-weilai!57
This commit is contained in:
@@ -1095,4 +1095,14 @@ module.exports = {
|
||||
theDeliveryTypeCannotBeEmpty:'The delivery type of cannot be empty',
|
||||
For:'For',
|
||||
markedRejection:'Marked rejection',
|
||||
RegulationListConfirmationTask:'Regulation List Confirmation Task',
|
||||
RegulationListConfirmationNotification:'Regulation List Confirmation Notification',
|
||||
RegulationTaskConfirmation:'Regulation Task Confirmation',
|
||||
DesignComplianceTask:'Design Compliance Task',
|
||||
PreHomoTask:'Pre-Homo Task',
|
||||
ValidationTask:'Validation Task',
|
||||
DesignComplianceNotification:'Design Compliance Notification',
|
||||
PreHomoNotification:'Pre-Homo Notification',
|
||||
ValidationComplianceNotification:'Validation Compliance Notification',
|
||||
RegulationTaskConfirmationNotification:'Regulation Task Confirmation Notification',
|
||||
}
|
||||
@@ -1099,4 +1099,14 @@ module.exports = {
|
||||
theDeliveryTypeCannotBeEmpty:'的交付物类型不能为空',
|
||||
For:'针对于',
|
||||
markedRejection:'标注的驳回意见',
|
||||
RegulationListConfirmationTask:'清单确认任务',
|
||||
RegulationListConfirmationNotification:'清单确认通知',
|
||||
RegulationTaskConfirmation:'任务确认任务',
|
||||
DesignComplianceTask:'设计符合性任务',
|
||||
PreHomoTask:'Pre-Homo任务',
|
||||
ValidationTask:'验证符合性任务',
|
||||
DesignComplianceNotification:'设计符合性通知',
|
||||
PreHomoNotification:'Pre-Homo通知',
|
||||
ValidationComplianceNotification:'验证符合性通知',
|
||||
RegulationTaskConfirmationNotification:'任务确认通知',
|
||||
}
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
export default {
|
||||
name: 'index',
|
||||
props: ['query', 'value', 'personneQuery', 'isSingleChoice', 'isInput', 'isClass','isDelete'],
|
||||
props: ['query', 'value', 'personneQuery', 'isSingleChoice', 'isInput', 'isClass', 'isDelete'],
|
||||
data() {
|
||||
return {
|
||||
loading: true,
|
||||
@@ -74,6 +74,7 @@
|
||||
searchModel: '',
|
||||
defaultExpandedKeys: [],
|
||||
defaultCheckedKeys: [],
|
||||
defaultCheckedKeysName: [],
|
||||
content: []
|
||||
}
|
||||
},
|
||||
@@ -90,10 +91,10 @@
|
||||
this.queryDepartUserTreeList()
|
||||
this.visible = true
|
||||
},
|
||||
standardDelete(){
|
||||
standardDelete() {
|
||||
this.$emit('input', null)
|
||||
this.$forceUpdate()
|
||||
this.$emit('deleteData',this.query.db_field_name)
|
||||
this.$emit('deleteData', this.query.db_field_name)
|
||||
},
|
||||
// onSelect(selectedKeys, info) {
|
||||
// console.log(selectedKeys)
|
||||
@@ -101,9 +102,17 @@
|
||||
// },
|
||||
|
||||
onCheck(checkedKeys, info) {
|
||||
console.log(checkedKeys)
|
||||
this.userIds = checkedKeys.checked
|
||||
this.userName = []
|
||||
if (this.userIds.length > 0) {
|
||||
for (let i = 0; i < this.userIds.length; i++) {
|
||||
for (let j = 0; j < this.defaultCheckedKeysName.length; j++) {
|
||||
if (this.userIds[i] == this.defaultCheckedKeysName[j].id) {
|
||||
this.userName.push(this.defaultCheckedKeysName[j].name)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (info.checkedNodes && info.checkedNodes.length > 0) {
|
||||
info.checkedNodes.forEach(res => {
|
||||
if (res.data.props.dataRef.key) {
|
||||
@@ -136,6 +145,16 @@
|
||||
})
|
||||
})
|
||||
}
|
||||
if (this.userName.length > 0){
|
||||
for (let i = 0; i < this.userName.length; i++) {
|
||||
for (let j = i + 1; j < this.userName.length; j++) {
|
||||
if (this.userName[i] == this.userName[j]) {
|
||||
this.userName.splice(j, 1)
|
||||
j--
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
handleCancel() {
|
||||
this.visible = false
|
||||
@@ -151,8 +170,9 @@
|
||||
}
|
||||
let userIds = JSON.parse(JSON.stringify(this.userIds))
|
||||
let userName = JSON.parse(JSON.stringify(this.userName))
|
||||
console.log(userName)
|
||||
this.$emit('input', userName.join(','))
|
||||
this.$emit('change', this.query.db_field_name, userIds.join(','),this.query.subscript)
|
||||
this.$emit('change', this.query.db_field_name, userIds.join(','), this.query.subscript)
|
||||
this.visible = false
|
||||
this.treeVisible = false
|
||||
// } else {
|
||||
@@ -179,8 +199,8 @@
|
||||
},
|
||||
getUserAndDepart() {
|
||||
getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => {
|
||||
if (res){
|
||||
this.gData = res.filter(ele => ele.flag === 'DEPART');
|
||||
if (res) {
|
||||
this.gData = res.filter(ele => ele.flag === 'DEPART')
|
||||
} else {
|
||||
this.gData = []
|
||||
}
|
||||
@@ -234,6 +254,15 @@
|
||||
}
|
||||
}
|
||||
this.defaultCheckedKeys = this.userIds
|
||||
this.defaultCheckedKeysName = []
|
||||
if (this.defaultCheckedKeys.length > 0) {
|
||||
for (let i = 0; i < this.defaultCheckedKeys.length; i++) {
|
||||
this.defaultCheckedKeysName.push({
|
||||
id: this.defaultCheckedKeys[i],
|
||||
name: this.userName[i]
|
||||
})
|
||||
}
|
||||
}
|
||||
this.treeVisible = true
|
||||
} else {
|
||||
this.gData = []
|
||||
|
||||
@@ -191,17 +191,18 @@
|
||||
let index1 = fileName.lastIndexOf('.')
|
||||
let index2 = fileName.length
|
||||
let fileSuffix = fileName.substring(index1, index2)
|
||||
if (fileSuffix === '.pdf') {
|
||||
window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id+'&userName='+this.userInfo().username))
|
||||
} else if (fileSuffix === '.docx') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||
}
|
||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||
// if (fileSuffix === '.pdf') {
|
||||
// window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id+'&userName='+this.userInfo().username))
|
||||
// } else if (fileSuffix === '.docx') {
|
||||
// let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
// window.open(url, '_blank')
|
||||
// } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||
// let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||
// window.open(url, '_blank')
|
||||
// } else {
|
||||
// downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,10 +128,6 @@
|
||||
<a-icon type="delete"/>
|
||||
{{ $t('BatchDelete') }}
|
||||
</div>
|
||||
<div class="operator-text-title" @click="bringInRelevantPersonnelClick">
|
||||
<a-icon type="user"/>
|
||||
{{ $t('bringInRelevantPersonnel') }}
|
||||
</div>
|
||||
<div class="operator-text-title" @click="ExportReportClick">
|
||||
<a-icon type="export"/>
|
||||
{{ $t('ExportReport') }}
|
||||
@@ -149,6 +145,10 @@
|
||||
<span style="position: absolute;left: -13px;top: -4px">...</span>{{ $t('more') }}
|
||||
</div>
|
||||
</a-popconfirm>
|
||||
<div class="operator-text" @click="bringInRelevantPersonnelClick">
|
||||
<a-icon type="user"/>
|
||||
{{ $t('bringInRelevantPersonnel') }}
|
||||
</div>
|
||||
<div @click="transferClick" class="operator-text">
|
||||
<a-icon type="profile"/>
|
||||
{{ $t('Transfer') }}
|
||||
|
||||
@@ -75,11 +75,11 @@
|
||||
}
|
||||
|
||||
.box-content {
|
||||
padding: 40px 120px;
|
||||
padding: 40px 70px;
|
||||
box-sizing: border-box;
|
||||
color: #040B29;
|
||||
font-size: 16px;
|
||||
text-indent: 30px;
|
||||
letter-spacing: 3px
|
||||
text-indent: 24px;
|
||||
/*letter-spacing: 1px*/
|
||||
}
|
||||
</style>
|
||||
@@ -105,7 +105,17 @@
|
||||
'2': this.$t('warningInformation'),
|
||||
'3': this.$t('ForwardPush'),
|
||||
'4': this.$t('authenticationMessage'),
|
||||
'5': this.$t('taskRegulationComplianceTask')
|
||||
'5': this.$t('taskRegulationComplianceTask'),
|
||||
'6':this.$t('RegulationListConfirmationTask'),
|
||||
'7':this.$t('RegulationListConfirmationNotification'),
|
||||
'8':this.$t('RegulationTaskConfirmation'),
|
||||
'9':this.$t('DesignComplianceTask'),
|
||||
'10':this.$t('PreHomoTask'),
|
||||
'11':this.$t('ValidationTask'),
|
||||
'12':this.$t('DesignComplianceNotification'),
|
||||
'13':this.$t('PreHomoNotification'),
|
||||
'14':this.$t('ValidationComplianceNotification'),
|
||||
'15':this.$t('RegulationTaskConfirmationNotification'),
|
||||
},
|
||||
columns: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user