Merge branch 'fix_foton_20231213' into 'master'
Fix foton 20231213 See merge request laws-foton-slrs/foton-laws-system-front!133
This commit is contained in:
+3
-2
@@ -23,7 +23,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
'prefer-arrow-callback': 'warn', // 建议使用箭头函数
|
'prefer-arrow-callback': 'warn', // 建议使用箭头函数
|
||||||
'prefer-const': 'error', // 强制使用 const 定义常量
|
'prefer-const': 'error', // 强制使用 const 定义常量
|
||||||
'indent': ['error', 2], // 缩进 2 个空格
|
'indent': ['error', 2, { SwitchCase: 1 }], // 缩进 2 个空格 SwitchCase缩进
|
||||||
// '@stylistic/js/indent': ['error', 2], // 缩进 2 个空格
|
// '@stylistic/js/indent': ['error', 2], // 缩进 2 个空格
|
||||||
'no-mixed-spaces-and-tabs': 'error', // 禁止混用空格和 tab缩进
|
'no-mixed-spaces-and-tabs': 'error', // 禁止混用空格和 tab缩进
|
||||||
'quotes': ['error', 'single'], // 强制使用单引号
|
'quotes': ['error', 'single'], // 强制使用单引号
|
||||||
@@ -47,7 +47,7 @@ module.exports = {
|
|||||||
"padded-blocks": ["error", "never"], // 代码块内部前后不要有空行
|
"padded-blocks": ["error", "never"], // 代码块内部前后不要有空行
|
||||||
"semi-spacing": ["error", { "before": false, "after": true }], // 分号前面不能有空格,后面需要有空格 var foo ; var bar; => var foo; var bar;
|
"semi-spacing": ["error", { "before": false, "after": true }], // 分号前面不能有空格,后面需要有空格 var foo ; var bar; => var foo; var bar;
|
||||||
'no-multiple-empty-lines': [ 'error', { max: 1 }], // 最多只能有一行空行
|
'no-multiple-empty-lines': [ 'error', { max: 1 }], // 最多只能有一行空行
|
||||||
'no-return-assign': ['error', 'except-parens'], // 禁止在 return 语句中使用赋值语句
|
'no-return-assign': ['off', 'except-parens'], // 禁止在 return 语句中使用赋值语句
|
||||||
'no-self-assign': 'error', // 禁止自我赋值
|
'no-self-assign': 'error', // 禁止自我赋值
|
||||||
'no-self-compare': 'error', // 禁止自身比较
|
'no-self-compare': 'error', // 禁止自身比较
|
||||||
// "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 1 }], // 链式调用时,每个调用都需要换行
|
// "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 1 }], // 链式调用时,每个调用都需要换行
|
||||||
@@ -70,6 +70,7 @@ module.exports = {
|
|||||||
'singleline': 'never',
|
'singleline': 'never',
|
||||||
'multiline': 'always',
|
'multiline': 'always',
|
||||||
}],
|
}],
|
||||||
|
'vue/attribute-hyphenation': 'off', // 关闭 属性名必须使用连字符的规则
|
||||||
},
|
},
|
||||||
env: {
|
env: {
|
||||||
browser: true,
|
browser: true,
|
||||||
|
|||||||
@@ -8,13 +8,16 @@
|
|||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div class="modular-header">
|
<div class="modular-header">
|
||||||
<div class="modular-header-title">
|
<div class="modular-header-title">
|
||||||
<i class="icon-modular-title"/><span>基础信息</span>
|
<i class="icon-modular-title" /><span>基础信息</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="modular-header-btn">
|
<div class="modular-header-btn">
|
||||||
<el-button class="relation-btn"
|
<el-button
|
||||||
icon="icon-relation"
|
class="relation-btn"
|
||||||
@click.stop="relateEvent()"
|
icon="icon-relation"
|
||||||
>更新记录</el-button>
|
@click.stop="relateEvent()"
|
||||||
|
>
|
||||||
|
更新记录
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -29,10 +32,10 @@
|
|||||||
<label style=" margin-right: 132px;line-height: 44px">会议纪要</label>
|
<label style=" margin-right: 132px;line-height: 44px">会议纪要</label>
|
||||||
<div style="min-height: 44px;padding: 8px 0;">
|
<div style="min-height: 44px;padding: 8px 0;">
|
||||||
<template v-if="form.meetingMinutesList && form.meetingMinutesList.length > 0">
|
<template v-if="form.meetingMinutesList && form.meetingMinutesList.length > 0">
|
||||||
<p class="file-item" v-for="file in form.meetingMinutesList">
|
<p v-for="file in form.meetingMinutesList" class="file-item">
|
||||||
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
||||||
<i title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
|
<i title="下载" class="icon-download" @click="downloadFile(file.id)" />
|
||||||
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
|
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)" />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p v-else>-</p>
|
<p v-else>-</p>
|
||||||
@@ -45,7 +48,7 @@
|
|||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div class="modular-header">
|
<div class="modular-header">
|
||||||
<div class="modular-header-title">
|
<div class="modular-header-title">
|
||||||
<i class="icon-modular-title"/><span>会议分类</span>
|
<i class="icon-modular-title" /><span>会议分类</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -58,7 +61,7 @@
|
|||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div class="modular-header">
|
<div class="modular-header">
|
||||||
<div class="modular-header-title">
|
<div class="modular-header-title">
|
||||||
<i class="icon-modular-title"/><span>会议议题</span>
|
<i class="icon-modular-title" /><span>会议议题</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -68,10 +71,10 @@
|
|||||||
<label style=" margin-right: 132px;line-height: 44px">议题材料</label>
|
<label style=" margin-right: 132px;line-height: 44px">议题材料</label>
|
||||||
<div style="min-height: 44px;padding: 8px 0;">
|
<div style="min-height: 44px;padding: 8px 0;">
|
||||||
<template v-if="item.agendaMaterialsList && item.agendaMaterialsList.length > 0">
|
<template v-if="item.agendaMaterialsList && item.agendaMaterialsList.length > 0">
|
||||||
<p class="file-item" v-for="file in item.agendaMaterialsList">
|
<p v-for="file in item.agendaMaterialsList" class="file-item">
|
||||||
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
||||||
<i title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
|
<i title="下载" class="icon-download" @click="downloadFile(file.id)" />
|
||||||
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
|
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)" />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p v-else>-</p>
|
<p v-else>-</p>
|
||||||
@@ -87,19 +90,20 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 更新LOG -->
|
<!-- 更新LOG -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="更新记录"
|
title="更新记录"
|
||||||
:visible.sync="relateDialog"
|
:visible.sync="relateDialog"
|
||||||
width="60%"
|
width="60%"
|
||||||
class="relateClass"
|
class="relateClass"
|
||||||
:before-close="relateDialogClose">
|
:before-close="relateDialogClose"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
v-for="(item, index) in relateNowList"
|
v-for="(item, index) in relateNowList"
|
||||||
:key="index"
|
v-if="relateNowList"
|
||||||
v-if="relateNowList"
|
:key="index"
|
||||||
style="margin-bottom: 10px;line-height: 20px"
|
style="margin-bottom: 10px;line-height: 20px"
|
||||||
>
|
>
|
||||||
{{index+1}}. {{item.creationUserName}} {{item.creationTime}} {{item.content}}
|
{{ index+1 }}. {{ item.creationUserName }} {{ item.creationTime }} {{ item.content }}
|
||||||
<div v-if="relateNowList.length >1"><el-divider></el-divider></div>
|
<div v-if="relateNowList.length >1"><el-divider /></div>
|
||||||
</div>
|
</div>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="relateDialogClose()">关 闭</el-button>
|
<el-button type="primary" @click="relateDialogClose()">关 闭</el-button>
|
||||||
@@ -110,10 +114,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getBusStandFileByAttId } from 'api/process'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "meetingDetail",
|
name: 'MeetingDetail',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
url: {
|
url: {
|
||||||
@@ -121,14 +123,14 @@ export default {
|
|||||||
getLogList: 'lawss/sarUpdLog/getLogList', // 更新记录
|
getLogList: 'lawss/sarUpdLog/getLogList', // 更新记录
|
||||||
},
|
},
|
||||||
form: {},
|
form: {},
|
||||||
activeNames: ['1', '2'],
|
activeNames: [ '1', '2' ],
|
||||||
// 更新记录
|
// 更新记录
|
||||||
relateDialog: false,
|
relateDialog: false,
|
||||||
relateNowList: [],
|
relateNowList: [],
|
||||||
loading: false
|
loading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created () {
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -141,7 +143,7 @@ export default {
|
|||||||
res.data.meetingTopicList.forEach((item, index) => {
|
res.data.meetingTopicList.forEach((item, index) => {
|
||||||
activeNames.push(index)
|
activeNames.push(index)
|
||||||
})
|
})
|
||||||
this.activeNames = [...this.activeNames, ...activeNames]
|
this.activeNames = [ ...this.activeNames, ...activeNames ]
|
||||||
}
|
}
|
||||||
this.$set(this, 'form', res.data)
|
this.$set(this, 'form', res.data)
|
||||||
}
|
}
|
||||||
@@ -158,9 +160,9 @@ export default {
|
|||||||
if (res.ok && res.data.length > 0) {
|
if (res.ok && res.data.length > 0) {
|
||||||
this.relateDialog = true
|
this.relateDialog = true
|
||||||
const relateList = res.data
|
const relateList = res.data
|
||||||
var i
|
let i
|
||||||
for (i = 0; i < relateList.length; i++) {
|
for (i = 0; i < relateList.length; i++) {
|
||||||
let obj = {creationUserName: '', creationTime: '', content: ''}
|
const obj = { creationUserName: '', creationTime: '', content: '' }
|
||||||
obj.creationUserName = relateList[i].creationUserName
|
obj.creationUserName = relateList[i].creationUserName
|
||||||
obj.creationTime = relateList[i].creationTime
|
obj.creationTime = relateList[i].creationTime
|
||||||
obj.content = relateList[i].content
|
obj.content = relateList[i].content
|
||||||
@@ -193,21 +195,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getBusStandFileByAttId(attId) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
getBusStandFileByAttId({
|
|
||||||
attId
|
|
||||||
}).then(res => {
|
|
||||||
if (res.ok) {
|
|
||||||
resolve(res.data)
|
|
||||||
} else {
|
|
||||||
reject()
|
|
||||||
}
|
|
||||||
}).catch(e => {
|
|
||||||
reject(e)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
openFileInPdf (attId, fileName) {
|
openFileInPdf (attId, fileName) {
|
||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,13 +8,16 @@
|
|||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div class="modular-header">
|
<div class="modular-header">
|
||||||
<div class="modular-header-title">
|
<div class="modular-header-title">
|
||||||
<i class="icon-modular-title"/><span>基础信息</span>
|
<i class="icon-modular-title" /><span>基础信息</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="modular-header-btn">
|
<div class="modular-header-btn">
|
||||||
<el-button class="relation-btn"
|
<el-button
|
||||||
icon="icon-relation"
|
class="relation-btn"
|
||||||
@click.stop="relateEvent()"
|
icon="icon-relation"
|
||||||
>更新记录</el-button>
|
@click.stop="relateEvent()"
|
||||||
|
>
|
||||||
|
更新记录
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -31,10 +34,10 @@
|
|||||||
<label style=" margin-right: 164px;line-height: 44px">协议</label>
|
<label style=" margin-right: 164px;line-height: 44px">协议</label>
|
||||||
<div style="min-height: 44px;padding: 8px 0;">
|
<div style="min-height: 44px;padding: 8px 0;">
|
||||||
<template v-if="form.agreementList && form.agreementList.length > 0">
|
<template v-if="form.agreementList && form.agreementList.length > 0">
|
||||||
<p class="file-item" v-for="file in form.agreementList">
|
<p v-for="file in form.agreementList" class="file-item">
|
||||||
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
||||||
<i title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
|
<i title="下载" class="icon-download" @click="downloadFile(file.id)" />
|
||||||
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
|
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)" />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p v-else>-</p>
|
<p v-else>-</p>
|
||||||
@@ -47,7 +50,7 @@
|
|||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div class="modular-header">
|
<div class="modular-header">
|
||||||
<div class="modular-header-title">
|
<div class="modular-header-title">
|
||||||
<i class="icon-modular-title"/><span>课题组会议</span>
|
<i class="icon-modular-title" /><span>课题组会议</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -64,7 +67,7 @@
|
|||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div class="modular-header">
|
<div class="modular-header">
|
||||||
<div class="modular-header-title">
|
<div class="modular-header-title">
|
||||||
<i class="icon-modular-title"/><span>课题组资料</span>
|
<i class="icon-modular-title" /><span>课题组资料</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -73,10 +76,10 @@
|
|||||||
<label style=" margin-right: 132px;line-height: 44px">研究方案</label>
|
<label style=" margin-right: 132px;line-height: 44px">研究方案</label>
|
||||||
<div style="min-height: 44px;padding: 8px 0;">
|
<div style="min-height: 44px;padding: 8px 0;">
|
||||||
<template v-if="form.researchPlanList && form.researchPlanList.length > 0">
|
<template v-if="form.researchPlanList && form.researchPlanList.length > 0">
|
||||||
<p class="file-item" v-for="file in form.researchPlanList">
|
<p v-for="file in form.researchPlanList" class="file-item">
|
||||||
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
||||||
<i title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
|
<i title="下载" class="icon-download" @click="downloadFile(file.id)" />
|
||||||
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
|
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)" />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p v-else>-</p>
|
<p v-else>-</p>
|
||||||
@@ -86,10 +89,10 @@
|
|||||||
<label style=" margin-right: 132px;line-height: 44px">研究成果</label>
|
<label style=" margin-right: 132px;line-height: 44px">研究成果</label>
|
||||||
<div style="min-height: 44px;padding: 8px 0;">
|
<div style="min-height: 44px;padding: 8px 0;">
|
||||||
<template v-if="form.researchFindingsList && form.researchFindingsList.length > 0">
|
<template v-if="form.researchFindingsList && form.researchFindingsList.length > 0">
|
||||||
<p class="file-item" v-for="file in form.researchFindingsList">
|
<p v-for="file in form.researchFindingsList" class="file-item">
|
||||||
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
||||||
<i title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
|
<i title="下载" class="icon-download" @click="downloadFile(file.id)" />
|
||||||
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
|
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)" />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p v-else>-</p>
|
<p v-else>-</p>
|
||||||
@@ -99,10 +102,10 @@
|
|||||||
<label style=" margin-right: 164px;line-height: 44px">其他</label>
|
<label style=" margin-right: 164px;line-height: 44px">其他</label>
|
||||||
<div style="min-height: 44px;padding: 8px 0;">
|
<div style="min-height: 44px;padding: 8px 0;">
|
||||||
<template v-if="form.researchGroupOtherList && form.researchGroupOtherList.length > 0">
|
<template v-if="form.researchGroupOtherList && form.researchGroupOtherList.length > 0">
|
||||||
<p class="file-item" v-for="file in form.researchGroupOtherList">
|
<p v-for="file in form.researchGroupOtherList" class="file-item">
|
||||||
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
||||||
<i title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
|
<i title="下载" class="icon-download" @click="downloadFile(file.id)" />
|
||||||
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
|
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)" />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p v-else>-</p>
|
<p v-else>-</p>
|
||||||
@@ -112,10 +115,10 @@
|
|||||||
<label style=" margin-right: 132px;line-height: 44px">会议资料</label>
|
<label style=" margin-right: 132px;line-height: 44px">会议资料</label>
|
||||||
<div style="min-height: 44px;padding: 8px 0;">
|
<div style="min-height: 44px;padding: 8px 0;">
|
||||||
<template v-if="form.conferenceMaterialsList && form.conferenceMaterialsList.length > 0">
|
<template v-if="form.conferenceMaterialsList && form.conferenceMaterialsList.length > 0">
|
||||||
<p class="file-item" v-for="file in form.conferenceMaterialsList">
|
<p v-for="file in form.conferenceMaterialsList" class="file-item">
|
||||||
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
||||||
<i title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
|
<i title="下载" class="icon-download" @click="downloadFile(file.id)" />
|
||||||
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
|
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)" />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p v-else>-</p>
|
<p v-else>-</p>
|
||||||
@@ -128,7 +131,7 @@
|
|||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div class="modular-header">
|
<div class="modular-header">
|
||||||
<div class="modular-header-title">
|
<div class="modular-header-title">
|
||||||
<i class="icon-modular-title"/><span>课题组联系方式</span>
|
<i class="icon-modular-title" /><span>课题组联系方式</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -145,7 +148,7 @@
|
|||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div class="modular-header">
|
<div class="modular-header">
|
||||||
<div class="modular-header-title">
|
<div class="modular-header-title">
|
||||||
<i class="icon-modular-title"/><span>内部资料</span>
|
<i class="icon-modular-title" /><span>内部资料</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -154,10 +157,10 @@
|
|||||||
<label style=" margin-right: 132px;line-height: 44px">立项报告</label>
|
<label style=" margin-right: 132px;line-height: 44px">立项报告</label>
|
||||||
<div style="min-height: 44px;padding: 8px 0;">
|
<div style="min-height: 44px;padding: 8px 0;">
|
||||||
<template v-if="form.insideProjectProposalReportList && form.insideProjectProposalReportList.length > 0">
|
<template v-if="form.insideProjectProposalReportList && form.insideProjectProposalReportList.length > 0">
|
||||||
<p class="file-item" v-for="file in form.insideProjectProposalReportList">
|
<p v-for="file in form.insideProjectProposalReportList" class="file-item">
|
||||||
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
||||||
<i title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
|
<i title="下载" class="icon-download" @click="downloadFile(file.id)" />
|
||||||
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
|
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)" />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p v-else>-</p>
|
<p v-else>-</p>
|
||||||
@@ -167,10 +170,10 @@
|
|||||||
<label style=" margin-right: 132px;line-height: 44px">研究方案</label>
|
<label style=" margin-right: 132px;line-height: 44px">研究方案</label>
|
||||||
<div style="min-height: 44px;padding: 8px 0;">
|
<div style="min-height: 44px;padding: 8px 0;">
|
||||||
<template v-if="form.insideResearchPlanList && form.insideResearchPlanList.length > 0">
|
<template v-if="form.insideResearchPlanList && form.insideResearchPlanList.length > 0">
|
||||||
<p class="file-item" v-for="file in form.insideResearchPlanList">
|
<p v-for="file in form.insideResearchPlanList" class="file-item">
|
||||||
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
||||||
<i title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
|
<i title="下载" class="icon-download" @click="downloadFile(file.id)" />
|
||||||
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
|
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)" />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p v-else>-</p>
|
<p v-else>-</p>
|
||||||
@@ -180,10 +183,10 @@
|
|||||||
<label style=" margin-right: 132px;line-height: 44px">会议资料</label>
|
<label style=" margin-right: 132px;line-height: 44px">会议资料</label>
|
||||||
<div style="min-height: 44px;padding: 8px 0;">
|
<div style="min-height: 44px;padding: 8px 0;">
|
||||||
<template v-if="form.insideConferenceMaterialsList && form.insideConferenceMaterialsList.length > 0">
|
<template v-if="form.insideConferenceMaterialsList && form.insideConferenceMaterialsList.length > 0">
|
||||||
<p class="file-item" v-for="file in form.insideConferenceMaterialsList">
|
<p v-for="file in form.insideConferenceMaterialsList" class="file-item">
|
||||||
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
||||||
<i title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
|
<i title="下载" class="icon-download" @click="downloadFile(file.id)" />
|
||||||
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
|
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)" />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p v-else>-</p>
|
<p v-else>-</p>
|
||||||
@@ -193,10 +196,10 @@
|
|||||||
<label style=" margin-right: 132px;line-height: 44px">研究成果</label>
|
<label style=" margin-right: 132px;line-height: 44px">研究成果</label>
|
||||||
<div style="min-height: 44px;padding: 8px 0;">
|
<div style="min-height: 44px;padding: 8px 0;">
|
||||||
<template v-if="form.insideResearchFindingsList && form.insideResearchFindingsList.length > 0">
|
<template v-if="form.insideResearchFindingsList && form.insideResearchFindingsList.length > 0">
|
||||||
<p class="file-item" v-for="file in form.insideResearchFindingsList">
|
<p v-for="file in form.insideResearchFindingsList" class="file-item">
|
||||||
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
||||||
<i title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
|
<i title="下载" class="icon-download" @click="downloadFile(file.id)" />
|
||||||
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
|
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)" />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p v-else>-</p>
|
<p v-else>-</p>
|
||||||
@@ -206,10 +209,10 @@
|
|||||||
<label style=" margin-right: 164px;line-height: 44px">其他</label>
|
<label style=" margin-right: 164px;line-height: 44px">其他</label>
|
||||||
<div style="min-height: 44px;padding: 8px 0;">
|
<div style="min-height: 44px;padding: 8px 0;">
|
||||||
<template v-if="form.insideOtherList && form.insideOtherList.length > 0">
|
<template v-if="form.insideOtherList && form.insideOtherList.length > 0">
|
||||||
<p class="file-item" v-for="file in form.insideOtherList">
|
<p v-for="file in form.insideOtherList" class="file-item">
|
||||||
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
||||||
<i title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
|
<i title="下载" class="icon-download" @click="downloadFile(file.id)" />
|
||||||
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
|
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)" />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p v-else>-</p>
|
<p v-else>-</p>
|
||||||
@@ -222,7 +225,7 @@
|
|||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div class="modular-header">
|
<div class="modular-header">
|
||||||
<div class="modular-header-title">
|
<div class="modular-header-title">
|
||||||
<i class="icon-modular-title"/><span>内部联系方式</span>
|
<i class="icon-modular-title" /><span>内部联系方式</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -239,19 +242,20 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 更新LOG -->
|
<!-- 更新LOG -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="更新记录"
|
title="更新记录"
|
||||||
:visible.sync="relateDialog"
|
:visible.sync="relateDialog"
|
||||||
width="60%"
|
width="60%"
|
||||||
class="relateClass"
|
class="relateClass"
|
||||||
:before-close="relateDialogClose">
|
:before-close="relateDialogClose"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
v-for="(item, index) in relateNowList"
|
v-for="(item, index) in relateNowList"
|
||||||
:key="index"
|
v-if="relateNowList"
|
||||||
v-if="relateNowList"
|
:key="index"
|
||||||
style="margin-bottom: 10px;line-height: 20px"
|
style="margin-bottom: 10px;line-height: 20px"
|
||||||
>
|
>
|
||||||
{{index+1}}. {{item.creationUserName}} {{item.creationTime}} {{item.content}}
|
{{ index+1 }}. {{ item.creationUserName }} {{ item.creationTime }} {{ item.content }}
|
||||||
<div v-if="relateNowList.length >1"><el-divider></el-divider></div>
|
<div v-if="relateNowList.length >1"><el-divider /></div>
|
||||||
</div>
|
</div>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="relateDialogClose()">关 闭</el-button>
|
<el-button type="primary" @click="relateDialogClose()">关 闭</el-button>
|
||||||
@@ -262,10 +266,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getBusStandFileByAttId } from 'api/process'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "policyTopicsDetail",
|
name: 'PolicyTopicsDetail',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
url: {
|
url: {
|
||||||
@@ -273,14 +275,14 @@ export default {
|
|||||||
getLogList: 'lawss/sarUpdLog/getLogList', // 更新记录
|
getLogList: 'lawss/sarUpdLog/getLogList', // 更新记录
|
||||||
},
|
},
|
||||||
form: {},
|
form: {},
|
||||||
activeNames: ['1', '2', '3'],
|
activeNames: [ '1', '2', '3' ],
|
||||||
// 更新记录
|
// 更新记录
|
||||||
relateDialog: false,
|
relateDialog: false,
|
||||||
relateNowList: [],
|
relateNowList: [],
|
||||||
loading: false
|
loading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created () {
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -298,7 +300,7 @@ export default {
|
|||||||
res.data.insideContactInformationList.forEach((item, index) => {
|
res.data.insideContactInformationList.forEach((item, index) => {
|
||||||
activeNames.push('insideContactInformationList' + index)
|
activeNames.push('insideContactInformationList' + index)
|
||||||
})
|
})
|
||||||
this.activeNames = [...this.activeNames, ...activeNames]
|
this.activeNames = [ ...this.activeNames, ...activeNames ]
|
||||||
this.$set(this, 'form', res.data)
|
this.$set(this, 'form', res.data)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -314,9 +316,9 @@ export default {
|
|||||||
if (res.ok && res.data.length > 0) {
|
if (res.ok && res.data.length > 0) {
|
||||||
this.relateDialog = true
|
this.relateDialog = true
|
||||||
const relateList = res.data
|
const relateList = res.data
|
||||||
var i
|
let i
|
||||||
for (i = 0; i < relateList.length; i++) {
|
for (i = 0; i < relateList.length; i++) {
|
||||||
let obj = {creationUserName: '', creationTime: '', content: ''}
|
const obj = { creationUserName: '', creationTime: '', content: '' }
|
||||||
obj.creationUserName = relateList[i].creationUserName
|
obj.creationUserName = relateList[i].creationUserName
|
||||||
obj.creationTime = relateList[i].creationTime
|
obj.creationTime = relateList[i].creationTime
|
||||||
obj.content = relateList[i].content
|
obj.content = relateList[i].content
|
||||||
@@ -349,21 +351,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getBusStandFileByAttId(attId) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
getBusStandFileByAttId({
|
|
||||||
attId
|
|
||||||
}).then(res => {
|
|
||||||
if (res.ok) {
|
|
||||||
resolve(res.data)
|
|
||||||
} else {
|
|
||||||
reject()
|
|
||||||
}
|
|
||||||
}).catch(e => {
|
|
||||||
reject(e)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
openFileInPdf (attId, fileName) {
|
openFileInPdf (attId, fileName) {
|
||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,27 +8,32 @@
|
|||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div class="modular-header">
|
<div class="modular-header">
|
||||||
<div class="modular-header-title">
|
<div class="modular-header-title">
|
||||||
<i class="icon-modular-title"/><span>基础信息</span>
|
<i class="icon-modular-title" /><span>基础信息</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="modular-header-btn">
|
<div class="modular-header-btn">
|
||||||
<el-button v-if="form.collectId"
|
<el-button
|
||||||
@click.stop="collectClick(form.collectId)"
|
v-if="form.collectId"
|
||||||
title="取消收藏"
|
title="取消收藏"
|
||||||
class="collection-btn"
|
class="collection-btn"
|
||||||
icon="el-icon-star-on"
|
icon="el-icon-star-on"
|
||||||
:loading="isSubmit"
|
:loading="isSubmit"
|
||||||
></el-button>
|
@click.stop="collectClick(form.collectId)"
|
||||||
<el-button v-else
|
/>
|
||||||
@click.stop="collectClick()"
|
<el-button
|
||||||
title="收藏"
|
v-else
|
||||||
class="collection-btn"
|
title="收藏"
|
||||||
icon="el-icon-star-off"
|
class="collection-btn"
|
||||||
:loading="isSubmit"
|
icon="el-icon-star-off"
|
||||||
></el-button>
|
:loading="isSubmit"
|
||||||
<el-button class="relation-btn"
|
@click.stop="collectClick()"
|
||||||
icon="icon-relation"
|
/>
|
||||||
@click.stop="relateEvent()"
|
<el-button
|
||||||
>更新记录</el-button>
|
class="relation-btn"
|
||||||
|
icon="icon-relation"
|
||||||
|
@click.stop="relateEvent()"
|
||||||
|
>
|
||||||
|
更新记录
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -46,10 +51,10 @@
|
|||||||
<label style=" margin-right: 156px;line-height: 44px">资料文件</label>
|
<label style=" margin-right: 156px;line-height: 44px">资料文件</label>
|
||||||
<div style="min-height: 44px;padding: 8px 0;">
|
<div style="min-height: 44px;padding: 8px 0;">
|
||||||
<template v-if="form.informationFileList && form.informationFileList.length > 0">
|
<template v-if="form.informationFileList && form.informationFileList.length > 0">
|
||||||
<p class="file-item" v-for="file in form.informationFileList">
|
<p v-for="file in form.informationFileList" class="file-item">
|
||||||
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
|
||||||
<i v-if="form.downloadable" title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
|
<i v-if="form.downloadable" title="下载" class="icon-download" @click="downloadFile(file.id)" />
|
||||||
<i v-if="form.downloadable" title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
|
<i v-if="form.downloadable" title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)" />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<p v-else>-</p>
|
<p v-else>-</p>
|
||||||
@@ -64,19 +69,20 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 更新LOG -->
|
<!-- 更新LOG -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="更新记录"
|
title="更新记录"
|
||||||
:visible.sync="relateDialog"
|
:visible.sync="relateDialog"
|
||||||
width="60%"
|
width="60%"
|
||||||
class="relateClass"
|
class="relateClass"
|
||||||
:before-close="relateDialogClose">
|
:before-close="relateDialogClose"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
v-for="(item, index) in relateNowList"
|
v-for="(item, index) in relateNowList"
|
||||||
:key="index"
|
v-if="relateNowList"
|
||||||
v-if="relateNowList"
|
:key="index"
|
||||||
style="margin-bottom: 10px;line-height: 20px"
|
style="margin-bottom: 10px;line-height: 20px"
|
||||||
>
|
>
|
||||||
{{index+1}}. {{item.creationUserName}} {{item.creationTime}} {{item.content}}
|
{{ index+1 }}. {{ item.creationUserName }} {{ item.creationTime }} {{ item.content }}
|
||||||
<div v-if="relateNowList.length >1"><el-divider></el-divider></div>
|
<div v-if="relateNowList.length >1"><el-divider /></div>
|
||||||
</div>
|
</div>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="relateDialogClose()">关 闭</el-button>
|
<el-button type="primary" @click="relateDialogClose()">关 闭</el-button>
|
||||||
@@ -87,10 +93,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getBusStandFileByAttId } from 'api/process'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "regulatoryMaterialsDetail",
|
name: 'RegulatoryMaterialsDetail',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
url: {
|
url: {
|
||||||
@@ -100,7 +104,7 @@ export default {
|
|||||||
updateByUserId: 'person/personCollect/updateByUserId', // 取消收藏
|
updateByUserId: 'person/personCollect/updateByUserId', // 取消收藏
|
||||||
},
|
},
|
||||||
form: {},
|
form: {},
|
||||||
activeNames: ['1'],
|
activeNames: [ '1' ],
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
|
|
||||||
// 更新记录
|
// 更新记录
|
||||||
@@ -109,7 +113,7 @@ export default {
|
|||||||
loading: false,
|
loading: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created () {
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -117,7 +121,7 @@ export default {
|
|||||||
return (userStr && userStr !== '') ? userStr.split(',').map(item => item.split('(')[1].split(')')[0]) : []
|
return (userStr && userStr !== '') ? userStr.split(',').map(item => item.split('(')[1].split(')')[0]) : []
|
||||||
},
|
},
|
||||||
// 下载权限
|
// 下载权限
|
||||||
hasDownLoadPermission() {
|
hasDownLoadPermission () {
|
||||||
const userId = this.$store.getters.userInfo.userId
|
const userId = this.$store.getters.userInfo.userId
|
||||||
// 未设置可下载者 创建人和审批人可下载
|
// 未设置可下载者 创建人和审批人可下载
|
||||||
if (!this.form.downloadableBy || this.form.downloadableBy === '') {
|
if (!this.form.downloadableBy || this.form.downloadableBy === '') {
|
||||||
@@ -141,7 +145,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
removeCommasAtStartAndEnd(inputString) {
|
removeCommasAtStartAndEnd (inputString) {
|
||||||
// 检查字符串是否以逗号开头
|
// 检查字符串是否以逗号开头
|
||||||
if (inputString.charAt(0) === ',') {
|
if (inputString.charAt(0) === ',') {
|
||||||
inputString = inputString.slice(1); // 去除开头的逗号
|
inputString = inputString.slice(1); // 去除开头的逗号
|
||||||
@@ -163,7 +167,7 @@ export default {
|
|||||||
// 取消收藏
|
// 取消收藏
|
||||||
this.$http._put(this.url.updateByUserId, {
|
this.$http._put(this.url.updateByUserId, {
|
||||||
id: collectId
|
id: collectId
|
||||||
},{
|
}, {
|
||||||
_this: this,
|
_this: this,
|
||||||
loading: 'isSubmit'
|
loading: 'isSubmit'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@@ -171,7 +175,7 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// 加收藏
|
// 加收藏
|
||||||
let personCollect = {
|
const personCollect = {
|
||||||
userId: this.$store.getters.userInfo.userId,
|
userId: this.$store.getters.userInfo.userId,
|
||||||
collectResId: this.form.id,
|
collectResId: this.form.id,
|
||||||
collectTitle: this.form.name,
|
collectTitle: this.form.name,
|
||||||
@@ -198,9 +202,9 @@ export default {
|
|||||||
if (res.ok && res.data.length > 0) {
|
if (res.ok && res.data.length > 0) {
|
||||||
this.relateDialog = true
|
this.relateDialog = true
|
||||||
const relateList = res.data
|
const relateList = res.data
|
||||||
var i
|
let i
|
||||||
for (i = 0; i < relateList.length; i++) {
|
for (i = 0; i < relateList.length; i++) {
|
||||||
let obj = {creationUserName: '', creationTime: '', content: ''}
|
const obj = { creationUserName: '', creationTime: '', content: '' }
|
||||||
obj.creationUserName = relateList[i].creationUserName
|
obj.creationUserName = relateList[i].creationUserName
|
||||||
obj.creationTime = relateList[i].creationTime
|
obj.creationTime = relateList[i].creationTime
|
||||||
obj.content = relateList[i].content
|
obj.content = relateList[i].content
|
||||||
@@ -233,21 +237,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getBusStandFileByAttId(attId) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
getBusStandFileByAttId({
|
|
||||||
attId
|
|
||||||
}).then(res => {
|
|
||||||
if (res.ok) {
|
|
||||||
resolve(res.data)
|
|
||||||
} else {
|
|
||||||
reject()
|
|
||||||
}
|
|
||||||
}).catch(e => {
|
|
||||||
reject(e)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
openFileInPdf (attId, fileName) {
|
openFileInPdf (attId, fileName) {
|
||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,61 +1,62 @@
|
|||||||
<!-- 标准发布 -->
|
<!-- 标准发布 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="release">
|
<div class="release">
|
||||||
<!-- <ul>-->
|
<el-table
|
||||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
ref="selection"
|
||||||
<!-- <div style="height: 18px;">-->
|
:data="standardReleaseList"
|
||||||
<!-- <a @click="handlePreview(item)" style="color: #333333" class="table-jump">{{ item.standName }}</a>-->
|
tooltip-effect="dark"
|
||||||
<!-- <span class="time">{{item.issueTime ? $moment(item.issueTime).format('YYYY-MM-DD') : '' }}</span>-->
|
border
|
||||||
<!-- </div>-->
|
style="cursor:pointer;"
|
||||||
<!-- </li>-->
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
<!-- </ul>-->
|
>
|
||||||
<el-table
|
<el-table-column
|
||||||
ref="selection"
|
label="序号"
|
||||||
:data="standardReleaseList"
|
type="index"
|
||||||
tooltip-effect="dark"
|
align="center"
|
||||||
border
|
width="55"
|
||||||
style="cursor:pointer;"
|
>
|
||||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
<template slot-scope="{scope, column, $index}">
|
||||||
<el-table-column
|
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||||
label="序号"
|
</template>
|
||||||
type="index"
|
</el-table-column>
|
||||||
align="center"
|
<el-table-column
|
||||||
width="55">
|
width="200"
|
||||||
<template slot-scope="{scope, column, $index}">
|
label="标准编号"
|
||||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
>
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||||
<el-table-column
|
</template>
|
||||||
width="200"
|
</el-table-column>
|
||||||
label="标准编号">
|
<el-table-column
|
||||||
<template slot-scope="scope">
|
prop="standName"
|
||||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
label="标准名称"
|
||||||
</template>
|
>
|
||||||
</el-table-column>
|
<template slot-scope="scope">
|
||||||
<el-table-column
|
<span style="display: flex;align-items: center" @click="handlePreview(scope.row)">
|
||||||
prop="standName"
|
<span>{{ scope.row.standardName }}</span>
|
||||||
label="标准名称">
|
<img v-if="scope.row.threeDaysNew" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||||
<template slot-scope="scope">
|
</span>
|
||||||
<span @click="handlePreview(scope.row)">{{ scope.row.standardName }}</span>
|
</template>
|
||||||
</template>
|
</el-table-column>
|
||||||
</el-table-column>
|
<el-table-column
|
||||||
<el-table-column
|
width="120"
|
||||||
width="120"
|
label="发布时间"
|
||||||
label="发布时间">
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
<span>{{ scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="more" v-if="!pageVerify" @click="togo">更多 ⋙</div>
|
<div v-if="!pageVerify" class="more" @click="togo">更多 ⋙</div>
|
||||||
<loading :loading="loading">加载中...</loading>
|
<loading :loading="loading">加载中...</loading>
|
||||||
<pagination
|
<pagination
|
||||||
v-if="pageVerify"
|
v-if="pageVerify"
|
||||||
style="position: static;"
|
style="position: static;"
|
||||||
:page="page"
|
:page="page"
|
||||||
:total="total"
|
:total="total"
|
||||||
@pageChange="pageChange"
|
@pageChange="pageChange"
|
||||||
@pageSizeChange="pageSizeChange"></pagination>
|
@pageSizeChange="pageSizeChange"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -64,48 +65,52 @@ export default {
|
|||||||
name: 'Release',
|
name: 'Release',
|
||||||
components: {},
|
components: {},
|
||||||
mixins: [],
|
mixins: [],
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
loading: false,
|
|
||||||
pageVerify: false,
|
|
||||||
page: 1,
|
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
|
||||||
total: 0,
|
|
||||||
putTime: '',
|
|
||||||
standardReleaseList: [], //标准发布数据
|
|
||||||
}
|
|
||||||
},
|
|
||||||
props: {
|
props: {
|
||||||
messageType: {
|
messageType: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
loading: false,
|
||||||
|
pageVerify: false,
|
||||||
|
page: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
total: 0,
|
||||||
|
putTime: '',
|
||||||
|
standardReleaseList: [], // 标准发布数据
|
||||||
|
}
|
||||||
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
mounted() {
|
mounted () {
|
||||||
this.getDate()
|
this.getDate()
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
// this.addDate()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
pageChange(page) {
|
pageChange (page) {
|
||||||
this.page = page
|
this.page = page
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
},
|
},
|
||||||
// 分页每页显示数改变后方法
|
// 分页每页显示数改变后方法
|
||||||
pageSizeChange(pageSize) {
|
pageSizeChange (pageSize) {
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
// 此处需要调用接口,修改个人配置
|
// 此处需要调用接口,修改个人配置
|
||||||
},
|
},
|
||||||
togo () {
|
togo () {
|
||||||
this.$router.push({path:'/release2'})
|
this.$router.push({
|
||||||
},
|
path: '/release2',
|
||||||
|
query: {
|
||||||
|
messageType: this.messageType
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherStandardDetails',
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.standardId,
|
id: item.standardId,
|
||||||
@@ -114,32 +119,37 @@ export default {
|
|||||||
})
|
})
|
||||||
window.open(routeUrl.href, '_blank')
|
window.open(routeUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
//截取时间
|
// 截取时间
|
||||||
getDate (date) {
|
getDate (date) {
|
||||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
||||||
},
|
},
|
||||||
//获取数据
|
// 获取数据
|
||||||
getAdvice() {
|
getAdvice () {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
this.$http.get('/lawss/NewsFeed/getNewsFeed', {
|
||||||
// messageType: 'GNWBZFG',
|
messageType: this.messageType,
|
||||||
messageType: this.messageType,
|
page: this.page,
|
||||||
page: this.page,
|
pageSize: this.pageSize
|
||||||
pageSize: this.pageSize
|
}, {
|
||||||
}, {
|
_this: this, loading: 'loading'
|
||||||
_this: this,loading: 'loading'
|
}, res => {
|
||||||
}, res => {
|
this.standardReleaseList = res.data.records
|
||||||
this.standardReleaseList = res.data.records
|
this.total = res.data.total
|
||||||
this.total = res.data.total
|
this.loading = false
|
||||||
this.loading = false
|
if (res.data && res.data.records && res.data.records.length > 0) {
|
||||||
|
const isNew = res.data.records[0].threeDaysNew || false
|
||||||
|
this.$emit('isNew', isNew)
|
||||||
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.standardReleaseList = []
|
this.standardReleaseList = []
|
||||||
this.total = 0
|
this.total = 0
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
checkTime (time) {
|
||||||
|
return this.$moment(time.slice(0, 10)).diff(this.$moment(), 'day') > -3
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,62 +1,63 @@
|
|||||||
<!-- 标准发布 -->
|
<!-- 标准发布 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="release">
|
<div class="release">
|
||||||
<!-- <ul>-->
|
<el-table
|
||||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
ref="selection"
|
||||||
<!-- <div style="height: 18px;">-->
|
:data="standardReleaseList"
|
||||||
<!-- <a @click="handlePreview(item)" style="color: #333333" class="table-jump">{{ item.standName }}</a>-->
|
tooltip-effect="dark"
|
||||||
<!-- <span class="time">{{item.issueTime ? $moment(item.issueTime).format('YYYY-MM-DD') : '' }}</span>-->
|
border
|
||||||
<!-- </div>-->
|
height="90%"
|
||||||
<!-- </li>-->
|
style="width: 100%; flex: auto;"
|
||||||
<!-- </ul>-->
|
class="drag-table"
|
||||||
<el-table
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
ref="selection"
|
fontWeight: 'bold', height: '48px'}"
|
||||||
:data="standardReleaseList"
|
>
|
||||||
tooltip-effect="dark"
|
<el-table-column
|
||||||
border
|
label="序号"
|
||||||
height="90%"
|
type="index"
|
||||||
style="width: 100%; flex: auto;"
|
align="center"
|
||||||
class="drag-table"
|
width="55"
|
||||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
>
|
||||||
fontWeight: 'bold', height: '48px'}">
|
<template slot-scope="{scope, column, $index}">
|
||||||
<el-table-column
|
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||||
label="序号"
|
</template>
|
||||||
type="index"
|
</el-table-column>
|
||||||
align="center"
|
<el-table-column
|
||||||
width="55">
|
width="200"
|
||||||
<template slot-scope="{scope, column, $index}">
|
label="标准编号"
|
||||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
>
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||||
<el-table-column
|
</template>
|
||||||
width="200"
|
</el-table-column>
|
||||||
label="标准编号">
|
<el-table-column
|
||||||
<template slot-scope="scope">
|
prop="standName"
|
||||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
label="标准名称"
|
||||||
</template>
|
>
|
||||||
</el-table-column>
|
<template slot-scope="scope">
|
||||||
<el-table-column
|
<span style="display: flex;align-items: center" @click="handlePreview(scope.row)">
|
||||||
prop="standName"
|
{{ scope.row.standardName }}
|
||||||
label="标准名称">
|
<img v-if="scope.row.threeDaysNew" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||||
<template slot-scope="scope">
|
</span>
|
||||||
<span @click="handlePreview(scope.row)">{{ scope.row.standardName }}</span>
|
</template>
|
||||||
</template>
|
</el-table-column>
|
||||||
</el-table-column>
|
<el-table-column
|
||||||
<el-table-column
|
width="120"
|
||||||
width="120"
|
label="发布时间"
|
||||||
label="发布时间">
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
<span>{{ scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<loading :loading="loading">加载中...</loading>
|
<loading :loading="loading">加载中...</loading>
|
||||||
<pagination
|
<pagination
|
||||||
style="position: static;"
|
style="position: static;"
|
||||||
:page="page"
|
:page="page"
|
||||||
:total="total"
|
:total="total"
|
||||||
@pageChange="pageChange"
|
@pageChange="pageChange"
|
||||||
@pageSizeChange="pageSizeChange"></pagination>
|
@pageSizeChange="pageSizeChange"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -65,48 +66,47 @@ export default {
|
|||||||
name: 'Release',
|
name: 'Release',
|
||||||
components: {},
|
components: {},
|
||||||
mixins: [],
|
mixins: [],
|
||||||
data() {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
pageVerify: false,
|
pageVerify: false,
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
total: 0,
|
total: 0,
|
||||||
putTime: '',
|
putTime: '',
|
||||||
standardReleaseList: [], //标准发布数据
|
standardReleaseList: [], // 标准发布数据
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
mounted() {
|
mounted () {
|
||||||
this.getDate()
|
this.getDate()
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
// this.addDate()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
pageChange(page) {
|
pageChange (page) {
|
||||||
this.page = page
|
this.page = page
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
},
|
},
|
||||||
// 分页每页显示数改变后方法
|
// 分页每页显示数改变后方法
|
||||||
pageSizeChange(pageSize) {
|
pageSizeChange (pageSize) {
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
// 此处需要调用接口,修改个人配置
|
// 此处需要调用接口,修改个人配置
|
||||||
},
|
},
|
||||||
togo () {
|
togo () {
|
||||||
if(this.total && this.total > 10){
|
if(this.total && this.total > 10) {
|
||||||
this.pageVerify = true
|
this.pageVerify = true
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
}else {
|
}else {
|
||||||
this.pageVerify = false
|
this.pageVerify = false
|
||||||
}
|
}
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherStandardDetails',
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.standardId,
|
id: item.standardId,
|
||||||
@@ -115,27 +115,27 @@ export default {
|
|||||||
})
|
})
|
||||||
window.open(routeUrl.href, '_blank')
|
window.open(routeUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
//截取时间
|
// 截取时间
|
||||||
getDate (date) {
|
getDate (date) {
|
||||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
||||||
},
|
},
|
||||||
//获取数据
|
// 获取数据
|
||||||
getAdvice() {
|
getAdvice () {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
this.$http.get('/lawss/NewsFeed/getNewsFeed', {
|
||||||
messageType: 'GNWBZFG',
|
messageType: this.$route.query.messageType,
|
||||||
page: this.page,
|
page: this.page,
|
||||||
pageSize: this.pageSize
|
pageSize: this.pageSize
|
||||||
}, {
|
}, {
|
||||||
_this: this,loading: 'loading'
|
_this: this, loading: 'loading'
|
||||||
}, res => {
|
}, res => {
|
||||||
this.standardReleaseList = res.data.records
|
this.standardReleaseList = res.data.records
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}, e => {
|
}, e => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.standardReleaseList = []
|
this.standardReleaseList = []
|
||||||
this.total = 0
|
this.total = 0
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -152,12 +152,12 @@ export default {
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
/deep/.more {
|
/deep/.more {
|
||||||
position: absolute;
|
//position: absolute;
|
||||||
right: 0;
|
//right: 0;
|
||||||
bottom: 2px;
|
//bottom: 2px;
|
||||||
font-size: 15px;
|
//font-size: 15px;
|
||||||
float: right;
|
//float: right;
|
||||||
color: #4788c0;
|
//color: #4788c0;
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #3a8ee6;
|
color: #3a8ee6;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|||||||
@@ -1,64 +1,62 @@
|
|||||||
<!-- 企标发布 -->
|
<!-- 企标发布 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="release">
|
<div class="release">
|
||||||
<!-- <ul>-->
|
<el-table
|
||||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
ref="selection"
|
||||||
<!-- <div style="height: 18px;">-->
|
:data="standardReleaseList"
|
||||||
<!-- <a @click="handlePreview(item)" style="color: #333333" class="table-jump">{{ item.standName }}</a>-->
|
tooltip-effect="dark"
|
||||||
<!-- <span class="time">{{item.issueTime ? $moment(item.issueTime).format('YYYY-MM-DD') : '' }}</span>-->
|
border
|
||||||
<!-- </div>-->
|
style="cursor:pointer;"
|
||||||
<!-- </li>-->
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
<!-- </ul>-->
|
>
|
||||||
<el-table
|
<el-table-column
|
||||||
ref="selection"
|
label="序号"
|
||||||
:data="standardReleaseList"
|
type="index"
|
||||||
tooltip-effect="dark"
|
align="center"
|
||||||
border
|
width="55"
|
||||||
style="cursor:pointer;"
|
>
|
||||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
<template slot-scope="{scope, column, $index}">
|
||||||
<el-table-column
|
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||||
label="序号"
|
</template>
|
||||||
type="index"
|
</el-table-column>
|
||||||
align="center"
|
<el-table-column
|
||||||
width="55">
|
width="200"
|
||||||
<template slot-scope="{scope, column, $index}">
|
label="标准编号"
|
||||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
>
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||||
<el-table-column
|
</template>
|
||||||
width="200"
|
</el-table-column>
|
||||||
label="标准编号">
|
<el-table-column
|
||||||
<template slot-scope="scope">
|
prop="standName"
|
||||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
label="标准名称"
|
||||||
</template>
|
>
|
||||||
</el-table-column>
|
<template slot-scope="scope">
|
||||||
<el-table-column
|
<span style="display: flex;align-items: center" @click="handlePreview(scope.row)">
|
||||||
prop="standName"
|
<span>{{ scope.row.standardName }}</span>
|
||||||
label="标准名称">
|
<img v-if="scope.row.threeDaysNew" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||||
<template slot-scope="scope">
|
</span>
|
||||||
<span @click="handlePreview(scope.row)" style="display: flex;align-items: center">
|
</template>
|
||||||
<span>{{ scope.row.standardName }}</span>
|
</el-table-column>
|
||||||
<img v-if="checkTime(scope.row.releaseDate)" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
<el-table-column
|
||||||
</span>
|
width="120"
|
||||||
</template>
|
label="发布时间"
|
||||||
</el-table-column>
|
>
|
||||||
<el-table-column
|
<template slot-scope="scope">
|
||||||
width="120"
|
<span>{{ scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
||||||
label="发布时间">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
<span>{{scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
</el-table>
|
||||||
</template>
|
<div v-if="!pageVerify" class="more" @click="togo">更多 ⋙</div>
|
||||||
</el-table-column>
|
<loading :loading="loading">加载中...</loading>
|
||||||
</el-table>
|
<pagination
|
||||||
<div class="more" v-if="!pageVerify" @click="togo">更多 ⋙</div>
|
v-if="pageVerify"
|
||||||
<loading :loading="loading">加载中...</loading>
|
style="position: static;"
|
||||||
<pagination
|
:page="page"
|
||||||
v-if="pageVerify"
|
:total="total"
|
||||||
style="position: static;"
|
@pageChange="pageChange"
|
||||||
:page="page"
|
@pageSizeChange="pageSizeChange"
|
||||||
:total="total"
|
/>
|
||||||
@pageChange="pageChange"
|
|
||||||
@pageSizeChange="pageSizeChange"></pagination>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -68,78 +66,81 @@ export default {
|
|||||||
name: 'ReleaseBuss',
|
name: 'ReleaseBuss',
|
||||||
components: {},
|
components: {},
|
||||||
mixins: [],
|
mixins: [],
|
||||||
data() {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
pageVerify: false,
|
pageVerify: false,
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: 10,
|
||||||
total: 0,
|
total: 0,
|
||||||
putTime: '',
|
putTime: '',
|
||||||
standardReleaseList: [], //标准发布数据
|
standardReleaseList: [], // 标准发布数据
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
mounted() {
|
mounted () {
|
||||||
this.getDate()
|
this.getDate()
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
// this.addDate()
|
// this.addDate()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkTime (time) {
|
checkTime (time) {
|
||||||
return moment(time.slice(0,10)).diff(moment(), 'day') > -3
|
return moment(time.slice(0, 10)).diff(moment(), 'day') > -3
|
||||||
},
|
},
|
||||||
pageChange(page) {
|
pageChange (page) {
|
||||||
this.page = page
|
this.page = page
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
},
|
},
|
||||||
// 分页每页显示数改变后方法
|
// 分页每页显示数改变后方法
|
||||||
pageSizeChange(pageSize) {
|
pageSizeChange (pageSize) {
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
// 此处需要调用接口,修改个人配置
|
// 此处需要调用接口,修改个人配置
|
||||||
},
|
},
|
||||||
togo () {
|
togo () {
|
||||||
this.$router.push({path:'/releaseBuss2'})
|
this.$router.push({ path: '/releaseBuss2' })
|
||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherBussStandardDetails',
|
name: 'OtherBussStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.standardId,
|
id: item.standardId,
|
||||||
pageType: 'BUSINESS_STAND'
|
pageType: 'BUSINESS_STAND'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
window.open(routeUrl.href, '_blank')
|
window.open(routeUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
//截取时间
|
// 截取时间
|
||||||
getDate (date) {
|
getDate (date) {
|
||||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
||||||
},
|
},
|
||||||
//获取数据
|
// 获取数据
|
||||||
getAdvice() {
|
getAdvice () {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
this.$http.get('/lawss/NewsFeed/getNewsFeed', {
|
||||||
messageType: 'QYBZFB',
|
messageType: 'QYBZFB',
|
||||||
page: this.page,
|
page: this.page,
|
||||||
pageSize: this.pageSize
|
pageSize: this.pageSize
|
||||||
}, {
|
}, {
|
||||||
_this: this,loading: 'loading'
|
_this: this, loading: 'loading'
|
||||||
}, res => {
|
}, res => {
|
||||||
this.standardReleaseList = res.data.records
|
this.standardReleaseList = res.data.records
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}, e => {
|
if (res.data && res.data.records && res.data.records.length > 0) {
|
||||||
this.loading = false
|
const isNew = res.data.records[0].threeDaysNew || false
|
||||||
this.standardReleaseList = []
|
this.$emit('isNew', isNew)
|
||||||
this.total = 0
|
}
|
||||||
})
|
}, e => {
|
||||||
|
this.loading = false
|
||||||
|
this.standardReleaseList = []
|
||||||
|
this.total = 0
|
||||||
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,65 +1,63 @@
|
|||||||
<!-- 企标发布 -->
|
<!-- 企标发布 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="release">
|
<div class="release">
|
||||||
<!-- <ul>-->
|
<el-table
|
||||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
ref="selection"
|
||||||
<!-- <div style="height: 18px;">-->
|
:data="standardReleaseList"
|
||||||
<!-- <a @click="handlePreview(item)" style="color: #333333" class="table-jump">{{ item.standName }}</a>-->
|
tooltip-effect="dark"
|
||||||
<!-- <span class="time">{{item.issueTime ? $moment(item.issueTime).format('YYYY-MM-DD') : '' }}</span>-->
|
border
|
||||||
<!-- </div>-->
|
height="90%"
|
||||||
<!-- </li>-->
|
style="width: 100%; flex: auto;"
|
||||||
<!-- </ul>-->
|
class="drag-table"
|
||||||
<el-table
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
ref="selection"
|
fontWeight: 'bold', height: '48px'}"
|
||||||
:data="standardReleaseList"
|
>
|
||||||
tooltip-effect="dark"
|
<el-table-column
|
||||||
border
|
label="序号"
|
||||||
height="90%"
|
type="index"
|
||||||
style="width: 100%; flex: auto;"
|
align="center"
|
||||||
class="drag-table"
|
width="55"
|
||||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
>
|
||||||
fontWeight: 'bold', height: '48px'}">
|
<template slot-scope="{scope, column, $index}">
|
||||||
<el-table-column
|
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||||
label="序号"
|
</template>
|
||||||
type="index"
|
</el-table-column>
|
||||||
align="center"
|
<el-table-column
|
||||||
width="55">
|
width="200"
|
||||||
<template slot-scope="{scope, column, $index}">
|
label="标准编号"
|
||||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
>
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||||
<el-table-column
|
</template>
|
||||||
width="200"
|
</el-table-column>
|
||||||
label="标准编号">
|
<el-table-column
|
||||||
<template slot-scope="scope">
|
prop="standName"
|
||||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
label="标准名称"
|
||||||
</template>
|
>
|
||||||
</el-table-column>
|
<template slot-scope="scope">
|
||||||
<el-table-column
|
<span style="display: flex;align-items: center" @click="handlePreview(scope.row)">
|
||||||
prop="standName"
|
{{ scope.row.standardName }}
|
||||||
label="标准名称">
|
<img v-if="scope.row.threeDaysNew" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||||
<template slot-scope="scope">
|
</span>
|
||||||
<span @click="handlePreview(scope.row)" style="display: flex;align-items: center">
|
</template>
|
||||||
{{ scope.row.standardName }}
|
</el-table-column>
|
||||||
<img v-if="checkTime(scope.row.releaseDate)" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
<el-table-column
|
||||||
</span>
|
width="120"
|
||||||
</template>
|
label="发布时间"
|
||||||
</el-table-column>
|
>
|
||||||
<el-table-column
|
<template slot-scope="scope">
|
||||||
width="120"
|
<span>{{ scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
||||||
label="发布时间">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
<span>{{scope.row.releaseDate ? $moment(scope.row.releaseDate).format('YYYY-MM-DD') : '' }}</span>
|
</el-table>
|
||||||
</template>
|
<loading :loading="loading">加载中...</loading>
|
||||||
</el-table-column>
|
<pagination
|
||||||
</el-table>
|
style="position: static;"
|
||||||
<loading :loading="loading">加载中...</loading>
|
:page="page"
|
||||||
<pagination
|
:total="total"
|
||||||
style="position: static;"
|
@pageChange="pageChange"
|
||||||
:page="page"
|
@pageSizeChange="pageSizeChange"
|
||||||
:total="total"
|
/>
|
||||||
@pageChange="pageChange"
|
|
||||||
@pageSizeChange="pageSizeChange"></pagination>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -69,7 +67,7 @@ export default {
|
|||||||
name: 'ReleaseBuss2',
|
name: 'ReleaseBuss2',
|
||||||
components: {},
|
components: {},
|
||||||
mixins: [],
|
mixins: [],
|
||||||
data() {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
pageVerify: false,
|
pageVerify: false,
|
||||||
@@ -77,73 +75,72 @@ export default {
|
|||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
total: 0,
|
total: 0,
|
||||||
putTime: '',
|
putTime: '',
|
||||||
standardReleaseList: [], //标准发布数据
|
standardReleaseList: [], // 标准发布数据
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
mounted() {
|
mounted () {
|
||||||
this.getDate()
|
this.getDate()
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
// this.addDate()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkTime (time) {
|
checkTime (time) {
|
||||||
return moment(time.slice(0,10)).diff(moment(), 'day') > -3
|
return moment(time.slice(0, 10)).diff(moment(), 'day') > -3
|
||||||
},
|
},
|
||||||
pageChange(page) {
|
pageChange (page) {
|
||||||
this.page = page
|
this.page = page
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
},
|
},
|
||||||
// 分页每页显示数改变后方法
|
// 分页每页显示数改变后方法
|
||||||
pageSizeChange(pageSize) {
|
pageSizeChange (pageSize) {
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
// 此处需要调用接口,修改个人配置
|
// 此处需要调用接口,修改个人配置
|
||||||
},
|
},
|
||||||
togo () {
|
togo () {
|
||||||
if(this.total && this.total > 10){
|
if(this.total && this.total > 10) {
|
||||||
this.pageVerify = true
|
this.pageVerify = true
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
}else {
|
}else {
|
||||||
this.pageVerify = false
|
this.pageVerify = false
|
||||||
}
|
}
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherBussStandardDetails',
|
name: 'OtherBussStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.standardId,
|
id: item.standardId,
|
||||||
pageType: 'BUSINESS_STAND'
|
pageType: 'BUSINESS_STAND'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
window.open(routeUrl.href, '_blank')
|
window.open(routeUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
//截取时间
|
// 截取时间
|
||||||
getDate (date) {
|
getDate (date) {
|
||||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
||||||
},
|
},
|
||||||
//获取数据
|
// 获取数据
|
||||||
getAdvice() {
|
getAdvice () {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
this.$http.get('/lawss/NewsFeed/getNewsFeed', {
|
||||||
messageType: 'QYBZFB',
|
messageType: 'QYBZFB',
|
||||||
page: this.page,
|
page: this.page,
|
||||||
pageSize: this.pageSize
|
pageSize: this.pageSize
|
||||||
}, {
|
}, {
|
||||||
_this: this,loading: 'loading'
|
_this: this, loading: 'loading'
|
||||||
}, res => {
|
}, res => {
|
||||||
this.standardReleaseList = res.data.records
|
this.standardReleaseList = res.data.records
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}, e => {
|
}, e => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.standardReleaseList = []
|
this.standardReleaseList = []
|
||||||
this.total = 0
|
this.total = 0
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -1,51 +1,57 @@
|
|||||||
<!-- 标准问答 -->
|
<!-- 标准问答 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="release">
|
<div class="release">
|
||||||
<el-table ref="table"
|
<el-table
|
||||||
:data="data"
|
ref="table"
|
||||||
tooltip-effect = "dark"
|
:data="data"
|
||||||
border
|
tooltip-effect="dark"
|
||||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
border
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="序号"
|
label="序号"
|
||||||
type="index"
|
type="index"
|
||||||
align="center"
|
align="center"
|
||||||
width="55">
|
width="55"
|
||||||
</el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="classification"
|
prop="classification"
|
||||||
label="类型"
|
label="类型"
|
||||||
width="150"
|
width="150"
|
||||||
align="center">
|
align="center"
|
||||||
</el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="standardEncdoing"
|
prop="standardEncdoing"
|
||||||
label="标准编号"
|
label="标准编号"
|
||||||
width="150"
|
width="150"
|
||||||
align="center">
|
align="center"
|
||||||
</el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="problemDescription"
|
prop="problemDescription"
|
||||||
label="问题描述"
|
label="问题描述"
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a class="table-jump" @click="handleClick(scope.row.id)">{{ scope.row.problemDescription }}</a>
|
<span style="display: flex;align-items: center;justify-content: center">
|
||||||
|
<a class="table-jump" @click="handleClick(scope.row.id)">{{ scope.row.problemDescription }}</a>
|
||||||
|
<img v-if="scope.row.threeDaysNew" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||||
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="questioner"
|
prop="questioner"
|
||||||
label="提问人"
|
label="提问人"
|
||||||
width="150"
|
width="150"
|
||||||
align="center">
|
align="center"
|
||||||
</el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="questionTime"
|
prop="questionTime"
|
||||||
label="提问时间"
|
label="提问时间"
|
||||||
width="150"
|
width="150"
|
||||||
align="center">
|
align="center"
|
||||||
</el-table-column>
|
/>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="more" v-if="!pageVerify" @click="togo">更多 ⋙</div>
|
<div v-if="!pageVerify" class="more" @click="togo">更多 ⋙</div>
|
||||||
<loading :loading="loading">加载中...</loading>
|
<loading :loading="loading">加载中...</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -55,7 +61,7 @@ export default {
|
|||||||
name: 'ReleaseQA',
|
name: 'ReleaseQA',
|
||||||
components: {},
|
components: {},
|
||||||
mixins: [],
|
mixins: [],
|
||||||
data() {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
pageVerify: false,
|
pageVerify: false,
|
||||||
@@ -63,36 +69,36 @@ export default {
|
|||||||
total: 0,
|
total: 0,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
data: [],
|
data: [],
|
||||||
form:{
|
form: {
|
||||||
classification:"", // 类型
|
classification: '', // 类型
|
||||||
problemDescription: "", // 问题描述
|
problemDescription: '', // 问题描述
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
mounted() {
|
mounted () {
|
||||||
this.getDate()
|
this.getDate()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
togo () {
|
togo () {
|
||||||
this.$router.push({path:'/releaseQA2'})
|
this.$router.push({ path: '/releaseQA2' })
|
||||||
},
|
},
|
||||||
handleClick (id) {
|
handleClick (id) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path:'/standQA',
|
path: '/standQA',
|
||||||
query: { id }
|
query: { id }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getDate(){
|
getDate () {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let form = this.form
|
const form = this.form
|
||||||
form.userId = this.$store.getters.userInfo.account
|
form.userId = this.$store.getters.userInfo.account
|
||||||
form.pageSize = this.pageSize
|
form.pageSize = this.pageSize
|
||||||
form.page = this.currentPage
|
form.page = this.currentPage
|
||||||
return new Promise((resolve,reject)=>{
|
return new Promise((resolve, reject) => {
|
||||||
this.$http.get('lawss/AskQuestions/getAskQuestionsPage', form, {_this: this }, res => {
|
this.$http.get('lawss/AskQuestions/getAskQuestionsPage', form, { _this: this }, res => {
|
||||||
if(res.data){
|
if(res.data) {
|
||||||
const data = res.data
|
const data = res.data
|
||||||
this.data = data.records
|
this.data = data.records
|
||||||
this.total = data.total
|
this.total = data.total
|
||||||
@@ -101,6 +107,11 @@ export default {
|
|||||||
}
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
resolve(res)
|
resolve(res)
|
||||||
|
|
||||||
|
if (res.data && res.data.records && res.data.records.length > 0) {
|
||||||
|
const isNew = res.data.records[0].threeDaysNew || false
|
||||||
|
this.$emit('isNew', isNew)
|
||||||
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
reject(e)
|
reject(e)
|
||||||
|
|||||||
@@ -1,62 +1,68 @@
|
|||||||
<!-- 标准发布 -->
|
<!-- 标准发布 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="release">
|
<div class="release">
|
||||||
<!-- <ul>-->
|
<!-- <ul>-->
|
||||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
||||||
<!-- <div style="height: 18px;">-->
|
<!-- <div style="height: 18px;">-->
|
||||||
<!-- <a @click="handlePreview(item)" style="color: #333333" class="table-jump">{{ item.standName }}</a>-->
|
<!-- <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>-->
|
<!-- <span class="time">{{item.issueTime ? $moment(item.issueTime).format('YYYY-MM-DD') : '' }}</span>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- </li>-->
|
<!-- </li>-->
|
||||||
<!-- </ul>-->
|
<!-- </ul>-->
|
||||||
<el-table
|
<el-table
|
||||||
ref="selection"
|
ref="selection"
|
||||||
:data="standardReleaseList"
|
:data="standardReleaseList"
|
||||||
tooltip-effect="dark"
|
tooltip-effect="dark"
|
||||||
border
|
border
|
||||||
style="cursor:pointer;"
|
style="cursor:pointer;"
|
||||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
<el-table-column
|
>
|
||||||
label="序号"
|
<el-table-column
|
||||||
type="index"
|
label="序号"
|
||||||
align="center"
|
type="index"
|
||||||
width="55">
|
align="center"
|
||||||
<template slot-scope="{scope, column, $index}">
|
width="55"
|
||||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
>
|
||||||
</template>
|
<template slot-scope="{scope, column, $index}">
|
||||||
</el-table-column>
|
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||||
<el-table-column
|
</template>
|
||||||
width="200"
|
</el-table-column>
|
||||||
prop="standard"
|
<el-table-column
|
||||||
label="标准编号">
|
width="200"
|
||||||
<template slot-scope="scope">
|
prop="standard"
|
||||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
label="标准编号"
|
||||||
</template>
|
>
|
||||||
</el-table-column>
|
<template slot-scope="scope">
|
||||||
<el-table-column
|
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||||
prop="standardName"
|
</template>
|
||||||
label="标准名称">
|
</el-table-column>
|
||||||
<template slot-scope="scope">
|
<el-table-column
|
||||||
<span @click="handlePreview(scope.row)">{{ scope.row.standardName }}</span>
|
prop="standardName"
|
||||||
</template>
|
label="标准名称"
|
||||||
</el-table-column>
|
>
|
||||||
<el-table-column
|
<template slot-scope="scope">
|
||||||
width="120"
|
<span @click="handlePreview(scope.row)">{{ scope.row.standardName }}</span>
|
||||||
label="标准状态">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
<span>{{ textStatusMap[scope.row.textState] }}</span>
|
<el-table-column
|
||||||
</template>
|
width="120"
|
||||||
</el-table-column>
|
label="标准状态"
|
||||||
</el-table>
|
>
|
||||||
<div class="more" v-if="!pageVerify" @click="togo">更多 ⋙</div>
|
<template slot-scope="scope">
|
||||||
<loading :loading="loading">加载中...</loading>
|
<span>{{ textStatusMap[scope.row.textState] }}</span>
|
||||||
<pagination
|
</template>
|
||||||
v-if="pageVerify"
|
</el-table-column>
|
||||||
style="position: static;"
|
</el-table>
|
||||||
:page="page"
|
<div v-if="!pageVerify" class="more" @click="togo">更多 ⋙</div>
|
||||||
:total="total"
|
<loading :loading="loading">加载中...</loading>
|
||||||
@pageChange="pageChange"
|
<pagination
|
||||||
@pageSizeChange="pageSizeChange"></pagination>
|
v-if="pageVerify"
|
||||||
|
style="position: static;"
|
||||||
|
:page="page"
|
||||||
|
:total="total"
|
||||||
|
@pageChange="pageChange"
|
||||||
|
@pageSizeChange="pageSizeChange"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -65,7 +71,7 @@ export default {
|
|||||||
name: 'ReleaseUs',
|
name: 'ReleaseUs',
|
||||||
components: {},
|
components: {},
|
||||||
mixins: [],
|
mixins: [],
|
||||||
data() {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
pageVerify: false,
|
pageVerify: false,
|
||||||
@@ -73,49 +79,49 @@ export default {
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
total: 0,
|
total: 0,
|
||||||
putTime: '',
|
putTime: '',
|
||||||
standardReleaseList: [], //标准发布数据
|
standardReleaseList: [], // 标准发布数据
|
||||||
textStatusMap: {} // 标准状态id与name对应
|
textStatusMap: {} // 标准状态id与name对应
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
mounted() {
|
mounted () {
|
||||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.data.WBZTCLASS !== undefined && res.data.WBZTCLASS !== null){
|
if (res.data.WBZTCLASS !== undefined && res.data.WBZTCLASS !== null) {
|
||||||
this.setMap(res.data.WBZTCLASS) // 标准状态
|
this.setMap(res.data.WBZTCLASS) // 标准状态
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
this.getDate()
|
this.getDate()
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
// this.addDate()
|
// this.addDate()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
pageChange(page) {
|
pageChange (page) {
|
||||||
this.page = page
|
this.page = page
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
},
|
},
|
||||||
// 分页每页显示数改变后方法
|
// 分页每页显示数改变后方法
|
||||||
pageSizeChange(pageSize) {
|
pageSizeChange (pageSize) {
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
// 此处需要调用接口,修改个人配置
|
// 此处需要调用接口,修改个人配置
|
||||||
},
|
},
|
||||||
togo () {
|
togo () {
|
||||||
this.$router.push({path:'/releaseUs2'})
|
this.$router.push({ path: '/releaseUs2' })
|
||||||
},
|
},
|
||||||
// 将标准状态的id与name对应
|
// 将标准状态的id与name对应
|
||||||
setMap(data) {
|
setMap (data) {
|
||||||
data.forEach(item => {
|
data.forEach(item => {
|
||||||
this.$set(this.textStatusMap, item.value, item.label)
|
this.$set(this.textStatusMap, item.value, item.label)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherStandardDetails',
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.standardId,
|
id: item.standardId,
|
||||||
@@ -124,28 +130,28 @@ export default {
|
|||||||
})
|
})
|
||||||
window.open(routeUrl.href, '_blank')
|
window.open(routeUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
//截取时间
|
// 截取时间
|
||||||
getDate (date) {
|
getDate (date) {
|
||||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
||||||
},
|
},
|
||||||
//获取数据
|
// 获取数据
|
||||||
getAdvice() {
|
getAdvice () {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
this.$http.get('/lawss/NewsFeed/getNewsFeed', {
|
||||||
messageType: 'ZYBZFG',
|
messageType: 'ZYBZFG',
|
||||||
page: this.page,
|
page: this.page,
|
||||||
pageSize: this.pageSize
|
pageSize: this.pageSize
|
||||||
}, {
|
}, {
|
||||||
_this: this,loading: 'loading'
|
_this: this, loading: 'loading'
|
||||||
}, res => {
|
}, res => {
|
||||||
this.standardReleaseList = res.data.records
|
this.standardReleaseList = res.data.records
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}, e => {
|
}, e => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.standardReleaseList = []
|
this.standardReleaseList = []
|
||||||
this.total = 0
|
this.total = 0
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -1,66 +1,66 @@
|
|||||||
<!-- 企标发布 -->
|
<!-- 企标发布 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="release">
|
<div class="release">
|
||||||
<!-- <ul>-->
|
<el-table
|
||||||
<!-- <li v-for="item in standardReleaseList" :key="item.id" class="time-title" >-->
|
ref="selection"
|
||||||
<!-- <div style="height: 18px;">-->
|
:data="standardReleaseList"
|
||||||
<!-- <a @click="handlePreview(item)" style="color: #333333" class="table-jump">{{ item.standName }}</a>-->
|
tooltip-effect="dark"
|
||||||
<!-- <span class="time">{{item.issueTime ? $moment(item.issueTime).format('YYYY-MM-DD') : '' }}</span>-->
|
border
|
||||||
<!-- </div>-->
|
style="cursor:pointer;"
|
||||||
<!-- </li>-->
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
<!-- </ul>-->
|
>
|
||||||
<el-table
|
<el-table-column
|
||||||
ref="selection"
|
type="index"
|
||||||
:data="standardReleaseList"
|
width="55"
|
||||||
tooltip-effect="dark"
|
label="序号"
|
||||||
border
|
align="center"
|
||||||
style="cursor:pointer;"
|
>
|
||||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
<template slot-scope="{scope, column, $index}">
|
||||||
<el-table-column
|
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||||
type="index"
|
</template>
|
||||||
width="55"
|
</el-table-column>
|
||||||
label="序号"
|
<el-table-column
|
||||||
align="center">
|
prop="dataType"
|
||||||
<template slot-scope="{scope, column, $index}">
|
width="250"
|
||||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
label="类型"
|
||||||
</template>
|
:show-overflow-tooltip="true"
|
||||||
</el-table-column>
|
align="center"
|
||||||
<el-table-column
|
/>
|
||||||
prop="dataType"
|
<el-table-column
|
||||||
width="250"
|
prop="dataTitle"
|
||||||
label="类型"
|
min-width="250"
|
||||||
:show-overflow-tooltip="true"
|
label="资料标题"
|
||||||
align="center">
|
:show-overflow-tooltip="true"
|
||||||
</el-table-column>
|
align="center"
|
||||||
<el-table-column
|
>
|
||||||
prop="dataTitle"
|
<template slot-scope="scope">
|
||||||
min-width="250"
|
<span style="display: flex;align-items: center;justify-content: center">
|
||||||
label="资料标题"
|
<span style="cursor:pointer;color: #409eff" @click.stop="toDetail(scope.row)">{{ scope.row.dataTitle }}</span>
|
||||||
:show-overflow-tooltip="true"
|
<img v-if="scope.row.threeDaysNew" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||||
align="center">
|
</span>
|
||||||
<template slot-scope="scope">
|
</template>
|
||||||
<span @click.stop="toDetail(scope.row)" style="cursor:pointer;color: #409eff">{{ scope.row.dataTitle }}</span>
|
</el-table-column>
|
||||||
</template>
|
<el-table-column
|
||||||
</el-table-column>
|
prop="dataUploadTime"
|
||||||
<el-table-column
|
width="250"
|
||||||
prop="dataUploadTime"
|
label="上传时间"
|
||||||
width="250"
|
align="center"
|
||||||
label="上传时间"
|
>
|
||||||
align="center">
|
<template slot-scope="scope">
|
||||||
<template slot-scope="scope">
|
<span>{{ $moment(scope.row.dataUploadTime).format("YYYY-MM-DD") }}</span>
|
||||||
<span>{{ $moment(scope.row.dataUploadTime).format("YYYY-MM-DD") }}</span>
|
</template>
|
||||||
</template>
|
</el-table-column>
|
||||||
</el-table-column>
|
</el-table>
|
||||||
</el-table>
|
<div v-if="!pageVerify" class="more" @click="togo">更多 ⋙</div>
|
||||||
<div class="more" v-if="!pageVerify" @click="togo">更多 ⋙</div>
|
<loading :loading="loading">加载中...</loading>
|
||||||
<loading :loading="loading">加载中...</loading>
|
<pagination
|
||||||
<pagination
|
v-if="pageVerify"
|
||||||
v-if="pageVerify"
|
style="position: static;"
|
||||||
style="position: static;"
|
:page="page"
|
||||||
:page="page"
|
:total="total"
|
||||||
:total="total"
|
@pageChange="pageChange"
|
||||||
@pageChange="pageChange"
|
@pageSizeChange="pageSizeChange"
|
||||||
@pageSizeChange="pageSizeChange"></pagination>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ export default {
|
|||||||
name: 'ReleaseQA',
|
name: 'ReleaseQA',
|
||||||
components: {},
|
components: {},
|
||||||
mixins: [],
|
mixins: [],
|
||||||
data() {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
pageVerify: false,
|
pageVerify: false,
|
||||||
@@ -77,76 +77,80 @@ export default {
|
|||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
total: 0,
|
total: 0,
|
||||||
putTime: '',
|
putTime: '',
|
||||||
standardReleaseList: [], //标准问答数据
|
standardReleaseList: [], // 标准问答数据
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
mounted() {
|
mounted () {
|
||||||
this.getDate()
|
this.getDate()
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
// this.addDate()
|
// this.addDate()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
pageChange(page) {
|
pageChange (page) {
|
||||||
this.page = page
|
this.page = page
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
},
|
},
|
||||||
// 分页每页显示数改变后方法
|
// 分页每页显示数改变后方法
|
||||||
pageSizeChange(pageSize) {
|
pageSizeChange (pageSize) {
|
||||||
this.pageSize = this.$store.getters.userInfo.configContent
|
this.pageSize = this.$store.getters.userInfo.configContent
|
||||||
this.getAdvice()
|
this.getAdvice()
|
||||||
// 此处需要调用接口,修改个人配置
|
// 此处需要调用接口,修改个人配置
|
||||||
},
|
},
|
||||||
togo () {
|
togo () {
|
||||||
this.$router.push({path:'/dataCenter'})
|
this.$router.push({ path: '/dataCenter' })
|
||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
// let routeUrl = this.$router.resolve({
|
// let routeUrl = this.$router.resolve({
|
||||||
// name: 'OtherBussStandardDetails',
|
// name: 'OtherBussStandardDetails',
|
||||||
// params: {
|
// params: {
|
||||||
// id: item.standardId,
|
// id: item.standardId,
|
||||||
// pageType: 'BUSINESS_STAND'
|
// pageType: 'BUSINESS_STAND'
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
// window.open(routeUrl.href, '_blank')
|
// window.open(routeUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
//截取时间
|
// 截取时间
|
||||||
getDate (date) {
|
getDate (date) {
|
||||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
||||||
},
|
},
|
||||||
toDetail(row){
|
toDetail (row) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "dataCenterDetail",
|
name: 'dataCenterDetail',
|
||||||
query: {
|
query: {
|
||||||
id: row.id
|
id: row.id
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//获取数据
|
// 获取数据
|
||||||
getAdvice() {
|
getAdvice () {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
// 模拟加载
|
// 模拟加载
|
||||||
const timer = setInterval(() => {
|
const timer = setInterval(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}, 2000)
|
}, 2000)
|
||||||
console.log(timer)
|
console.log(timer)
|
||||||
let userInfo = JSON.parse(localStorage.getItem('userInfo'));
|
const userInfo = JSON.parse(localStorage.getItem('userInfo'));
|
||||||
this.$http.get("fileMaterialCenter/file-material/getFileMaterialIndex", {
|
this.$http.get('fileMaterialCenter/file-material/getFileMaterialIndex', {
|
||||||
userId: userInfo.userId,
|
userId: userInfo.userId,
|
||||||
}, {
|
}, {
|
||||||
_this: this,loading: 'loading'
|
_this: this, loading: 'loading'
|
||||||
}, res => {
|
}, res => {
|
||||||
this.standardReleaseList = res.data
|
this.standardReleaseList = res.data
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}, e => {
|
if (res.data && res.data.length > 0) {
|
||||||
this.loading = false
|
const isNew = res.data[0].threeDaysNew || false
|
||||||
this.standardReleaseList = []
|
this.$emit('isNew', isNew)
|
||||||
this.total = 0
|
}
|
||||||
})
|
}, e => {
|
||||||
|
this.loading = false
|
||||||
|
this.standardReleaseList = []
|
||||||
|
this.total = 0
|
||||||
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -1,41 +1,36 @@
|
|||||||
<!-- 标准征求意见 -->
|
<!-- 标准征求意见 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="solicitopinions">
|
<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>-->
|
|
||||||
<el-table
|
<el-table
|
||||||
ref="selection"
|
ref="selection"
|
||||||
:data="domesticDynamics"
|
:data="domesticDynamics"
|
||||||
tooltip-effect="dark"
|
tooltip-effect="dark"
|
||||||
border
|
border
|
||||||
style="cursor:pointer;"
|
style="cursor:pointer;"
|
||||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
style="width: 100%">
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="序号"
|
label="序号"
|
||||||
type="index"
|
type="index"
|
||||||
align="center"
|
align="center"
|
||||||
width="55">
|
width="55"
|
||||||
</el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="cid"
|
prop="cid"
|
||||||
show-overflow-tooltip
|
label="标准名称"
|
||||||
label="标准名称">
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span @click="standForComments(scope.row)">{{ scope.row.cid }}</span>
|
<span style="display: flex;align-items: center" @click="standForComments(scope.row)">
|
||||||
|
<span>{{ scope.row.cid }}</span>
|
||||||
|
<img v-if="scope.row.threeDaysNew" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||||
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="endTime"
|
prop="endTime"
|
||||||
width="120"
|
width="120"
|
||||||
label="结束时间">
|
label="结束时间"
|
||||||
</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>
|
||||||
@@ -43,45 +38,48 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "Solicitopinions",
|
name: 'Solicitopinions',
|
||||||
components: {},
|
components: {},
|
||||||
mixins: [],
|
mixins: [],
|
||||||
data() {
|
data () {
|
||||||
return {
|
return {
|
||||||
updateTime: "",
|
updateTime: '',
|
||||||
putTime: "",
|
putTime: '',
|
||||||
domesticDynamics: [] //标准征求意见数据
|
domesticDynamics: [] // 标准征求意见数据
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
mounted() {
|
mounted () {
|
||||||
this.getDate();
|
this.getDate();
|
||||||
this.getAdvice();
|
this.getAdvice();
|
||||||
// this.addDate();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//截取时间
|
// 截取时间
|
||||||
getDate(date) {
|
getDate (date) {
|
||||||
return date != null ? date.substring(0, date.indexOf(" ")) : "";
|
return date != null ? date.substring(0, date.indexOf(' ')) : '';
|
||||||
},
|
},
|
||||||
//获取数据
|
// 获取数据
|
||||||
getAdvice() {
|
getAdvice () {
|
||||||
this.$http.get("slrs/sar-public-idea/SelectAllPage", {
|
this.$http.get('slrs/sar-public-idea/SelectAllPage', {
|
||||||
page: 1,
|
page: 1,
|
||||||
size: 10
|
size: 10
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.domesticDynamics = res.data.records
|
this.domesticDynamics = res.data.records
|
||||||
|
if (res.data && res.data.records && res.data.records.length > 0) {
|
||||||
|
const isNew = res.data.records[0].threeDaysNew || false
|
||||||
|
this.$emit('isNew', isNew)
|
||||||
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
standForComments(item) {
|
standForComments (item) {
|
||||||
this.$store.commit("setDetailMap", this.$router.path);
|
this.$store.commit('setDetailMap', this.$router.path);
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "consultationDetails",
|
name: 'consultationDetails',
|
||||||
query: {
|
query: {
|
||||||
item: JSON.stringify(item)
|
item: JSON.stringify(item)
|
||||||
}
|
}
|
||||||
|
|||||||
+111
-72
@@ -1,61 +1,91 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="home">
|
<div class="home">
|
||||||
<div class="home_main">
|
<div class="home_main">
|
||||||
<div class="left_wrapper">
|
<div class="left_wrapper">
|
||||||
<search-group></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-tabs" style="box-shadow:1px 1px 10px rgba(0,0,0,0.1);border-radius: 3px;">
|
||||||
<div class="main-left-wrap" >
|
<div class="main-left-wrap">
|
||||||
<!-- <el-button type="text" style="font-size: 14px" class="more" @click="MORE">MORE</el-button>-->
|
<el-tabs
|
||||||
<el-tabs
|
v-model="activeName"
|
||||||
v-model="activeName"
|
class="home-tabs"
|
||||||
class="home-tabs"
|
@tab-click="handleTabClick"
|
||||||
@tab-click="handleTabClick"
|
>
|
||||||
>
|
<el-tab-pane name="solicitOpinions">
|
||||||
<el-tab-pane name="solicitOpinions">
|
<span slot="label" style="position: relative">
|
||||||
<span slot="label"><i class="el-icon-s-order"></i> 标准征求意见</span>
|
<i class="el-icon-s-order" />
|
||||||
<solicitOpinions></solicitOpinions>
|
标准征求意见
|
||||||
</el-tab-pane>
|
<span v-if="opinionIsNew" class="more-doc" />
|
||||||
<el-tab-pane name="releaseZL" style="overflow-y: auto;height: 100%">
|
</span>
|
||||||
<span slot="label"><i class="el-icon-chat-line-round"></i> 标准化动态</span>
|
<solicitOpinions @isNew="setIsNew($event, 'opinionIsNew')" />
|
||||||
<releaseZL></releaseZL>
|
</el-tab-pane>
|
||||||
</el-tab-pane>
|
|
||||||
<el-tab-pane name="releaseUs" style="overflow-y: auto;height: 100%">
|
<el-tab-pane name="releaseZL" style="overflow-y: auto;height: 100%">
|
||||||
<span slot="label"><i class="el-icon-s-operation"></i> 在研标准法规动态</span>
|
<span slot="label" style="position: relative">
|
||||||
<releaseUs></releaseUs>
|
<i class="el-icon-chat-line-round" />
|
||||||
</el-tab-pane>
|
标准化动态
|
||||||
<el-tab-pane name="releaseCn" style="overflow-y: auto;height: 100%">
|
<span v-if="trendsIsNew" class="more-doc" />
|
||||||
<span slot="label"><i class="el-icon-s-promotion"></i> 国内标准法规动态</span>
|
</span>
|
||||||
<release messageType="GNBZFG"></release>
|
<releaseZL @isNew="setIsNew($event, 'trendsIsNew')" />
|
||||||
</el-tab-pane>
|
</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>
|
<el-tab-pane name="releaseUs" style="overflow-y: auto;height: 100%">
|
||||||
<release messageType="GWBZFG"></release>
|
<span slot="label" style="position: relative">
|
||||||
</el-tab-pane>
|
<i class="el-icon-s-operation" />
|
||||||
<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="underResearchIsNew" class="more-doc" />
|
||||||
企业标准发布
|
</span>
|
||||||
<span v-if="isNew" class="more-doc"></span>
|
<!-- <releaseUs />-->
|
||||||
<!--<img v-if="isNew" src="/static/images/new.png" style="width: 30px;margin-left: 5px">-->
|
<release messageType="ZYBZFG" @isNew="setIsNew($event, 'underResearchIsNew')" />
|
||||||
</span>
|
</el-tab-pane>
|
||||||
<releaseBuss></releaseBuss>
|
|
||||||
</el-tab-pane>
|
<el-tab-pane name="releaseCn" style="overflow-y: auto;height: 100%">
|
||||||
<el-tab-pane name="releaseQA" style="overflow-y: auto;height: 100%">
|
<span slot="label" style="position: relative">
|
||||||
<span slot="label"><i class="el-icon-chat-line-round"></i> 标准问答</span>
|
<i class="el-icon-s-promotion" />
|
||||||
<releaseQA></releaseQA>
|
国内标准法规动态
|
||||||
</el-tab-pane>
|
<span v-if="domIsNew" class="more-doc" />
|
||||||
</el-tabs>
|
</span>
|
||||||
</div>
|
<release messageType="GNBZFG" @isNew="setIsNew($event, 'domIsNew')" />
|
||||||
</div>
|
</el-tab-pane>
|
||||||
</div>
|
|
||||||
<div class="right_wrapper">
|
<el-tab-pane name="release" style="overflow-y: auto;height: 100%">
|
||||||
<nav-menu></nav-menu>
|
<span slot="label" style="position: relative">
|
||||||
<todo-list></todo-list>
|
<i class="el-icon-s-promotion" />
|
||||||
|
国外标准法规动态
|
||||||
|
<span v-if="abroadIsNew" class="more-doc" />
|
||||||
|
</span>
|
||||||
|
<release messageType="GWBZFG" @isNew="setIsNew($event, 'abroadIsNew')" />
|
||||||
|
</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" />
|
||||||
|
</span>
|
||||||
|
<releaseBuss @isNew="setIsNew($event, 'isNew')" />
|
||||||
|
</el-tab-pane>
|
||||||
|
|
||||||
|
<el-tab-pane name="releaseQA" style="overflow-y: auto;height: 100%">
|
||||||
|
<span slot="label" style="position: relative">
|
||||||
|
<i class="el-icon-chat-line-round" />
|
||||||
|
标准问答
|
||||||
|
<span v-if="questionIsNew" class="more-doc" />
|
||||||
|
</span>
|
||||||
|
<releaseQA @isNew="setIsNew($event, 'questionIsNew')" />
|
||||||
|
</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>
|
</div>
|
||||||
<div calss="home_footer" style="padding: 0">
|
|
||||||
<Empennage></Empennage>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -70,9 +100,9 @@ import releaseZL from './components/releaseZL'
|
|||||||
import solicitOpinions from './components/solicitopinions'
|
import solicitOpinions from './components/solicitopinions'
|
||||||
import navMenu from './components/navMenu'
|
import navMenu from './components/navMenu'
|
||||||
import todoList from './components/todoList'
|
import todoList from './components/todoList'
|
||||||
import Empennage from "./components/empennage"
|
import Empennage from './components/empennage'
|
||||||
export default {
|
export default {
|
||||||
name: "Home2",
|
name: 'Home2',
|
||||||
components: {
|
components: {
|
||||||
searchGroup,
|
searchGroup,
|
||||||
solicitOpinions,
|
solicitOpinions,
|
||||||
@@ -85,18 +115,27 @@ export default {
|
|||||||
todoList,
|
todoList,
|
||||||
Empennage,
|
Empennage,
|
||||||
},
|
},
|
||||||
data() {
|
data () {
|
||||||
return {
|
return {
|
||||||
activeName: 'solicitOpinions',
|
activeName: 'solicitOpinions',
|
||||||
isNew: false
|
opinionIsNew: false,
|
||||||
|
trendsIsNew: false,
|
||||||
|
underResearchIsNew: false,
|
||||||
|
domIsNew: false,
|
||||||
|
abroadIsNew: false,
|
||||||
|
isNew: false,
|
||||||
|
questionIsNew: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created () {
|
||||||
this.getAdvice()
|
// this.getAdvice()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getAdvice() {
|
setIsNew (isNew, key) {
|
||||||
this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
this.$set(this, key, isNew)
|
||||||
|
},
|
||||||
|
getAdvice () {
|
||||||
|
this.$http.get('/lawss/NewsFeed/getNewsFeed', {
|
||||||
messageType: 'QYBZFB',
|
messageType: 'QYBZFB',
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 1
|
pageSize: 1
|
||||||
@@ -104,7 +143,7 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.data && res.data.records && res.data.records.length > 0) {
|
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)
|
this.isNew = this.checkTime(res.data.records[0].releaseDate)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -113,11 +152,11 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
checkTime (time) {
|
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) {},
|
handleTabClick (tab, event) {},
|
||||||
//退出登录
|
// 退出登录
|
||||||
logout(){
|
logout () {
|
||||||
this.$confirm('您确认要退出吗?', '提示', {
|
this.$confirm('您确认要退出吗?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
@@ -135,10 +174,10 @@ export default {
|
|||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
MORE() {
|
MORE () {
|
||||||
switch (this.activeName) {
|
switch (this.activeName) {
|
||||||
case 'solicitOpinions':
|
case 'solicitOpinions':
|
||||||
this.$router.push({name: 'standardForComments'})
|
this.$router.push({ name: 'standardForComments' })
|
||||||
break
|
break
|
||||||
case 'release':
|
case 'release':
|
||||||
this.$confirm('请选择国内/海外标准', {
|
this.$confirm('请选择国内/海外标准', {
|
||||||
@@ -147,9 +186,9 @@ export default {
|
|||||||
type: 'warning',
|
type: 'warning',
|
||||||
center: true
|
center: true
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$router.push({name: 'domesticStandardsAndRegulations'})
|
this.$router.push({ name: 'domesticStandardsAndRegulations' })
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$router.push({name: 'foreignStandardsAndRegulations'})
|
this.$router.push({ name: 'foreignStandardsAndRegulations' })
|
||||||
});
|
});
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -0,0 +1,80 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
class="root"
|
||||||
|
title="当前顺序号"
|
||||||
|
:visible.sync="visible"
|
||||||
|
width="800"
|
||||||
|
:show-close="false"
|
||||||
|
>
|
||||||
|
<el-descriptions border :column="1" :labelStyle="{width: '120px'}">
|
||||||
|
<el-descriptions-item label="企标类别">{{ standSort }}</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="当前类别顺序号" contentClassName="descriptions">
|
||||||
|
<div class="item" style="border-right: 1px solid #ebeef5;">{{ standNum }}</div>
|
||||||
|
<div class="item">该编号为该企标类别最新顺序号,可直接使用无需+1</div>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item :labelStyle="{background: '#fff'}" />
|
||||||
|
<el-descriptions-item label="当前类别空号" :contentStyle="{background: '#F8E7E9'}">{{ spaceNum }}</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" size="mini" @click="visible = false">确 定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'CurrentOrder',
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
standSort: '',
|
||||||
|
standNum: '',
|
||||||
|
spaceNum: '',
|
||||||
|
url: {
|
||||||
|
findStandSnByStandSort: 'sarBussStandSn/sar-buss-stand-sn/findStandSnByStandSort'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
open (standSort, standSn) {
|
||||||
|
this.standSort = standSort
|
||||||
|
this.standNum = standSn
|
||||||
|
const query = {
|
||||||
|
standSort,
|
||||||
|
standSn
|
||||||
|
}
|
||||||
|
this.$http._getData(this.url.findStandSnByStandSort, query).then(res => {
|
||||||
|
if (res.ok) {
|
||||||
|
this.spaceNum = res.data.join('、')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.visible = true
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="less">
|
||||||
|
.root {
|
||||||
|
/deep/ .el-dialog__header{
|
||||||
|
padding: 10px 20px;
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
font-weight: 700;
|
||||||
|
.el-dialog__title {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/deep/ .descriptions {
|
||||||
|
padding: 0 !important;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
border: 0;
|
||||||
|
border-right: 1px solid #ebeef5;
|
||||||
|
.item {
|
||||||
|
width: 50%;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 12px 10px
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<!-- eslint-disable -->
|
||||||
<template>
|
<template>
|
||||||
<form>
|
<form>
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
@@ -73,12 +74,13 @@
|
|||||||
<!-- ></el-option>-->
|
<!-- ></el-option>-->
|
||||||
<!-- </el-select>-->
|
<!-- </el-select>-->
|
||||||
<!-- </el-form-item>-->
|
<!-- </el-form-item>-->
|
||||||
<el-form-item v-show="fbNode && form.standStatus === '1'" label="企标顺序号" prop="standNum" class="add-form-item form-item-disabled">
|
<el-form-item v-show="fbNode && form.standStatus === '1'" label="企标顺序号" prop="standNum" class="add-form-item form-item-disabled standNum">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.standNum"
|
v-model="form.standNum"
|
||||||
placeholder="请输入企标顺序号"
|
placeholder="请输入企标顺序号"
|
||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
|
<span style="position: absolute;right: 0;color: rgb(64, 158, 255);cursor: pointer" @click="queryOrder">当前顺序号查询</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="制修订类型" prop="standStatus" class="add-form-item form-item-disabled">
|
<el-form-item label="制修订类型" prop="standStatus" class="add-form-item form-item-disabled">
|
||||||
<el-select v-model="form.standStatus" filterable disabled>
|
<el-select v-model="form.standStatus" filterable disabled>
|
||||||
@@ -588,18 +590,22 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
|
<CurrentOrder ref="CurrentOrderRef"></CurrentOrder>
|
||||||
</form>
|
</form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
/* eslint-disable */
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import ProcessTitle from '../../../components/ProcessTitle'
|
import ProcessTitle from '../../../components/ProcessTitle'
|
||||||
|
import CurrentOrder from '@/pages/processCenter/pages/components/CurrentOrder';
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'formEditList',
|
name: 'formEditList',
|
||||||
components: {
|
components: {
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
|
CurrentOrder,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
formSub: {
|
formSub: {
|
||||||
@@ -761,6 +767,9 @@
|
|||||||
...mapGetters(['userInfo'])
|
...mapGetters(['userInfo'])
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
queryOrder () {
|
||||||
|
this.$refs.CurrentOrderRef.open(this.form.standSort, this.form.standNum)
|
||||||
|
},
|
||||||
filterOp(data){
|
filterOp(data){
|
||||||
if(!data){
|
if(!data){
|
||||||
return ""
|
return ""
|
||||||
@@ -990,4 +999,7 @@
|
|||||||
.uploadBtnFormItem /deep/ .el-form-item__error{
|
.uploadBtnFormItem /deep/ .el-form-item__error{
|
||||||
right: 45px !important;
|
right: 45px !important;
|
||||||
}
|
}
|
||||||
|
.standNum /deep/.el-form-item__error{
|
||||||
|
right: 110px !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<!-- eslint-disable -->
|
||||||
<template>
|
<template>
|
||||||
<form>
|
<form>
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
@@ -92,7 +93,7 @@
|
|||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--<el-form-item v-show="form.reviseStatus === '1'" label="企标顺序号" :prop="form.reviseStatus === '1'?standNum : ''" class="add-form-item form-item-disabled">-->
|
<!--<el-form-item v-show="form.reviseStatus === '1'" label="企标顺序号" :prop="form.reviseStatus === '1'?standNum : ''" class="add-form-item form-item-disabled">-->
|
||||||
<el-form-item v-show="form.reviseStatus === '1' || form.reviseStatus === '2'" label="企标顺序号" :prop="form.reviseStatus === '1'? 'standNum' : ''" class="add-form-item form-item-disabled">
|
<el-form-item v-show="form.reviseStatus === '1' || form.reviseStatus === '2'" label="企标顺序号" :prop="form.reviseStatus === '1'? 'standNum' : ''" class="add-form-item form-item-disabled standNum">
|
||||||
<el-input
|
<el-input
|
||||||
:value="form.standNum"
|
:value="form.standNum"
|
||||||
:maxLength="100"
|
:maxLength="100"
|
||||||
@@ -100,6 +101,7 @@
|
|||||||
clearable
|
clearable
|
||||||
@input="standNumChange"
|
@input="standNumChange"
|
||||||
></el-input>
|
></el-input>
|
||||||
|
<span style="position: absolute;right: 0;color: rgb(64, 158, 255);cursor: pointer" @click="queryOrder">当前顺序号查询</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="英文名称" prop="standEnName" class="add-form-item form-item-disabled">
|
<el-form-item label="英文名称" prop="standEnName" class="add-form-item form-item-disabled">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -673,18 +675,21 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
|
<CurrentOrder ref="CurrentOrderRef"></CurrentOrder>
|
||||||
</form>
|
</form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
/* eslint-disable */
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import ProcessTitle from '../../../components/ProcessTitle'
|
import ProcessTitle from '../../../components/ProcessTitle'
|
||||||
|
import CurrentOrder from '@/pages/processCenter/pages/components/CurrentOrder';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'formEditList',
|
name: 'formEditList',
|
||||||
components: {
|
components: {
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
|
CurrentOrder,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
// formSub: {
|
// formSub: {
|
||||||
@@ -849,6 +854,9 @@ export default {
|
|||||||
...mapGetters(['userInfo'])
|
...mapGetters(['userInfo'])
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
queryOrder () {
|
||||||
|
this.$refs.CurrentOrderRef.open(this.form.standSort, this.form.standNum)
|
||||||
|
},
|
||||||
standSortChange(val){
|
standSortChange(val){
|
||||||
this.$emit('standSortChange',val)
|
this.$emit('standSortChange',val)
|
||||||
},
|
},
|
||||||
@@ -1163,4 +1171,7 @@ export default {
|
|||||||
.uploadBtnFormItem /deep/ .el-form-item__error{
|
.uploadBtnFormItem /deep/ .el-form-item__error{
|
||||||
right: 45px !important;
|
right: 45px !important;
|
||||||
}
|
}
|
||||||
|
.standNum /deep/.el-form-item__error{
|
||||||
|
right: 110px !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -9,46 +9,60 @@
|
|||||||
<div class="search-area">
|
<div class="search-area">
|
||||||
<el-form :model="standCommonlySearch" inline class="label-input-form">
|
<el-form :model="standCommonlySearch" inline class="label-input-form">
|
||||||
<el-formItem label="类别" class="search-item">
|
<el-formItem label="类别" class="search-item">
|
||||||
<el-input v-model="standCommonlySearch.categorg" class="s-c-input" placeholder="标准/政策" clearable
|
<el-input
|
||||||
:maxlength="100"></el-input>
|
v-model="standCommonlySearch.categorg"
|
||||||
|
class="s-c-input"
|
||||||
|
placeholder="标准/政策"
|
||||||
|
clearable
|
||||||
|
:maxlength="100"
|
||||||
|
/>
|
||||||
</el-formItem>
|
</el-formItem>
|
||||||
<el-formItem label="关键字" class="search-item">
|
<el-formItem label="关键字" class="search-item">
|
||||||
<el-input v-model="standCommonlySearch.cname" class="s-c-input" placeholder="请输入关键字" clearable
|
<el-input
|
||||||
:maxlength="100"></el-input>
|
v-model="standCommonlySearch.cname"
|
||||||
|
class="s-c-input"
|
||||||
|
placeholder="请输入关键字"
|
||||||
|
clearable
|
||||||
|
:maxlength="100"
|
||||||
|
/>
|
||||||
</el-formItem>
|
</el-formItem>
|
||||||
<el-form-item label="开始日期" >
|
<el-form-item label="开始日期">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="standCommonlySearch.start"
|
v-model="standCommonlySearch.start"
|
||||||
type="date"
|
type="date"
|
||||||
:editable="false"
|
:editable="false"
|
||||||
placeholder="请选择开始日期"
|
placeholder="请选择开始日期"
|
||||||
size="small"
|
size="small"
|
||||||
value-format="yyyy-MM-dd">
|
value-format="yyyy-MM-dd"
|
||||||
</el-date-picker>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="结束日期" >
|
<el-form-item label="结束日期">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="standCommonlySearch.end"
|
v-model="standCommonlySearch.end"
|
||||||
type="date"
|
type="date"
|
||||||
:editable="false"
|
:editable="false"
|
||||||
placeholder="请选择结束日期"
|
placeholder="请选择结束日期"
|
||||||
size="small"
|
size="small"
|
||||||
value-format="yyyy-MM-dd">
|
value-format="yyyy-MM-dd"
|
||||||
</el-date-picker>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-formItem class="search-item btn-box">
|
<el-formItem class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
|
v-btn-permission="'0514cd2c6b0e6311a7632f8bef87aecb'"
|
||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
v-btn-permission="'0514cd2c6b0e6311a7632f8bef87aecb'"
|
@click="sarStandCompareHisInfo"
|
||||||
@click="sarStandCompareHisInfo">查询
|
>
|
||||||
|
查询
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
v-btn-permission="'bb7386429dabf20b8006e03efacc0673'"
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
size="mini"
|
size="mini"
|
||||||
v-btn-permission="'bb7386429dabf20b8006e03efacc0673'"
|
@click="clearSearchStand"
|
||||||
@click="clearSearchStand">清空
|
>
|
||||||
|
清空
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-formItem>
|
</el-formItem>
|
||||||
</el-form>
|
</el-form>
|
||||||
@@ -65,13 +79,15 @@
|
|||||||
style="width: 100%;padding:0 0 20px 0;"
|
style="width: 100%;padding:0 0 20px 0;"
|
||||||
height="100%"
|
height="100%"
|
||||||
border
|
border
|
||||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="index"
|
type="index"
|
||||||
fixed="left"
|
fixed="left"
|
||||||
width="55"
|
width="55"
|
||||||
label="序号"
|
label="序号"
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="{scope, column, $index}">
|
<template slot-scope="{scope, column, $index}">
|
||||||
{{ ($index + 1) + (standCommonlySearch.page - 1) * standCommonlySearch.size }}
|
{{ ($index + 1) + (standCommonlySearch.page - 1) * standCommonlySearch.size }}
|
||||||
</template>
|
</template>
|
||||||
@@ -80,7 +96,8 @@
|
|||||||
prop="category"
|
prop="category"
|
||||||
label="标准/政策"
|
label="标准/政策"
|
||||||
width="150"
|
width="150"
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a class="table-jump" @click.stop="handlePreview(scope.row)">{{ scope.row.category }}</a>
|
<a class="table-jump" @click.stop="handlePreview(scope.row)">{{ scope.row.category }}</a>
|
||||||
</template>
|
</template>
|
||||||
@@ -88,16 +105,18 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="cid"
|
prop="cid"
|
||||||
label="标准名称/政策名称"
|
label="标准名称/政策名称"
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="endTime"
|
prop="endTime"
|
||||||
label="征求意见周期"
|
label="征求意见周期"
|
||||||
width="200"
|
width="200"
|
||||||
align="center">
|
align="center"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.startTime + ' ~ ' + scope.row.endTime }}
|
{{ scope.row.startTime + ' ~ ' + scope.row.endTime }}
|
||||||
</template>
|
</template>
|
||||||
@@ -106,29 +125,34 @@
|
|||||||
prop="startTime"
|
prop="startTime"
|
||||||
label="上传时间"
|
label="上传时间"
|
||||||
width="200"
|
width="200"
|
||||||
align="center">
|
align="center"
|
||||||
</el-table-column>
|
/>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pagination :page="standCommonlySearch.page" :total="total" @pageChange="pageChange"
|
<pagination
|
||||||
@pageSizeChange="pageSizeChange"></pagination>
|
:page="standCommonlySearch.page"
|
||||||
|
:total="total"
|
||||||
|
@pageChange="pageChange"
|
||||||
|
@pageSizeChange="pageSizeChange"
|
||||||
|
/>
|
||||||
<loading :loading="spinShow">数据加载中……</loading>
|
<loading :loading="spinShow">数据加载中……</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "standardForComments",
|
name: 'StandardForComments',
|
||||||
components: {},
|
components: {},
|
||||||
data() {
|
props: {},
|
||||||
|
data () {
|
||||||
return {
|
return {
|
||||||
standCommonlySearch: {
|
standCommonlySearch: {
|
||||||
categorg: "",
|
categorg: '',
|
||||||
cname: "",
|
cname: '',
|
||||||
start: "",
|
start: '',
|
||||||
end: "",
|
end: '',
|
||||||
page: 1,
|
page: 1,
|
||||||
size: this.$store.getters.userInfo.configContent
|
size: this.$store.getters.userInfo.configContent
|
||||||
},
|
},
|
||||||
@@ -138,39 +162,46 @@ export default {
|
|||||||
total: 0
|
total: 0
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
|
mounted () {
|
||||||
|
this.sarStandCompareHis();
|
||||||
|
this.tableHeight = $('.content').height() - 44;
|
||||||
|
window.onresize = () => {
|
||||||
|
this.tableHeight = $('.content').height() - 44;
|
||||||
|
};
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(item) {
|
handlePreview (item) {
|
||||||
this.$store.commit("setDetailMap", this.$router.path);
|
this.$store.commit('setDetailMap', this.$router.path);
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "consultationDetails",
|
name: 'consultationDetails',
|
||||||
query: {
|
query: {
|
||||||
item: JSON.stringify(item)
|
item: JSON.stringify(item)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 清空
|
// 清空
|
||||||
clearSearchStand() {
|
clearSearchStand () {
|
||||||
this.standCommonlySearch.page = 1;
|
this.standCommonlySearch.page = 1;
|
||||||
this.standCommonlySearch.start = "";
|
this.standCommonlySearch.start = '';
|
||||||
this.standCommonlySearch.end = "";
|
this.standCommonlySearch.end = '';
|
||||||
this.standCommonlySearch.categorg = "";
|
this.standCommonlySearch.categorg = '';
|
||||||
this.standCommonlySearch.cname = "";
|
this.standCommonlySearch.cname = '';
|
||||||
this.sarStandCompareHis();
|
this.sarStandCompareHis();
|
||||||
},
|
},
|
||||||
// 搜索
|
// 搜索
|
||||||
sarStandCompareHisInfo() {
|
sarStandCompareHisInfo () {
|
||||||
this.splitInfoPage = 1;
|
this.splitInfoPage = 1;
|
||||||
this.sarStandCompareHis();
|
this.sarStandCompareHis();
|
||||||
},
|
},
|
||||||
// 查询表格
|
// 查询表格
|
||||||
sarStandCompareHis() {
|
sarStandCompareHis () {
|
||||||
this.spinShow = true;
|
this.spinShow = true;
|
||||||
this.standCommonlySearch.type = 1;
|
this.standCommonlySearch.type = 1;
|
||||||
var form = this.standCommonlySearch;
|
const form = this.standCommonlySearch;
|
||||||
this.$http.get("slrs/sar-public-idea/SelectAllPage", form, {
|
this.$http.get('slrs/sar-public-idea/SelectAllPage', form, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.standInfoList = res.data.records;
|
this.standInfoList = res.data.records;
|
||||||
@@ -179,24 +210,16 @@ export default {
|
|||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
pageChange(page) {
|
pageChange (page) {
|
||||||
this.standCommonlySearch.page = page;
|
this.standCommonlySearch.page = page;
|
||||||
this.sarStandCompareHis();
|
this.sarStandCompareHis();
|
||||||
},
|
},
|
||||||
// 分页每页显示数改变后方法
|
// 分页每页显示数改变后方法
|
||||||
pageSizeChange(pageSize) {
|
pageSizeChange (pageSize) {
|
||||||
this.$store.getters.userInfo.configContent = pageSize;
|
this.$store.getters.userInfo.configContent = pageSize;
|
||||||
this.standCommonlySearch.size = pageSize;
|
this.standCommonlySearch.size = pageSize;
|
||||||
this.sarStandCompareHis();
|
this.sarStandCompareHis();
|
||||||
}
|
}
|
||||||
},
|
|
||||||
computed: {},
|
|
||||||
mounted() {
|
|
||||||
this.sarStandCompareHis();
|
|
||||||
this.tableHeight = $(".content").height() - 44;
|
|
||||||
window.onresize = () => {
|
|
||||||
this.tableHeight = $(".content").height() - 44;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,55 +1,65 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="standard-search">
|
<div class="standard-search">
|
||||||
<personal-center></personal-center>
|
<personal-center />
|
||||||
<div class="search" style="margin: 20px 20px 0;">
|
<div class="search" style="margin: 20px 20px 0;">
|
||||||
|
<div
|
||||||
<div class="search-content"
|
class="search-content"
|
||||||
@mouseenter="setShowAllSearch(true)"
|
@mouseenter="setShowAllSearch(true)"
|
||||||
@mouseleave="setShowAllSearch(false)">
|
@mouseleave="setShowAllSearch(false)"
|
||||||
|
>
|
||||||
<div class="search-item">
|
<div class="search-item">
|
||||||
<div class="condition-item-title">检索方式</div>
|
<div class="condition-item-title">检索方式</div>
|
||||||
<div class="search-item-content">
|
<div class="search-item-content">
|
||||||
<div
|
<div
|
||||||
:class="searchForm.selectType === 'allTextSearch' ? 'selected' : ''"
|
:class="searchForm.selectType === 'allTextSearch' ? 'selected' : ''"
|
||||||
@click="searchFormChange('selectType', 'allTextSearch')"
|
@click="searchFormChange('selectType', 'allTextSearch')"
|
||||||
>全文检索</div>
|
>
|
||||||
|
全文检索
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
:class="searchForm.selectType === 'titleSearch' ? 'selected' : ''"
|
:class="searchForm.selectType === 'titleSearch' ? 'selected' : ''"
|
||||||
@click="searchFormChange('selectType', 'titleSearch')"
|
@click="searchFormChange('selectType', 'titleSearch')"
|
||||||
>标题检索</div>
|
>
|
||||||
|
标题检索
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<i class="icon el-icon-arrow-down" :class="{ 'icon-arrow': showAllSearch}"></i>
|
<i class="icon el-icon-arrow-down" :class="{ 'icon-arrow': showAllSearch}" />
|
||||||
<div style="height: 5px;width: 100%;background-color: transparent;position: absolute;bottom: -5px;left: 0"></div>
|
<div style="height: 5px;width: 100%;background-color: transparent;position: absolute;bottom: -5px;left: 0" />
|
||||||
|
|
||||||
<transition name="fade">
|
<transition name="fade">
|
||||||
<el-card class="box-card" v-show="showAllSearch">
|
<el-card v-show="showAllSearch" class="box-card">
|
||||||
<template v-for="(item,key) in searchOptions">
|
<template v-for="(item,key) in searchOptions">
|
||||||
|
|
||||||
<!-- 标准类别 -->
|
<!-- 标准类别 -->
|
||||||
<template v-if="key === 'standSort'">
|
<template v-if="key === 'standSort'">
|
||||||
<!-- 资源类型非全部时 根据标准类别显示对应标准类别 -->
|
<!-- 资源类型非全部时 根据标准类别显示对应标准类别 -->
|
||||||
<!-- 资源类型全部时隐藏标准类别 -->
|
<!-- 资源类型全部时隐藏标准类别 -->
|
||||||
<div v-if="searchForm.standType !== ''" class="search-item card-search-item" :key="key">
|
<div v-if="searchForm.standType !== ''" :key="key" class="search-item card-search-item">
|
||||||
<div class="condition-item-title">{{ item.title }}</div>
|
<div class="condition-item-title">{{ item.title }}</div>
|
||||||
<div class="search-item-content">
|
<div class="search-item-content">
|
||||||
<div v-for="(option, index) in item.options.filter(i => i.type === searchForm.standType || i.type === 'all')"
|
<div
|
||||||
:key="option.value"
|
v-for="option in item.options.filter(i => i.type === searchForm.standType || i.type === 'all')"
|
||||||
:class="searchForm[key].split(',').indexOf(option.value) !== -1 ? 'selected' : ''"
|
:key="option.value"
|
||||||
@click="searchFormChange(key, option.value)"
|
:class="searchForm[key].split(',').indexOf(option.value) !== -1 ? 'selected' : ''"
|
||||||
>{{ option.label }}</div>
|
@click="searchFormChange(key, option.value)"
|
||||||
|
>
|
||||||
|
{{ option.label }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div v-else class="search-item card-search-item" :key="key">
|
<div v-else :key="key" class="search-item card-search-item">
|
||||||
<div class="condition-item-title">{{ item.title }}</div>
|
<div class="condition-item-title">{{ item.title }}</div>
|
||||||
<div class="search-item-content">
|
<div class="search-item-content">
|
||||||
<div v-for="(option, index) in item.options"
|
<div
|
||||||
:key="option.value"
|
v-for="option in item.options"
|
||||||
:class="searchForm[key].split(',').indexOf(option.value) !== -1 ? 'selected' : ''"
|
:key="option.value"
|
||||||
@click="searchFormChange(key, option.value)"
|
:class="searchForm[key].split(',').indexOf(option.value) !== -1 ? 'selected' : ''"
|
||||||
>{{ option.label }}</div>
|
@click="searchFormChange(key, option.value)"
|
||||||
|
>
|
||||||
|
{{ option.label }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -58,8 +68,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="search-input">
|
<div class="search-input">
|
||||||
<el-input placeholder="请输入查询条件" v-model="searchForm.selectValue" @keyup.enter.native="onSearch" clearable>
|
<el-input v-model="searchForm.selectValue" placeholder="请输入查询条件" clearable @keyup.enter.native="onSearch">
|
||||||
<el-button slot="append" icon="el-icon-search" @click="onSearch"></el-button>
|
<el-button slot="append" icon="el-icon-search" @click="onSearch" />
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -71,49 +81,50 @@
|
|||||||
<div>首页</div>
|
<div>首页</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<loading :loading="loading">数据获取中</loading>
|
<loading :loading="loading">数据获取中</loading>
|
||||||
<has-no-data tips="暂无查询结果" p-class="no-data-class" v-if="list.length === 0" />
|
<has-no-data v-if="list.length === 0" tips="暂无查询结果" p-class="no-data-class" />
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div style="height: calc(100% - 56px + 20px);overflow-y: auto;">
|
<div style="height: calc(100% - 56px + 20px);overflow-y: auto;">
|
||||||
<div v-for="(item,key) in list" :key="key" class="main-box">
|
<div v-for="(item,key) in list" :key="key" class="main-box">
|
||||||
<div class="main-box-title">
|
<div class="main-box-title">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<span v-html="item.indexType === 'stand' ? '国内标准法规' : (item.indexType === 'FOREIGN' ? '国外标准法规' : (item.indexType === 'laws' ? '国内外政策' : (item.indexType === 'bussstand' ? '企业标准' : (item.indexType === 'items' ? '数据化条目' : '动态&资料'))))" class="type-tip"></span>
|
<span class="type-tip" v-html="item.indexType === 'stand' ? '国内标准法规' : (item.indexType === 'FOREIGN' ? '国外标准法规' : (item.indexType === 'laws' ? '国内外政策' : (item.indexType === 'bussstand' ? '企业标准' : (item.indexType === 'items' ? '数据化条目' : '动态&资料'))))" />
|
||||||
<span style="cursor:pointer;" class="main-title" v-html="item.title" @click="jumpDetails(item)"></span>
|
<span style="cursor:pointer;" class="main-title" @click="jumpDetails(item)" v-html="item.title" />
|
||||||
</div>
|
</div>
|
||||||
<span class="more" @click="checkDetail(item)">详情</span>
|
<span class="more" @click="checkDetail(item)">详情</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="main-content" v-html="item.textContent"></div>
|
<div class="main-content" v-html="item.textContent" />
|
||||||
<div v-if="item.indexType !== 'items' && item.indexType !== 'msgdyinfo'" class="time">
|
<div v-if="item.indexType !== 'items' && item.indexType !== 'msgdyinfo'" class="time">
|
||||||
<div style="margin-right: 15px;">发布日期: {{ item.issue_time !== null && item.issue_time !== '' ? $moment(item.issue_time).format('YYYY-MM-DD') : '--' }} </div>
|
<div style="margin-right: 15px;">发布日期: {{ item.issue_time !== null && item.issue_time !== '' ? $moment(item.issue_time).format('YYYY-MM-DD') : '--' }} </div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pagination
|
<pagination
|
||||||
:page="searchForm.page"
|
:page="searchForm.page"
|
||||||
:total="total"
|
:total="total"
|
||||||
@pageChange="pageChange"
|
style="border-radius: 24px;"
|
||||||
@pageSizeChange="pageSizeChange"
|
@pageChange="pageChange"
|
||||||
style="border-radius: 24px;"></pagination>
|
@pageSizeChange="pageSizeChange"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="查看详情"
|
title="查看详情"
|
||||||
:visible.sync="isShowDetail"
|
:visible.sync="isShowDetail"
|
||||||
size="800px">
|
size="800px"
|
||||||
|
>
|
||||||
<loading :loading="detailLoading">数据获取中</loading>
|
<loading :loading="detailLoading">数据获取中</loading>
|
||||||
<div style="height: 500px;overflow: auto;" >
|
<div style="height: 500px;overflow: auto;">
|
||||||
<div v-html="detail.textContent" style="line-height: 20px;"></div>
|
<div style="line-height: 20px;" v-html="detail.textContent" />
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<div v-html="detail.textItems" style="line-height: 20px;"></div>
|
<div style="line-height: 20px;" v-html="detail.textItems" />
|
||||||
</div>
|
</div>
|
||||||
<div slot="footer">
|
<div slot="footer">
|
||||||
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="() => {this.isShowDetail = false}">关闭</el-button>
|
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="() => { this.isShowDetail = false }">关闭</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
@@ -122,11 +133,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import PersonalCenter from '@/components/personalCenter/index.vue'
|
import PersonalCenter from '@/components/personalCenter/index.vue'
|
||||||
export default {
|
export default {
|
||||||
name: "index",
|
name: 'Index',
|
||||||
components: {
|
components: {
|
||||||
PersonalCenter
|
PersonalCenter
|
||||||
},
|
},
|
||||||
data() {
|
data () {
|
||||||
const searchOptions = {
|
const searchOptions = {
|
||||||
// selectType: {
|
// selectType: {
|
||||||
// title: '检索方式',
|
// title: '检索方式',
|
||||||
@@ -207,7 +218,7 @@ export default {
|
|||||||
CLLX: '',
|
CLLX: '',
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
selectValue: ''
|
selectValue: this.$route.params.searchValue || ''
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
list: [],
|
list: [],
|
||||||
@@ -220,7 +231,7 @@ export default {
|
|||||||
detailLoading: false
|
detailLoading: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created () {
|
||||||
this.getDicTypeListCode()
|
this.getDicTypeListCode()
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
@@ -246,8 +257,8 @@ export default {
|
|||||||
this.searchForm[key] = value
|
this.searchForm[key] = value
|
||||||
} else if (key === 'standType') {
|
} else if (key === 'standType') {
|
||||||
this.searchForm[key] = value;
|
this.searchForm[key] = value;
|
||||||
['standSort', 'NYLXCLASS', 'CLLX'].forEach(item => {
|
[ 'standSort', 'NYLXCLASS', 'CLLX' ].forEach(item => {
|
||||||
this.searchForm[item] = ''
|
this.searchForm[item] = ''
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if (value === '') {
|
if (value === '') {
|
||||||
@@ -296,23 +307,23 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
jumpDetails (item) {
|
jumpDetails (item) {
|
||||||
let name = '',pageType = ''
|
let name = '', pageType = ''
|
||||||
switch (item.indexType) {
|
switch (item.indexType) {
|
||||||
case 'stand':
|
case 'stand':
|
||||||
name = 'OtherStandardDetails'
|
name = 'OtherStandardDetails'
|
||||||
pageType = 'INLAND_STAND'
|
pageType = 'INLAND_STAND'
|
||||||
break
|
break
|
||||||
// 企标
|
// 企标
|
||||||
case 'bussstand':
|
case 'bussstand':
|
||||||
name = 'OtherBussStandardDetails'
|
name = 'OtherBussStandardDetails'
|
||||||
pageType = 'BUSINESS_STAND'
|
pageType = 'BUSINESS_STAND'
|
||||||
break
|
break
|
||||||
case 'FOREIGN':
|
case 'FOREIGN':
|
||||||
name = 'OtherStandardDetails'
|
name = 'OtherStandardDetails'
|
||||||
pageType = 'FOREIGN_STAND'
|
pageType = 'FOREIGN_STAND'
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name,
|
name,
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@@ -325,18 +336,18 @@ export default {
|
|||||||
this.$http._getData('sys/dictype/getDicTypeListCode', {}, {}).then(res => {
|
this.$http._getData('sys/dictype/getDicTypeListCode', {}, {}).then(res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
// 能源类型
|
// 能源类型
|
||||||
this.searchOptions.NYLXCLASS.options = [...this.searchOptions.NYLXCLASS.options, ...res.data.NYLXCLASS]
|
this.searchOptions.NYLXCLASS.options = [ ...this.searchOptions.NYLXCLASS.options, ...res.data.NYLXCLASS ]
|
||||||
// 适用车辆类型
|
// 适用车辆类型
|
||||||
this.searchOptions.CLLX.options = [...this.searchOptions.CLLX.options, ...res.data.ENERGYTYPES]
|
this.searchOptions.CLLX.options = [ ...this.searchOptions.CLLX.options, ...res.data.ENERGYTYPES ]
|
||||||
// 标准类别
|
// 标准类别
|
||||||
if (res.data.STANDCLASSIFY) {
|
if (res.data.STANDCLASSIFY) {
|
||||||
const data = res.data.STANDCLASSIFY
|
const data = res.data.STANDCLASSIFY
|
||||||
const standVerify = ["GB","GB/T","QC/T","JT","JB","GA","GJB","HJ"];
|
const standVerify = [ 'GB', 'GB/T', 'QC/T', 'JT', 'JB', 'GA', 'GJB', 'HJ' ];
|
||||||
const bussstandVerify = ["ECE","EU","EC","EEC","ISO","IEC","GTR","CFR",
|
const bussstandVerify = [ 'ECE', 'EU', 'EC', 'EEC', 'ISO', 'IEC', 'GTR', 'CFR',
|
||||||
"JASO","JIS","GSO","GOST","ΓOCT","TP","SASO","UAE","CONTRAN","DENATRAN",
|
'JASO', 'JIS', 'GSO', 'GOST', 'ΓOCT', 'TP', 'SASO', 'UAE', 'CONTRAN', 'DENATRAN',
|
||||||
"ABNT NBR","NBR","INMETRO","CONAMA","Normative Instruction","ADR"];
|
'ABNT NBR', 'NBR', 'INMETRO', 'CONAMA', 'Normative Instruction', 'ADR' ];
|
||||||
const enterpriseVerify = ["Q/FT A","Q/FT B","Q/FT E","Q/FT F","Q/FT G","Q/FT M",
|
const enterpriseVerify = [ 'Q/FT A', 'Q/FT B', 'Q/FT E', 'Q/FT F', 'Q/FT G', 'Q/FT M',
|
||||||
"Q/FT Q","Q/FT R","Q/FT S","Q/FT T","Q/FT V","Q/FT X","Q/FT Y","Q/FT Z","Q/QCBFC"];
|
'Q/FT Q', 'Q/FT R', 'Q/FT S', 'Q/FT T', 'Q/FT V', 'Q/FT X', 'Q/FT Y', 'Q/FT Z', 'Q/QCBFC' ];
|
||||||
// 国内
|
// 国内
|
||||||
const standList = data.filter(item => standVerify.includes(item.label))
|
const standList = data.filter(item => standVerify.includes(item.label))
|
||||||
standList.forEach(item => item.type = 'stand')
|
standList.forEach(item => item.type = 'stand')
|
||||||
@@ -347,7 +358,7 @@ export default {
|
|||||||
const enterpriseList = data.filter(item => enterpriseVerify.includes(item.label))
|
const enterpriseList = data.filter(item => enterpriseVerify.includes(item.label))
|
||||||
enterpriseList.forEach(item => item.type = 'bussstand')
|
enterpriseList.forEach(item => item.type = 'bussstand')
|
||||||
|
|
||||||
this.searchOptions.standSort.options = [...this.searchOptions.standSort.options, ...standList, ...bussstandList, ...enterpriseList]
|
this.searchOptions.standSort.options = [ ...this.searchOptions.standSort.options, ...standList, ...bussstandList, ...enterpriseList ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user