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