批量修改认证进度 当前状态对接接口
This commit is contained in:
@@ -186,8 +186,8 @@
|
||||
<certificationDirectory :isDisplayNum="isDisplayNum" :url="url" ref="certificationDirectoryRef"/>
|
||||
<TaskListModel @TaskListModelList="TaskListModelList" ref="TaskListModelRef"/>
|
||||
<taskBatSetting @taskBatSettingForm="taskBatSettingForm" ref="taskBatSettingRef"></taskBatSetting>
|
||||
<batchChangeModel ref="batchChangeModelRef"/>
|
||||
<batchModel ref="batchModelRef"/>
|
||||
<batchChangeModel @batchChangeModel="batchChangeModel" ref="batchChangeModelRef"/>
|
||||
<batchModel @batchModel="batchModel" ref="batchModelRef"/>
|
||||
<!-- 错误数据提示-->
|
||||
<a-modal
|
||||
:title="$t('operationFailed')"
|
||||
@@ -393,6 +393,12 @@
|
||||
taskBatSettingForm() {
|
||||
this.getList()
|
||||
},
|
||||
batchChangeModel() {
|
||||
this.getList()
|
||||
},
|
||||
batchModel() {
|
||||
this.getList()
|
||||
},
|
||||
onSelectChange(value, selectionRows) {
|
||||
this.selectedRowKeys = value
|
||||
this.selectionRowsArray = selectionRows
|
||||
@@ -542,9 +548,10 @@
|
||||
})
|
||||
query = {
|
||||
roleCodes: roleCodes.join(','),
|
||||
operation:'1',
|
||||
projectLawsInventoryIds: projectLawsInventoryIds.join(',')
|
||||
}
|
||||
getAction(this.url.list, query).then((res) => {
|
||||
postAction('/project/projectTaskInventoryEO/verifyRoleCode', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.$refs.batchModelRef.getData(this.selectedRowKeys)
|
||||
} else {
|
||||
@@ -572,9 +579,10 @@
|
||||
})
|
||||
query = {
|
||||
roleCodes: roleCodes.join(','),
|
||||
operation:'2',
|
||||
projectLawsInventoryIds: projectLawsInventoryIds.join(',')
|
||||
}
|
||||
getAction(this.url.list, query).then((res) => {
|
||||
postAction('/project/projectTaskInventoryEO/verifyRoleCode', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.$refs.batchChangeModelRef.getData(this.selectionRowsArray)
|
||||
} else {
|
||||
|
||||
@@ -87,6 +87,7 @@ export default {
|
||||
projectLawsInventoryIds:[],
|
||||
roleCodes:[],
|
||||
visible: false,
|
||||
title:'',
|
||||
confirmLoading: false,
|
||||
studioList: [],
|
||||
disabled: false,
|
||||
@@ -134,7 +135,6 @@ export default {
|
||||
let query = {}
|
||||
let projectLawsInventoryIds = []
|
||||
let roleCodes = []
|
||||
let url = ''
|
||||
let Action
|
||||
this.selectionRowsArray.forEach((item,index) => {
|
||||
projectLawsInventoryIds.push(item.projectLawsInventoryId)
|
||||
@@ -146,15 +146,14 @@ export default {
|
||||
conditionAssessment: this.formInline.conditionAssessment,
|
||||
projectLawsInventoryIds: projectLawsInventoryIds.join(',')
|
||||
}
|
||||
url = this.url.addOrUpdate
|
||||
Action = postAction
|
||||
this.confirmLoading = true
|
||||
Action(url, query).then((res) => {
|
||||
Action('/project/projectTaskInventoryConditionAssessmentEO/addOrUpdateBatch', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.visible = false
|
||||
this.confirmLoading = false
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.$emit('TaskListModelList')
|
||||
this.$emit('batchChangeModel')
|
||||
} else {
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
this.confirmLoading = false
|
||||
|
||||
@@ -57,6 +57,7 @@ export default {
|
||||
formInline: {},
|
||||
selectionRowsArray:[],
|
||||
rules: {},
|
||||
title:'',
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
studioList: [],
|
||||
@@ -104,21 +105,19 @@ export default {
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
let query = {}
|
||||
let url = ''
|
||||
this.ids = this.selectionRowsArray.join(',')
|
||||
query = {
|
||||
ids: this.ids,
|
||||
certificationProgress: this.formInline.certificationProgress,
|
||||
certificationProgressRemark: this.formInline.certificationProgressRemark
|
||||
}
|
||||
url = this.url.edit
|
||||
this.confirmLoading = true
|
||||
postAction(url, query).then((res) => {
|
||||
postAction('/project/projectTaskInventoryEO/editBatch', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.visible = false
|
||||
this.confirmLoading = false
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.$emit('TaskListModelList')
|
||||
this.$emit('batchModel')
|
||||
} else {
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
this.confirmLoading = false
|
||||
|
||||
Reference in New Issue
Block a user