标准问答 更多
This commit is contained in:
@@ -1,187 +1,187 @@
|
|||||||
<!-- 企标发布 -->
|
<!-- 标准问答 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="release">
|
<div class="standardAsk">
|
||||||
<!-- <ul>-->
|
<div class="content-wrap">
|
||||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
<div class="search-wrap">
|
||||||
<!-- <div style="height: 18px;">-->
|
<el-form inline :model="form" class="form-inline">
|
||||||
<!-- <a @click="handlePreview(item)" style="color: #333333" class="table-jump">{{ item.standName }}</a>-->
|
<el-form-item label="类型" class="search-item">
|
||||||
<!-- <span class="time">{{item.issueTime ? $moment(item.issueTime).format('YYYY-MM-DD') : '' }}</span>-->
|
<el-input v-model="form.classification" placeholder="请输入类型" clearable></el-input>
|
||||||
<!-- </div>-->
|
</el-form-item>
|
||||||
<!-- </li>-->
|
<el-form-item label="问题描述" class="search-item">
|
||||||
<!-- </ul>-->
|
<el-input v-model="form.problemDescription" placeholder="请输入问题描述" clearable></el-input>
|
||||||
<el-table
|
</el-form-item>
|
||||||
ref="selection"
|
<el-form-item label="提问人" class="search-item">
|
||||||
:data="standardReleaseList"
|
<el-input v-model="form.questioner" placeholder="请输入提问人" clearable></el-input>
|
||||||
tooltip-effect="dark"
|
</el-form-item>
|
||||||
border
|
<el-form-item class="search-item">
|
||||||
height="90%"
|
<el-button type="primary" @click="onSubmit" size="mini">查询</el-button>
|
||||||
style="width: 100%; flex: auto;"
|
<el-button @click="onClear" size="mini" class="search-btn">清空</el-button>
|
||||||
class="drag-table"
|
</el-form-item>
|
||||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
</el-form>
|
||||||
fontWeight: 'bold', height: '48px'}">
|
</div>
|
||||||
<el-table-column
|
<main>
|
||||||
label="分类"
|
<div style="height: 100%">
|
||||||
align="center"
|
<el-table ref="table"
|
||||||
width="80">
|
:data="data"
|
||||||
</el-table-column>
|
tooltip-effect = "dark"
|
||||||
<el-table-column
|
style="width: 100%"
|
||||||
label="问题描述">
|
border
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="classification"
|
||||||
|
label="类型"
|
||||||
|
width="150"
|
||||||
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>-->
|
<a class="table-jump" @click.stop="handlePreview(scope.row)">{{ scope.row.classification }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="standName"
|
prop="problemDescription"
|
||||||
label="提问人"
|
label="问题描述"
|
||||||
width="100">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <span @click="handlePreview(scope.row)">{{ scope.row.standardName }}</span>-->
|
<a class="table-jump" @click.stop="handlePreview(scope.row)">{{ scope.row.problemDescription }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
width="120"
|
prop="questioner"
|
||||||
label="提问时间">
|
label="提问人"
|
||||||
|
width="150"
|
||||||
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <span>{{scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>-->
|
<a class="table-jump" @click.stop="handlePreview(scope.row)">{{ scope.row.questioner }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
<el-table-column
|
||||||
<loading :loading="loading">加载中...</loading>
|
prop="questionTime"
|
||||||
<pagination
|
label="提问时间"
|
||||||
style="position: static;"
|
width="150"
|
||||||
:page="page"
|
align="center">
|
||||||
:total="total"
|
</el-table-column>
|
||||||
@pageChange="pageChange"
|
</el-table>
|
||||||
@pageSizeChange="pageSizeChange"></pagination>
|
</div>
|
||||||
|
</main>
|
||||||
|
<footer class="footer">
|
||||||
|
<el-pagination
|
||||||
|
@size-change="sizeChange"
|
||||||
|
@current-change="currentChange"
|
||||||
|
:current-page="currentPage"
|
||||||
|
:page-sizes="[10, 20, 30, 50]"
|
||||||
|
:page-size="pageSize"
|
||||||
|
layout="total, prev, pager, next, sizes, jumper"
|
||||||
|
:total="total">
|
||||||
|
</el-pagination>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
<loading :loading="loading">数据加载中……</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'ReleaseQA2',
|
name: 'standardAsk',
|
||||||
components: {},
|
|
||||||
mixins: [],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
form:{
|
||||||
pageVerify: false,
|
classification:"", // 类型
|
||||||
page: 1,
|
problemDescription: "", // 问题描述
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
questioner: "", // 提问人
|
||||||
total: 0,
|
questionTime: "" // 提问时间
|
||||||
putTime: '',
|
},
|
||||||
standardReleaseList: [], //标准问答数据
|
data: [],
|
||||||
|
total: 0,// 总数
|
||||||
|
pageSize: this.$store.getters.userInfo.configContent,// 每页条数
|
||||||
|
currentPage: 1,//当前页
|
||||||
|
loading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
|
||||||
watch: {},
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getDate()
|
this.getData()
|
||||||
this.getAdvice()
|
|
||||||
// this.addDate()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
pageChange(page) {
|
getData(){
|
||||||
this.page = page
|
this.loading = true
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
return new Promise((resolve,reject)=>{
|
||||||
this.getAdvice()
|
this.$http.get('lawss/AskQuestions/getAskQuestionsPage', {
|
||||||
},
|
userId: this.$store.getters.userInfo.account,
|
||||||
// 分页每页显示数改变后方法
|
pageSize : this.pageSize,
|
||||||
pageSizeChange(pageSize) {
|
page : this.currentPage
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
}, {_this: this }, res => {
|
||||||
this.getAdvice()
|
if(res.data){
|
||||||
// 此处需要调用接口,修改个人配置
|
const data = res.data
|
||||||
},
|
this.data = data.records
|
||||||
togo () {
|
this.total = data.total
|
||||||
if(this.total && this.total > 10){
|
|
||||||
this.pageVerify = true
|
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
|
||||||
}else {
|
|
||||||
this.pageVerify = false
|
|
||||||
}
|
}
|
||||||
this.getAdvice()
|
this.loading = false
|
||||||
},
|
resolve(res)
|
||||||
// 点击查看
|
}, e => {
|
||||||
handlePreview (item) {
|
this.loading = false
|
||||||
// let routeUrl = this.$router.resolve({
|
reject(e)
|
||||||
// name: 'OtherBussStandardDetails',
|
})
|
||||||
// params: {
|
})
|
||||||
// id: item.standardId,
|
|
||||||
// pageType: 'BUSINESS_STAND'
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// window.open(routeUrl.href, '_blank')
|
|
||||||
},
|
},
|
||||||
//截取时间
|
onSubmit(){},
|
||||||
getDate (date) {
|
onClear(){},
|
||||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
sizeChange(pageSize){
|
||||||
|
this.pageSize = pageSize
|
||||||
|
this.getData()
|
||||||
},
|
},
|
||||||
//获取数据
|
currentChange(currentPage){
|
||||||
getAdvice() {
|
this.currentPage = currentPage
|
||||||
this.loading = true
|
this.getData()
|
||||||
// 模拟加载
|
|
||||||
const timer = setInterval(() => {
|
|
||||||
this.loading = false
|
|
||||||
}, 2000)
|
|
||||||
console.log(timer)
|
|
||||||
// this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
|
||||||
// messageType: 'QYBZFB',
|
|
||||||
// page: this.page,
|
|
||||||
// pageSize: this.pageSize
|
|
||||||
// }, {
|
|
||||||
// _this: this,loading: 'loading'
|
|
||||||
// }, res => {
|
|
||||||
// this.standardReleaseList = res.data.records
|
|
||||||
// this.total = res.data.total
|
|
||||||
// this.loading = false
|
|
||||||
// }, e => {
|
|
||||||
// this.loading = false
|
|
||||||
// this.standardReleaseList = []
|
|
||||||
// this.total = 0
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
},
|
handlePreview(){}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.release {
|
.standardAsk{
|
||||||
/deep/.el-table th > .cell {
|
width: 100%;
|
||||||
font-size: 15px;
|
height: 100%;
|
||||||
}
|
background-color: #fff;
|
||||||
/deep/.el-table td > .cell{
|
.content-wrap{
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
/deep/.more {
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
bottom: 2px;
|
|
||||||
font-size: 15px;
|
|
||||||
float: right;
|
|
||||||
color: #4788c0;
|
|
||||||
&:hover {
|
|
||||||
color: #3a8ee6;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
padding: 10px 10px 0;
|
||||||
background-color: #FFF;
|
display: flex;
|
||||||
background-size: 100% 100%;
|
flex-direction: column;
|
||||||
.time-title {
|
justify-content: space-between;
|
||||||
margin: 15px;
|
.search-wrap{
|
||||||
.time {
|
display: flex;
|
||||||
float: right;
|
justify-content: space-between;
|
||||||
color:#333333;
|
.search-item{
|
||||||
}
|
margin: 0 10px 10px 0;
|
||||||
a {
|
/deep/ .el-form-item__label{
|
||||||
color: #ffffff;
|
height: 30px;
|
||||||
&:hover {
|
line-height: 30px;
|
||||||
color: #e9c851;
|
}
|
||||||
cursor:pointer;
|
/deep/ .el-form-item__content{
|
||||||
text-decoration: underline;
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
}
|
||||||
|
/deep/ .el-input__inner{
|
||||||
|
width: 165px;
|
||||||
|
height: 30px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
.search-btn{
|
||||||
|
margin-left: 7px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
main{
|
||||||
|
flex: 1;
|
||||||
|
overflow: auto;
|
||||||
|
height: calc(100% - 10px);
|
||||||
|
}
|
||||||
|
footer{
|
||||||
|
height: 56px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
color: #303133;
|
||||||
|
font-weight: 700;
|
||||||
|
border-top: 1px solid #f4f4f4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user