feat: There is no way the

This commit is contained in:
super_liu
2021-10-30 00:52:07 +08:00
parent 185ce228ed
commit 6579b7d166
9 changed files with 6641 additions and 833 deletions
+5 -5
View File
@@ -130,11 +130,11 @@ export default {
menuId: '2b25c67f10abbbadf37d60daaaec54d3' menuId: '2b25c67f10abbbadf37d60daaaec54d3'
}, },
// { {
// title: '国内外政策', title: '国内外政策',
// path: '/foreignRegulationsDatabase', path: '/foreignRegulationsDatabase',
// menuId: '4DB4Y2H3NH' menuId: 'ef02a3b0af9a4b3ede460456a9591ebc'
// }, },
// // // { // // // {
// // // title: '标准制修订管理', // // // title: '标准制修订管理',
// // // path: '/demo2One' // // // path: '/demo2One'
@@ -2,8 +2,8 @@
<template> <template>
<div class="attribute-custom v-class"> <div class="attribute-custom v-class">
<div class="action-bar1"> <div class="action-bar1">
<el-button class="common-button-primary add-button" size="mini" type="primary" v-btn-permission="'H9WU2ZJHG5WNTY5MDUXH'" @click="showAddModel"><i class="el-icon-plus"></i>新增</el-button> <el-button class="common-button-primary add-button" size="mini" type="primary" v-btn-permission="''" @click="showAddModel"><i class="el-icon-plus"></i>新增</el-button>
<el-button class="common-button-default" size="mini" @click="showDisplayLocationDialog" v-btn-permission="'XT94XKWBCTELWNJQVYCU'">展示区域管理</el-button> <el-button class="common-button-default" size="mini" @click="showDisplayLocationDialog" v-btn-permission="''">展示区域管理</el-button>
</div> </div>
<loading :loading="attributeDataLoading">数据处理中</loading> <loading :loading="attributeDataLoading">数据处理中</loading>
<div class="content"> <div class="content">
@@ -282,7 +282,7 @@
</template> </template>
<script> <script>
const sarType = 'FOREIGN_LAWS' const sarType = 'LAWS_STAND'
export default { export default {
name: 'attribute-custom', name: 'attribute-custom',
data () { data () {
@@ -352,7 +352,7 @@ export default {
showRegionId: '', showRegionId: '',
selVal: '', selVal: '',
isSearch: '1', isSearch: '1',
sarType: 'FOREIGN_LAWS', sarType: 'LAWS_STAND',
isWarn: '1' isWarn: '1'
}, },
attrTypeOptions: [ attrTypeOptions: [
@@ -367,12 +367,12 @@ export default {
], ],
sarTypeOptions: [ sarTypeOptions: [
// { label: '国内政策', value: 'INLAND_LAWS' }, // { label: '国内政策', value: 'INLAND_LAWS' },
{ label: '国内外政策', value: 'FOREIGN_LAWS' } { label: '国内外政策', value: 'LAWS_STAND' }
// { label: '国内外政策', value: 'LAWS' } // { label: '国内外政策', value: 'LAWS' }
], ],
sarTypeLocationOptions: [ sarTypeLocationOptions: [
// { label: '国内政策', value: 'INLAND_LAWS' }, // { label: '国内政策', value: 'INLAND_LAWS' },
{ label: '国内外政策', value: 'FOREIGN_LAWS' } { label: '国内外政策', value: 'LAWS_STAND' }
], ],
isMustOptions: [ isMustOptions: [
{ label: '是', value: '0' }, { label: '是', value: '0' },
@@ -710,7 +710,7 @@ export default {
let texts = '' let texts = ''
if (type === 'INLAND_LAWS') { if (type === 'INLAND_LAWS') {
texts = '国内政策' texts = '国内政策'
} else if (type === 'FOREIGN_LAWS') { } else if (type === 'LAWS_STAND') {
texts = '国内外政策' texts = '国内外政策'
} else if (type === 'LAWS') { } else if (type === 'LAWS') {
texts = '国内外通用政策' texts = '国内外通用政策'
@@ -6,11 +6,11 @@
<stand v-if="tabValue === 'stand'"></stand> <stand v-if="tabValue === 'stand'"></stand>
</div> </div>
</el-tab-pane> </el-tab-pane>
<!-- <el-tab-pane label="国内外政策" name="laws"> <el-tab-pane label="国内外政策" name="laws">
<div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;"> <div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
<laws v-if="tabValue === 'laws'"></laws> <laws v-if="tabValue === 'laws'"></laws>
</div> </div>
</el-tab-pane>--> </el-tab-pane>
<el-tab-pane label="企业标准库" name="buss"> <el-tab-pane label="企业标准库" name="buss">
<div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;"> <div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
<buss v-if="tabValue === 'buss'"></buss> <buss v-if="tabValue === 'buss'"></buss>
File diff suppressed because it is too large Load Diff
@@ -50,10 +50,10 @@
<div class="left-contents">标题{{ item.collectTitle }}</div> <div class="left-contents">标题{{ item.collectTitle }}</div>
</el-tooltip> </el-tooltip>
</el-col> </el-col>
<el-col :span="4" :offset="3"> 创建时间{{item.creationTime}}</el-col> <el-col :span="4" :offset="3"> 创建时间{{getDate(item.creationTime)}}</el-col>
</div> </div>
<el-col :span="4"> <el-col :span="4">
<el-button size="mini" style="margin-top: -5px; border: 1px dashed #dcdee2" @click="cancelLaws(item.id)" v-btn-permission="'66SSMTSGN3UKCQB4LDRD'">{{$t('m.cancelCollection')}}</el-button> <el-button size="mini" style="margin-top: -5px; border: 1px dashed #dcdee2" @click="cancelLaws(item.id)" v-btn-permission="''">{{$t('m.cancelCollection')}}</el-button>
<!-- <el-button size="mini" style="margin-top: -5px; border: 1px dashed #dcdee2" @click="writeLawsNotes(item,index1)">{{item.seeBtn}}</el-button>--> <!-- <el-button size="mini" style="margin-top: -5px; border: 1px dashed #dcdee2" @click="writeLawsNotes(item,index1)">{{item.seeBtn}}</el-button>-->
</el-col> </el-col>
</el-row> </el-row>
@@ -144,6 +144,9 @@ export default {
} }
}, },
methods: { methods: {
getDate (date) {
return date != null ? date.substring(0, date.indexOf(' ')) : ''
},
// 对话框关闭清除表单 // 对话框关闭清除表单
noteChange (type) { noteChange (type) {
if (!type) { if (!type) {
@@ -271,33 +274,17 @@ export default {
this.$http.get('person/personCollect/page', { this.$http.get('person/personCollect/page', {
pageNo: this.page, pageNo: this.page,
pageSize: this.$store.getters.userInfo.configContent, pageSize: this.$store.getters.userInfo.configContent,
modeType: 'LAWS', modeType: 'LAWS_STAND',
collectTitle: this.search.collectionLaws, collectTitle: this.search.collectionLaws,
userId: this.$store.getters.userInfo.userId userId: this.$store.getters.userInfo.userId
}, { }, {
_this: this, _this: this,
loading: 'loading' loading: 'loading'
}, res => { }, res => {
// for (let i = 0; i < res.data.list.length; i++) {
// res.data.list[i].check = false
// res.data.list[i].checked = false
// res.data.list[i].seeBtn = '查看笔记'
// }
this.lawsList = [] this.lawsList = []
res.data.list.map((item, index) => { this.lawsList = res.data.records
item.checked = false this.total = res.data.total
})
this.lawsList = res.data.list
this.total = res.data.count
this.contentOpen = true this.contentOpen = true
// if (this.saveNote !== '') {
// this.lawsList[this.saveNote].check = true
// if (this.lawsList[this.saveNote].check === true) {
// this.lawsList[this.saveNote].seeBtn = '关闭笔记'
// } else {
// this.lawsList[this.saveNote].seeBtn = '查看笔记'
// }
// }
}, e => {}) }, e => {})
}, },
// 取消收藏 // 取消收藏
@@ -25,10 +25,12 @@ export default {
// { // {
// title: '已收藏的动态&资料 ', // title: '已收藏的动态&资料 ',
// name: 'CollectionDynamics' // name: 'CollectionDynamics'
// }, { // },
// title: '已收藏的政策', {
// name: 'CollectionLaws' title: '已收藏的政策',
// }, { name: 'CollectionLaws'
},
// {
// title: '已收藏的标准拆分', // title: '已收藏的标准拆分',
// name: 'CollectionBreak' // name: 'CollectionBreak'
// } // }
File diff suppressed because it is too large Load Diff
@@ -36,6 +36,8 @@ export default {
}, },
data () { data () {
return { return {
filterText: '', // 企业标准库过滤
treeList: [],
visibleOrgTable: false, visibleOrgTable: false,
orgTableVal: '', orgTableVal: '',
orgTableValName: '', orgTableValName: '',
+12 -1
View File
@@ -1444,7 +1444,7 @@ const routes = [
meta: { meta: {
requireAuth: true, requireAuth: true,
title: '国内外政策', title: '国内外政策',
menuId: '4DB4Y2H3NH' menuId: 'ef02a3b0af9a4b3ede460456a9591ebc'
} }
}, },
{ {
@@ -1970,6 +1970,17 @@ const routes = [
title: '企标详情' title: '企标详情'
} }
}, },
{
path: '/otherLawsStandDetails/:id/:pageType',
name: 'OtherLawsStandDetails',
component: () =>
import('@/pages/details/otherLawsStandDetails'),
meta: {
requireAuth: true,
isBoolean: true,
title: '政策详情'
}
},
{ {
path: '/itemsDetails', path: '/itemsDetails',
name: 'itemsDetails', name: 'itemsDetails',