对接任务清单认证进度

This commit is contained in:
qq787203167
2022-05-12 16:59:39 +08:00
parent 03fbda5658
commit 0de66e2bd2
2 changed files with 40 additions and 11 deletions
@@ -115,8 +115,9 @@
</span> </span>
</div> </div>
<div slot="CurrentProjectStatusEvaluation" slot-scope="text,result"> <div slot="CurrentProjectStatusEvaluation" slot-scope="text,result">
<div class="Current-color box-content-cou" @click="CurrentProjectClick(result)"> <div class="Current-color box-content-cou" :style="{'background':CurrentColor[result.conditionAssessment]}"
<div class="Current-color-box"></div> @click="CurrentProjectClick(result)">
<div class="Current-color-box" :style="{'background':CurrentColorBox[result.conditionAssessment]}"></div>
</div> </div>
</div> </div>
</a-table> </a-table>
@@ -227,6 +228,16 @@
'Not start': 'submittedColor' 'Not start': 'submittedColor'
}, },
queryParam: {}, queryParam: {},
CurrentColor: {
'1': '#f3dddd',
'2': '#f6ebdb',
'3': '#dbf6e2'
},
CurrentColorBox: {
'1': '#E83030',
'2': '#FDA71C',
'3': '#26BD4B'
},
url: { url: {
list: '/project/projectTaskInventoryEO/list' list: '/project/projectTaskInventoryEO/list'
}, },
@@ -53,9 +53,10 @@
<span class="title-text-text" <span class="title-text-text"
:title="$t('CurrentProjectStatusEvaluation')">{{$t('CurrentProjectStatusEvaluation')}}</span> :title="$t('CurrentProjectStatusEvaluation')">{{$t('CurrentProjectStatusEvaluation')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="remarks"> <a-form-model-item class="itemModel" prop="conditionAssessment">
<a-select <a-select
:disabled="disabled" :disabled="disabled"
v-model="formInline.conditionAssessment"
:placeholder="$t('PleaseSelect')+$t('CurrentProjectStatusEvaluation')"> :placeholder="$t('PleaseSelect')+$t('CurrentProjectStatusEvaluation')">
<a-select-option :key="1" :value="1"> <a-select-option :key="1" :value="1">
<span style="display: inline-block;width: 100%"> <span style="display: inline-block;width: 100%">
@@ -88,7 +89,7 @@
<span class="title-text-text" <span class="title-text-text"
:title="$t('remarks')">{{$t('remarks')}}</span> :title="$t('remarks')">{{$t('remarks')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="remarks"> <a-form-model-item class="itemModel" prop="remark">
<a-textarea <a-textarea
:placeholder="$t('remarks')" :placeholder="$t('remarks')"
:disabled="disabled" :disabled="disabled"
@@ -102,7 +103,7 @@
</template> </template>
<script> <script>
import { getAction, putAction } from '@/api/manage' import { postAction, putAction } from '@/api/manage'
export default { export default {
name: 'TaskListModel', name: 'TaskListModel',
@@ -115,7 +116,8 @@
confirmLoading: false, confirmLoading: false,
disabled: false, disabled: false,
url: { url: {
edit: '/project/projectTaskInventoryEO/edit' edit: '/project/projectTaskInventoryEO/edit',
addOrUpdate: '/project/projectTaskInventoryConditionAssessmentEO/addOrUpdate'
} }
} }
}, },
@@ -149,13 +151,29 @@
} }
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {
if (valid) { if (valid) {
let query = { let query = {}
id: this.formInline.id, let url = ''
certificationProgress: this.formInline.certificationProgress, let Action
certificationProgressRemark: this.formInline.certificationProgressRemark if (this.title == this.$t('CertificationProgress')) {
query = {
id: this.formInline.id,
certificationProgress: this.formInline.certificationProgress,
certificationProgressRemark: this.formInline.certificationProgressRemark
}
url = this.url.edit
Action = putAction
} else {
query = {
roleCode: this.formInline.roleCode,
remark: this.formInline.remark,
conditionAssessment: this.formInline.conditionAssessment,
projectLawsInventoryId: this.formInline.projectLawsInventoryId
}
url = this.url.addOrUpdate
Action = postAction
} }
this.confirmLoading = true this.confirmLoading = true
putAction(this.url.edit, query).then((res) => { Action(url, query).then((res) => {
if (res.success) { if (res.success) {
this.visible = false this.visible = false
this.confirmLoading = false this.confirmLoading = false