标准问答
This commit is contained in:
@@ -1,57 +1,37 @@
|
|||||||
<!-- 企标发布 -->
|
<!-- 标准问答 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="release">
|
<div class="release">
|
||||||
<!-- <ul>-->
|
<el-table ref="table"
|
||||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
:data="data"
|
||||||
<!-- <div style="height: 18px;">-->
|
tooltip-effect = "dark"
|
||||||
<!-- <a @click="handlePreview(item)" style="color: #333333" class="table-jump">{{ item.standName }}</a>-->
|
|
||||||
<!-- <span class="time">{{item.issueTime ? $moment(item.issueTime).format('YYYY-MM-DD') : '' }}</span>-->
|
|
||||||
<!-- </div>-->
|
|
||||||
<!-- </li>-->
|
|
||||||
<!-- </ul>-->
|
|
||||||
<el-table
|
|
||||||
ref="selection"
|
|
||||||
:data="standardReleaseList"
|
|
||||||
tooltip-effect="dark"
|
|
||||||
border
|
border
|
||||||
style="cursor:pointer;"
|
|
||||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="分类"
|
prop="classification"
|
||||||
align="center"
|
label="类型"
|
||||||
width="80">
|
width="150"
|
||||||
</el-table-column>
|
align="center">
|
||||||
<el-table-column
|
</el-table-column>
|
||||||
label="问题描述">
|
<el-table-column
|
||||||
<template slot-scope="scope">
|
prop="problemDescription"
|
||||||
<!-- <span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>-->
|
label="问题描述"
|
||||||
</template>
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="standName"
|
prop="questioner"
|
||||||
label="提问人"
|
label="提问人"
|
||||||
width="100">
|
width="150"
|
||||||
<template slot-scope="scope">
|
align="center">
|
||||||
<!-- <span @click="handlePreview(scope.row)">{{ scope.row.standardName }}</span>-->
|
</el-table-column>
|
||||||
</template>
|
<el-table-column
|
||||||
</el-table-column>
|
prop="questionTime"
|
||||||
<el-table-column
|
label="提问时间"
|
||||||
width="120"
|
width="150"
|
||||||
label="提问时间">
|
align="center">
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
<!-- <span>{{scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>-->
|
</el-table>
|
||||||
</template>
|
<div class="more" v-if="!pageVerify" @click="togo">更多 ⋙</div>
|
||||||
</el-table-column>
|
<loading :loading="loading">加载中...</loading>
|
||||||
</el-table>
|
|
||||||
<div class="more" v-if="!pageVerify" @click="togo">更多 ⋙</div>
|
|
||||||
<loading :loading="loading">加载中...</loading>
|
|
||||||
<pagination
|
|
||||||
v-if="pageVerify"
|
|
||||||
style="position: static;"
|
|
||||||
:page="page"
|
|
||||||
:total="total"
|
|
||||||
@pageChange="pageChange"
|
|
||||||
@pageSizeChange="pageSizeChange"></pagination>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -64,73 +44,47 @@ export default {
|
|||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
pageVerify: false,
|
pageVerify: false,
|
||||||
page: 1,
|
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
total: 0,
|
total: 0,
|
||||||
putTime: '',
|
currentPage: 1,
|
||||||
standardReleaseList: [], //标准问答数据
|
data: [],
|
||||||
|
form:{
|
||||||
|
classification:"", // 类型
|
||||||
|
problemDescription: "", // 问题描述
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getDate()
|
this.getDate()
|
||||||
this.getAdvice()
|
|
||||||
// this.addDate()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
pageChange(page) {
|
togo () {
|
||||||
this.page = page
|
this.$router.push({path:'/releaseQA2'})
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
|
||||||
this.getAdvice()
|
|
||||||
},
|
|
||||||
// 分页每页显示数改变后方法
|
|
||||||
pageSizeChange(pageSize) {
|
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
|
||||||
this.getAdvice()
|
|
||||||
// 此处需要调用接口,修改个人配置
|
|
||||||
},
|
|
||||||
togo () {
|
|
||||||
this.$router.push({path:'/releaseQA2'})
|
|
||||||
},
|
|
||||||
// 点击查看
|
|
||||||
handlePreview (item) {
|
|
||||||
// let routeUrl = this.$router.resolve({
|
|
||||||
// name: 'OtherBussStandardDetails',
|
|
||||||
// params: {
|
|
||||||
// id: item.standardId,
|
|
||||||
// pageType: 'BUSINESS_STAND'
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// window.open(routeUrl.href, '_blank')
|
|
||||||
},
|
},
|
||||||
//截取时间
|
getDate(){
|
||||||
getDate (date) {
|
this.loading = true
|
||||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
let form = this.form
|
||||||
},
|
form.userId = this.$store.getters.userInfo.account
|
||||||
//获取数据
|
form.pageSize = this.pageSize
|
||||||
getAdvice() {
|
form.page = this.currentPage
|
||||||
this.loading = true
|
return new Promise((resolve,reject)=>{
|
||||||
// 模拟加载
|
this.$http.get('lawss/AskQuestions/getAskQuestionsPage', form, {_this: this }, res => {
|
||||||
const timer = setInterval(() => {
|
if(res.data){
|
||||||
this.loading = false
|
const data = res.data
|
||||||
}, 2000)
|
this.data = data.records
|
||||||
console.log(timer)
|
this.total = data.total
|
||||||
// this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
this.currentPage = data.current
|
||||||
// messageType: 'QYBZFB',
|
this.pageSize = data.size
|
||||||
// page: this.page,
|
}
|
||||||
// pageSize: this.pageSize
|
this.loading = false
|
||||||
// }, {
|
resolve(res)
|
||||||
// _this: this,loading: 'loading'
|
}, e => {
|
||||||
// }, res => {
|
this.loading = false
|
||||||
// this.standardReleaseList = res.data.records
|
reject(e)
|
||||||
// this.total = res.data.total
|
})
|
||||||
// this.loading = false
|
})
|
||||||
// }, e => {
|
|
||||||
// this.loading = false
|
|
||||||
// this.standardReleaseList = []
|
|
||||||
// this.total = 0
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -120,10 +120,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getData()
|
this.getDate()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getData(){
|
getDate(){
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let form = this.form
|
let form = this.form
|
||||||
form.userId = this.$store.getters.userInfo.account
|
form.userId = this.$store.getters.userInfo.account
|
||||||
@@ -147,20 +147,20 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
onSubmit(){
|
onSubmit(){
|
||||||
this.getData()
|
this.getDate()
|
||||||
},
|
},
|
||||||
onClear(){
|
onClear(){
|
||||||
this.form.classification = ''
|
this.form.classification = ''
|
||||||
this.form.problemDescription = ''
|
this.form.problemDescription = ''
|
||||||
this.getData()
|
this.getDate()
|
||||||
},
|
},
|
||||||
sizeChange(pageSize){
|
sizeChange(pageSize){
|
||||||
this.pageSize = pageSize
|
this.pageSize = pageSize
|
||||||
this.getData()
|
this.getDate()
|
||||||
},
|
},
|
||||||
currentChange(currentPage){
|
currentChange(currentPage){
|
||||||
this.currentPage = currentPage
|
this.currentPage = currentPage
|
||||||
this.getData()
|
this.getDate()
|
||||||
},
|
},
|
||||||
handlePreview(){}
|
handlePreview(){}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user