修改禅道已知bug
This commit is contained in:
@@ -1095,4 +1095,14 @@ module.exports = {
|
|||||||
theDeliveryTypeCannotBeEmpty:'The delivery type of cannot be empty',
|
theDeliveryTypeCannotBeEmpty:'The delivery type of cannot be empty',
|
||||||
For:'For',
|
For:'For',
|
||||||
markedRejection:'Marked rejection',
|
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:'的交付物类型不能为空',
|
theDeliveryTypeCannotBeEmpty:'的交付物类型不能为空',
|
||||||
For:'针对于',
|
For:'针对于',
|
||||||
markedRejection:'标注的驳回意见',
|
markedRejection:'标注的驳回意见',
|
||||||
|
RegulationListConfirmationTask:'清单确认任务',
|
||||||
|
RegulationListConfirmationNotification:'清单确认通知',
|
||||||
|
RegulationTaskConfirmation:'任务确认任务',
|
||||||
|
DesignComplianceTask:'设计符合性任务',
|
||||||
|
PreHomoTask:'Pre-Homo任务',
|
||||||
|
ValidationTask:'验证符合性任务',
|
||||||
|
DesignComplianceNotification:'设计符合性通知',
|
||||||
|
PreHomoNotification:'Pre-Homo通知',
|
||||||
|
ValidationComplianceNotification:'验证符合性通知',
|
||||||
|
RegulationTaskConfirmationNotification:'任务确认通知',
|
||||||
}
|
}
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
props: ['query', 'value', 'personneQuery', 'isSingleChoice', 'isInput', 'isClass','isDelete'],
|
props: ['query', 'value', 'personneQuery', 'isSingleChoice', 'isInput', 'isClass', 'isDelete'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: true,
|
loading: true,
|
||||||
@@ -74,6 +74,7 @@
|
|||||||
searchModel: '',
|
searchModel: '',
|
||||||
defaultExpandedKeys: [],
|
defaultExpandedKeys: [],
|
||||||
defaultCheckedKeys: [],
|
defaultCheckedKeys: [],
|
||||||
|
defaultCheckedKeysName: [],
|
||||||
content: []
|
content: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -90,10 +91,10 @@
|
|||||||
this.queryDepartUserTreeList()
|
this.queryDepartUserTreeList()
|
||||||
this.visible = true
|
this.visible = true
|
||||||
},
|
},
|
||||||
standardDelete(){
|
standardDelete() {
|
||||||
this.$emit('input', null)
|
this.$emit('input', null)
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
this.$emit('deleteData',this.query.db_field_name)
|
this.$emit('deleteData', this.query.db_field_name)
|
||||||
},
|
},
|
||||||
// onSelect(selectedKeys, info) {
|
// onSelect(selectedKeys, info) {
|
||||||
// console.log(selectedKeys)
|
// console.log(selectedKeys)
|
||||||
@@ -101,9 +102,17 @@
|
|||||||
// },
|
// },
|
||||||
|
|
||||||
onCheck(checkedKeys, info) {
|
onCheck(checkedKeys, info) {
|
||||||
console.log(checkedKeys)
|
|
||||||
this.userIds = checkedKeys.checked
|
this.userIds = checkedKeys.checked
|
||||||
this.userName = []
|
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) {
|
if (info.checkedNodes && info.checkedNodes.length > 0) {
|
||||||
info.checkedNodes.forEach(res => {
|
info.checkedNodes.forEach(res => {
|
||||||
if (res.data.props.dataRef.key) {
|
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() {
|
handleCancel() {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
@@ -151,8 +170,9 @@
|
|||||||
}
|
}
|
||||||
let userIds = JSON.parse(JSON.stringify(this.userIds))
|
let userIds = JSON.parse(JSON.stringify(this.userIds))
|
||||||
let userName = JSON.parse(JSON.stringify(this.userName))
|
let userName = JSON.parse(JSON.stringify(this.userName))
|
||||||
|
console.log(userName)
|
||||||
this.$emit('input', userName.join(','))
|
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.visible = false
|
||||||
this.treeVisible = false
|
this.treeVisible = false
|
||||||
// } else {
|
// } else {
|
||||||
@@ -179,8 +199,8 @@
|
|||||||
},
|
},
|
||||||
getUserAndDepart() {
|
getUserAndDepart() {
|
||||||
getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => {
|
getAction('sys/user/getUserAndDepart', { name: this.searchModel }).then((res) => {
|
||||||
if (res){
|
if (res) {
|
||||||
this.gData = res.filter(ele => ele.flag === 'DEPART');
|
this.gData = res.filter(ele => ele.flag === 'DEPART')
|
||||||
} else {
|
} else {
|
||||||
this.gData = []
|
this.gData = []
|
||||||
}
|
}
|
||||||
@@ -234,6 +254,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.defaultCheckedKeys = this.userIds
|
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
|
this.treeVisible = true
|
||||||
} else {
|
} else {
|
||||||
this.gData = []
|
this.gData = []
|
||||||
|
|||||||
@@ -105,7 +105,17 @@
|
|||||||
'2': this.$t('warningInformation'),
|
'2': this.$t('warningInformation'),
|
||||||
'3': this.$t('ForwardPush'),
|
'3': this.$t('ForwardPush'),
|
||||||
'4': this.$t('authenticationMessage'),
|
'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: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user