@@ -348,11 +348,11 @@
|
|||||||
exportXls: '/project/projectTaskInventoryEO/exportXls'
|
exportXls: '/project/projectTaskInventoryEO/exportXls'
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
visibleoperationFailed:false,
|
visibleoperationFailed: false,
|
||||||
NotSelectedNoEngineerValue:[],
|
NotSelectedNoEngineerValue: [],
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
selectionRowsArray:[],
|
selectionRowsArray: [],
|
||||||
roleCodes:[],
|
roleCodes: [],
|
||||||
long: ''
|
long: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -376,6 +376,7 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
if (this.areaOfResponsibility.dutyTerritory) {
|
if (this.areaOfResponsibility.dutyTerritory) {
|
||||||
this.queryParam.dutyTerritory = this.areaOfResponsibility.dutyTerritory
|
this.queryParam.dutyTerritory = this.areaOfResponsibility.dutyTerritory
|
||||||
|
this.queryParam = { ...this.queryParam }
|
||||||
}
|
}
|
||||||
this.getList()
|
this.getList()
|
||||||
this.long = localStorage.getItem('language') || 'zh-cn'
|
this.long = localStorage.getItem('language') || 'zh-cn'
|
||||||
@@ -540,39 +541,39 @@
|
|||||||
this.$refs.TaskListModelRef.getData(item, this.$t('CurrentStatus'))
|
this.$refs.TaskListModelRef.getData(item, this.$t('CurrentStatus'))
|
||||||
},
|
},
|
||||||
// 催办
|
// 催办
|
||||||
cuibanClick(){
|
cuibanClick() {
|
||||||
if(this.selectionRowsArray.length <1){
|
if (this.selectionRowsArray.length < 1) {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}else{
|
} else {
|
||||||
this.$refs.cModelRef.getData(this.selectionRowsArray)
|
this.$refs.cModelRef.getData(this.selectionRowsArray)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cibanModel(){
|
cibanModel() {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
//批量维护进度
|
//批量维护进度
|
||||||
|
|
||||||
BatchMaintenanceProgress() {
|
BatchMaintenanceProgress() {
|
||||||
if(this.selectionRowsArray.length <1){
|
if (this.selectionRowsArray.length < 1) {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}else{
|
} else {
|
||||||
let query = {}
|
let query = {}
|
||||||
let projectLawsInventoryIds = []
|
let projectLawsInventoryIds = []
|
||||||
let roleCodes = []
|
let roleCodes = []
|
||||||
this.selectionRowsArray.forEach((item,index) => {
|
this.selectionRowsArray.forEach((item, index) => {
|
||||||
projectLawsInventoryIds.push(item.projectLawsInventoryId)
|
projectLawsInventoryIds.push(item.projectLawsInventoryId)
|
||||||
roleCodes.push(item.roleCode)
|
roleCodes.push(item.roleCode)
|
||||||
})
|
})
|
||||||
query = {
|
query = {
|
||||||
roleCodes: roleCodes.join(','),
|
roleCodes: roleCodes.join(','),
|
||||||
operation:'1',
|
operation: '1',
|
||||||
projectLawsInventoryIds: projectLawsInventoryIds.join(',')
|
projectLawsInventoryIds: projectLawsInventoryIds.join(',')
|
||||||
}
|
}
|
||||||
postAction('/project/projectTaskInventoryEO/verifyRoleCode', query).then((res) => {
|
postAction('/project/projectTaskInventoryEO/verifyRoleCode', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(res.result.length == 0){
|
if (res.result.length == 0) {
|
||||||
this.$refs.batchModelRef.getData(this.selectedRowKeys)
|
this.$refs.batchModelRef.getData(this.selectedRowKeys)
|
||||||
}else{
|
} else {
|
||||||
this.NotSelectedNoEngineerValue = res.result
|
this.NotSelectedNoEngineerValue = res.result
|
||||||
this.visibleoperationFailed = true
|
this.visibleoperationFailed = true
|
||||||
}
|
}
|
||||||
@@ -587,26 +588,26 @@
|
|||||||
},
|
},
|
||||||
//批量修改状态
|
//批量修改状态
|
||||||
BatchChangeStatus() {
|
BatchChangeStatus() {
|
||||||
if(this.selectionRowsArray.length <1){
|
if (this.selectionRowsArray.length < 1) {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}else{
|
} else {
|
||||||
let query = {}
|
let query = {}
|
||||||
let projectLawsInventoryIds = []
|
let projectLawsInventoryIds = []
|
||||||
let roleCodes = []
|
let roleCodes = []
|
||||||
this.selectionRowsArray.forEach((item,index) => {
|
this.selectionRowsArray.forEach((item, index) => {
|
||||||
projectLawsInventoryIds.push(item.projectLawsInventoryId)
|
projectLawsInventoryIds.push(item.projectLawsInventoryId)
|
||||||
roleCodes.push(item.roleCode)
|
roleCodes.push(item.roleCode)
|
||||||
})
|
})
|
||||||
query = {
|
query = {
|
||||||
roleCodes: roleCodes.join(','),
|
roleCodes: roleCodes.join(','),
|
||||||
operation:'2',
|
operation: '2',
|
||||||
projectLawsInventoryIds: projectLawsInventoryIds.join(',')
|
projectLawsInventoryIds: projectLawsInventoryIds.join(',')
|
||||||
}
|
}
|
||||||
postAction('/project/projectTaskInventoryEO/verifyRoleCode', query).then((res) => {
|
postAction('/project/projectTaskInventoryEO/verifyRoleCode', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(res.result.length == 0){
|
if (res.result.length == 0) {
|
||||||
this.$refs.batchChangeModelRef.getData(this.selectionRowsArray)
|
this.$refs.batchChangeModelRef.getData(this.selectionRowsArray)
|
||||||
}else{
|
} else {
|
||||||
this.NotSelectedNoEngineerValue = res.result
|
this.NotSelectedNoEngineerValue = res.result
|
||||||
this.visibleoperationFailed = true
|
this.visibleoperationFailed = true
|
||||||
}
|
}
|
||||||
@@ -619,17 +620,17 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
// 催办
|
// 催办
|
||||||
cuibanClick(){
|
cuibanClick() {
|
||||||
if(this.selectionRowsArray.length <1){
|
if (this.selectionRowsArray.length < 1) {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}else{
|
} else {
|
||||||
this.$refs.cModelRef.getData(this.selectionRowsArray)
|
this.$refs.cModelRef.getData(this.selectionRowsArray)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cibanModel(){
|
cibanModel() {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
cancleoperationFailed(){
|
cancleoperationFailed() {
|
||||||
this.visibleoperationFailed = false
|
this.visibleoperationFailed = false
|
||||||
},
|
},
|
||||||
TaskListModelList() {
|
TaskListModelList() {
|
||||||
|
|||||||
@@ -1002,6 +1002,7 @@
|
|||||||
})
|
})
|
||||||
if (this.areaOfResponsibilityList && this.areaOfResponsibilityList.dutyTerritory) {
|
if (this.areaOfResponsibilityList && this.areaOfResponsibilityList.dutyTerritory) {
|
||||||
this.queryParam.dutyTerritory = this.areaOfResponsibilityList.dutyTerritory
|
this.queryParam.dutyTerritory = this.areaOfResponsibilityList.dutyTerritory
|
||||||
|
this.queryParam = {...this.queryParam}
|
||||||
}
|
}
|
||||||
// } else {
|
// } else {
|
||||||
// this.isDisplay = false
|
// this.isDisplay = false
|
||||||
|
|||||||
Reference in New Issue
Block a user