[add] 分配填写人
This commit is contained in:
@@ -112,9 +112,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
paramsManifest: {
|
selectedRowKeysArray: {
|
||||||
type: Object,
|
type: String,
|
||||||
default: {},
|
default: '',
|
||||||
require: true
|
require: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -171,8 +171,7 @@ export default {
|
|||||||
} else if (this.selectedRowKeys.length > 1) {
|
} else if (this.selectedRowKeys.length > 1) {
|
||||||
this.$message.warning(this.$t('OnlyOneSelected'))
|
this.$message.warning(this.$t('OnlyOneSelected'))
|
||||||
} else {
|
} else {
|
||||||
console.log(this.selectedRowKeysDate,'this.selectedRowKeysDate')
|
let param = {ids: this.selectedRowKeysArray, projectId: this.$route.query.id, dre:this.selectedRowKeysDate[0].username }
|
||||||
let param = {ids: this.paramsManifest.id, projectId: this.$route.query.id, dre:this.selectedRowKeysDate[0].username }
|
|
||||||
axios({
|
axios({
|
||||||
url: '/jero-boot/params/collectManifest/updateDreBatch',
|
url: '/jero-boot/params/collectManifest/updateDreBatch',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@@ -191,10 +190,11 @@ export default {
|
|||||||
})
|
})
|
||||||
.then( (res) =>{
|
.then( (res) =>{
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
_this.$message.success(res.data.result)
|
||||||
_this.loadData()
|
_this.loadData()
|
||||||
|
this.$emit('areaVisibleAssignedbyflag', false)
|
||||||
}else{
|
}else{
|
||||||
_this.$message.warning(_this.$t('operationFailed'))
|
_this.$message.warning(res.data.result)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch( (error) =>{
|
.catch( (error) =>{
|
||||||
|
|||||||
@@ -161,7 +161,7 @@
|
|||||||
</a-modal>
|
</a-modal>
|
||||||
<!-- 分配填写人--->
|
<!-- 分配填写人--->
|
||||||
<a-modal v-model="areaVisibleAssignedby" :title="$t('Assignedby')" width='950px' :footer="null">
|
<a-modal v-model="areaVisibleAssignedby" :title="$t('Assignedby')" width='950px' :footer="null">
|
||||||
<assigned-by v-if='areaVisibleAssignedby' :paramsManifest='paramsManifest'/>
|
<assigned-by v-if='areaVisibleAssignedby' :selectedRowKeysArray='selectedRowKeysArray' @areaVisibleAssignedbyflag='areaVisibleAssignedbyflag'/>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
@@ -565,7 +565,9 @@ export default {
|
|||||||
// 分配填写人
|
// 分配填写人
|
||||||
assignedBy() {
|
assignedBy() {
|
||||||
this.areaVisibleAssignedby = true
|
this.areaVisibleAssignedby = true
|
||||||
console.log('分配填写人')
|
},
|
||||||
|
areaVisibleAssignedbyflag(val) {
|
||||||
|
this.areaVisibleAssignedby = val
|
||||||
},
|
},
|
||||||
handleModule() {
|
handleModule() {
|
||||||
|
|
||||||
@@ -634,10 +636,7 @@ export default {
|
|||||||
SizeChange() {
|
SizeChange() {
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
// watch: {
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user