我的问答
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<!--标准的描述-->
|
<!--标准的描述-->
|
||||||
<template>
|
<template>
|
||||||
<div id="stand-item">
|
<div style="width: 100%;padding: 10px 0;">
|
||||||
<div>
|
<div id="stand-item">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span>{{stand.standardEncdoing}}</span>
|
<span>{{stand.standardEncdoing}}</span>
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span>{{stand.standardName}}</span>
|
<span :title="stand.standardEncdoing + stand.standardName">{{stand.standardName}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -40,14 +40,18 @@ export default {
|
|||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
#stand-item{
|
#stand-item{
|
||||||
width: 100%;
|
|
||||||
min-width: 130px;
|
min-width: 130px;
|
||||||
padding:10px 0;
|
max-width: 200px;
|
||||||
|
|
||||||
.row {
|
.row {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
.item {
|
.item {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
width: 200px;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1341,6 +1341,7 @@ export default {
|
|||||||
},
|
},
|
||||||
addList() {
|
addList() {
|
||||||
this.handleSelectForm.dataSource = this.standType
|
this.handleSelectForm.dataSource = this.standType
|
||||||
|
this.handleSelectForm.standType = this.standType
|
||||||
this.searchLawBtn()
|
this.searchLawBtn()
|
||||||
this.standModel = true;
|
this.standModel = true;
|
||||||
},
|
},
|
||||||
@@ -1541,6 +1542,16 @@ export default {
|
|||||||
},
|
},
|
||||||
//提问按钮
|
//提问按钮
|
||||||
queBtn(){
|
queBtn(){
|
||||||
|
this.questionForm = {
|
||||||
|
pubQue : '',//公共问题
|
||||||
|
classification: 'INLAND', //标准类型
|
||||||
|
problemDescription: '', //问题
|
||||||
|
questioner: this.$store.getters.userInfo.userId, //提问人
|
||||||
|
standardEncdoing: '', //标准编号
|
||||||
|
standardName: '', //标准名称
|
||||||
|
standardId:'', //标准id
|
||||||
|
fileList: '',
|
||||||
|
}
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
},
|
},
|
||||||
handleClose(){
|
handleClose(){
|
||||||
@@ -1676,6 +1687,7 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
this.dialogVisible = false
|
||||||
}, e => {
|
}, e => {
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div>附件:
|
<div style="cursor: pointer;">附件:
|
||||||
<span style="color: #409EFF">{{answer.annex}}</span>
|
<span style="color: #409EFF">{{answer.appendixName}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -23,13 +23,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div>-->
|
|
||||||
<!-- <el-checkbox v-model="checked">归档</el-checkbox>-->
|
|
||||||
<!-- </div>-->
|
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="footer-box">-->
|
|
||||||
|
|
||||||
<!-- </div>-->
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -39,9 +33,10 @@ export default {
|
|||||||
props:['answer'],
|
props:['answer'],
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
checked: true,
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
methods:{
|
||||||
|
},
|
||||||
watch:{
|
watch:{
|
||||||
answer: {
|
answer: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
<!--问题的描述-->
|
<!--问题的描述-->
|
||||||
<template>
|
<template>
|
||||||
<div id="questions-item">
|
<div id="questions-item">
|
||||||
|
<div>
|
||||||
|
<el-button class="dybtn" size="mini" type="primary">订阅</el-button>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
@@ -47,6 +50,9 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 130px;
|
min-width: 130px;
|
||||||
padding:10px 0;
|
padding:10px 0;
|
||||||
|
.dybtn{
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
.row {
|
.row {
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
}
|
}
|
||||||
@@ -54,4 +60,7 @@ export default {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/deep/ .el-button--mini {
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!--标准的描述-->
|
<!--标准的描述-->
|
||||||
<template>
|
<template>
|
||||||
<div id="stand-item">
|
<div style="width: 100%;padding: 10px 0;">
|
||||||
<div>
|
<div id="stand-item">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span>{{stand.standardEncdoing}}</span>
|
<span>{{stand.standardEncdoing}}</span>
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span>{{stand.standardName}}</span>
|
<span :title="stand.standardEncdoing + stand.standardName">{{stand.standardName}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -40,14 +40,18 @@ export default {
|
|||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
#stand-item{
|
#stand-item{
|
||||||
width: 100%;
|
|
||||||
min-width: 130px;
|
min-width: 130px;
|
||||||
padding:10px 0;
|
max-width: 200px;
|
||||||
|
|
||||||
.row {
|
.row {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
.item {
|
.item {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
width: 200px;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<el-button size="mini" @click="delSearch">清空</el-button>
|
<el-button size="mini" @click="delSearch">清空</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button size="mini" type="primary" @click="queBtn" v-if="this.activeName !=='myQue'">提问</el-button>
|
<el-button size="mini" type="primary" @click="queBtn">提问</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -277,15 +277,17 @@
|
|||||||
<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" v-if="standType !== 'OTHER'" style="margin-left: 30px;" type="primary" @click="addList">选择标准</el-button>
|
<div style="display: inline-block; margin-left: 20px" v-if="standType === 'OTHER'">
|
||||||
<el-select v-if="standType === 'OTHER'" v-model="questionForm.publicType" filterable clearable placeholder="请选择公共" style="margin-left: 30px;appearance: none">
|
<el-select v-model="questionForm.pubQue" placeholder="请选择公共问题">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item, index) in DYGGWT"
|
v-for="item in pubOptions"
|
||||||
:key="index"
|
:key="item.label"
|
||||||
:value="item.value"
|
:label="item.label"
|
||||||
:label="item.label"
|
:value="item.label">
|
||||||
></el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
</div>
|
||||||
|
<el-button v-else size="mini" style="margin-left: 30px;" type="primary" @click="addList">选择标准</el-button>
|
||||||
</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>
|
||||||
@@ -706,6 +708,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
pubOptions: [], //公共问题
|
||||||
handleSelectForm: {
|
handleSelectForm: {
|
||||||
standName: '', //标准名称
|
standName: '', //标准名称
|
||||||
numberName: '', //政策名称
|
numberName: '', //政策名称
|
||||||
@@ -735,7 +738,7 @@ export default {
|
|||||||
// 上传地址
|
// 上传地址
|
||||||
actionPath: 'api/att/attFile/uploadNew',
|
actionPath: 'api/att/attFile/uploadNew',
|
||||||
fileList: [], //上传文件的列表
|
fileList: [], //上传文件的列表
|
||||||
activeName: 'myQue',
|
activeName: 'INLAND',
|
||||||
activeType: 'INLAND',
|
activeType: 'INLAND',
|
||||||
activestand: '',
|
activestand: '',
|
||||||
activeQue: '',
|
activeQue: '',
|
||||||
@@ -744,7 +747,6 @@ export default {
|
|||||||
questionForm:{
|
questionForm:{
|
||||||
classification: 'INLAND', //标准类型
|
classification: 'INLAND', //标准类型
|
||||||
problemDescription: '', //问题
|
problemDescription: '', //问题
|
||||||
questioner: this.$store.getters.userInfo.userId, //提问人
|
|
||||||
standardEncdoing: '', //标准编号
|
standardEncdoing: '', //标准编号
|
||||||
standardName: '', //标准名称
|
standardName: '', //标准名称
|
||||||
standardId:'', //标准id
|
standardId:'', //标准id
|
||||||
@@ -760,7 +762,6 @@ export default {
|
|||||||
classification: 'INLAND',
|
classification: 'INLAND',
|
||||||
standardName: '', //标准名称
|
standardName: '', //标准名称
|
||||||
standardEncdoing: '', //标准编号
|
standardEncdoing: '', //标准编号
|
||||||
questioner: this.$store.getters.userInfo.userId, //提问人
|
|
||||||
problemDescription: '', //关键词/问题描述
|
problemDescription: '', //关键词/问题描述
|
||||||
},
|
},
|
||||||
answerList: [],
|
answerList: [],
|
||||||
@@ -777,7 +778,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 // 问答公共问题
|
this.pubOptions = res.data.DYGGWT //问答公共问题
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -819,6 +820,7 @@ export default {
|
|||||||
},
|
},
|
||||||
addList() {
|
addList() {
|
||||||
this.handleSelectForm.dataSource = this.standType
|
this.handleSelectForm.dataSource = this.standType
|
||||||
|
this.handleSelectForm.standType = this.standType
|
||||||
this.searchLawBtn()
|
this.searchLawBtn()
|
||||||
this.standModel = true;
|
this.standModel = true;
|
||||||
},
|
},
|
||||||
@@ -951,11 +953,10 @@ export default {
|
|||||||
this.questionForm.classification = this.standType
|
this.questionForm.classification = this.standType
|
||||||
},
|
},
|
||||||
handleClick(){
|
handleClick(){
|
||||||
console.log(this.activeName);
|
|
||||||
this.ansSearch()
|
this.ansSearch()
|
||||||
},
|
},
|
||||||
sourceClick(){
|
sourceClick(){
|
||||||
this.questionSerach.classification = this.activeType
|
this.questionSerach.classification = this.activeName
|
||||||
this.questionSerach.standardEncdoing = ''
|
this.questionSerach.standardEncdoing = ''
|
||||||
this.standSearch()
|
this.standSearch()
|
||||||
},
|
},
|
||||||
@@ -975,6 +976,15 @@ export default {
|
|||||||
},
|
},
|
||||||
//提问按钮
|
//提问按钮
|
||||||
queBtn(){
|
queBtn(){
|
||||||
|
this.questionForm = {
|
||||||
|
pubQue : '',//公共问题
|
||||||
|
classification: 'INLAND', //标准类型
|
||||||
|
problemDescription: '', //问题
|
||||||
|
standardEncdoing: '', //标准编号
|
||||||
|
standardName: '', //标准名称
|
||||||
|
standardId:'', //标准id
|
||||||
|
fileList: '',
|
||||||
|
}
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
},
|
},
|
||||||
handleClose(){
|
handleClose(){
|
||||||
@@ -1006,7 +1016,7 @@ export default {
|
|||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//查询标准
|
//查询提问标准
|
||||||
standSearch(){
|
standSearch(){
|
||||||
this.$http.get('lawss/AskQuestions/getAskQuestionsDetails',{ ...this.questionSerach },{
|
this.$http.get('lawss/AskQuestions/getAskQuestionsDetails',{ ...this.questionSerach },{
|
||||||
_this: this
|
_this: this
|
||||||
@@ -1082,27 +1092,33 @@ export default {
|
|||||||
// this.questionForm.fileInfo = list
|
// this.questionForm.fileInfo = list
|
||||||
},
|
},
|
||||||
//提交问题
|
//提交问题
|
||||||
queSubmit(){
|
queSubmit(){
|
||||||
if(this.questionForm.standardId){
|
if(this.standType === 'OTHER'){
|
||||||
this.questionForm.fileList = this.fileList
|
this.questionForm.standardId = this.questionForm.pubQue
|
||||||
this.$refs['queForm'].validate((valid) => {
|
this.questionForm.standardName = this.questionForm.pubQue
|
||||||
if(valid){
|
this.questionForm.standardEncdoing = this.questionForm.pubQue
|
||||||
this.$http.postData('lawss/AskQuestions/insertAskQuestions',{ ...this.questionForm },
|
}
|
||||||
{
|
if(this.questionForm.standardId){
|
||||||
_this: this
|
this.questionForm.fileList = this.fileList
|
||||||
}, res => {
|
this.$refs['queForm'].validate((valid) => {
|
||||||
console.log(res);
|
if(valid){
|
||||||
}, e => {
|
this.$http.postData('lawss/AskQuestions/insertAskQuestions',{ ...this.questionForm },
|
||||||
|
{
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
console.log(res);
|
||||||
|
this.dialogVisible = false
|
||||||
|
}, e => {
|
||||||
|
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
return this.$message.warning('请输入问题')
|
return this.$message.warning('请输入问题')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.$message.warning('请选择至少一条标准')
|
this.$message.warning('请选择至少一条标准')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user