feat: There is no way the, 问答库 前端
This commit is contained in:
@@ -266,7 +266,7 @@
|
|||||||
<el-dialog
|
<el-dialog
|
||||||
title="提交问题"
|
title="提交问题"
|
||||||
:visible.sync="dialogVisible"
|
:visible.sync="dialogVisible"
|
||||||
width="600px"
|
width="650px"
|
||||||
:before-close="handleClose">
|
:before-close="handleClose">
|
||||||
<div>
|
<div>
|
||||||
<el-form ref="queForm" :rules="queRules" class="label-input-form" label-width="80px" :model="questionForm">
|
<el-form ref="queForm" :rules="queRules" class="label-input-form" label-width="80px" :model="questionForm">
|
||||||
@@ -277,7 +277,15 @@
|
|||||||
<el-radio label="BUSINESS_STAND">企业标准</el-radio>
|
<el-radio label="BUSINESS_STAND">企业标准</el-radio>
|
||||||
<el-radio label="OTHER">公共</el-radio>
|
<el-radio label="OTHER">公共</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<el-button size="mini" style="margin-left: 30px;" type="primary" @click="addList">选择标准</el-button>
|
<el-button size="mini" v-if="standType !== 'OTHER'" style="margin-left: 30px;" type="primary" @click="addList">选择标准</el-button>
|
||||||
|
<el-select v-if="standType === 'OTHER'" v-model="questionForm.publicType" filterable clearable placeholder="请选择公共" style="margin-left: 30px;appearance: none">
|
||||||
|
<el-option
|
||||||
|
v-for="(item, index) in DYGGWT"
|
||||||
|
:key="index"
|
||||||
|
:value="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="问题" prop="problemDescription" class="serch-form-item">
|
<el-form-item label="问题" prop="problemDescription" class="serch-form-item">
|
||||||
<el-input v-model="questionForm.problemDescription"></el-input>
|
<el-input v-model="questionForm.problemDescription"></el-input>
|
||||||
@@ -719,6 +727,7 @@ export default {
|
|||||||
},
|
},
|
||||||
textStatusMap: {},// 文本状态id与name对应
|
textStatusMap: {},// 文本状态id与name对应
|
||||||
textState: [],
|
textState: [],
|
||||||
|
DYGGWT: [],
|
||||||
standModel: false,
|
standModel: false,
|
||||||
lawInfoTableLoading: true,
|
lawInfoTableLoading: true,
|
||||||
handleSelectTableList: [],
|
handleSelectTableList: [],
|
||||||
@@ -740,6 +749,7 @@ export default {
|
|||||||
standardName: '', //标准名称
|
standardName: '', //标准名称
|
||||||
standardId:'', //标准id
|
standardId:'', //标准id
|
||||||
fileList: '',
|
fileList: '',
|
||||||
|
publicType: '',
|
||||||
},
|
},
|
||||||
queRules:{
|
queRules:{
|
||||||
problemDescription: [
|
problemDescription: [
|
||||||
@@ -767,6 +777,7 @@ export default {
|
|||||||
}, res => {
|
}, res => {
|
||||||
this.setMap(res.data.WBZTCLASS);// 文本状态
|
this.setMap(res.data.WBZTCLASS);// 文本状态
|
||||||
this.textState = res.data.WBZTCLASS // 文本状态
|
this.textState = res.data.WBZTCLASS // 文本状态
|
||||||
|
this.DYGGWT = res.data.DYGGWT // 问答公共问题
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -1074,7 +1085,6 @@ export default {
|
|||||||
queSubmit(){
|
queSubmit(){
|
||||||
if(this.questionForm.standardId){
|
if(this.questionForm.standardId){
|
||||||
this.questionForm.fileList = this.fileList
|
this.questionForm.fileList = this.fileList
|
||||||
console.log(this.questionForm);
|
|
||||||
this.$refs['queForm'].validate((valid) => {
|
this.$refs['queForm'].validate((valid) => {
|
||||||
if(valid){
|
if(valid){
|
||||||
this.$http.postData('lawss/AskQuestions/insertAskQuestions',{ ...this.questionForm },
|
this.$http.postData('lawss/AskQuestions/insertAskQuestions',{ ...this.questionForm },
|
||||||
|
|||||||
Reference in New Issue
Block a user