style: 格式化代码
This commit is contained in:
@@ -1,61 +1,62 @@
|
||||
<!-- 标准发布 -->
|
||||
<template>
|
||||
<div class="release">
|
||||
<!-- <ul>-->
|
||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
||||
<!-- <div style="height: 18px;">-->
|
||||
<!-- <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
|
||||
style="cursor:pointer;"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55">
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
label="标准编号">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
label="标准名称">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standardName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="120"
|
||||
label="发布时间">
|
||||
<template slot-scope="scope">
|
||||
<span>{{scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</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>
|
||||
<el-table
|
||||
ref="selection"
|
||||
:data="standardReleaseList"
|
||||
tooltip-effect="dark"
|
||||
border
|
||||
style="cursor:pointer;"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||
>
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55"
|
||||
>
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
label="标准编号"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
label="标准名称"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span style="display: flex;align-items: center" @click="handlePreview(scope.row)">
|
||||
<span>{{ scope.row.standardName }}</span>
|
||||
<img v-if="checkTime(scope.row.renewTime)" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="120"
|
||||
label="发布时间"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div v-if="!pageVerify" class="more" @click="togo">更多 ⋙</div>
|
||||
<loading :loading="loading">加载中...</loading>
|
||||
<pagination
|
||||
v-if="pageVerify"
|
||||
style="position: static;"
|
||||
:page="page"
|
||||
:total="total"
|
||||
@pageChange="pageChange"
|
||||
@pageSizeChange="pageSizeChange"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -64,48 +65,52 @@ export default {
|
||||
name: 'Release',
|
||||
components: {},
|
||||
mixins: [],
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
pageVerify: false,
|
||||
page: 1,
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
total: 0,
|
||||
putTime: '',
|
||||
standardReleaseList: [], //标准发布数据
|
||||
}
|
||||
},
|
||||
props: {
|
||||
messageType: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
pageVerify: false,
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
total: 0,
|
||||
putTime: '',
|
||||
standardReleaseList: [], // 标准发布数据
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
mounted() {
|
||||
mounted () {
|
||||
this.getDate()
|
||||
this.getAdvice()
|
||||
// this.addDate()
|
||||
},
|
||||
methods: {
|
||||
pageChange(page) {
|
||||
this.page = page
|
||||
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:'/release2'})
|
||||
},
|
||||
pageChange (page) {
|
||||
this.page = page
|
||||
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: '/release2',
|
||||
query: {
|
||||
messageType: this.messageType
|
||||
}
|
||||
})
|
||||
},
|
||||
// 点击查看
|
||||
handlePreview (item) {
|
||||
let routeUrl = this.$router.resolve({
|
||||
const routeUrl = this.$router.resolve({
|
||||
name: 'OtherStandardDetails',
|
||||
params: {
|
||||
id: item.standardId,
|
||||
@@ -114,32 +119,39 @@ export default {
|
||||
})
|
||||
window.open(routeUrl.href, '_blank')
|
||||
},
|
||||
//截取时间
|
||||
// 截取时间
|
||||
getDate (date) {
|
||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
||||
},
|
||||
//获取数据
|
||||
getAdvice() {
|
||||
// 获取数据
|
||||
getAdvice () {
|
||||
this.loading = true
|
||||
this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
||||
// messageType: 'GNWBZFG',
|
||||
messageType: this.messageType,
|
||||
page: this.page,
|
||||
pageSize: this.pageSize
|
||||
}, {
|
||||
_this: this,loading: 'loading'
|
||||
}, res => {
|
||||
this.standardReleaseList = res.data.records
|
||||
this.total = res.data.total
|
||||
this.loading = false
|
||||
this.$http.get('/lawss/NewsFeed/getNewsFeed', {
|
||||
messageType: this.messageType,
|
||||
page: this.page,
|
||||
pageSize: this.pageSize
|
||||
}, {
|
||||
_this: this, loading: 'loading'
|
||||
}, res => {
|
||||
this.standardReleaseList = res.data.records
|
||||
this.total = res.data.total
|
||||
this.loading = false
|
||||
if (res.data && res.data.records && res.data.records.length > 0) {
|
||||
if (res.data.records[0].renewTime && res.data.records[0].renewTime !== '') {
|
||||
const isNew = this.checkTime(res.data.records[0].renewTime)
|
||||
this.$emit('isNew', isNew)
|
||||
}
|
||||
}
|
||||
}, e => {
|
||||
this.loading = false
|
||||
this.standardReleaseList = []
|
||||
this.total = 0
|
||||
this.loading = false
|
||||
this.standardReleaseList = []
|
||||
this.total = 0
|
||||
})
|
||||
},
|
||||
checkTime (time) {
|
||||
return this.$moment(time.slice(0, 10)).diff(this.$moment(), 'day') > -3
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,62 +1,60 @@
|
||||
<!-- 标准发布 -->
|
||||
<template>
|
||||
<div class="release">
|
||||
<!-- <ul>-->
|
||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
||||
<!-- <div style="height: 18px;">-->
|
||||
<!-- <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
|
||||
height="90%"
|
||||
style="width: 100%; flex: auto;"
|
||||
class="drag-table"
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', height: '48px'}">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55">
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
label="标准编号">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
label="标准名称">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standardName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="120"
|
||||
label="发布时间">
|
||||
<template slot-scope="scope">
|
||||
<span>{{scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<loading :loading="loading">加载中...</loading>
|
||||
<pagination
|
||||
style="position: static;"
|
||||
:page="page"
|
||||
:total="total"
|
||||
@pageChange="pageChange"
|
||||
@pageSizeChange="pageSizeChange"></pagination>
|
||||
<el-table
|
||||
ref="selection"
|
||||
:data="standardReleaseList"
|
||||
tooltip-effect="dark"
|
||||
border
|
||||
height="90%"
|
||||
style="width: 100%; flex: auto;"
|
||||
class="drag-table"
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', height: '48px'}"
|
||||
>
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55"
|
||||
>
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
label="标准编号"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
label="标准名称"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standardName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="120"
|
||||
label="发布时间"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<loading :loading="loading">加载中...</loading>
|
||||
<pagination
|
||||
style="position: static;"
|
||||
:page="page"
|
||||
:total="total"
|
||||
@pageChange="pageChange"
|
||||
@pageSizeChange="pageSizeChange"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -65,48 +63,47 @@ export default {
|
||||
name: 'Release',
|
||||
components: {},
|
||||
mixins: [],
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
pageVerify: false,
|
||||
page: 1,
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
total: 0,
|
||||
putTime: '',
|
||||
standardReleaseList: [], //标准发布数据
|
||||
loading: false,
|
||||
pageVerify: false,
|
||||
page: 1,
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
total: 0,
|
||||
putTime: '',
|
||||
standardReleaseList: [], // 标准发布数据
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
mounted() {
|
||||
mounted () {
|
||||
this.getDate()
|
||||
this.getAdvice()
|
||||
// this.addDate()
|
||||
},
|
||||
methods: {
|
||||
pageChange(page) {
|
||||
this.page = page
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
this.getAdvice()
|
||||
},
|
||||
// 分页每页显示数改变后方法
|
||||
pageSizeChange(pageSize) {
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
this.getAdvice()
|
||||
// 此处需要调用接口,修改个人配置
|
||||
},
|
||||
togo () {
|
||||
if(this.total && this.total > 10){
|
||||
this.pageVerify = true
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
}else {
|
||||
this.pageVerify = false
|
||||
}
|
||||
this.getAdvice()
|
||||
},
|
||||
pageChange (page) {
|
||||
this.page = page
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
this.getAdvice()
|
||||
},
|
||||
// 分页每页显示数改变后方法
|
||||
pageSizeChange (pageSize) {
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
this.getAdvice()
|
||||
// 此处需要调用接口,修改个人配置
|
||||
},
|
||||
togo () {
|
||||
if(this.total && this.total > 10) {
|
||||
this.pageVerify = true
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
}else {
|
||||
this.pageVerify = false
|
||||
}
|
||||
this.getAdvice()
|
||||
},
|
||||
// 点击查看
|
||||
handlePreview (item) {
|
||||
let routeUrl = this.$router.resolve({
|
||||
const routeUrl = this.$router.resolve({
|
||||
name: 'OtherStandardDetails',
|
||||
params: {
|
||||
id: item.standardId,
|
||||
@@ -115,27 +112,27 @@ export default {
|
||||
})
|
||||
window.open(routeUrl.href, '_blank')
|
||||
},
|
||||
//截取时间
|
||||
// 截取时间
|
||||
getDate (date) {
|
||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
||||
},
|
||||
//获取数据
|
||||
getAdvice() {
|
||||
// 获取数据
|
||||
getAdvice () {
|
||||
this.loading = true
|
||||
this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
||||
messageType: 'GNWBZFG',
|
||||
page: this.page,
|
||||
pageSize: this.pageSize
|
||||
}, {
|
||||
_this: this,loading: 'loading'
|
||||
}, res => {
|
||||
this.standardReleaseList = res.data.records
|
||||
this.total = res.data.total
|
||||
this.loading = false
|
||||
this.$http.get('/lawss/NewsFeed/getNewsFeed', {
|
||||
messageType: 'GNWBZFG',
|
||||
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
|
||||
this.loading = false
|
||||
this.standardReleaseList = []
|
||||
this.total = 0
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,64 +1,62 @@
|
||||
<!-- 企标发布 -->
|
||||
<template>
|
||||
<div class="release">
|
||||
<!-- <ul>-->
|
||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
||||
<!-- <div style="height: 18px;">-->
|
||||
<!-- <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
|
||||
style="cursor:pointer;"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55">
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
label="标准编号">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
label="标准名称">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)" style="display: flex;align-items: center">
|
||||
<span>{{ scope.row.standardName }}</span>
|
||||
<img v-if="checkTime(scope.row.releaseDate)" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="120"
|
||||
label="发布时间">
|
||||
<template slot-scope="scope">
|
||||
<span>{{scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</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>
|
||||
<el-table
|
||||
ref="selection"
|
||||
:data="standardReleaseList"
|
||||
tooltip-effect="dark"
|
||||
border
|
||||
style="cursor:pointer;"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||
>
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55"
|
||||
>
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
label="标准编号"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
label="标准名称"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span style="display: flex;align-items: center" @click="handlePreview(scope.row)">
|
||||
<span>{{ scope.row.standardName }}</span>
|
||||
<img v-if="checkTime(scope.row.releaseDate)" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="120"
|
||||
label="发布时间"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div v-if="!pageVerify" class="more" @click="togo">更多 ⋙</div>
|
||||
<loading :loading="loading">加载中...</loading>
|
||||
<pagination
|
||||
v-if="pageVerify"
|
||||
style="position: static;"
|
||||
:page="page"
|
||||
:total="total"
|
||||
@pageChange="pageChange"
|
||||
@pageSizeChange="pageSizeChange"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -68,7 +66,7 @@ export default {
|
||||
name: 'ReleaseBuss',
|
||||
components: {},
|
||||
mixins: [],
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
pageVerify: false,
|
||||
@@ -76,70 +74,69 @@ export default {
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
total: 0,
|
||||
putTime: '',
|
||||
standardReleaseList: [], //标准发布数据
|
||||
standardReleaseList: [], // 标准发布数据
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
mounted() {
|
||||
mounted () {
|
||||
this.getDate()
|
||||
this.getAdvice()
|
||||
// this.addDate()
|
||||
},
|
||||
methods: {
|
||||
checkTime (time) {
|
||||
return moment(time.slice(0,10)).diff(moment(), 'day') > -3
|
||||
},
|
||||
pageChange(page) {
|
||||
this.page = page
|
||||
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:'/releaseBuss2'})
|
||||
},
|
||||
checkTime (time) {
|
||||
return moment(time.slice(0, 10)).diff(moment(), 'day') > -3
|
||||
},
|
||||
pageChange (page) {
|
||||
this.page = page
|
||||
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: '/releaseBuss2' })
|
||||
},
|
||||
// 点击查看
|
||||
handlePreview (item) {
|
||||
let routeUrl = this.$router.resolve({
|
||||
name: 'OtherBussStandardDetails',
|
||||
params: {
|
||||
id: item.standardId,
|
||||
pageType: 'BUSINESS_STAND'
|
||||
}
|
||||
})
|
||||
window.open(routeUrl.href, '_blank')
|
||||
const routeUrl = this.$router.resolve({
|
||||
name: 'OtherBussStandardDetails',
|
||||
params: {
|
||||
id: item.standardId,
|
||||
pageType: 'BUSINESS_STAND'
|
||||
}
|
||||
})
|
||||
window.open(routeUrl.href, '_blank')
|
||||
},
|
||||
//截取时间
|
||||
// 截取时间
|
||||
getDate (date) {
|
||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
||||
},
|
||||
//获取数据
|
||||
getAdvice() {
|
||||
this.loading = true
|
||||
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
|
||||
})
|
||||
// 获取数据
|
||||
getAdvice () {
|
||||
this.loading = true
|
||||
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
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,65 +1,71 @@
|
||||
<!-- 企标发布 -->
|
||||
<template>
|
||||
<div class="release">
|
||||
<!-- <ul>-->
|
||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
||||
<!-- <div style="height: 18px;">-->
|
||||
<!-- <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
|
||||
height="90%"
|
||||
style="width: 100%; flex: auto;"
|
||||
class="drag-table"
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', height: '48px'}">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55">
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
label="标准编号">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
label="标准名称">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)" style="display: flex;align-items: center">
|
||||
{{ scope.row.standardName }}
|
||||
<img v-if="checkTime(scope.row.releaseDate)" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="120"
|
||||
label="发布时间">
|
||||
<template slot-scope="scope">
|
||||
<span>{{scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<loading :loading="loading">加载中...</loading>
|
||||
<pagination
|
||||
style="position: static;"
|
||||
:page="page"
|
||||
:total="total"
|
||||
@pageChange="pageChange"
|
||||
@pageSizeChange="pageSizeChange"></pagination>
|
||||
<!-- <ul>-->
|
||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
||||
<!-- <div style="height: 18px;">-->
|
||||
<!-- <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
|
||||
height="90%"
|
||||
style="width: 100%; flex: auto;"
|
||||
class="drag-table"
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', height: '48px'}"
|
||||
>
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55"
|
||||
>
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
label="标准编号"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
label="标准名称"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span style="display: flex;align-items: center" @click="handlePreview(scope.row)">
|
||||
{{ scope.row.standardName }}
|
||||
<img v-if="checkTime(scope.row.releaseDate)" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="120"
|
||||
label="发布时间"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<loading :loading="loading">加载中...</loading>
|
||||
<pagination
|
||||
style="position: static;"
|
||||
:page="page"
|
||||
:total="total"
|
||||
@pageChange="pageChange"
|
||||
@pageSizeChange="pageSizeChange"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -69,7 +75,7 @@ export default {
|
||||
name: 'ReleaseBuss2',
|
||||
components: {},
|
||||
mixins: [],
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
pageVerify: false,
|
||||
@@ -77,73 +83,72 @@ export default {
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
total: 0,
|
||||
putTime: '',
|
||||
standardReleaseList: [], //标准发布数据
|
||||
standardReleaseList: [], // 标准发布数据
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
mounted() {
|
||||
mounted () {
|
||||
this.getDate()
|
||||
this.getAdvice()
|
||||
// this.addDate()
|
||||
},
|
||||
methods: {
|
||||
checkTime (time) {
|
||||
return moment(time.slice(0,10)).diff(moment(), 'day') > -3
|
||||
},
|
||||
pageChange(page) {
|
||||
this.page = page
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
this.getAdvice()
|
||||
},
|
||||
// 分页每页显示数改变后方法
|
||||
pageSizeChange(pageSize) {
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
this.getAdvice()
|
||||
// 此处需要调用接口,修改个人配置
|
||||
},
|
||||
togo () {
|
||||
if(this.total && this.total > 10){
|
||||
this.pageVerify = true
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
}else {
|
||||
this.pageVerify = false
|
||||
}
|
||||
this.getAdvice()
|
||||
},
|
||||
checkTime (time) {
|
||||
return moment(time.slice(0, 10)).diff(moment(), 'day') > -3
|
||||
},
|
||||
pageChange (page) {
|
||||
this.page = page
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
this.getAdvice()
|
||||
},
|
||||
// 分页每页显示数改变后方法
|
||||
pageSizeChange (pageSize) {
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
this.getAdvice()
|
||||
// 此处需要调用接口,修改个人配置
|
||||
},
|
||||
togo () {
|
||||
if(this.total && this.total > 10) {
|
||||
this.pageVerify = true
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
}else {
|
||||
this.pageVerify = false
|
||||
}
|
||||
this.getAdvice()
|
||||
},
|
||||
// 点击查看
|
||||
handlePreview (item) {
|
||||
let routeUrl = this.$router.resolve({
|
||||
name: 'OtherBussStandardDetails',
|
||||
params: {
|
||||
id: item.standardId,
|
||||
pageType: 'BUSINESS_STAND'
|
||||
}
|
||||
})
|
||||
window.open(routeUrl.href, '_blank')
|
||||
const routeUrl = this.$router.resolve({
|
||||
name: 'OtherBussStandardDetails',
|
||||
params: {
|
||||
id: item.standardId,
|
||||
pageType: 'BUSINESS_STAND'
|
||||
}
|
||||
})
|
||||
window.open(routeUrl.href, '_blank')
|
||||
},
|
||||
//截取时间
|
||||
// 截取时间
|
||||
getDate (date) {
|
||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
||||
},
|
||||
//获取数据
|
||||
getAdvice() {
|
||||
this.loading = true
|
||||
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
|
||||
})
|
||||
// 获取数据
|
||||
getAdvice () {
|
||||
this.loading = true
|
||||
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
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
@@ -1,51 +1,54 @@
|
||||
<!-- 标准问答 -->
|
||||
<template>
|
||||
<div class="release">
|
||||
<el-table ref="table"
|
||||
:data="data"
|
||||
tooltip-effect = "dark"
|
||||
border
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||
<el-table
|
||||
ref="table"
|
||||
:data="data"
|
||||
tooltip-effect="dark"
|
||||
border
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||
>
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55">
|
||||
</el-table-column>
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="classification"
|
||||
label="类型"
|
||||
width="150"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
prop="classification"
|
||||
label="类型"
|
||||
width="150"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="standardEncdoing"
|
||||
label="标准编号"
|
||||
width="150"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
prop="standardEncdoing"
|
||||
label="标准编号"
|
||||
width="150"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="problemDescription"
|
||||
label="问题描述"
|
||||
align="center">
|
||||
prop="problemDescription"
|
||||
label="问题描述"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a class="table-jump" @click="handleClick(scope.row.id)">{{ scope.row.problemDescription }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="questioner"
|
||||
label="提问人"
|
||||
width="150"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
prop="questioner"
|
||||
label="提问人"
|
||||
width="150"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="questionTime"
|
||||
label="提问时间"
|
||||
width="150"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
prop="questionTime"
|
||||
label="提问时间"
|
||||
width="150"
|
||||
align="center"
|
||||
/>
|
||||
</el-table>
|
||||
<div class="more" v-if="!pageVerify" @click="togo">更多 ⋙</div>
|
||||
<div v-if="!pageVerify" class="more" @click="togo">更多 ⋙</div>
|
||||
<loading :loading="loading">加载中...</loading>
|
||||
</div>
|
||||
</template>
|
||||
@@ -55,7 +58,7 @@ export default {
|
||||
name: 'ReleaseQA',
|
||||
components: {},
|
||||
mixins: [],
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
pageVerify: false,
|
||||
@@ -63,36 +66,36 @@ export default {
|
||||
total: 0,
|
||||
currentPage: 1,
|
||||
data: [],
|
||||
form:{
|
||||
classification:"", // 类型
|
||||
problemDescription: "", // 问题描述
|
||||
form: {
|
||||
classification: '', // 类型
|
||||
problemDescription: '', // 问题描述
|
||||
},
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
mounted() {
|
||||
mounted () {
|
||||
this.getDate()
|
||||
},
|
||||
methods: {
|
||||
togo () {
|
||||
this.$router.push({path:'/releaseQA2'})
|
||||
this.$router.push({ path: '/releaseQA2' })
|
||||
},
|
||||
handleClick (id) {
|
||||
this.$router.push({
|
||||
path:'/standQA',
|
||||
path: '/standQA',
|
||||
query: { id }
|
||||
})
|
||||
},
|
||||
getDate(){
|
||||
getDate () {
|
||||
this.loading = true
|
||||
let form = this.form
|
||||
const form = this.form
|
||||
form.userId = this.$store.getters.userInfo.account
|
||||
form.pageSize = this.pageSize
|
||||
form.page = this.currentPage
|
||||
return new Promise((resolve,reject)=>{
|
||||
this.$http.get('lawss/AskQuestions/getAskQuestionsPage', form, {_this: this }, res => {
|
||||
if(res.data){
|
||||
return new Promise((resolve, reject) => {
|
||||
this.$http.get('lawss/AskQuestions/getAskQuestionsPage', form, { _this: this }, res => {
|
||||
if(res.data) {
|
||||
const data = res.data
|
||||
this.data = data.records
|
||||
this.total = data.total
|
||||
|
||||
@@ -1,62 +1,68 @@
|
||||
<!-- 标准发布 -->
|
||||
<template>
|
||||
<div class="release">
|
||||
<!-- <ul>-->
|
||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
||||
<!-- <div style="height: 18px;">-->
|
||||
<!-- <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
|
||||
style="cursor:pointer;"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55">
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
prop="standard"
|
||||
label="标准编号">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standardName"
|
||||
label="标准名称">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standardName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="120"
|
||||
label="标准状态">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ textStatusMap[scope.row.textState] }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</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>
|
||||
<!-- <ul>-->
|
||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
||||
<!-- <div style="height: 18px;">-->
|
||||
<!-- <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
|
||||
style="cursor:pointer;"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||
>
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55"
|
||||
>
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
prop="standard"
|
||||
label="标准编号"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standardName"
|
||||
label="标准名称"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standardName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="120"
|
||||
label="标准状态"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{ textStatusMap[scope.row.textState] }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div v-if="!pageVerify" class="more" @click="togo">更多 ⋙</div>
|
||||
<loading :loading="loading">加载中...</loading>
|
||||
<pagination
|
||||
v-if="pageVerify"
|
||||
style="position: static;"
|
||||
:page="page"
|
||||
:total="total"
|
||||
@pageChange="pageChange"
|
||||
@pageSizeChange="pageSizeChange"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -65,7 +71,7 @@ export default {
|
||||
name: 'ReleaseUs',
|
||||
components: {},
|
||||
mixins: [],
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
pageVerify: false,
|
||||
@@ -73,49 +79,49 @@ export default {
|
||||
pageSize: 10,
|
||||
total: 0,
|
||||
putTime: '',
|
||||
standardReleaseList: [], //标准发布数据
|
||||
standardReleaseList: [], // 标准发布数据
|
||||
textStatusMap: {} // 标准状态id与name对应
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
mounted() {
|
||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.data.WBZTCLASS !== undefined && res.data.WBZTCLASS !== null){
|
||||
this.setMap(res.data.WBZTCLASS) // 标准状态
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
mounted () {
|
||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.data.WBZTCLASS !== undefined && res.data.WBZTCLASS !== null) {
|
||||
this.setMap(res.data.WBZTCLASS) // 标准状态
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
this.getDate()
|
||||
this.getAdvice()
|
||||
// this.addDate()
|
||||
},
|
||||
methods: {
|
||||
pageChange(page) {
|
||||
this.page = page
|
||||
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:'/releaseUs2'})
|
||||
},
|
||||
// 将标准状态的id与name对应
|
||||
setMap(data) {
|
||||
data.forEach(item => {
|
||||
this.$set(this.textStatusMap, item.value, item.label)
|
||||
})
|
||||
},
|
||||
pageChange (page) {
|
||||
this.page = page
|
||||
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: '/releaseUs2' })
|
||||
},
|
||||
// 将标准状态的id与name对应
|
||||
setMap (data) {
|
||||
data.forEach(item => {
|
||||
this.$set(this.textStatusMap, item.value, item.label)
|
||||
})
|
||||
},
|
||||
// 点击查看
|
||||
handlePreview (item) {
|
||||
let routeUrl = this.$router.resolve({
|
||||
const routeUrl = this.$router.resolve({
|
||||
name: 'OtherStandardDetails',
|
||||
params: {
|
||||
id: item.standardId,
|
||||
@@ -124,28 +130,28 @@ export default {
|
||||
})
|
||||
window.open(routeUrl.href, '_blank')
|
||||
},
|
||||
//截取时间
|
||||
// 截取时间
|
||||
getDate (date) {
|
||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
||||
},
|
||||
//获取数据
|
||||
getAdvice() {
|
||||
this.loading = true
|
||||
this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
||||
messageType: 'ZYBZFG',
|
||||
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
|
||||
})
|
||||
// 获取数据
|
||||
getAdvice () {
|
||||
this.loading = true
|
||||
this.$http.get('/lawss/NewsFeed/getNewsFeed', {
|
||||
messageType: 'ZYBZFG',
|
||||
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
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
@@ -1,66 +1,71 @@
|
||||
<!-- 企标发布 -->
|
||||
<template>
|
||||
<div class="release">
|
||||
<!-- <ul>-->
|
||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
||||
<!-- <div style="height: 18px;">-->
|
||||
<!-- <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
|
||||
style="cursor:pointer;"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||
<el-table-column
|
||||
type="index"
|
||||
width="55"
|
||||
label="序号"
|
||||
align="center">
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="dataType"
|
||||
width="250"
|
||||
label="类型"
|
||||
:show-overflow-tooltip="true"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="dataTitle"
|
||||
min-width="250"
|
||||
label="资料标题"
|
||||
:show-overflow-tooltip="true"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span @click.stop="toDetail(scope.row)" style="cursor:pointer;color: #409eff">{{ scope.row.dataTitle }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="dataUploadTime"
|
||||
width="250"
|
||||
label="上传时间"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ $moment(scope.row.dataUploadTime).format("YYYY-MM-DD") }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</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>
|
||||
<!-- <ul>-->
|
||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
||||
<!-- <div style="height: 18px;">-->
|
||||
<!-- <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
|
||||
style="cursor:pointer;"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||
>
|
||||
<el-table-column
|
||||
type="index"
|
||||
width="55"
|
||||
label="序号"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="dataType"
|
||||
width="250"
|
||||
label="类型"
|
||||
:show-overflow-tooltip="true"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="dataTitle"
|
||||
min-width="250"
|
||||
label="资料标题"
|
||||
:show-overflow-tooltip="true"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span style="cursor:pointer;color: #409eff" @click.stop="toDetail(scope.row)">{{ scope.row.dataTitle }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="dataUploadTime"
|
||||
width="250"
|
||||
label="上传时间"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{ $moment(scope.row.dataUploadTime).format("YYYY-MM-DD") }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div v-if="!pageVerify" class="more" @click="togo">更多 ⋙</div>
|
||||
<loading :loading="loading">加载中...</loading>
|
||||
<pagination
|
||||
v-if="pageVerify"
|
||||
style="position: static;"
|
||||
:page="page"
|
||||
:total="total"
|
||||
@pageChange="pageChange"
|
||||
@pageSizeChange="pageSizeChange"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -69,7 +74,7 @@ export default {
|
||||
name: 'ReleaseQA',
|
||||
components: {},
|
||||
mixins: [],
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
pageVerify: false,
|
||||
@@ -77,76 +82,76 @@ export default {
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
total: 0,
|
||||
putTime: '',
|
||||
standardReleaseList: [], //标准问答数据
|
||||
standardReleaseList: [], // 标准问答数据
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
mounted() {
|
||||
mounted () {
|
||||
this.getDate()
|
||||
this.getAdvice()
|
||||
// this.addDate()
|
||||
},
|
||||
methods: {
|
||||
pageChange(page) {
|
||||
this.page = page
|
||||
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:'/dataCenter'})
|
||||
},
|
||||
pageChange (page) {
|
||||
this.page = page
|
||||
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: '/dataCenter' })
|
||||
},
|
||||
// 点击查看
|
||||
handlePreview (item) {
|
||||
// let routeUrl = this.$router.resolve({
|
||||
// name: 'OtherBussStandardDetails',
|
||||
// params: {
|
||||
// id: item.standardId,
|
||||
// pageType: 'BUSINESS_STAND'
|
||||
// }
|
||||
// })
|
||||
// window.open(routeUrl.href, '_blank')
|
||||
// let routeUrl = this.$router.resolve({
|
||||
// name: 'OtherBussStandardDetails',
|
||||
// params: {
|
||||
// id: item.standardId,
|
||||
// pageType: 'BUSINESS_STAND'
|
||||
// }
|
||||
// })
|
||||
// window.open(routeUrl.href, '_blank')
|
||||
},
|
||||
//截取时间
|
||||
// 截取时间
|
||||
getDate (date) {
|
||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
||||
},
|
||||
toDetail(row){
|
||||
toDetail (row) {
|
||||
this.$router.push({
|
||||
name: "dataCenterDetail",
|
||||
name: 'dataCenterDetail',
|
||||
query: {
|
||||
id: row.id
|
||||
}
|
||||
});
|
||||
},
|
||||
//获取数据
|
||||
getAdvice() {
|
||||
this.loading = true
|
||||
// 模拟加载
|
||||
const timer = setInterval(() => {
|
||||
this.loading = false
|
||||
}, 2000)
|
||||
console.log(timer)
|
||||
let userInfo = JSON.parse(localStorage.getItem('userInfo'));
|
||||
this.$http.get("fileMaterialCenter/file-material/getFileMaterialIndex", {
|
||||
userId: userInfo.userId,
|
||||
}, {
|
||||
_this: this,loading: 'loading'
|
||||
}, res => {
|
||||
this.standardReleaseList = res.data
|
||||
this.total = res.data.total
|
||||
this.loading = false
|
||||
}, e => {
|
||||
this.loading = false
|
||||
this.standardReleaseList = []
|
||||
this.total = 0
|
||||
})
|
||||
// 获取数据
|
||||
getAdvice () {
|
||||
this.loading = true
|
||||
// 模拟加载
|
||||
const timer = setInterval(() => {
|
||||
this.loading = false
|
||||
}, 2000)
|
||||
console.log(timer)
|
||||
const userInfo = JSON.parse(localStorage.getItem('userInfo'));
|
||||
this.$http.get('fileMaterialCenter/file-material/getFileMaterialIndex', {
|
||||
userId: userInfo.userId,
|
||||
}, {
|
||||
_this: this, loading: 'loading'
|
||||
}, res => {
|
||||
this.standardReleaseList = res.data
|
||||
this.total = res.data.total
|
||||
this.loading = false
|
||||
}, e => {
|
||||
this.loading = false
|
||||
this.standardReleaseList = []
|
||||
this.total = 0
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
@@ -1,32 +1,34 @@
|
||||
<!-- 标准征求意见 -->
|
||||
<template>
|
||||
<div class="solicitopinions">
|
||||
<!-- <ul>-->
|
||||
<!-- <li v-for="item in domesticDynamics" :key="item.id" class="time-title">-->
|
||||
<!-- <div style="height: 18px; border-bottom: dashed 1px #cccccc">-->
|
||||
<!-- <a class="title" style="color: #333333;" :title="item.cname" @click="standForComments(item)">{{ item.cid }}</a>-->
|
||||
<!-- <span class="time">{{ item.endTime }}</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- </li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- <ul>-->
|
||||
<!-- <li v-for="item in domesticDynamics" :key="item.id" class="time-title">-->
|
||||
<!-- <div style="height: 18px; border-bottom: dashed 1px #cccccc">-->
|
||||
<!-- <a class="title" style="color: #333333;" :title="item.cname" @click="standForComments(item)">{{ item.cid }}</a>-->
|
||||
<!-- <span class="time">{{ item.endTime }}</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- </li>-->
|
||||
<!-- </ul>-->
|
||||
<el-table
|
||||
ref="selection"
|
||||
:data="domesticDynamics"
|
||||
tooltip-effect="dark"
|
||||
border
|
||||
style="cursor:pointer;"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||
ref="selection"
|
||||
:data="domesticDynamics"
|
||||
tooltip-effect="dark"
|
||||
border
|
||||
style="cursor:pointer;"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||
>
|
||||
style="width: 100%">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55">
|
||||
</el-table-column>
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="55"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="cid"
|
||||
show-overflow-tooltip
|
||||
label="标准名称">
|
||||
prop="cid"
|
||||
show-overflow-tooltip
|
||||
label="标准名称"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span @click="standForComments(scope.row)">{{ scope.row.cid }}</span>
|
||||
</template>
|
||||
@@ -34,8 +36,8 @@
|
||||
<el-table-column
|
||||
prop="endTime"
|
||||
width="120"
|
||||
label="结束时间">
|
||||
</el-table-column>
|
||||
label="结束时间"
|
||||
/>
|
||||
</el-table>
|
||||
<div class="more" @click="$router.push('standardForComments')">更多 ⋙</div>
|
||||
</div>
|
||||
@@ -43,31 +45,31 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "Solicitopinions",
|
||||
name: 'Solicitopinions',
|
||||
components: {},
|
||||
mixins: [],
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
updateTime: "",
|
||||
putTime: "",
|
||||
domesticDynamics: [] //标准征求意见数据
|
||||
updateTime: '',
|
||||
putTime: '',
|
||||
domesticDynamics: [] // 标准征求意见数据
|
||||
};
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
mounted() {
|
||||
mounted () {
|
||||
this.getDate();
|
||||
this.getAdvice();
|
||||
// this.addDate();
|
||||
},
|
||||
methods: {
|
||||
//截取时间
|
||||
getDate(date) {
|
||||
return date != null ? date.substring(0, date.indexOf(" ")) : "";
|
||||
// 截取时间
|
||||
getDate (date) {
|
||||
return date != null ? date.substring(0, date.indexOf(' ')) : '';
|
||||
},
|
||||
//获取数据
|
||||
getAdvice() {
|
||||
this.$http.get("slrs/sar-public-idea/SelectAllPage", {
|
||||
// 获取数据
|
||||
getAdvice () {
|
||||
this.$http.get('slrs/sar-public-idea/SelectAllPage', {
|
||||
page: 1,
|
||||
size: 10
|
||||
}, {
|
||||
@@ -78,10 +80,10 @@ export default {
|
||||
|
||||
});
|
||||
},
|
||||
standForComments(item) {
|
||||
this.$store.commit("setDetailMap", this.$router.path);
|
||||
standForComments (item) {
|
||||
this.$store.commit('setDetailMap', this.$router.path);
|
||||
this.$router.push({
|
||||
name: "consultationDetails",
|
||||
name: 'consultationDetails',
|
||||
query: {
|
||||
item: JSON.stringify(item)
|
||||
}
|
||||
|
||||
+70
-70
@@ -1,61 +1,61 @@
|
||||
<template>
|
||||
<div class="home">
|
||||
<div class="home_main">
|
||||
<div class="left_wrapper">
|
||||
<search-group></search-group>
|
||||
<div class="main-tabs" style="box-shadow:1px 1px 10px rgba(0,0,0,0.1);border-radius: 3px;" >
|
||||
<div class="main-left-wrap" >
|
||||
<!-- <el-button type="text" style="font-size: 14px" class="more" @click="MORE">MORE</el-button>-->
|
||||
<el-tabs
|
||||
v-model="activeName"
|
||||
class="home-tabs"
|
||||
@tab-click="handleTabClick"
|
||||
>
|
||||
<el-tab-pane name="solicitOpinions">
|
||||
<span slot="label"><i class="el-icon-s-order"></i> 标准征求意见</span>
|
||||
<solicitOpinions></solicitOpinions>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="releaseZL" style="overflow-y: auto;height: 100%">
|
||||
<span slot="label"><i class="el-icon-chat-line-round"></i> 标准化动态</span>
|
||||
<releaseZL></releaseZL>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="releaseUs" style="overflow-y: auto;height: 100%">
|
||||
<span slot="label"><i class="el-icon-s-operation"></i> 在研标准法规动态</span>
|
||||
<releaseUs></releaseUs>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="releaseCn" style="overflow-y: auto;height: 100%">
|
||||
<span slot="label"><i class="el-icon-s-promotion"></i> 国内标准法规动态</span>
|
||||
<release messageType="GNBZFG"></release>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="release" style="overflow-y: auto;height: 100%">
|
||||
<span slot="label"><i class="el-icon-s-promotion"></i> 国外标准法规动态</span>
|
||||
<release messageType="GWBZFG"></release>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="releaseBuss" style="overflow-y: auto;height: 100%">
|
||||
<span slot="label" style="position: relative"><i class="el-icon-s-promotion"></i>
|
||||
企业标准发布
|
||||
<span v-if="isNew" class="more-doc"></span>
|
||||
<!--<img v-if="isNew" src="/static/images/new.png" style="width: 30px;margin-left: 5px">-->
|
||||
</span>
|
||||
<releaseBuss></releaseBuss>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="releaseQA" style="overflow-y: auto;height: 100%">
|
||||
<span slot="label"><i class="el-icon-chat-line-round"></i> 标准问答</span>
|
||||
<releaseQA></releaseQA>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right_wrapper">
|
||||
<nav-menu></nav-menu>
|
||||
<todo-list></todo-list>
|
||||
<div class="home">
|
||||
<div class="home_main">
|
||||
<div class="left_wrapper">
|
||||
<search-group />
|
||||
<div class="main-tabs" style="box-shadow:1px 1px 10px rgba(0,0,0,0.1);border-radius: 3px;">
|
||||
<div class="main-left-wrap">
|
||||
<!-- <el-button type="text" style="font-size: 14px" class="more" @click="MORE">MORE</el-button>-->
|
||||
<el-tabs
|
||||
v-model="activeName"
|
||||
class="home-tabs"
|
||||
@tab-click="handleTabClick"
|
||||
>
|
||||
<el-tab-pane name="solicitOpinions">
|
||||
<span slot="label"><i class="el-icon-s-order" /> 标准征求意见</span>
|
||||
<solicitOpinions />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="releaseZL" style="overflow-y: auto;height: 100%">
|
||||
<span slot="label"><i class="el-icon-chat-line-round" /> 标准化动态</span>
|
||||
<releaseZL />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="releaseUs" style="overflow-y: auto;height: 100%">
|
||||
<span slot="label"><i class="el-icon-s-operation" /> 在研标准法规动态</span>
|
||||
<releaseUs />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="releaseCn" style="overflow-y: auto;height: 100%">
|
||||
<span slot="label"><i class="el-icon-s-promotion" /> 国内标准法规动态</span>
|
||||
<release messageType="GNBZFG" />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="release" style="overflow-y: auto;height: 100%">
|
||||
<span slot="label"><i class="el-icon-s-promotion" /> 国外标准法规动态</span>
|
||||
<release messageType="GWBZFG" />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="releaseBuss" style="overflow-y: auto;height: 100%">
|
||||
<span slot="label" style="position: relative"><i class="el-icon-s-promotion" />
|
||||
企业标准发布
|
||||
<span v-if="isNew" class="more-doc" />
|
||||
<!--<img v-if="isNew" src="/static/images/new.png" style="width: 30px;margin-left: 5px">-->
|
||||
</span>
|
||||
<releaseBuss />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="releaseQA" style="overflow-y: auto;height: 100%">
|
||||
<span slot="label"><i class="el-icon-chat-line-round" /> 标准问答</span>
|
||||
<releaseQA />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right_wrapper">
|
||||
<nav-menu />
|
||||
<todo-list />
|
||||
</div>
|
||||
</div>
|
||||
<div calss="home_footer" style="padding: 0">
|
||||
<Empennage />
|
||||
</div>
|
||||
</div>
|
||||
<div calss="home_footer" style="padding: 0">
|
||||
<Empennage></Empennage>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -70,9 +70,9 @@ import releaseZL from './components/releaseZL'
|
||||
import solicitOpinions from './components/solicitopinions'
|
||||
import navMenu from './components/navMenu'
|
||||
import todoList from './components/todoList'
|
||||
import Empennage from "./components/empennage"
|
||||
import Empennage from './components/empennage'
|
||||
export default {
|
||||
name: "Home2",
|
||||
name: 'Home2',
|
||||
components: {
|
||||
searchGroup,
|
||||
solicitOpinions,
|
||||
@@ -85,18 +85,18 @@ export default {
|
||||
todoList,
|
||||
Empennage,
|
||||
},
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
activeName: 'solicitOpinions',
|
||||
isNew: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
created () {
|
||||
this.getAdvice()
|
||||
},
|
||||
methods: {
|
||||
getAdvice() {
|
||||
this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
||||
getAdvice () {
|
||||
this.$http.get('/lawss/NewsFeed/getNewsFeed', {
|
||||
messageType: 'QYBZFB',
|
||||
page: 1,
|
||||
pageSize: 1
|
||||
@@ -104,7 +104,7 @@ export default {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.data && res.data.records && res.data.records.length > 0) {
|
||||
if (res.data.records[0].releaseDate && res.data.records[0].releaseDate!== '') {
|
||||
if (res.data.records[0].releaseDate && res.data.records[0].releaseDate !== '') {
|
||||
this.isNew = this.checkTime(res.data.records[0].releaseDate)
|
||||
}
|
||||
}
|
||||
@@ -113,11 +113,11 @@ export default {
|
||||
})
|
||||
},
|
||||
checkTime (time) {
|
||||
return moment(time.slice(0,10)).diff(moment(), 'day') > -3
|
||||
return moment(time.slice(0, 10)).diff(moment(), 'day') > -3
|
||||
},
|
||||
handleTabClick(tab, event) {},
|
||||
//退出登录
|
||||
logout(){
|
||||
handleTabClick (tab, event) {},
|
||||
// 退出登录
|
||||
logout () {
|
||||
this.$confirm('您确认要退出吗?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
@@ -135,10 +135,10 @@ export default {
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
MORE() {
|
||||
MORE () {
|
||||
switch (this.activeName) {
|
||||
case 'solicitOpinions':
|
||||
this.$router.push({name: 'standardForComments'})
|
||||
this.$router.push({ name: 'standardForComments' })
|
||||
break
|
||||
case 'release':
|
||||
this.$confirm('请选择国内/海外标准', {
|
||||
@@ -147,9 +147,9 @@ export default {
|
||||
type: 'warning',
|
||||
center: true
|
||||
}).then(() => {
|
||||
this.$router.push({name: 'domesticStandardsAndRegulations'})
|
||||
this.$router.push({ name: 'domesticStandardsAndRegulations' })
|
||||
}).catch(() => {
|
||||
this.$router.push({name: 'foreignStandardsAndRegulations'})
|
||||
this.$router.push({ name: 'foreignStandardsAndRegulations' })
|
||||
});
|
||||
break
|
||||
default:
|
||||
|
||||
@@ -9,46 +9,60 @@
|
||||
<div class="search-area">
|
||||
<el-form :model="standCommonlySearch" inline class="label-input-form">
|
||||
<el-formItem label="类别" class="search-item">
|
||||
<el-input v-model="standCommonlySearch.categorg" class="s-c-input" placeholder="标准/政策" clearable
|
||||
:maxlength="100"></el-input>
|
||||
<el-input
|
||||
v-model="standCommonlySearch.categorg"
|
||||
class="s-c-input"
|
||||
placeholder="标准/政策"
|
||||
clearable
|
||||
:maxlength="100"
|
||||
/>
|
||||
</el-formItem>
|
||||
<el-formItem label="关键字" class="search-item">
|
||||
<el-input v-model="standCommonlySearch.cname" class="s-c-input" placeholder="请输入关键字" clearable
|
||||
:maxlength="100"></el-input>
|
||||
<el-input
|
||||
v-model="standCommonlySearch.cname"
|
||||
class="s-c-input"
|
||||
placeholder="请输入关键字"
|
||||
clearable
|
||||
:maxlength="100"
|
||||
/>
|
||||
</el-formItem>
|
||||
<el-form-item label="开始日期" >
|
||||
<el-form-item label="开始日期">
|
||||
<el-date-picker
|
||||
v-model="standCommonlySearch.start"
|
||||
type="date"
|
||||
:editable="false"
|
||||
placeholder="请选择开始日期"
|
||||
size="small"
|
||||
value-format="yyyy-MM-dd">
|
||||
</el-date-picker>
|
||||
value-format="yyyy-MM-dd"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="结束日期" >
|
||||
<el-form-item label="结束日期">
|
||||
<el-date-picker
|
||||
v-model="standCommonlySearch.end"
|
||||
type="date"
|
||||
:editable="false"
|
||||
placeholder="请选择结束日期"
|
||||
size="small"
|
||||
value-format="yyyy-MM-dd">
|
||||
</el-date-picker>
|
||||
value-format="yyyy-MM-dd"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-formItem class="search-item btn-box">
|
||||
<el-button
|
||||
v-btn-permission="'0514cd2c6b0e6311a7632f8bef87aecb'"
|
||||
type="primary"
|
||||
size="mini"
|
||||
class="common-button-primary"
|
||||
v-btn-permission="'0514cd2c6b0e6311a7632f8bef87aecb'"
|
||||
@click="sarStandCompareHisInfo">查询
|
||||
@click="sarStandCompareHisInfo"
|
||||
>
|
||||
查询
|
||||
</el-button>
|
||||
<el-button
|
||||
v-btn-permission="'bb7386429dabf20b8006e03efacc0673'"
|
||||
class="common-button-default"
|
||||
size="mini"
|
||||
v-btn-permission="'bb7386429dabf20b8006e03efacc0673'"
|
||||
@click="clearSearchStand">清空
|
||||
@click="clearSearchStand"
|
||||
>
|
||||
清空
|
||||
</el-button>
|
||||
</el-formItem>
|
||||
</el-form>
|
||||
@@ -65,13 +79,15 @@
|
||||
style="width: 100%;padding:0 0 20px 0;"
|
||||
height="100%"
|
||||
border
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||
>
|
||||
<el-table-column
|
||||
type="index"
|
||||
fixed="left"
|
||||
width="55"
|
||||
label="序号"
|
||||
align="center">
|
||||
type="index"
|
||||
fixed="left"
|
||||
width="55"
|
||||
label="序号"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (standCommonlySearch.page - 1) * standCommonlySearch.size }}
|
||||
</template>
|
||||
@@ -80,7 +96,8 @@
|
||||
prop="category"
|
||||
label="标准/政策"
|
||||
width="150"
|
||||
align="center">
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a class="table-jump" @click.stop="handlePreview(scope.row)">{{ scope.row.category }}</a>
|
||||
</template>
|
||||
@@ -88,16 +105,18 @@
|
||||
<el-table-column
|
||||
prop="cid"
|
||||
label="标准名称/政策名称"
|
||||
align="center">
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.cid }}</a>
|
||||
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.cid }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="endTime"
|
||||
label="征求意见周期"
|
||||
width="200"
|
||||
align="center">
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.startTime + ' ~ ' + scope.row.endTime }}
|
||||
</template>
|
||||
@@ -106,29 +125,34 @@
|
||||
prop="startTime"
|
||||
label="上传时间"
|
||||
width="200"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
align="center"
|
||||
/>
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<pagination :page="standCommonlySearch.page" :total="total" @pageChange="pageChange"
|
||||
@pageSizeChange="pageSizeChange"></pagination>
|
||||
<pagination
|
||||
:page="standCommonlySearch.page"
|
||||
:total="total"
|
||||
@pageChange="pageChange"
|
||||
@pageSizeChange="pageSizeChange"
|
||||
/>
|
||||
<loading :loading="spinShow">数据加载中……</loading>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "standardForComments",
|
||||
name: 'StandardForComments',
|
||||
components: {},
|
||||
data() {
|
||||
props: {},
|
||||
data () {
|
||||
return {
|
||||
standCommonlySearch: {
|
||||
categorg: "",
|
||||
cname: "",
|
||||
start: "",
|
||||
end: "",
|
||||
categorg: '',
|
||||
cname: '',
|
||||
start: '',
|
||||
end: '',
|
||||
page: 1,
|
||||
size: this.$store.getters.userInfo.configContent
|
||||
},
|
||||
@@ -138,39 +162,46 @@ export default {
|
||||
total: 0
|
||||
};
|
||||
},
|
||||
props: {},
|
||||
computed: {},
|
||||
watch: {},
|
||||
mounted () {
|
||||
this.sarStandCompareHis();
|
||||
this.tableHeight = $('.content').height() - 44;
|
||||
window.onresize = () => {
|
||||
this.tableHeight = $('.content').height() - 44;
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
// 点击查看
|
||||
handlePreview(item) {
|
||||
this.$store.commit("setDetailMap", this.$router.path);
|
||||
handlePreview (item) {
|
||||
this.$store.commit('setDetailMap', this.$router.path);
|
||||
this.$router.push({
|
||||
name: "consultationDetails",
|
||||
name: 'consultationDetails',
|
||||
query: {
|
||||
item: JSON.stringify(item)
|
||||
}
|
||||
});
|
||||
},
|
||||
// 清空
|
||||
clearSearchStand() {
|
||||
clearSearchStand () {
|
||||
this.standCommonlySearch.page = 1;
|
||||
this.standCommonlySearch.start = "";
|
||||
this.standCommonlySearch.end = "";
|
||||
this.standCommonlySearch.categorg = "";
|
||||
this.standCommonlySearch.cname = "";
|
||||
this.standCommonlySearch.start = '';
|
||||
this.standCommonlySearch.end = '';
|
||||
this.standCommonlySearch.categorg = '';
|
||||
this.standCommonlySearch.cname = '';
|
||||
this.sarStandCompareHis();
|
||||
},
|
||||
// 搜索
|
||||
sarStandCompareHisInfo() {
|
||||
sarStandCompareHisInfo () {
|
||||
this.splitInfoPage = 1;
|
||||
this.sarStandCompareHis();
|
||||
},
|
||||
// 查询表格
|
||||
sarStandCompareHis() {
|
||||
sarStandCompareHis () {
|
||||
this.spinShow = true;
|
||||
this.standCommonlySearch.type = 1;
|
||||
var form = this.standCommonlySearch;
|
||||
this.$http.get("slrs/sar-public-idea/SelectAllPage", form, {
|
||||
const form = this.standCommonlySearch;
|
||||
this.$http.get('slrs/sar-public-idea/SelectAllPage', form, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.standInfoList = res.data.records;
|
||||
@@ -179,24 +210,16 @@ export default {
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
pageChange(page) {
|
||||
pageChange (page) {
|
||||
this.standCommonlySearch.page = page;
|
||||
this.sarStandCompareHis();
|
||||
},
|
||||
// 分页每页显示数改变后方法
|
||||
pageSizeChange(pageSize) {
|
||||
pageSizeChange (pageSize) {
|
||||
this.$store.getters.userInfo.configContent = pageSize;
|
||||
this.standCommonlySearch.size = pageSize;
|
||||
this.sarStandCompareHis();
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
mounted() {
|
||||
this.sarStandCompareHis();
|
||||
this.tableHeight = $(".content").height() - 44;
|
||||
window.onresize = () => {
|
||||
this.tableHeight = $(".content").height() - 44;
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user