|
|
@ -2,49 +2,22 @@ |
|
|
|
<div> |
|
|
|
<a-button @click="showModal" type="primary">需求征集</a-button> |
|
|
|
|
|
|
|
<a-modal |
|
|
|
:confirm-loading="confirmLoading" |
|
|
|
:title="title" |
|
|
|
:visible="visible" |
|
|
|
@cancel="handleCancel" |
|
|
|
@ok="handleOk" |
|
|
|
width="50%" |
|
|
|
> |
|
|
|
<a-modal :confirm-loading="confirmLoading" :title="title" :visible="visible" @cancel="handleCancel" @ok="handleOk" width="50%"> |
|
|
|
<a-form :form="form"> |
|
|
|
<!-- 需求名称 --> |
|
|
|
<a-form-item |
|
|
|
:label-col="formItemLayout.labelCol" |
|
|
|
:wrapper-col="formItemLayout.wrapperCol" |
|
|
|
class="mb-3" |
|
|
|
label="需求名称" |
|
|
|
> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" class="mb-3" label="需求名称"> |
|
|
|
<a-input placeholder="请输入需求名称..." v-model.trim="platform.needName" /> |
|
|
|
</a-form-item> |
|
|
|
<!-- 技术领域 --> |
|
|
|
<a-form-item |
|
|
|
:label-col="formItemLayout.labelCol" |
|
|
|
:wrapper-col="formItemLayout.wrapperCol" |
|
|
|
class="mb-3" |
|
|
|
label="技术领域" |
|
|
|
> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" class="mb-3" label="技术领域"> |
|
|
|
<a-input placeholder="请输入技术领域..." v-model.trim="platform.technicalField" /> |
|
|
|
</a-form-item> |
|
|
|
<!-- 需求截止时间 --> |
|
|
|
<a-form-item |
|
|
|
:label-col="formItemLayout.labelCol" |
|
|
|
:wrapper-col="formItemLayout.wrapperCol" |
|
|
|
class="mb-3" |
|
|
|
label="需求截止时间" |
|
|
|
> |
|
|
|
<a-date-picker @change="changeNeedTime" style="width:100%" /> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" class="mb-3" label="需求截止时间"> |
|
|
|
<a-date-picker @change="changeNeedTime" style="width: 100%" /> |
|
|
|
</a-form-item> |
|
|
|
<!-- 需求类别 --> |
|
|
|
<a-form-item |
|
|
|
:label-col="formItemLayout.labelCol" |
|
|
|
:wrapper-col="formItemLayout.wrapperCol" |
|
|
|
class="mb-3" |
|
|
|
label="需求类别" |
|
|
|
> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" class="mb-3" label="需求类别"> |
|
|
|
<a-checkbox-group @change="onChange" class="line-height-30"> |
|
|
|
<a-checkbox value="1">技术研发(关键、核心技术)</a-checkbox> |
|
|
|
<a-checkbox value="2">产品研发(产品升级、新产品研发)</a-checkbox> |
|
|
@ -53,12 +26,7 @@ |
|
|
|
</a-checkbox-group> |
|
|
|
</a-form-item> |
|
|
|
<!-- 需求内容 --> |
|
|
|
<a-form-item |
|
|
|
:label-col="formItemLayout.labelCol" |
|
|
|
:wrapper-col="formItemLayout.wrapperCol" |
|
|
|
class="mb-3" |
|
|
|
label="需求内容" |
|
|
|
> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" class="mb-3" label="需求内容"> |
|
|
|
<quill-editor |
|
|
|
:options="editorOption" |
|
|
|
@blur="onEditorBlur($event)" |
|
|
@ -70,15 +38,10 @@ |
|
|
|
></quill-editor> |
|
|
|
</a-form-item> |
|
|
|
<!-- 现有基础 --> |
|
|
|
<a-form-item |
|
|
|
:label-col="formItemLayout.labelCol" |
|
|
|
:wrapper-col="formItemLayout.wrapperCol" |
|
|
|
class="mb-3" |
|
|
|
label="现有基础" |
|
|
|
> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" class="mb-3" label="现有基础"> |
|
|
|
<a-textarea |
|
|
|
placeholder="(已经开展的工作、所处阶段、投入资金和人力、仪器 设备、生产条件等)" |
|
|
|
style="min-height:100px" |
|
|
|
style="min-height: 100px" |
|
|
|
v-model.trim="platform.basics" |
|
|
|
/> |
|
|
|
</a-form-item> |
|
|
@ -179,7 +142,8 @@ export default { |
|
|
|
|
|
|
|
// 点击确定 |
|
|
|
handleOk() { |
|
|
|
this.subMitAdd(); |
|
|
|
console.log(this.needContent); |
|
|
|
// this.subMitAdd(); |
|
|
|
}, |
|
|
|
// 加入接口 |
|
|
|
async subMitAdd() { |
|
|
|