标准法规清单
This commit is contained in:
@@ -388,13 +388,13 @@ export default {
|
|||||||
// // }
|
// // }
|
||||||
// ]
|
// ]
|
||||||
// },
|
// },
|
||||||
// {
|
{
|
||||||
// title: '搜索中心',
|
title: '搜索中心',
|
||||||
// path: '/advancedSearch',
|
path: '/advancedSearch',
|
||||||
// 'icon-class': 'search',
|
'icon-class': 'search',
|
||||||
// menuId: 'K9BAYUPZBC',
|
menuId: 'K9BAYUPZBC',
|
||||||
// isChildren: true // 判断没有子菜单
|
isChildren: true // 判断没有子菜单
|
||||||
// },
|
},
|
||||||
// {
|
// {
|
||||||
// title: '标准比对库',
|
// title: '标准比对库',
|
||||||
// path: '/standardComparisonLibrary',
|
// path: '/standardComparisonLibrary',
|
||||||
|
|||||||
+27
-322
@@ -6,7 +6,7 @@
|
|||||||
<el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form" >
|
<el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form" >
|
||||||
<el-form-item label="国家/地区" class="search-item search-item-last">
|
<el-form-item label="国家/地区" class="search-item search-item-last">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="sarSarAccessEOSearch.country"
|
v-model="sarSarAccessEOSearch.countryArea"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
filterable
|
filterable
|
||||||
>
|
>
|
||||||
@@ -21,42 +21,26 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="清单名称" class="search-item search-item-last">
|
<el-form-item label="清单名称" class="search-item search-item-last">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="sarSarAccessEOSearch.ListName"
|
v-model="sarSarAccessEOSearch.detailedListName"
|
||||||
placeholder="请输入清单名称"
|
placeholder="请输入清单名称"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
:loading="searching"
|
:loading="searching"
|
||||||
icon="el-icon-search"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
size="small"
|
size="small"
|
||||||
@click="searchSarAccessBtn">
|
@click="searchSarAccessBtn">
|
||||||
|
查询
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
icon="el-icon-refresh-left"
|
|
||||||
size="small"
|
size="small"
|
||||||
@click="clearSearch"></el-button>
|
@click="clearSearch">清空</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
class="common-button-primary"
|
|
||||||
@click="selectMoreBtn"
|
|
||||||
size="mini">
|
|
||||||
<i class="iconfont"></i>高级查询</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
<AdvancedQuery
|
|
||||||
:isAdvancedSearch.sync="isAdvancedSearch"
|
|
||||||
:twoOptions="twoOptions"
|
|
||||||
:threeOptions="threeOptions"
|
|
||||||
@twoSelectChange="twoSelectChange"
|
|
||||||
@getDomesticStandardTableBtn="getDomesticStandardTableBtn"
|
|
||||||
></AdvancedQuery>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -94,12 +78,12 @@
|
|||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="countryShow"
|
prop="countryArea"
|
||||||
label="国家/地区"
|
label="国家/地区"
|
||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="accessContent"
|
prop="detailedListName"
|
||||||
label="清单名称"
|
label="清单名称"
|
||||||
align="center"
|
align="center"
|
||||||
width="260px"
|
width="260px"
|
||||||
@@ -109,7 +93,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="state"
|
prop="detailedListState"
|
||||||
label="清单状态"
|
label="清单状态"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -118,32 +102,32 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="version"
|
prop="detailedListVesion"
|
||||||
label="清单版本"
|
label="清单版本"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
|
<span v-if="scope.row.detailedListVesion != null && scope.row.detailedListVesion !== ''">V{{ scope.row.detailedListVesion }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="version"
|
prop="applicationScope"
|
||||||
label="适用领域"
|
label="适用领域"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
|
<span v-if="scope.row.applicationScope != null && scope.row.applicationScope !== ''">V{{ scope.row.applicationScope }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="modifyTime"
|
prop="updateTime"
|
||||||
label="更新时间"
|
label="更新时间"
|
||||||
sortable
|
sortable
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>{{ scope.row.modifyTime ? scope.row.modifyTime.split(' ')[0] : '' }}</div>
|
<div>{{ scope.row.updateTime ? scope.row.updateTime.split(' ')[0] : '' }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="uname"
|
prop="updatePeople"
|
||||||
label="更新人"
|
label="更新人"
|
||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -156,7 +140,6 @@
|
|||||||
<el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="'43UVH8AWGJLFDZT9WNTZ'">查看</el-dropdown-item>
|
<el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="'43UVH8AWGJLFDZT9WNTZ'">查看</el-dropdown-item>
|
||||||
<el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'HYY8NGY2RYT3VEDRSK5V'">编辑</el-dropdown-item>
|
<el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'HYY8NGY2RYT3VEDRSK5V'">编辑</el-dropdown-item>
|
||||||
<el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="'X9HP9YQL2BRKBFCDMZQT'">删除</el-dropdown-item>
|
<el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="'X9HP9YQL2BRKBFCDMZQT'">删除</el-dropdown-item>
|
||||||
<!-- <el-dropdown-item :command="[scope.row, '流程']">流程</el-dropdown-item>-->
|
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
@@ -170,67 +153,20 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'listOfCountries',
|
name: "listOfCountries",
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
isAdvancedSearch: false,
|
|
||||||
twoOptions: [
|
|
||||||
{
|
|
||||||
label: '清单名称',
|
|
||||||
value: 'access_content',
|
|
||||||
type: 'INPUT',
|
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '国家/地区',
|
|
||||||
value: 'country',
|
|
||||||
type: 'SEL_OPTION',
|
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
// {
|
|
||||||
// label: '文本说明',
|
|
||||||
// value: 'remark',
|
|
||||||
// type: 'INPUT',
|
|
||||||
// disabled: false
|
|
||||||
// },
|
|
||||||
{
|
|
||||||
label: '清单状态',
|
|
||||||
value: 'state',
|
|
||||||
type: 'SEL_OPTION',
|
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '更新人',
|
|
||||||
value: 'creation_user',
|
|
||||||
type : 'SEL_OPTION',
|
|
||||||
selVal : 'USERLIST',
|
|
||||||
disabled: false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
threeOptions: [],
|
|
||||||
showTableFlag: true,
|
|
||||||
dataLoading: false,
|
|
||||||
searching: false,
|
searching: false,
|
||||||
loadData: false,
|
|
||||||
moreSearchBtn: true,
|
|
||||||
moreSearchShow: false,
|
|
||||||
exportTestItemNameFlag: false, // 导出模态框
|
|
||||||
exportName: '',
|
|
||||||
total: 0,
|
total: 0,
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 10,
|
rows: 10,
|
||||||
// 查询相关参数
|
// 查询相关参数
|
||||||
sarSarAccessEOSearch: {
|
sarSarAccessEOSearch: {
|
||||||
ListName: '',
|
countryArea: '',
|
||||||
country: '',
|
detailedListName: '',
|
||||||
accessContent: '',
|
|
||||||
energyKind: '',
|
|
||||||
applyArctic: '',
|
|
||||||
region: '',
|
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
validFlag: 0
|
|
||||||
},
|
},
|
||||||
sarAccessListDatas: [],
|
sarAccessListDatas: [],
|
||||||
sarAccessListTotal: 0,
|
sarAccessListTotal: 0,
|
||||||
@@ -324,66 +260,14 @@
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 主页 搜索条件 区域下拉 on-change事件
|
|
||||||
regionChange (value) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
this.$http.get('sys/dictype/pageRegion', {
|
|
||||||
dicTypeCode: value
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
this.countryOptions = res.data.list
|
|
||||||
this.sarSarAccessEOSearch.country = ''
|
|
||||||
// eslint-disable-next-line
|
|
||||||
reslove()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 主页 新增、编辑 准入信息 区域下拉 on-change事件
|
|
||||||
drawerRegionChange (value) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
this.$http.get('sys/dictype/pageRegion', {
|
|
||||||
dicTypeCode: value
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
this.drawerCountryOptions = res.data.list
|
|
||||||
this.sarAccessEO.country = ''
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 搜索
|
// 搜索
|
||||||
searchSarAccessBtn () {
|
searchSarAccessBtn () {
|
||||||
this.page = 1
|
this.page = 1
|
||||||
this.searchSarAccess()
|
this.searchSarAccess()
|
||||||
},
|
},
|
||||||
// 分页查询相关
|
//分页查询
|
||||||
searchSarAccess (advanceSearch) {
|
searchSarAccess (advanceSearch) {
|
||||||
const obj = advanceSearch || this.sarSarAccessEOSearch
|
|
||||||
if (advanceSearch) {
|
|
||||||
this.sarSarAccessEOSearch.advanceSearchVOStr = advanceSearch.advanceSearchVOStr
|
|
||||||
}
|
|
||||||
// obj.country = this.sarSarAccessEOSearch.country.join()
|
|
||||||
this.$http.get('lawss/sarSarAccess/page', obj, {
|
|
||||||
_this: this,
|
|
||||||
loading: 'loading'
|
|
||||||
}, res => {
|
|
||||||
this.sarAccessListDatas = res.data.list
|
|
||||||
this.sarAccessListTotal = res.data.count
|
|
||||||
if ((this.sarAccessListDatas.length === 0 || this.sarAccessListDatas === []) && this.sarSarAccessEOSearch.page !== 1) {
|
|
||||||
this.pageChange(1)
|
|
||||||
}
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.selection.doLayout()
|
|
||||||
})
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
// this.$refs.selection.selectAll(false)
|
|
||||||
},
|
},
|
||||||
pageChange (page) {
|
pageChange (page) {
|
||||||
this.sarSarAccessEOSearch.page = page
|
this.sarSarAccessEOSearch.page = page
|
||||||
@@ -403,90 +287,15 @@
|
|||||||
this.sarSarAccessEOSearch.page = 1
|
this.sarSarAccessEOSearch.page = 1
|
||||||
search && this.searchSarAccess()
|
search && this.searchSarAccess()
|
||||||
},
|
},
|
||||||
// 查看跳转详情页
|
|
||||||
detailsStandard (item) {
|
|
||||||
if (item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND') {
|
|
||||||
if (this.$hasPermission('SSA6WR4HV8')) {
|
|
||||||
this.$store.commit('setDetailMap', this.$route.path)
|
|
||||||
let routeUrl = this.$router.resolve({
|
|
||||||
name: 'OtherStandardDetails',
|
|
||||||
params: {
|
|
||||||
id: item.resId,
|
|
||||||
pageType: item.sarType
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(routeUrl.href, '_blank')
|
|
||||||
} else {
|
|
||||||
this.$message.warning('无权访问')
|
|
||||||
}
|
|
||||||
} else if (item.sarType === 'INLAND_LAWS' || item.sarType === 'FOREIGN_LAWS') {
|
|
||||||
if (this.$hasPermission('A2HDHMEA6W')) {
|
|
||||||
this.$store.commit('setDetailMap', this.$route.path)
|
|
||||||
let routeUrl = this.$router.resolve({
|
|
||||||
name: 'OtherLawsDetails',
|
|
||||||
params: {
|
|
||||||
id: item.resId,
|
|
||||||
pageType: item.sarType
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(routeUrl.href, '_blank')
|
|
||||||
} else {
|
|
||||||
this.$message.warning('无权访问')
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (this.$hasPermission('YJUHC32R7G')) {
|
|
||||||
this.$store.commit('setDetailMap', this.$route.path)
|
|
||||||
let routeUrl = this.$router.resolve({
|
|
||||||
name: 'OtherBussStandardDetails',
|
|
||||||
params: {
|
|
||||||
id: item.resId,
|
|
||||||
pageType: 'BUSINESS_STAND'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(routeUrl.href, '_blank')
|
|
||||||
} else {
|
|
||||||
this.$message.warning('无权访问')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 新增相关
|
// 新增相关
|
||||||
openModal (row, optType) {
|
openModal (row, optType) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'ListOfStandardsAndRegulationsDetails'
|
name: 'ListOfStandardsAndRegulationsDetails'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
swapItems (arr, index1, index2) {
|
// 删除
|
||||||
arr[index1] = arr.splice(index2, 1, arr[index1])[0]
|
|
||||||
return arr
|
|
||||||
},
|
|
||||||
// 删除Access
|
|
||||||
deleteSarAccess (flag, id) {
|
deleteSarAccess (flag, id) {
|
||||||
if (flag === 'delOne') {
|
|
||||||
this.selectedList = []
|
|
||||||
this.selectedList[0] = id
|
|
||||||
}
|
|
||||||
if (this.selectedList.length < 1) {
|
|
||||||
this.$message.warning('请选择要删除的数据')
|
|
||||||
} else {
|
|
||||||
this.$confirm('确认删除选中数据?', '确认删除', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
confirmButtonClass: 'common-button-primary',
|
|
||||||
roundButton: true,
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
this.$http.post('lawss/sarSarAccess/deleteSarAccess', {ids: this.selectedList.join(',')}, {
|
|
||||||
_this: this,
|
|
||||||
loading: 'delLoading'
|
|
||||||
}, res => {
|
|
||||||
this.searchSarAccess()
|
|
||||||
this.selectedList = []
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
}).catch(() => {})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 表格选择框
|
// 表格选择框
|
||||||
selectOne (alldata, nowdata) {
|
selectOne (alldata, nowdata) {
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
@@ -494,16 +303,6 @@
|
|||||||
this.selectedList.push(alldata[i]['id'])
|
this.selectedList.push(alldata[i]['id'])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 根据准入id查询标准法规详情
|
|
||||||
selectInfobyAccid () {
|
|
||||||
this.$http.get('lawss/sarSarAccessInfo/selectSarAccessInfoByAccessId', this.sarAccessInfoSearch, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.sarAccessInfoList = res.data.list.SKILL
|
|
||||||
this.seeSarAccessInfoList = res.data.list.ADMIN
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 点击 table查看按钮 事件
|
// 点击 table查看按钮 事件
|
||||||
showTable (item) {
|
showTable (item) {
|
||||||
sessionStorage.setItem('accessRow', JSON.stringify(item))
|
sessionStorage.setItem('accessRow', JSON.stringify(item))
|
||||||
@@ -524,113 +323,19 @@
|
|||||||
id: item.id
|
id: item.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// this.showModalTitle = '编辑准入标准法规'
|
|
||||||
// // 赋值准入信息
|
|
||||||
// this.drawerRegionChange(row.region).then(() => {
|
|
||||||
// this.sarAccessEO.country = row.country.split(',') // 国家
|
|
||||||
// })
|
|
||||||
// this.sarAccessEO.accessContent = row.accessContent
|
|
||||||
// this.sarAccessEO.applyArctic = row.applyArctic
|
|
||||||
// this.sarAccessEO.energyKind = row.energyKind
|
|
||||||
// this.sarAccessEO.region = row.region // 区域
|
|
||||||
// this.sarAccessEO.id = row.id
|
|
||||||
// // 数据搜索
|
|
||||||
// this.sarAccessInfoSearch.validFlag = 0
|
|
||||||
// this.sarAccessInfoSearch.accessId = row.id
|
|
||||||
// this.sarAccessInfoSearch.dataSource = 'INLAND_STAND'
|
|
||||||
// // 查询数据
|
|
||||||
// this.selectInfobyAccid()
|
|
||||||
// this.showModalFlag = true
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 高级检索
|
|
||||||
*/
|
|
||||||
selectMoreBtn () {
|
|
||||||
this.isAdvancedSearch = true
|
|
||||||
this.threeOptions = []
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 高级检索
|
|
||||||
* 检索项修改时为了匹配对应的下拉菜单的
|
|
||||||
*/
|
|
||||||
twoSelectChange (val, obj) {
|
|
||||||
if (val === 'country') {
|
|
||||||
this.threeOptions = this.countryOptions
|
|
||||||
} else if (val === 'state') {
|
|
||||||
this.threeOptions = [
|
|
||||||
{
|
|
||||||
label: '未发布',
|
|
||||||
value: '1'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '已发布',
|
|
||||||
value: '2'
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 获取工作组信息下拉框信息
|
|
||||||
getGzzOption () {
|
|
||||||
this.$http.get('lawss/sarGroupMenu/queryGroup', '', {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
let gzzxxOptions = []
|
|
||||||
res.data.map(item => {
|
|
||||||
gzzxxOptions.push({
|
|
||||||
value: item.id,
|
|
||||||
label: item.menuName
|
|
||||||
})
|
|
||||||
})
|
|
||||||
this.allSelectOptions.GZZXX = gzzxxOptions
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 高级检索搜索
|
|
||||||
getDomesticStandardTableBtn (advancedSearch) {
|
|
||||||
let formData = {}
|
|
||||||
formData.page = 1
|
|
||||||
formData.advanceSearchStr = ''
|
|
||||||
formData.advanceSearchVOStr = JSON.stringify(advancedSearch) || ''
|
|
||||||
formData.pageSize = this.$store.getters.userInfo.configContent
|
|
||||||
formData.validFlag = 0
|
|
||||||
// 重置页码
|
|
||||||
this.clearSearch(false)
|
|
||||||
this.searchSarAccess(formData)
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
components: {},
|
|
||||||
|
|
||||||
props: {},
|
|
||||||
|
|
||||||
computed: {},
|
|
||||||
|
|
||||||
watch: {},
|
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
// 分页查询数据
|
// 分页查询数据
|
||||||
this.searchSarAccess()
|
this.searchSarAccess()
|
||||||
// this.loadDicTypeDatas()
|
},
|
||||||
// 从数据库中查询各下拉框数据
|
};
|
||||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.countryOptions = res.data.COUNTRY // 国家
|
|
||||||
this.applyArcticOptions = res.data.PRODUCTTYPE || []
|
|
||||||
this.energyKindOptions = res.data.ENERGYTYPES || []
|
|
||||||
this.categoryOptions = res.data.CATEGORY || []
|
|
||||||
this.applyAuthOptions = res.data.PROVETYPE || [] // 认证类型
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
@import '~@/assets/styles/mixins';
|
@import '~@/assets/styles/mixins';
|
||||||
#listOfCountries {
|
#listOfCountries {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -672,5 +377,5 @@
|
|||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
<!-- 标准法规库 - 其他清单 -->
|
<!-- 标准法规库 - 其他清单 -->
|
||||||
<template>
|
<template>
|
||||||
<div id="listOther" class="v-class">
|
<div id="listOfCountries" class="v-class">
|
||||||
<div class="search-area">
|
<div class="search-area">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form" >
|
<el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form" >
|
||||||
|
<el-form-item label="清单类别" class="search-item search-item-last">
|
||||||
|
<el-input
|
||||||
|
v-model="sarSarAccessEOSearch.detailedList"
|
||||||
|
placeholder="请输入清单类别"
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="清单名称" class="search-item search-item-last">
|
<el-form-item label="清单名称" class="search-item search-item-last">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="sarSarAccessEOSearch.ListName"
|
v-model="sarSarAccessEOSearch.ListName"
|
||||||
@@ -13,35 +19,19 @@
|
|||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
:loading="searching"
|
:loading="searching"
|
||||||
icon="el-icon-search"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
size="small"
|
size="small"
|
||||||
@click="searchSarAccessBtn">
|
@click="searchSarAccessBtn">
|
||||||
|
查询
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
icon="el-icon-refresh-left"
|
|
||||||
size="small"
|
size="small"
|
||||||
@click="clearSearch"></el-button>
|
@click="clearSearch">清空</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
class="common-button-primary"
|
|
||||||
@click="selectMoreBtn"
|
|
||||||
size="mini">
|
|
||||||
<i class="iconfont"></i>高级查询</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
<AdvancedQuery
|
|
||||||
:isAdvancedSearch.sync="isAdvancedSearch"
|
|
||||||
:twoOptions="twoOptions"
|
|
||||||
:threeOptions="threeOptions"
|
|
||||||
@twoSelectChange="twoSelectChange"
|
|
||||||
@getDomesticStandardTableBtn="getDomesticStandardTableBtn"
|
|
||||||
></AdvancedQuery>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -79,12 +69,12 @@
|
|||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="countryShow"
|
prop="detailedList"
|
||||||
label="清单类别"
|
label="清单类别"
|
||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="accessContent"
|
prop="detailedListName"
|
||||||
label="清单名称"
|
label="清单名称"
|
||||||
align="center"
|
align="center"
|
||||||
width="260px"
|
width="260px"
|
||||||
@@ -94,7 +84,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="state"
|
prop="detailedListState"
|
||||||
label="清单状态"
|
label="清单状态"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -103,32 +93,32 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="version"
|
prop="detailedListVesion"
|
||||||
label="清单版本"
|
label="清单版本"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
|
<span v-if="scope.row.detailedListVesion != null && scope.row.detailedListVesion !== ''">V{{ scope.row.detailedListVesion }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="version"
|
prop="applicationScope"
|
||||||
label="适用领域"
|
label="适用领域"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
|
<span v-if="scope.row.applicationScope != null && scope.row.applicationScope !== ''">V{{ scope.row.applicationScope }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="modifyTime"
|
prop="updateTime"
|
||||||
label="更新时间"
|
label="更新时间"
|
||||||
sortable
|
sortable
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>{{ scope.row.modifyTime ? scope.row.modifyTime.split(' ')[0] : '' }}</div>
|
<div>{{ scope.row.updateTime ? scope.row.updateTime.split(' ')[0] : '' }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="uname"
|
prop="updatePeople"
|
||||||
label="更新人"
|
label="更新人"
|
||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -141,7 +131,6 @@
|
|||||||
<el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="'43UVH8AWGJLFDZT9WNTZ'">查看</el-dropdown-item>
|
<el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="'43UVH8AWGJLFDZT9WNTZ'">查看</el-dropdown-item>
|
||||||
<el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'HYY8NGY2RYT3VEDRSK5V'">编辑</el-dropdown-item>
|
<el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'HYY8NGY2RYT3VEDRSK5V'">编辑</el-dropdown-item>
|
||||||
<el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="'X9HP9YQL2BRKBFCDMZQT'">删除</el-dropdown-item>
|
<el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="'X9HP9YQL2BRKBFCDMZQT'">删除</el-dropdown-item>
|
||||||
<!-- <el-dropdown-item :command="[scope.row, '流程']">流程</el-dropdown-item>-->
|
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
@@ -155,53 +144,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'listOther',
|
name: "listOther",
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
isAdvancedSearch: false,
|
|
||||||
twoOptions: [
|
|
||||||
{
|
|
||||||
label: '清单名称',
|
|
||||||
value: 'access_content',
|
|
||||||
type: 'INPUT',
|
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '国家/地区',
|
|
||||||
value: 'country',
|
|
||||||
type: 'SEL_OPTION',
|
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
// {
|
|
||||||
// label: '文本说明',
|
|
||||||
// value: 'remark',
|
|
||||||
// type: 'INPUT',
|
|
||||||
// disabled: false
|
|
||||||
// },
|
|
||||||
{
|
|
||||||
label: '清单状态',
|
|
||||||
value: 'state',
|
|
||||||
type: 'SEL_OPTION',
|
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '更新人',
|
|
||||||
value: 'creation_user',
|
|
||||||
type : 'SEL_OPTION',
|
|
||||||
selVal : 'USERLIST',
|
|
||||||
disabled: false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
threeOptions: [],
|
|
||||||
showTableFlag: true,
|
|
||||||
dataLoading: false,
|
|
||||||
searching: false,
|
searching: false,
|
||||||
loadData: false,
|
|
||||||
moreSearchBtn: true,
|
|
||||||
moreSearchShow: false,
|
|
||||||
exportTestItemNameFlag: false, // 导出模态框
|
|
||||||
exportName: '',
|
|
||||||
total: 0,
|
total: 0,
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 10,
|
rows: 10,
|
||||||
@@ -309,66 +256,14 @@
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 主页 搜索条件 区域下拉 on-change事件
|
|
||||||
regionChange (value) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
this.$http.get('sys/dictype/pageRegion', {
|
|
||||||
dicTypeCode: value
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
this.countryOptions = res.data.list
|
|
||||||
this.sarSarAccessEOSearch.country = ''
|
|
||||||
// eslint-disable-next-line
|
|
||||||
reslove()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 主页 新增、编辑 准入信息 区域下拉 on-change事件
|
|
||||||
drawerRegionChange (value) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
this.$http.get('sys/dictype/pageRegion', {
|
|
||||||
dicTypeCode: value
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
this.drawerCountryOptions = res.data.list
|
|
||||||
this.sarAccessEO.country = ''
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 搜索
|
// 搜索
|
||||||
searchSarAccessBtn () {
|
searchSarAccessBtn () {
|
||||||
this.page = 1
|
this.page = 1
|
||||||
this.searchSarAccess()
|
this.searchSarAccess()
|
||||||
},
|
},
|
||||||
// 分页查询相关
|
//分页查询
|
||||||
searchSarAccess (advanceSearch) {
|
searchSarAccess (advanceSearch) {
|
||||||
const obj = advanceSearch || this.sarSarAccessEOSearch
|
|
||||||
if (advanceSearch) {
|
|
||||||
this.sarSarAccessEOSearch.advanceSearchVOStr = advanceSearch.advanceSearchVOStr
|
|
||||||
}
|
|
||||||
// obj.country = this.sarSarAccessEOSearch.country.join()
|
|
||||||
this.$http.get('lawss/sarSarAccess/page', obj, {
|
|
||||||
_this: this,
|
|
||||||
loading: 'loading'
|
|
||||||
}, res => {
|
|
||||||
this.sarAccessListDatas = res.data.list
|
|
||||||
this.sarAccessListTotal = res.data.count
|
|
||||||
if ((this.sarAccessListDatas.length === 0 || this.sarAccessListDatas === []) && this.sarSarAccessEOSearch.page !== 1) {
|
|
||||||
this.pageChange(1)
|
|
||||||
}
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.selection.doLayout()
|
|
||||||
})
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
// this.$refs.selection.selectAll(false)
|
|
||||||
},
|
},
|
||||||
pageChange (page) {
|
pageChange (page) {
|
||||||
this.sarSarAccessEOSearch.page = page
|
this.sarSarAccessEOSearch.page = page
|
||||||
@@ -388,90 +283,15 @@
|
|||||||
this.sarSarAccessEOSearch.page = 1
|
this.sarSarAccessEOSearch.page = 1
|
||||||
search && this.searchSarAccess()
|
search && this.searchSarAccess()
|
||||||
},
|
},
|
||||||
// 查看跳转详情页
|
|
||||||
detailsStandard (item) {
|
|
||||||
if (item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND') {
|
|
||||||
if (this.$hasPermission('SSA6WR4HV8')) {
|
|
||||||
this.$store.commit('setDetailMap', this.$route.path)
|
|
||||||
let routeUrl = this.$router.resolve({
|
|
||||||
name: 'OtherStandardDetails',
|
|
||||||
params: {
|
|
||||||
id: item.resId,
|
|
||||||
pageType: item.sarType
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(routeUrl.href, '_blank')
|
|
||||||
} else {
|
|
||||||
this.$message.warning('无权访问')
|
|
||||||
}
|
|
||||||
} else if (item.sarType === 'INLAND_LAWS' || item.sarType === 'FOREIGN_LAWS') {
|
|
||||||
if (this.$hasPermission('A2HDHMEA6W')) {
|
|
||||||
this.$store.commit('setDetailMap', this.$route.path)
|
|
||||||
let routeUrl = this.$router.resolve({
|
|
||||||
name: 'OtherLawsDetails',
|
|
||||||
params: {
|
|
||||||
id: item.resId,
|
|
||||||
pageType: item.sarType
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(routeUrl.href, '_blank')
|
|
||||||
} else {
|
|
||||||
this.$message.warning('无权访问')
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (this.$hasPermission('YJUHC32R7G')) {
|
|
||||||
this.$store.commit('setDetailMap', this.$route.path)
|
|
||||||
let routeUrl = this.$router.resolve({
|
|
||||||
name: 'OtherBussStandardDetails',
|
|
||||||
params: {
|
|
||||||
id: item.resId,
|
|
||||||
pageType: 'BUSINESS_STAND'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(routeUrl.href, '_blank')
|
|
||||||
} else {
|
|
||||||
this.$message.warning('无权访问')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 新增相关
|
// 新增相关
|
||||||
openModal (row, optType) {
|
openModal (row, optType) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'ListOfStandardsAndRegulationsDetails'
|
name: 'ListOfStandardsAndRegulationsDetails'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
swapItems (arr, index1, index2) {
|
// 删除
|
||||||
arr[index1] = arr.splice(index2, 1, arr[index1])[0]
|
|
||||||
return arr
|
|
||||||
},
|
|
||||||
// 删除Access
|
|
||||||
deleteSarAccess (flag, id) {
|
deleteSarAccess (flag, id) {
|
||||||
if (flag === 'delOne') {
|
|
||||||
this.selectedList = []
|
|
||||||
this.selectedList[0] = id
|
|
||||||
}
|
|
||||||
if (this.selectedList.length < 1) {
|
|
||||||
this.$message.warning('请选择要删除的数据')
|
|
||||||
} else {
|
|
||||||
this.$confirm('确认删除选中数据?', '确认删除', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
confirmButtonClass: 'common-button-primary',
|
|
||||||
roundButton: true,
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
this.$http.post('lawss/sarSarAccess/deleteSarAccess', {ids: this.selectedList.join(',')}, {
|
|
||||||
_this: this,
|
|
||||||
loading: 'delLoading'
|
|
||||||
}, res => {
|
|
||||||
this.searchSarAccess()
|
|
||||||
this.selectedList = []
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
}).catch(() => {})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 表格选择框
|
// 表格选择框
|
||||||
selectOne (alldata, nowdata) {
|
selectOne (alldata, nowdata) {
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
@@ -479,16 +299,6 @@
|
|||||||
this.selectedList.push(alldata[i]['id'])
|
this.selectedList.push(alldata[i]['id'])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 根据准入id查询标准法规详情
|
|
||||||
selectInfobyAccid () {
|
|
||||||
this.$http.get('lawss/sarSarAccessInfo/selectSarAccessInfoByAccessId', this.sarAccessInfoSearch, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.sarAccessInfoList = res.data.list.SKILL
|
|
||||||
this.seeSarAccessInfoList = res.data.list.ADMIN
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 点击 table查看按钮 事件
|
// 点击 table查看按钮 事件
|
||||||
showTable (item) {
|
showTable (item) {
|
||||||
sessionStorage.setItem('accessRow', JSON.stringify(item))
|
sessionStorage.setItem('accessRow', JSON.stringify(item))
|
||||||
@@ -509,113 +319,19 @@
|
|||||||
id: item.id
|
id: item.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// this.showModalTitle = '编辑准入标准法规'
|
|
||||||
// // 赋值准入信息
|
|
||||||
// this.drawerRegionChange(row.region).then(() => {
|
|
||||||
// this.sarAccessEO.country = row.country.split(',') // 国家
|
|
||||||
// })
|
|
||||||
// this.sarAccessEO.accessContent = row.accessContent
|
|
||||||
// this.sarAccessEO.applyArctic = row.applyArctic
|
|
||||||
// this.sarAccessEO.energyKind = row.energyKind
|
|
||||||
// this.sarAccessEO.region = row.region // 区域
|
|
||||||
// this.sarAccessEO.id = row.id
|
|
||||||
// // 数据搜索
|
|
||||||
// this.sarAccessInfoSearch.validFlag = 0
|
|
||||||
// this.sarAccessInfoSearch.accessId = row.id
|
|
||||||
// this.sarAccessInfoSearch.dataSource = 'INLAND_STAND'
|
|
||||||
// // 查询数据
|
|
||||||
// this.selectInfobyAccid()
|
|
||||||
// this.showModalFlag = true
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 高级检索
|
|
||||||
*/
|
|
||||||
selectMoreBtn () {
|
|
||||||
this.isAdvancedSearch = true
|
|
||||||
this.threeOptions = []
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 高级检索
|
|
||||||
* 检索项修改时为了匹配对应的下拉菜单的
|
|
||||||
*/
|
|
||||||
twoSelectChange (val, obj) {
|
|
||||||
if (val === 'country') {
|
|
||||||
this.threeOptions = this.countryOptions
|
|
||||||
} else if (val === 'state') {
|
|
||||||
this.threeOptions = [
|
|
||||||
{
|
|
||||||
label: '未发布',
|
|
||||||
value: '1'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '已发布',
|
|
||||||
value: '2'
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 获取工作组信息下拉框信息
|
|
||||||
getGzzOption () {
|
|
||||||
this.$http.get('lawss/sarGroupMenu/queryGroup', '', {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
let gzzxxOptions = []
|
|
||||||
res.data.map(item => {
|
|
||||||
gzzxxOptions.push({
|
|
||||||
value: item.id,
|
|
||||||
label: item.menuName
|
|
||||||
})
|
|
||||||
})
|
|
||||||
this.allSelectOptions.GZZXX = gzzxxOptions
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 高级检索搜索
|
|
||||||
getDomesticStandardTableBtn (advancedSearch) {
|
|
||||||
let formData = {}
|
|
||||||
formData.page = 1
|
|
||||||
formData.advanceSearchStr = ''
|
|
||||||
formData.advanceSearchVOStr = JSON.stringify(advancedSearch) || ''
|
|
||||||
formData.pageSize = this.$store.getters.userInfo.configContent
|
|
||||||
formData.validFlag = 0
|
|
||||||
// 重置页码
|
|
||||||
this.clearSearch(false)
|
|
||||||
this.searchSarAccess(formData)
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
components: {},
|
|
||||||
|
|
||||||
props: {},
|
|
||||||
|
|
||||||
computed: {},
|
|
||||||
|
|
||||||
watch: {},
|
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
// 分页查询数据
|
// 分页查询数据
|
||||||
this.searchSarAccess()
|
this.searchSarAccess()
|
||||||
// this.loadDicTypeDatas()
|
},
|
||||||
// 从数据库中查询各下拉框数据
|
};
|
||||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.countryOptions = res.data.COUNTRY // 国家
|
|
||||||
this.applyArcticOptions = res.data.PRODUCTTYPE || []
|
|
||||||
this.energyKindOptions = res.data.ENERGYTYPES || []
|
|
||||||
this.categoryOptions = res.data.CATEGORY || []
|
|
||||||
this.applyAuthOptions = res.data.PROVETYPE || [] // 认证类型
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
@import '~@/assets/styles/mixins';
|
@import '~@/assets/styles/mixins';
|
||||||
#listOther {
|
#listOfCountries {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -657,5 +373,6 @@
|
|||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
+29
-323
@@ -1,53 +1,37 @@
|
|||||||
<!-- 标准法规库 - 项目清单 -->
|
<!-- 标准法规库 - 项目清单 -->
|
||||||
<template>
|
<template>
|
||||||
<div id="listProject" class="v-class">
|
<div id="listOfCountries" class="v-class">
|
||||||
<div class="search-area">
|
<div class="search-area">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form" >
|
<el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form" >
|
||||||
<el-form-item label="项目名称" class="search-item search-item-last">
|
<el-form-item label="项目名称" class="search-item search-item-last">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="sarSarAccessEOSearch.ListName"
|
v-model="sarSarAccessEOSearch.projectName"
|
||||||
placeholder="请输入项目名称"
|
placeholder="请输入项目名称"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="清单名称" class="search-item search-item-last">
|
<el-form-item label="清单名称" class="search-item search-item-last">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="sarSarAccessEOSearch.ListName"
|
v-model="sarSarAccessEOSearch.detailedListName"
|
||||||
placeholder="请输入清单名称"
|
placeholder="请输入清单名称"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
:loading="searching"
|
:loading="searching"
|
||||||
icon="el-icon-search"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
size="small"
|
size="small"
|
||||||
@click="searchSarAccessBtn">
|
@click="searchSarAccessBtn">
|
||||||
|
查询
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
icon="el-icon-refresh-left"
|
|
||||||
size="small"
|
size="small"
|
||||||
@click="clearSearch"></el-button>
|
@click="clearSearch">清空</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
class="common-button-primary"
|
|
||||||
@click="selectMoreBtn"
|
|
||||||
size="mini">
|
|
||||||
<i class="iconfont"></i>高级查询</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
<AdvancedQuery
|
|
||||||
:isAdvancedSearch.sync="isAdvancedSearch"
|
|
||||||
:twoOptions="twoOptions"
|
|
||||||
:threeOptions="threeOptions"
|
|
||||||
@twoSelectChange="twoSelectChange"
|
|
||||||
@getDomesticStandardTableBtn="getDomesticStandardTableBtn"
|
|
||||||
></AdvancedQuery>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -85,12 +69,12 @@
|
|||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="countryShow"
|
prop="projectName"
|
||||||
label="项目名称"
|
label="项目名称"
|
||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="accessContent"
|
prop="detailedListName"
|
||||||
label="清单名称"
|
label="清单名称"
|
||||||
align="center"
|
align="center"
|
||||||
width="260px"
|
width="260px"
|
||||||
@@ -100,7 +84,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="state"
|
prop="detailedListState"
|
||||||
label="清单状态"
|
label="清单状态"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -109,32 +93,32 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="version"
|
prop="detailedListVesion"
|
||||||
label="清单版本"
|
label="清单版本"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
|
<span v-if="scope.row.detailedListVesion != null && scope.row.detailedListVesion !== ''">V{{ scope.row.detailedListVesion }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="version"
|
prop="applicationScope"
|
||||||
label="适用领域"
|
label="适用领域"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
|
<span v-if="scope.row.applicationScope != null && scope.row.applicationScope !== ''">V{{ scope.row.applicationScope }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="modifyTime"
|
prop="updateTime"
|
||||||
label="更新时间"
|
label="更新时间"
|
||||||
sortable
|
sortable
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>{{ scope.row.modifyTime ? scope.row.modifyTime.split(' ')[0] : '' }}</div>
|
<div>{{ scope.row.updateTime ? scope.row.updateTime.split(' ')[0] : '' }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="uname"
|
prop="updatePeople"
|
||||||
label="更新人"
|
label="更新人"
|
||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -147,7 +131,6 @@
|
|||||||
<el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="'43UVH8AWGJLFDZT9WNTZ'">查看</el-dropdown-item>
|
<el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="'43UVH8AWGJLFDZT9WNTZ'">查看</el-dropdown-item>
|
||||||
<el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'HYY8NGY2RYT3VEDRSK5V'">编辑</el-dropdown-item>
|
<el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'HYY8NGY2RYT3VEDRSK5V'">编辑</el-dropdown-item>
|
||||||
<el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="'X9HP9YQL2BRKBFCDMZQT'">删除</el-dropdown-item>
|
<el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="'X9HP9YQL2BRKBFCDMZQT'">删除</el-dropdown-item>
|
||||||
<!-- <el-dropdown-item :command="[scope.row, '流程']">流程</el-dropdown-item>-->
|
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
@@ -161,67 +144,20 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'listProject',
|
name: "listProject",
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
isAdvancedSearch: false,
|
|
||||||
twoOptions: [
|
|
||||||
{
|
|
||||||
label: '清单名称',
|
|
||||||
value: 'access_content',
|
|
||||||
type: 'INPUT',
|
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '国家/地区',
|
|
||||||
value: 'country',
|
|
||||||
type: 'SEL_OPTION',
|
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
// {
|
|
||||||
// label: '文本说明',
|
|
||||||
// value: 'remark',
|
|
||||||
// type: 'INPUT',
|
|
||||||
// disabled: false
|
|
||||||
// },
|
|
||||||
{
|
|
||||||
label: '清单状态',
|
|
||||||
value: 'state',
|
|
||||||
type: 'SEL_OPTION',
|
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '更新人',
|
|
||||||
value: 'creation_user',
|
|
||||||
type : 'SEL_OPTION',
|
|
||||||
selVal : 'USERLIST',
|
|
||||||
disabled: false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
threeOptions: [],
|
|
||||||
showTableFlag: true,
|
|
||||||
dataLoading: false,
|
|
||||||
searching: false,
|
searching: false,
|
||||||
loadData: false,
|
|
||||||
moreSearchBtn: true,
|
|
||||||
moreSearchShow: false,
|
|
||||||
exportTestItemNameFlag: false, // 导出模态框
|
|
||||||
exportName: '',
|
|
||||||
total: 0,
|
total: 0,
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 10,
|
rows: 10,
|
||||||
// 查询相关参数
|
// 查询相关参数
|
||||||
sarSarAccessEOSearch: {
|
sarSarAccessEOSearch: {
|
||||||
ListName: '',
|
projectName: '',
|
||||||
country: '',
|
detailedListName: '',
|
||||||
accessContent: '',
|
|
||||||
energyKind: '',
|
|
||||||
applyArctic: '',
|
|
||||||
region: '',
|
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
validFlag: 0
|
|
||||||
},
|
},
|
||||||
sarAccessListDatas: [],
|
sarAccessListDatas: [],
|
||||||
sarAccessListTotal: 0,
|
sarAccessListTotal: 0,
|
||||||
@@ -315,66 +251,14 @@
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 主页 搜索条件 区域下拉 on-change事件
|
|
||||||
regionChange (value) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
this.$http.get('sys/dictype/pageRegion', {
|
|
||||||
dicTypeCode: value
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
this.countryOptions = res.data.list
|
|
||||||
this.sarSarAccessEOSearch.country = ''
|
|
||||||
// eslint-disable-next-line
|
|
||||||
reslove()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 主页 新增、编辑 准入信息 区域下拉 on-change事件
|
|
||||||
drawerRegionChange (value) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
this.$http.get('sys/dictype/pageRegion', {
|
|
||||||
dicTypeCode: value
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
this.drawerCountryOptions = res.data.list
|
|
||||||
this.sarAccessEO.country = ''
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 搜索
|
// 搜索
|
||||||
searchSarAccessBtn () {
|
searchSarAccessBtn () {
|
||||||
this.page = 1
|
this.page = 1
|
||||||
this.searchSarAccess()
|
this.searchSarAccess()
|
||||||
},
|
},
|
||||||
// 分页查询相关
|
//分页查询
|
||||||
searchSarAccess (advanceSearch) {
|
searchSarAccess (advanceSearch) {
|
||||||
const obj = advanceSearch || this.sarSarAccessEOSearch
|
|
||||||
if (advanceSearch) {
|
|
||||||
this.sarSarAccessEOSearch.advanceSearchVOStr = advanceSearch.advanceSearchVOStr
|
|
||||||
}
|
|
||||||
// obj.country = this.sarSarAccessEOSearch.country.join()
|
|
||||||
this.$http.get('lawss/sarSarAccess/page', obj, {
|
|
||||||
_this: this,
|
|
||||||
loading: 'loading'
|
|
||||||
}, res => {
|
|
||||||
this.sarAccessListDatas = res.data.list
|
|
||||||
this.sarAccessListTotal = res.data.count
|
|
||||||
if ((this.sarAccessListDatas.length === 0 || this.sarAccessListDatas === []) && this.sarSarAccessEOSearch.page !== 1) {
|
|
||||||
this.pageChange(1)
|
|
||||||
}
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.selection.doLayout()
|
|
||||||
})
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
// this.$refs.selection.selectAll(false)
|
|
||||||
},
|
},
|
||||||
pageChange (page) {
|
pageChange (page) {
|
||||||
this.sarSarAccessEOSearch.page = page
|
this.sarSarAccessEOSearch.page = page
|
||||||
@@ -394,90 +278,15 @@
|
|||||||
this.sarSarAccessEOSearch.page = 1
|
this.sarSarAccessEOSearch.page = 1
|
||||||
search && this.searchSarAccess()
|
search && this.searchSarAccess()
|
||||||
},
|
},
|
||||||
// 查看跳转详情页
|
|
||||||
detailsStandard (item) {
|
|
||||||
if (item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND') {
|
|
||||||
if (this.$hasPermission('SSA6WR4HV8')) {
|
|
||||||
this.$store.commit('setDetailMap', this.$route.path)
|
|
||||||
let routeUrl = this.$router.resolve({
|
|
||||||
name: 'OtherStandardDetails',
|
|
||||||
params: {
|
|
||||||
id: item.resId,
|
|
||||||
pageType: item.sarType
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(routeUrl.href, '_blank')
|
|
||||||
} else {
|
|
||||||
this.$message.warning('无权访问')
|
|
||||||
}
|
|
||||||
} else if (item.sarType === 'INLAND_LAWS' || item.sarType === 'FOREIGN_LAWS') {
|
|
||||||
if (this.$hasPermission('A2HDHMEA6W')) {
|
|
||||||
this.$store.commit('setDetailMap', this.$route.path)
|
|
||||||
let routeUrl = this.$router.resolve({
|
|
||||||
name: 'OtherLawsDetails',
|
|
||||||
params: {
|
|
||||||
id: item.resId,
|
|
||||||
pageType: item.sarType
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(routeUrl.href, '_blank')
|
|
||||||
} else {
|
|
||||||
this.$message.warning('无权访问')
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (this.$hasPermission('YJUHC32R7G')) {
|
|
||||||
this.$store.commit('setDetailMap', this.$route.path)
|
|
||||||
let routeUrl = this.$router.resolve({
|
|
||||||
name: 'OtherBussStandardDetails',
|
|
||||||
params: {
|
|
||||||
id: item.resId,
|
|
||||||
pageType: 'BUSINESS_STAND'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(routeUrl.href, '_blank')
|
|
||||||
} else {
|
|
||||||
this.$message.warning('无权访问')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 新增相关
|
// 新增相关
|
||||||
openModal (row, optType) {
|
openModal (row, optType) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'ListOfStandardsAndRegulationsDetails'
|
name: 'ListOfStandardsAndRegulationsDetails'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
swapItems (arr, index1, index2) {
|
// 删除
|
||||||
arr[index1] = arr.splice(index2, 1, arr[index1])[0]
|
|
||||||
return arr
|
|
||||||
},
|
|
||||||
// 删除Access
|
|
||||||
deleteSarAccess (flag, id) {
|
deleteSarAccess (flag, id) {
|
||||||
if (flag === 'delOne') {
|
|
||||||
this.selectedList = []
|
|
||||||
this.selectedList[0] = id
|
|
||||||
}
|
|
||||||
if (this.selectedList.length < 1) {
|
|
||||||
this.$message.warning('请选择要删除的数据')
|
|
||||||
} else {
|
|
||||||
this.$confirm('确认删除选中数据?', '确认删除', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
confirmButtonClass: 'common-button-primary',
|
|
||||||
roundButton: true,
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
this.$http.post('lawss/sarSarAccess/deleteSarAccess', {ids: this.selectedList.join(',')}, {
|
|
||||||
_this: this,
|
|
||||||
loading: 'delLoading'
|
|
||||||
}, res => {
|
|
||||||
this.searchSarAccess()
|
|
||||||
this.selectedList = []
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
}).catch(() => {})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 表格选择框
|
// 表格选择框
|
||||||
selectOne (alldata, nowdata) {
|
selectOne (alldata, nowdata) {
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
@@ -485,16 +294,6 @@
|
|||||||
this.selectedList.push(alldata[i]['id'])
|
this.selectedList.push(alldata[i]['id'])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 根据准入id查询标准法规详情
|
|
||||||
selectInfobyAccid () {
|
|
||||||
this.$http.get('lawss/sarSarAccessInfo/selectSarAccessInfoByAccessId', this.sarAccessInfoSearch, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.sarAccessInfoList = res.data.list.SKILL
|
|
||||||
this.seeSarAccessInfoList = res.data.list.ADMIN
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 点击 table查看按钮 事件
|
// 点击 table查看按钮 事件
|
||||||
showTable (item) {
|
showTable (item) {
|
||||||
sessionStorage.setItem('accessRow', JSON.stringify(item))
|
sessionStorage.setItem('accessRow', JSON.stringify(item))
|
||||||
@@ -515,113 +314,19 @@
|
|||||||
id: item.id
|
id: item.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// this.showModalTitle = '编辑准入标准法规'
|
|
||||||
// // 赋值准入信息
|
|
||||||
// this.drawerRegionChange(row.region).then(() => {
|
|
||||||
// this.sarAccessEO.country = row.country.split(',') // 国家
|
|
||||||
// })
|
|
||||||
// this.sarAccessEO.accessContent = row.accessContent
|
|
||||||
// this.sarAccessEO.applyArctic = row.applyArctic
|
|
||||||
// this.sarAccessEO.energyKind = row.energyKind
|
|
||||||
// this.sarAccessEO.region = row.region // 区域
|
|
||||||
// this.sarAccessEO.id = row.id
|
|
||||||
// // 数据搜索
|
|
||||||
// this.sarAccessInfoSearch.validFlag = 0
|
|
||||||
// this.sarAccessInfoSearch.accessId = row.id
|
|
||||||
// this.sarAccessInfoSearch.dataSource = 'INLAND_STAND'
|
|
||||||
// // 查询数据
|
|
||||||
// this.selectInfobyAccid()
|
|
||||||
// this.showModalFlag = true
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 高级检索
|
|
||||||
*/
|
|
||||||
selectMoreBtn () {
|
|
||||||
this.isAdvancedSearch = true
|
|
||||||
this.threeOptions = []
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 高级检索
|
|
||||||
* 检索项修改时为了匹配对应的下拉菜单的
|
|
||||||
*/
|
|
||||||
twoSelectChange (val, obj) {
|
|
||||||
if (val === 'country') {
|
|
||||||
this.threeOptions = this.countryOptions
|
|
||||||
} else if (val === 'state') {
|
|
||||||
this.threeOptions = [
|
|
||||||
{
|
|
||||||
label: '未发布',
|
|
||||||
value: '1'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '已发布',
|
|
||||||
value: '2'
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 获取工作组信息下拉框信息
|
|
||||||
getGzzOption () {
|
|
||||||
this.$http.get('lawss/sarGroupMenu/queryGroup', '', {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
let gzzxxOptions = []
|
|
||||||
res.data.map(item => {
|
|
||||||
gzzxxOptions.push({
|
|
||||||
value: item.id,
|
|
||||||
label: item.menuName
|
|
||||||
})
|
|
||||||
})
|
|
||||||
this.allSelectOptions.GZZXX = gzzxxOptions
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 高级检索搜索
|
|
||||||
getDomesticStandardTableBtn (advancedSearch) {
|
|
||||||
let formData = {}
|
|
||||||
formData.page = 1
|
|
||||||
formData.advanceSearchStr = ''
|
|
||||||
formData.advanceSearchVOStr = JSON.stringify(advancedSearch) || ''
|
|
||||||
formData.pageSize = this.$store.getters.userInfo.configContent
|
|
||||||
formData.validFlag = 0
|
|
||||||
// 重置页码
|
|
||||||
this.clearSearch(false)
|
|
||||||
this.searchSarAccess(formData)
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
components: {},
|
|
||||||
|
|
||||||
props: {},
|
|
||||||
|
|
||||||
computed: {},
|
|
||||||
|
|
||||||
watch: {},
|
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
// 分页查询数据
|
// 分页查询数据
|
||||||
this.searchSarAccess()
|
this.searchSarAccess()
|
||||||
// this.loadDicTypeDatas()
|
},
|
||||||
// 从数据库中查询各下拉框数据
|
};
|
||||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.countryOptions = res.data.COUNTRY // 国家
|
|
||||||
this.applyArcticOptions = res.data.PRODUCTTYPE || []
|
|
||||||
this.energyKindOptions = res.data.ENERGYTYPES || []
|
|
||||||
this.categoryOptions = res.data.CATEGORY || []
|
|
||||||
this.applyAuthOptions = res.data.PROVETYPE || [] // 认证类型
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
@import '~@/assets/styles/mixins';
|
@import '~@/assets/styles/mixins';
|
||||||
#listProject {
|
#listOfCountries {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -663,5 +368,6 @@
|
|||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
+39
-332
@@ -1,9 +1,24 @@
|
|||||||
<!-- 标准法规库 - 重点标准跟踪清单 -->
|
<!-- 标准法规库 - 重点标准跟踪清单 -->
|
||||||
<template>
|
<template>
|
||||||
<div id="listTracking" class="v-class">
|
<div id="listOfCountries" class="v-class">
|
||||||
<div class="search-area">
|
<div class="search-area">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form" >
|
<el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form" >
|
||||||
|
<el-form-item label="国家/地区" class="search-item search-item-last">
|
||||||
|
<el-select
|
||||||
|
v-model="sarSarAccessEOSearch.country"
|
||||||
|
placeholder="请选择"
|
||||||
|
filterable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in countryOptions"
|
||||||
|
:value="item.value"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="清单名称" class="search-item search-item-last">
|
<el-form-item label="清单名称" class="search-item search-item-last">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="sarSarAccessEOSearch.ListName"
|
v-model="sarSarAccessEOSearch.ListName"
|
||||||
@@ -13,35 +28,19 @@
|
|||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
:loading="searching"
|
:loading="searching"
|
||||||
icon="el-icon-search"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
size="small"
|
size="small"
|
||||||
@click="searchSarAccessBtn">
|
@click="searchSarAccessBtn">
|
||||||
|
查询
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
<el-form-item class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
icon="el-icon-refresh-left"
|
|
||||||
size="small"
|
size="small"
|
||||||
@click="clearSearch"></el-button>
|
@click="clearSearch">清空</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="search-item btn-box">
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
class="common-button-primary"
|
|
||||||
@click="selectMoreBtn"
|
|
||||||
size="mini">
|
|
||||||
<i class="iconfont"></i>高级查询</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
<AdvancedQuery
|
|
||||||
:isAdvancedSearch.sync="isAdvancedSearch"
|
|
||||||
:twoOptions="twoOptions"
|
|
||||||
:threeOptions="threeOptions"
|
|
||||||
@twoSelectChange="twoSelectChange"
|
|
||||||
@getDomesticStandardTableBtn="getDomesticStandardTableBtn"
|
|
||||||
></AdvancedQuery>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -79,22 +78,19 @@
|
|||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="countryShow"
|
prop="countryArea"
|
||||||
label="国家/地区"
|
label="国家/地区"
|
||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="accessContent"
|
prop="detailedListName"
|
||||||
label="清单名称"
|
label="清单名称"
|
||||||
align="center"
|
align="center"
|
||||||
width="260px"
|
width="260px"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
|
||||||
<a class="table-jump" @click.stop="showTable(scope.row)">{{ scope.row.accessContent }}</a>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="state"
|
prop="detailedListState"
|
||||||
label="清单状态"
|
label="清单状态"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -103,32 +99,32 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="version"
|
prop="detailedListVesion"
|
||||||
label="清单版本"
|
label="清单版本"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
|
<span v-if="scope.row.detailedListVesion != null && scope.row.detailedListVesion !== ''">V{{ scope.row.detailedListVesion }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="version"
|
prop="applicationScope"
|
||||||
label="适用领域"
|
label="适用领域"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
|
<span v-if="scope.row.applicationScope != null && scope.row.applicationScope !== ''">V{{ scope.row.applicationScope }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="modifyTime"
|
prop="updateTime"
|
||||||
label="更新时间"
|
label="更新时间"
|
||||||
sortable
|
sortable
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>{{ scope.row.modifyTime ? scope.row.modifyTime.split(' ')[0] : '' }}</div>
|
<div>{{ scope.row.updateTime ? scope.row.updateTime.split(' ')[0] : '' }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="uname"
|
prop="updatePeople"
|
||||||
label="更新人"
|
label="更新人"
|
||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -138,10 +134,8 @@
|
|||||||
<el-dropdown trigger="click" @command="handleCommand">
|
<el-dropdown trigger="click" @command="handleCommand">
|
||||||
<i class="iconfont"></i>
|
<i class="iconfont"></i>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="'43UVH8AWGJLFDZT9WNTZ'">查看</el-dropdown-item>
|
|
||||||
<el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'HYY8NGY2RYT3VEDRSK5V'">编辑</el-dropdown-item>
|
<el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'HYY8NGY2RYT3VEDRSK5V'">编辑</el-dropdown-item>
|
||||||
<el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="'X9HP9YQL2BRKBFCDMZQT'">删除</el-dropdown-item>
|
<el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="'X9HP9YQL2BRKBFCDMZQT'">删除</el-dropdown-item>
|
||||||
<!-- <el-dropdown-item :command="[scope.row, '流程']">流程</el-dropdown-item>-->
|
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
@@ -155,53 +149,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'listTracking',
|
name: "listTracking",
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
isAdvancedSearch: false,
|
|
||||||
twoOptions: [
|
|
||||||
{
|
|
||||||
label: '清单名称',
|
|
||||||
value: 'access_content',
|
|
||||||
type: 'INPUT',
|
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '国家/地区',
|
|
||||||
value: 'country',
|
|
||||||
type: 'SEL_OPTION',
|
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
// {
|
|
||||||
// label: '文本说明',
|
|
||||||
// value: 'remark',
|
|
||||||
// type: 'INPUT',
|
|
||||||
// disabled: false
|
|
||||||
// },
|
|
||||||
{
|
|
||||||
label: '清单状态',
|
|
||||||
value: 'state',
|
|
||||||
type: 'SEL_OPTION',
|
|
||||||
disabled: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '更新人',
|
|
||||||
value: 'creation_user',
|
|
||||||
type : 'SEL_OPTION',
|
|
||||||
selVal : 'USERLIST',
|
|
||||||
disabled: false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
threeOptions: [],
|
|
||||||
showTableFlag: true,
|
|
||||||
dataLoading: false,
|
|
||||||
searching: false,
|
searching: false,
|
||||||
loadData: false,
|
|
||||||
moreSearchBtn: true,
|
|
||||||
moreSearchShow: false,
|
|
||||||
exportTestItemNameFlag: false, // 导出模态框
|
|
||||||
exportName: '',
|
|
||||||
total: 0,
|
total: 0,
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 10,
|
rows: 10,
|
||||||
@@ -298,9 +250,6 @@
|
|||||||
// 更多
|
// 更多
|
||||||
handleCommand (command) {
|
handleCommand (command) {
|
||||||
switch (command[1]) {
|
switch (command[1]) {
|
||||||
case '查看':
|
|
||||||
this.showTable(command[0])
|
|
||||||
break
|
|
||||||
case '编辑':
|
case '编辑':
|
||||||
this.editTable(command[0])
|
this.editTable(command[0])
|
||||||
break
|
break
|
||||||
@@ -309,66 +258,14 @@
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 主页 搜索条件 区域下拉 on-change事件
|
|
||||||
regionChange (value) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
this.$http.get('sys/dictype/pageRegion', {
|
|
||||||
dicTypeCode: value
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
this.countryOptions = res.data.list
|
|
||||||
this.sarSarAccessEOSearch.country = ''
|
|
||||||
// eslint-disable-next-line
|
|
||||||
reslove()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 主页 新增、编辑 准入信息 区域下拉 on-change事件
|
|
||||||
drawerRegionChange (value) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
this.$http.get('sys/dictype/pageRegion', {
|
|
||||||
dicTypeCode: value
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
this.drawerCountryOptions = res.data.list
|
|
||||||
this.sarAccessEO.country = ''
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 搜索
|
// 搜索
|
||||||
searchSarAccessBtn () {
|
searchSarAccessBtn () {
|
||||||
this.page = 1
|
this.page = 1
|
||||||
this.searchSarAccess()
|
this.searchSarAccess()
|
||||||
},
|
},
|
||||||
// 分页查询相关
|
//分页查询
|
||||||
searchSarAccess (advanceSearch) {
|
searchSarAccess (advanceSearch) {
|
||||||
const obj = advanceSearch || this.sarSarAccessEOSearch
|
|
||||||
if (advanceSearch) {
|
|
||||||
this.sarSarAccessEOSearch.advanceSearchVOStr = advanceSearch.advanceSearchVOStr
|
|
||||||
}
|
|
||||||
// obj.country = this.sarSarAccessEOSearch.country.join()
|
|
||||||
this.$http.get('lawss/sarSarAccess/page', obj, {
|
|
||||||
_this: this,
|
|
||||||
loading: 'loading'
|
|
||||||
}, res => {
|
|
||||||
this.sarAccessListDatas = res.data.list
|
|
||||||
this.sarAccessListTotal = res.data.count
|
|
||||||
if ((this.sarAccessListDatas.length === 0 || this.sarAccessListDatas === []) && this.sarSarAccessEOSearch.page !== 1) {
|
|
||||||
this.pageChange(1)
|
|
||||||
}
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.selection.doLayout()
|
|
||||||
})
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
// this.$refs.selection.selectAll(false)
|
|
||||||
},
|
},
|
||||||
pageChange (page) {
|
pageChange (page) {
|
||||||
this.sarSarAccessEOSearch.page = page
|
this.sarSarAccessEOSearch.page = page
|
||||||
@@ -388,90 +285,15 @@
|
|||||||
this.sarSarAccessEOSearch.page = 1
|
this.sarSarAccessEOSearch.page = 1
|
||||||
search && this.searchSarAccess()
|
search && this.searchSarAccess()
|
||||||
},
|
},
|
||||||
// 查看跳转详情页
|
|
||||||
detailsStandard (item) {
|
|
||||||
if (item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND') {
|
|
||||||
if (this.$hasPermission('SSA6WR4HV8')) {
|
|
||||||
this.$store.commit('setDetailMap', this.$route.path)
|
|
||||||
let routeUrl = this.$router.resolve({
|
|
||||||
name: 'OtherStandardDetails',
|
|
||||||
params: {
|
|
||||||
id: item.resId,
|
|
||||||
pageType: item.sarType
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(routeUrl.href, '_blank')
|
|
||||||
} else {
|
|
||||||
this.$message.warning('无权访问')
|
|
||||||
}
|
|
||||||
} else if (item.sarType === 'INLAND_LAWS' || item.sarType === 'FOREIGN_LAWS') {
|
|
||||||
if (this.$hasPermission('A2HDHMEA6W')) {
|
|
||||||
this.$store.commit('setDetailMap', this.$route.path)
|
|
||||||
let routeUrl = this.$router.resolve({
|
|
||||||
name: 'OtherLawsDetails',
|
|
||||||
params: {
|
|
||||||
id: item.resId,
|
|
||||||
pageType: item.sarType
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(routeUrl.href, '_blank')
|
|
||||||
} else {
|
|
||||||
this.$message.warning('无权访问')
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (this.$hasPermission('YJUHC32R7G')) {
|
|
||||||
this.$store.commit('setDetailMap', this.$route.path)
|
|
||||||
let routeUrl = this.$router.resolve({
|
|
||||||
name: 'OtherBussStandardDetails',
|
|
||||||
params: {
|
|
||||||
id: item.resId,
|
|
||||||
pageType: 'BUSINESS_STAND'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
window.open(routeUrl.href, '_blank')
|
|
||||||
} else {
|
|
||||||
this.$message.warning('无权访问')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 新增相关
|
// 新增相关
|
||||||
openModal (row, optType) {
|
openModal (row, optType) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'ListOfStandardsAndRegulationsDetails'
|
name: 'ListOfStandardsAndRegulationsDetails'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
swapItems (arr, index1, index2) {
|
// 删除
|
||||||
arr[index1] = arr.splice(index2, 1, arr[index1])[0]
|
|
||||||
return arr
|
|
||||||
},
|
|
||||||
// 删除Access
|
|
||||||
deleteSarAccess (flag, id) {
|
deleteSarAccess (flag, id) {
|
||||||
if (flag === 'delOne') {
|
|
||||||
this.selectedList = []
|
|
||||||
this.selectedList[0] = id
|
|
||||||
}
|
|
||||||
if (this.selectedList.length < 1) {
|
|
||||||
this.$message.warning('请选择要删除的数据')
|
|
||||||
} else {
|
|
||||||
this.$confirm('确认删除选中数据?', '确认删除', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
confirmButtonClass: 'common-button-primary',
|
|
||||||
roundButton: true,
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
this.$http.post('lawss/sarSarAccess/deleteSarAccess', {ids: this.selectedList.join(',')}, {
|
|
||||||
_this: this,
|
|
||||||
loading: 'delLoading'
|
|
||||||
}, res => {
|
|
||||||
this.searchSarAccess()
|
|
||||||
this.selectedList = []
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
}).catch(() => {})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 表格选择框
|
// 表格选择框
|
||||||
selectOne (alldata, nowdata) {
|
selectOne (alldata, nowdata) {
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
@@ -479,27 +301,6 @@
|
|||||||
this.selectedList.push(alldata[i]['id'])
|
this.selectedList.push(alldata[i]['id'])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 根据准入id查询标准法规详情
|
|
||||||
selectInfobyAccid () {
|
|
||||||
this.$http.get('lawss/sarSarAccessInfo/selectSarAccessInfoByAccessId', this.sarAccessInfoSearch, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.sarAccessInfoList = res.data.list.SKILL
|
|
||||||
this.seeSarAccessInfoList = res.data.list.ADMIN
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 点击 table查看按钮 事件
|
|
||||||
showTable (item) {
|
|
||||||
sessionStorage.setItem('accessRow', JSON.stringify(item))
|
|
||||||
this.$store.commit('setDetailMap', this.$route.path)
|
|
||||||
this.$router.push({
|
|
||||||
name: 'AccessStandardDetails',
|
|
||||||
params: {
|
|
||||||
id: item.id
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 点击 table编辑按钮 事件
|
// 点击 table编辑按钮 事件
|
||||||
editTable (item) {
|
editTable (item) {
|
||||||
sessionStorage.setItem('accessRow', JSON.stringify(item))
|
sessionStorage.setItem('accessRow', JSON.stringify(item))
|
||||||
@@ -509,113 +310,19 @@
|
|||||||
id: item.id
|
id: item.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// this.showModalTitle = '编辑准入标准法规'
|
|
||||||
// // 赋值准入信息
|
|
||||||
// this.drawerRegionChange(row.region).then(() => {
|
|
||||||
// this.sarAccessEO.country = row.country.split(',') // 国家
|
|
||||||
// })
|
|
||||||
// this.sarAccessEO.accessContent = row.accessContent
|
|
||||||
// this.sarAccessEO.applyArctic = row.applyArctic
|
|
||||||
// this.sarAccessEO.energyKind = row.energyKind
|
|
||||||
// this.sarAccessEO.region = row.region // 区域
|
|
||||||
// this.sarAccessEO.id = row.id
|
|
||||||
// // 数据搜索
|
|
||||||
// this.sarAccessInfoSearch.validFlag = 0
|
|
||||||
// this.sarAccessInfoSearch.accessId = row.id
|
|
||||||
// this.sarAccessInfoSearch.dataSource = 'INLAND_STAND'
|
|
||||||
// // 查询数据
|
|
||||||
// this.selectInfobyAccid()
|
|
||||||
// this.showModalFlag = true
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 高级检索
|
|
||||||
*/
|
|
||||||
selectMoreBtn () {
|
|
||||||
this.isAdvancedSearch = true
|
|
||||||
this.threeOptions = []
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 高级检索
|
|
||||||
* 检索项修改时为了匹配对应的下拉菜单的
|
|
||||||
*/
|
|
||||||
twoSelectChange (val, obj) {
|
|
||||||
if (val === 'country') {
|
|
||||||
this.threeOptions = this.countryOptions
|
|
||||||
} else if (val === 'state') {
|
|
||||||
this.threeOptions = [
|
|
||||||
{
|
|
||||||
label: '未发布',
|
|
||||||
value: '1'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '已发布',
|
|
||||||
value: '2'
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 获取工作组信息下拉框信息
|
|
||||||
getGzzOption () {
|
|
||||||
this.$http.get('lawss/sarGroupMenu/queryGroup', '', {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
let gzzxxOptions = []
|
|
||||||
res.data.map(item => {
|
|
||||||
gzzxxOptions.push({
|
|
||||||
value: item.id,
|
|
||||||
label: item.menuName
|
|
||||||
})
|
|
||||||
})
|
|
||||||
this.allSelectOptions.GZZXX = gzzxxOptions
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 高级检索搜索
|
|
||||||
getDomesticStandardTableBtn (advancedSearch) {
|
|
||||||
let formData = {}
|
|
||||||
formData.page = 1
|
|
||||||
formData.advanceSearchStr = ''
|
|
||||||
formData.advanceSearchVOStr = JSON.stringify(advancedSearch) || ''
|
|
||||||
formData.pageSize = this.$store.getters.userInfo.configContent
|
|
||||||
formData.validFlag = 0
|
|
||||||
// 重置页码
|
|
||||||
this.clearSearch(false)
|
|
||||||
this.searchSarAccess(formData)
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
components: {},
|
|
||||||
|
|
||||||
props: {},
|
|
||||||
|
|
||||||
computed: {},
|
|
||||||
|
|
||||||
watch: {},
|
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
// 分页查询数据
|
// 分页查询数据
|
||||||
this.searchSarAccess()
|
this.searchSarAccess()
|
||||||
// this.loadDicTypeDatas()
|
},
|
||||||
// 从数据库中查询各下拉框数据
|
};
|
||||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.countryOptions = res.data.COUNTRY // 国家
|
|
||||||
this.applyArcticOptions = res.data.PRODUCTTYPE || []
|
|
||||||
this.energyKindOptions = res.data.ENERGYTYPES || []
|
|
||||||
this.categoryOptions = res.data.CATEGORY || []
|
|
||||||
this.applyAuthOptions = res.data.PROVETYPE || [] // 认证类型
|
|
||||||
}, e => {
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
@import '~@/assets/styles/mixins';
|
@import '~@/assets/styles/mixins';
|
||||||
#listTracking {
|
#listOfCountries {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -657,5 +364,5 @@
|
|||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user