对接项目库列表
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:title="'添加'"
|
||||
:title="title"
|
||||
:maskClosable="false"
|
||||
:width="1000"
|
||||
placement="right"
|
||||
@@ -17,9 +17,9 @@
|
||||
<span class="title-text-text" :title="$t('entryName')">{{$t('entryName')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="entryName">
|
||||
<j-dict-select-tag class="box-input" v-model="formInline.entryName"
|
||||
<j-dict-select-tag class="box-input" v-model="formInline.projectName"
|
||||
:disabled="disabled"
|
||||
@input="handleInput('entryName')"
|
||||
@input="handleInput('projectName')"
|
||||
:placeholder="$t('PleaseSelect')+$t('entryName')"
|
||||
:type="'select'"
|
||||
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||
@@ -37,7 +37,7 @@
|
||||
@input="handleInput('targetMarket')"
|
||||
:placeholder="$t('PleaseSelect')+$t('targetMarket')"
|
||||
:type="'select'"
|
||||
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||
:triggerChange="false" :dictCode="'region'"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -54,35 +54,7 @@
|
||||
@input="handleInput('projectStatus')"
|
||||
:placeholder="$t('PleaseSelect')+$t('projectStatus')"
|
||||
:type="'select'"
|
||||
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" title="Gate">Gate</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="Gate">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.Gate"
|
||||
:placeholder="$t('PleaseEnter')+'Gate'"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('IPDInformation')">{{$t('IPDInformation')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="IPDInformation">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.IPDInformation"
|
||||
:placeholder="$t('PleaseEnter')+$t('IPDInformation')"/>
|
||||
:triggerChange="false" :dictCode="'project_status'"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -92,11 +64,11 @@
|
||||
<span class="title-text-text" :title="$t('StudioEngineer')">{{$t('StudioEngineer')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="'StudioEngineer'">
|
||||
<PersonnelSelection :query="{db_field_name:'StudioEngineer',db_field_txt:$t('StudioEngineer')}"
|
||||
<PersonnelSelection :query="{db_field_name:'studioEngineer',db_field_txt:$t('StudioEngineer')}"
|
||||
:personneQuery="formInline"
|
||||
@change="PersonnelSelectionChange"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.StudioEngineer"/>
|
||||
v-model="formInline.studioEngineer"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -105,57 +77,89 @@
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('CertificationTime')">{{$t('CertificationTime')}}</span>
|
||||
<span class="title-text-text" :title="$t('certifiedEngineer')">{{$t('certifiedEngineer')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="CertificationTime">
|
||||
<a-range-picker class="box-input" v-model="formInline.CertificationTime"
|
||||
:disabled="disabled"
|
||||
@change="onChange('CertificationTime')"></a-range-picker>
|
||||
<a-form-model-item class="itemModel" :prop="'certificationEngineer'">
|
||||
<PersonnelSelection
|
||||
:query="{db_field_name:'certificationEngineer',db_field_txt:$t('certifiedEngineer')}"
|
||||
:personneQuery="formInline"
|
||||
@change="PersonnelSelectionChange"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.certificationEngineer"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('NTplatform')">{{$t('NTplatform')}}</span>
|
||||
<span class="title-text-text" :title="$t('IPDInformation')">{{$t('IPDInformation')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="'NTplatform'">
|
||||
<j-dict-select-tag class="box-input" v-model="formInline.NTplatform"
|
||||
:disabled="disabled"
|
||||
@input="handleInput('NTplatform')"
|
||||
:placeholder="$t('PleaseSelect')+$t('NTplatform')"
|
||||
:type="'select'"
|
||||
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('NPplatform')">{{$t('NPplatform')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="'NPplatform'">
|
||||
<j-dict-select-tag class="box-input" v-model="formInline.NPplatform"
|
||||
:disabled="disabled"
|
||||
@input="handleInput('NPplatform')"
|
||||
:placeholder="$t('PleaseSelect')+$t('NPplatform')"
|
||||
:type="'select'"
|
||||
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('certificationProgramInformation')">{{$t('certificationProgramInformation')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="certificationProgramInformation">
|
||||
<a-form-model-item class="itemModel" prop="ipdInfo">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.certificationProgramInformation"
|
||||
:placeholder="$t('PleaseEnter')+$t('certificationProgramInformation')"/>
|
||||
v-model="formInline.ipdInfo"
|
||||
:placeholder="$t('PleaseEnter')+$t('IPDInformation')"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('ModelPlatform')">{{$t('ModelPlatform')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="vehiclePlatform">
|
||||
<j-dict-select-tag class="box-input" v-model="formInline.vehiclePlatform"
|
||||
:disabled="disabled"
|
||||
@input="handleInput('vehiclePlatform')"
|
||||
:placeholder="$t('PleaseSelect')+$t('ModelPlatform')"
|
||||
:type="'select'"
|
||||
:triggerChange="false" :dictCode="'vehicle_platform'"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('DigitalPlatform')">{{$t('DigitalPlatform')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="'digitalPlatform'">
|
||||
<j-dict-select-tag class="box-input" v-model="formInline.digitalPlatform"
|
||||
:disabled="disabled"
|
||||
@input="handleInput('digitalPlatform')"
|
||||
:placeholder="$t('PleaseSelect')+$t('DigitalPlatform')"
|
||||
:type="'select'"
|
||||
:triggerChange="false" :dictCode="'digital_platform'"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('dehicleDevelopmentPlan')">{{$t('dehicleDevelopmentPlan')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="'vehicleDevelopmentPlan'">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.vehicleDevelopmentPlan"
|
||||
:placeholder="$t('PleaseEnter')+$t('dehicleDevelopmentPlan')"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text" :title="$t('certificationProgram')">{{$t('certificationProgram')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="attestationPlan">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.attestationPlan"
|
||||
:placeholder="$t('PleaseEnter')+$t('certificationProgram')"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -171,19 +175,22 @@
|
||||
|
||||
<script>
|
||||
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||
import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
|
||||
|
||||
export default {
|
||||
name: 'addModel',
|
||||
components: {
|
||||
PersonnelSelection
|
||||
},
|
||||
props: ['url'],
|
||||
data() {
|
||||
return {
|
||||
formInline: {},
|
||||
confirmLoading: false,
|
||||
visible: false,
|
||||
rules: {},
|
||||
disabled: false
|
||||
disabled: false,
|
||||
title: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -191,13 +198,45 @@
|
||||
methods: {
|
||||
addModel() {
|
||||
this.visible = true
|
||||
this.title = '新增'
|
||||
this.formInline = {}
|
||||
},
|
||||
editModel(value) {
|
||||
this.visible = true
|
||||
this.title = '编辑'
|
||||
this.$nextTick(() => {
|
||||
this.formInline = value
|
||||
})
|
||||
},
|
||||
handleCancel() {
|
||||
this.visible = false
|
||||
},
|
||||
handleSubmit() {
|
||||
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
let url = ''
|
||||
let Action
|
||||
if (this.formInline.id) {
|
||||
url = this.url.edit
|
||||
Action = putAction
|
||||
} else {
|
||||
url = this.url.add
|
||||
Action = postAction
|
||||
}
|
||||
this.confirmLoading = true
|
||||
Action(url, this.formInline).then((res) => {
|
||||
if (res.success) {
|
||||
this.confirmLoading = false
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.visible = false
|
||||
this.$emit('addModelList')
|
||||
} else {
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
this.confirmLoading = false
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
handleInput(value) {
|
||||
this.$nextTick(() => {
|
||||
@@ -320,4 +359,9 @@
|
||||
background: #fff;
|
||||
border-radius: 0 0 2px 2px;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.ant-input-disabled {
|
||||
color: rgba(0, 0, 0, 0.65) !important;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user