feat: There is no way the, 问答库 前端
This commit is contained in:
@@ -266,7 +266,7 @@
|
||||
<el-dialog
|
||||
title="提交问题"
|
||||
:visible.sync="dialogVisible"
|
||||
width="600px"
|
||||
width="650px"
|
||||
:before-close="handleClose">
|
||||
<div>
|
||||
<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="OTHER">公共</el-radio>
|
||||
</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 label="问题" prop="problemDescription" class="serch-form-item">
|
||||
<el-input v-model="questionForm.problemDescription"></el-input>
|
||||
@@ -719,6 +727,7 @@ export default {
|
||||
},
|
||||
textStatusMap: {},// 文本状态id与name对应
|
||||
textState: [],
|
||||
DYGGWT: [],
|
||||
standModel: false,
|
||||
lawInfoTableLoading: true,
|
||||
handleSelectTableList: [],
|
||||
@@ -740,6 +749,7 @@ export default {
|
||||
standardName: '', //标准名称
|
||||
standardId:'', //标准id
|
||||
fileList: '',
|
||||
publicType: '',
|
||||
},
|
||||
queRules:{
|
||||
problemDescription: [
|
||||
@@ -767,6 +777,7 @@ export default {
|
||||
}, res => {
|
||||
this.setMap(res.data.WBZTCLASS);// 文本状态
|
||||
this.textState = res.data.WBZTCLASS // 文本状态
|
||||
this.DYGGWT = res.data.DYGGWT // 问答公共问题
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
@@ -1074,7 +1085,6 @@ export default {
|
||||
queSubmit(){
|
||||
if(this.questionForm.standardId){
|
||||
this.questionForm.fileList = this.fileList
|
||||
console.log(this.questionForm);
|
||||
this.$refs['queForm'].validate((valid) => {
|
||||
if(valid){
|
||||
this.$http.postData('lawss/AskQuestions/insertAskQuestions',{ ...this.questionForm },
|
||||
|
||||
Reference in New Issue
Block a user