Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -150,7 +150,7 @@ export default {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 2px;
|
bottom: 2px;
|
||||||
font-size: 12px;
|
font-size: 15px;
|
||||||
float: right;
|
float: right;
|
||||||
color: #4788c0;
|
color: #4788c0;
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ export default {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 2px;
|
bottom: 2px;
|
||||||
font-size: 12px;
|
font-size: 15px;
|
||||||
float: right;
|
float: right;
|
||||||
color: #4788c0;
|
color: #4788c0;
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ export default {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 2px;
|
bottom: 2px;
|
||||||
font-size: 12px;
|
font-size: 15px;
|
||||||
float: right;
|
float: right;
|
||||||
color: #4788c0;
|
color: #4788c0;
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ export default {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 2px;
|
bottom: 2px;
|
||||||
font-size: 12px;
|
font-size: 15px;
|
||||||
float: right;
|
float: right;
|
||||||
color: #4788c0;
|
color: #4788c0;
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="cid"
|
prop="cid"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
label="标准名称/政策名称">
|
label="标准名称">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span @click="standForComments(scope.row)">{{ scope.row.cid }}</span>
|
<span @click="standForComments(scope.row)">{{ scope.row.cid }}</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
label="结束时间">
|
label="结束时间">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="more" @click="$router.push('standardForComments')">更多 ⋙</div>
|
<div class="more" @click="$router.push('standardForComments')">更多 ⋙</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -93,18 +93,18 @@ export default {
|
|||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.solicitopinions {
|
.solicitopinions {
|
||||||
/deep/.more {
|
/deep/.more {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 2px;
|
||||||
font-size: 12px;
|
font-size: 15px;
|
||||||
float: right;
|
float: right;
|
||||||
color: #4788c0;
|
color: #4788c0;
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #3a8ee6;
|
color: #3a8ee6;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/deep/.el-table__body-wrapper {
|
/deep/.el-table__body-wrapper {
|
||||||
max-height: calc(65vh - 101px);
|
max-height: calc(65vh - 101px);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-checkbox @change="answerChang" v-model="answer.checked">归档</el-checkbox>
|
<el-checkbox v-if="answer.checkedShow" @change="answerChang" v-model="answer.checked">归档</el-checkbox>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="footer-box">-->
|
<!-- <div class="footer-box">-->
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<el-input v-model="questionSerach.problemDescription" placeholder="根据关键词查询"></el-input>
|
<el-input v-model="questionSerach.problemDescription" placeholder="根据关键词查询"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button size="mini" @click="standSearch">查询</el-button>
|
<el-button size="mini" @click="searchBtn">查询</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button size="mini" @click="delSearch">清空</el-button>
|
<el-button size="mini" @click="delSearch">清空</el-button>
|
||||||
@@ -794,7 +794,7 @@
|
|||||||
<el-button v-else size="mini" style="margin-left: 30px;" type="primary" @click="addList">选择标准</el-button>
|
<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" @input="changeInput"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="附件">
|
<el-form-item label="附件">
|
||||||
<el-upload
|
<el-upload
|
||||||
@@ -816,8 +816,11 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<span>相似历史问题:</span>
|
<span>相似历史问题:</span>
|
||||||
<div style="height: 200px; width: 80%; margin-left: 80px;">
|
<div style="height: 200px; width: 80%; margin-left: 80px;">
|
||||||
|
<div v-for="item in historyList" :key="item.id" @click="historyJump(item.id)">
|
||||||
|
<span class="history-item">{{item.problemDescription}}</span>
|
||||||
|
<span class="history-item">{{item.questionTime}}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button class="common-button-default" size="mini" @click="dialogVisible = false">取 消</el-button>
|
<el-button class="common-button-default" size="mini" @click="dialogVisible = false">取 消</el-button>
|
||||||
@@ -1202,6 +1205,16 @@ import answerItem from "@/pages/personal/pages/my-questions/components/answerIte
|
|||||||
import questionItemInfo from "@/pages/personal/pages/my-questions/components/questionItemInfo";
|
import questionItemInfo from "@/pages/personal/pages/my-questions/components/questionItemInfo";
|
||||||
import standItem from './components/stand-item'
|
import standItem from './components/stand-item'
|
||||||
|
|
||||||
|
function debounce(func, wait = 500){
|
||||||
|
let timeout;
|
||||||
|
return function(event){
|
||||||
|
clearTimeout(timeout)
|
||||||
|
timeout = setTimeout(() => {
|
||||||
|
func.call(this, event)
|
||||||
|
},wait)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "index",
|
name: "index",
|
||||||
components:{
|
components:{
|
||||||
@@ -1213,6 +1226,7 @@ export default {
|
|||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
mergeList: [],
|
mergeList: [],
|
||||||
|
historyList: [], //相似历史问题
|
||||||
handleSelectForm: {
|
handleSelectForm: {
|
||||||
standName: '', //标准名称
|
standName: '', //标准名称
|
||||||
numberName: '', //政策名称
|
numberName: '', //政策名称
|
||||||
@@ -1301,9 +1315,28 @@ export default {
|
|||||||
})
|
})
|
||||||
sessionStorage.setItem('mergeList', JSON.stringify(this.mergeList))
|
sessionStorage.setItem('mergeList', JSON.stringify(this.mergeList))
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
'questionForm.problemDescription':{
|
||||||
|
handler(val){
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
changeInput:debounce(function(val){
|
||||||
|
if(val.length){
|
||||||
|
this.$http.get('lawss/AskQuestions/resemblance',{
|
||||||
|
problemDescription: val,
|
||||||
|
},{
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
this.historyList = res.data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
//点击跳转问题详情
|
||||||
|
historyJump(id){
|
||||||
|
this.$router.push('/standQA')
|
||||||
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(item) {
|
handlePreview(item) {
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
@@ -1489,16 +1522,19 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
sourceClick(){
|
sourceClick(){
|
||||||
|
this.standList = []
|
||||||
this.questionSerach.classification = this.activeType
|
this.questionSerach.classification = this.activeType
|
||||||
this.questionSerach.standardEncdoing = ''
|
this.questionSerach.standardEncdoing = ''
|
||||||
this.standSearch()
|
this.standSearch()
|
||||||
},
|
},
|
||||||
sourceClick2(){
|
sourceClick2(){
|
||||||
|
this.standList = []
|
||||||
this.questionSerach.classification = this.activeType
|
this.questionSerach.classification = this.activeType
|
||||||
this.ansSearch()
|
this.ansSearch()
|
||||||
},
|
},
|
||||||
//我的订阅
|
//我的订阅
|
||||||
sourceClick3(){
|
sourceClick3(){
|
||||||
|
this.standList = []
|
||||||
this.questionSerach.classification = this.activeType
|
this.questionSerach.classification = this.activeType
|
||||||
this.subSearch()
|
this.subSearch()
|
||||||
},
|
},
|
||||||
@@ -1536,7 +1572,16 @@ export default {
|
|||||||
},{
|
},{
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.answerList = res.data
|
if(this.activeName === 'myAns'){
|
||||||
|
if(res.data.length){
|
||||||
|
res.data.forEach(item => {
|
||||||
|
item.checkedShow = true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.answerList = res.data
|
||||||
|
}else{
|
||||||
|
this.answerList = res.data
|
||||||
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -1559,7 +1604,43 @@ export default {
|
|||||||
},
|
},
|
||||||
//清空
|
//清空
|
||||||
delSearch(){
|
delSearch(){
|
||||||
|
this.questionSerach = {
|
||||||
|
classification: 'INLAND',
|
||||||
|
type: '',
|
||||||
|
standardName: '', //标准名称
|
||||||
|
standardEncdoing: '', //标准编号
|
||||||
|
questioner: this.$store.getters.userInfo.userId, //提问人
|
||||||
|
subscription: this.$store.getters.userInfo.userId, //订阅人
|
||||||
|
answerer: this.$store.getters.userInfo.userId, //回答人
|
||||||
|
problemDescription: '', //关键词/问题描述
|
||||||
|
}
|
||||||
|
},
|
||||||
|
searchBtn(){
|
||||||
|
this.questionSerach.classification = this.activeType
|
||||||
|
switch (this.activeName) {
|
||||||
|
case 'myQue':
|
||||||
|
this.questionSerach.type = 'myQue'
|
||||||
|
this.questionSerach.subscription = ''
|
||||||
|
this.questionSerach.answerer = ''
|
||||||
|
break
|
||||||
|
case 'myAns':
|
||||||
|
this.questionSerach.type = 'myAns'
|
||||||
|
this.questionSerach.subscription = ''
|
||||||
|
this.questionSerach.questioner = ''
|
||||||
|
break
|
||||||
|
case 'mySub':
|
||||||
|
this.questionSerach.type = 'mySub'
|
||||||
|
this.questionSerach.questioner = ''
|
||||||
|
this.questionSerach.answerer = ''
|
||||||
|
break
|
||||||
|
}
|
||||||
|
this.$http.get('lawss/AskQuestions/retrieve',{
|
||||||
|
...this.questionSerach
|
||||||
|
},{
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
this.standList = res.data
|
||||||
|
})
|
||||||
},
|
},
|
||||||
//问题查询
|
//问题查询
|
||||||
queSearch(){
|
queSearch(){
|
||||||
@@ -1788,4 +1869,11 @@ export default {
|
|||||||
/deep/.el-upload-dragger {
|
/deep/.el-upload-dragger {
|
||||||
height: 90px;
|
height: 90px;
|
||||||
}
|
}
|
||||||
|
.history-item{
|
||||||
|
padding: 15px;
|
||||||
|
line-height: 1.5;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #409EFF;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="questions-item">
|
<div id="questions-item">
|
||||||
<div>
|
<div>
|
||||||
<el-button class="dybtn" size="mini" type="primary">订阅</el-button>
|
<el-button class="dybtn" size="mini" type="primary" @click.stop="subscribe">订阅</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -34,6 +34,18 @@ export default {
|
|||||||
userName: this.$store.getters.userInfo.userName,
|
userName: this.$store.getters.userInfo.userName,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
methods:{
|
||||||
|
subscribe(){
|
||||||
|
this.$http.postData('lawss/Subscription/insertSubscription',{
|
||||||
|
askId: this.question.id,
|
||||||
|
usId: this.$store.getters.userInfo.userId,
|
||||||
|
},{
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
console.log(res);
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
watch:{
|
watch:{
|
||||||
question: {
|
question: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<el-input v-model="questionSerach.problemDescription" placeholder="根据关键词查询"></el-input>
|
<el-input v-model="questionSerach.problemDescription" placeholder="根据关键词查询"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button size="mini" @click="standSearch">查询</el-button>
|
<el-button size="mini" @click="searchBtn">查询</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button size="mini" @click="delSearch">清空</el-button>
|
<el-button size="mini" @click="delSearch">清空</el-button>
|
||||||
@@ -290,7 +290,7 @@
|
|||||||
<el-button v-else size="mini" style="margin-left: 30px;" type="primary" @click="addList">选择标准</el-button>
|
<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" @input="changeInput"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="附件">
|
<el-form-item label="附件">
|
||||||
<el-upload
|
<el-upload
|
||||||
@@ -312,8 +312,11 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<span>相似历史问题:</span>
|
<span>相似历史问题:</span>
|
||||||
<div style="height: 200px; width: 80%; margin-left: 80px;">
|
<div style="height: 200px; width: 80%; margin-left: 80px;">
|
||||||
|
<div v-for="item in historyList" :key="item.id" @click="historyJump(item.id)">
|
||||||
|
<span class="history-item">{{item.problemDescription}}</span>
|
||||||
|
<span class="history-item">{{item.questionTime}}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button class="common-button-default" size="mini" @click="dialogVisible = false">取 消</el-button>
|
<el-button class="common-button-default" size="mini" @click="dialogVisible = false">取 消</el-button>
|
||||||
@@ -698,6 +701,15 @@ import answerItem from "./components/answerItem";
|
|||||||
import questionItemInfo from "./components/questionItemInfo";
|
import questionItemInfo from "./components/questionItemInfo";
|
||||||
import standItem from './components/stand-item'
|
import standItem from './components/stand-item'
|
||||||
|
|
||||||
|
function debounce(func, wait = 500){
|
||||||
|
let timeout;
|
||||||
|
return function(event){
|
||||||
|
clearTimeout(timeout)
|
||||||
|
timeout = setTimeout(() => {
|
||||||
|
func.call(this, event)
|
||||||
|
},wait)
|
||||||
|
}
|
||||||
|
}
|
||||||
export default {
|
export default {
|
||||||
name: "standQA",
|
name: "standQA",
|
||||||
components:{
|
components:{
|
||||||
@@ -708,6 +720,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
historyList: [],
|
||||||
pubOptions: [], //公共问题
|
pubOptions: [], //公共问题
|
||||||
handleSelectForm: {
|
handleSelectForm: {
|
||||||
standName: '', //标准名称
|
standName: '', //标准名称
|
||||||
@@ -783,6 +796,21 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
changeInput:debounce(function(val){
|
||||||
|
if(val.length){
|
||||||
|
this.$http.get('lawss/AskQuestions/resemblance',{
|
||||||
|
problemDescription: val,
|
||||||
|
},{
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
this.historyList = res.data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
//点击跳转问题详情
|
||||||
|
historyJump(id){
|
||||||
|
this.$router.push('/standQA')
|
||||||
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(item) {
|
handlePreview(item) {
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
@@ -992,7 +1020,24 @@ export default {
|
|||||||
},
|
},
|
||||||
//清空
|
//清空
|
||||||
delSearch(){
|
delSearch(){
|
||||||
|
this.questionSerach = {
|
||||||
|
classification: 'INLAND',
|
||||||
|
standardName: '', //标准名称
|
||||||
|
standardEncdoing: '', //标准编号
|
||||||
|
questioner: this.$store.getters.userInfo.userId, //提问人
|
||||||
|
problemDescription: '', //关键词/问题描述
|
||||||
|
}
|
||||||
|
},
|
||||||
|
searchBtn(){
|
||||||
|
this.questionSerach.classification = this.activeType
|
||||||
|
this.questionSerach.questioner = ''
|
||||||
|
this.$http.get('lawss/AskQuestions/retrieve',{
|
||||||
|
...this.questionSerach
|
||||||
|
},{
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
this.standList = res.data
|
||||||
|
})
|
||||||
},
|
},
|
||||||
//问题查询
|
//问题查询
|
||||||
queSearch(){
|
queSearch(){
|
||||||
@@ -1208,4 +1253,11 @@ export default {
|
|||||||
/deep/.el-upload-dragger {
|
/deep/.el-upload-dragger {
|
||||||
height: 90px;
|
height: 90px;
|
||||||
}
|
}
|
||||||
|
.history-item{
|
||||||
|
padding: 15px;
|
||||||
|
line-height: 1.5;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #409EFF;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -2758,10 +2758,10 @@
|
|||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
/deep/.highlight-Es-class {
|
/deep/.highlight-Es-class {
|
||||||
background-color: #3391ce !important;
|
background-color: #3fb3ff !important;
|
||||||
}
|
}
|
||||||
/deep/.highlight-class {
|
/deep/.highlight-class {
|
||||||
color: #3391ce !important;
|
color: #3fb3ff !important;
|
||||||
}
|
}
|
||||||
/deep/.pagination{
|
/deep/.pagination{
|
||||||
position: static !important;
|
position: static !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user