标准法规清单
This commit is contained in:
@@ -388,13 +388,13 @@ export default {
|
||||
// // }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// title: '搜索中心',
|
||||
// path: '/advancedSearch',
|
||||
// 'icon-class': 'search',
|
||||
// menuId: 'K9BAYUPZBC',
|
||||
// isChildren: true // 判断没有子菜单
|
||||
// },
|
||||
{
|
||||
title: '搜索中心',
|
||||
path: '/advancedSearch',
|
||||
'icon-class': 'search',
|
||||
menuId: 'K9BAYUPZBC',
|
||||
isChildren: true // 判断没有子菜单
|
||||
},
|
||||
// {
|
||||
// title: '标准比对库',
|
||||
// path: '/standardComparisonLibrary',
|
||||
|
||||
+27
-322
@@ -6,7 +6,7 @@
|
||||
<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"
|
||||
v-model="sarSarAccessEOSearch.countryArea"
|
||||
placeholder="请选择"
|
||||
filterable
|
||||
>
|
||||
@@ -21,42 +21,26 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="清单名称" class="search-item search-item-last">
|
||||
<el-input
|
||||
v-model="sarSarAccessEOSearch.ListName"
|
||||
v-model="sarSarAccessEOSearch.detailedListName"
|
||||
placeholder="请输入清单名称"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item class="search-item btn-box">
|
||||
<el-button
|
||||
:loading="searching"
|
||||
icon="el-icon-search"
|
||||
type="primary"
|
||||
class="common-button-primary"
|
||||
size="small"
|
||||
@click="searchSarAccessBtn">
|
||||
查询
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item class="search-item btn-box">
|
||||
<el-button
|
||||
class="common-button-default"
|
||||
icon="el-icon-refresh-left"
|
||||
size="small"
|
||||
@click="clearSearch"></el-button>
|
||||
@click="clearSearch">清空</el-button>
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
@@ -94,12 +78,12 @@
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="countryShow"
|
||||
prop="countryArea"
|
||||
label="国家/地区"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="accessContent"
|
||||
prop="detailedListName"
|
||||
label="清单名称"
|
||||
align="center"
|
||||
width="260px"
|
||||
@@ -109,7 +93,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="state"
|
||||
prop="detailedListState"
|
||||
label="清单状态"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
@@ -118,32 +102,32 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="version"
|
||||
prop="detailedListVesion"
|
||||
label="清单版本"
|
||||
align="center">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="version"
|
||||
prop="applicationScope"
|
||||
label="适用领域"
|
||||
align="center">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="modifyTime"
|
||||
prop="updateTime"
|
||||
label="更新时间"
|
||||
sortable
|
||||
align="center">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="uname"
|
||||
prop="updatePeople"
|
||||
label="更新人"
|
||||
align="center">
|
||||
</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="'HYY8NGY2RYT3VEDRSK5V'">编辑</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>
|
||||
</div>
|
||||
@@ -170,67 +153,20 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'listOfCountries',
|
||||
export default {
|
||||
name: "listOfCountries",
|
||||
data () {
|
||||
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,
|
||||
loadData: false,
|
||||
moreSearchBtn: true,
|
||||
moreSearchShow: false,
|
||||
exportTestItemNameFlag: false, // 导出模态框
|
||||
exportName: '',
|
||||
total: 0,
|
||||
page: 1,
|
||||
rows: 10,
|
||||
// 查询相关参数
|
||||
sarSarAccessEOSearch: {
|
||||
ListName: '',
|
||||
country: '',
|
||||
accessContent: '',
|
||||
energyKind: '',
|
||||
applyArctic: '',
|
||||
region: '',
|
||||
countryArea: '',
|
||||
detailedListName: '',
|
||||
page: 1,
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
validFlag: 0
|
||||
},
|
||||
sarAccessListDatas: [],
|
||||
sarAccessListTotal: 0,
|
||||
@@ -324,66 +260,14 @@
|
||||
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 () {
|
||||
this.page = 1
|
||||
this.searchSarAccess()
|
||||
},
|
||||
// 分页查询相关
|
||||
//分页查询
|
||||
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) {
|
||||
this.sarSarAccessEOSearch.page = page
|
||||
@@ -403,90 +287,15 @@
|
||||
this.sarSarAccessEOSearch.page = 1
|
||||
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) {
|
||||
this.$router.push({
|
||||
name: 'ListOfStandardsAndRegulationsDetails'
|
||||
})
|
||||
},
|
||||
swapItems (arr, index1, index2) {
|
||||
arr[index1] = arr.splice(index2, 1, arr[index1])[0]
|
||||
return arr
|
||||
},
|
||||
// 删除Access
|
||||
// 删除
|
||||
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) {
|
||||
this.selectedList = []
|
||||
@@ -494,16 +303,6 @@
|
||||
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))
|
||||
@@ -524,113 +323,19 @@
|
||||
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 () {
|
||||
// 分页查询数据
|
||||
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>
|
||||
|
||||
<style lang="less" scoped>
|
||||
@import '~@/assets/styles/style';
|
||||
@import '~@/assets/styles/mixins';
|
||||
#listOfCountries {
|
||||
@import '~@/assets/styles/style';
|
||||
@import '~@/assets/styles/mixins';
|
||||
#listOfCountries {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -672,5 +377,5 @@
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
<!-- 标准法规库 - 其他清单 -->
|
||||
<template>
|
||||
<div id="listOther" class="v-class">
|
||||
<div id="listOfCountries" class="v-class">
|
||||
<div class="search-area">
|
||||
<div class="left">
|
||||
<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-input
|
||||
v-model="sarSarAccessEOSearch.ListName"
|
||||
@@ -13,35 +19,19 @@
|
||||
<el-form-item class="search-item btn-box">
|
||||
<el-button
|
||||
:loading="searching"
|
||||
icon="el-icon-search"
|
||||
type="primary"
|
||||
class="common-button-primary"
|
||||
size="small"
|
||||
@click="searchSarAccessBtn">
|
||||
查询
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item class="search-item btn-box">
|
||||
<el-button
|
||||
class="common-button-default"
|
||||
icon="el-icon-refresh-left"
|
||||
size="small"
|
||||
@click="clearSearch"></el-button>
|
||||
@click="clearSearch">清空</el-button>
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
@@ -79,12 +69,12 @@
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="countryShow"
|
||||
prop="detailedList"
|
||||
label="清单类别"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="accessContent"
|
||||
prop="detailedListName"
|
||||
label="清单名称"
|
||||
align="center"
|
||||
width="260px"
|
||||
@@ -94,7 +84,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="state"
|
||||
prop="detailedListState"
|
||||
label="清单状态"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
@@ -103,32 +93,32 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="version"
|
||||
prop="detailedListVesion"
|
||||
label="清单版本"
|
||||
align="center">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="version"
|
||||
prop="applicationScope"
|
||||
label="适用领域"
|
||||
align="center">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="modifyTime"
|
||||
prop="updateTime"
|
||||
label="更新时间"
|
||||
sortable
|
||||
align="center">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="uname"
|
||||
prop="updatePeople"
|
||||
label="更新人"
|
||||
align="center">
|
||||
</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="'HYY8NGY2RYT3VEDRSK5V'">编辑</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>
|
||||
</div>
|
||||
@@ -155,53 +144,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'listOther',
|
||||
export default {
|
||||
name: "listOther",
|
||||
data () {
|
||||
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,
|
||||
loadData: false,
|
||||
moreSearchBtn: true,
|
||||
moreSearchShow: false,
|
||||
exportTestItemNameFlag: false, // 导出模态框
|
||||
exportName: '',
|
||||
total: 0,
|
||||
page: 1,
|
||||
rows: 10,
|
||||
@@ -309,66 +256,14 @@
|
||||
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 () {
|
||||
this.page = 1
|
||||
this.searchSarAccess()
|
||||
},
|
||||
// 分页查询相关
|
||||
//分页查询
|
||||
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) {
|
||||
this.sarSarAccessEOSearch.page = page
|
||||
@@ -388,90 +283,15 @@
|
||||
this.sarSarAccessEOSearch.page = 1
|
||||
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) {
|
||||
this.$router.push({
|
||||
name: 'ListOfStandardsAndRegulationsDetails'
|
||||
})
|
||||
},
|
||||
swapItems (arr, index1, index2) {
|
||||
arr[index1] = arr.splice(index2, 1, arr[index1])[0]
|
||||
return arr
|
||||
},
|
||||
// 删除Access
|
||||
// 删除
|
||||
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) {
|
||||
this.selectedList = []
|
||||
@@ -479,16 +299,6 @@
|
||||
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))
|
||||
@@ -509,113 +319,19 @@
|
||||
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 () {
|
||||
// 分页查询数据
|
||||
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>
|
||||
|
||||
<style lang="less" scoped>
|
||||
@import '~@/assets/styles/style';
|
||||
@import '~@/assets/styles/mixins';
|
||||
#listOther {
|
||||
@import '~@/assets/styles/style';
|
||||
@import '~@/assets/styles/mixins';
|
||||
#listOfCountries {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -657,5 +373,6 @@
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
+29
-323
@@ -1,53 +1,37 @@
|
||||
<!-- 标准法规库 - 项目清单 -->
|
||||
<template>
|
||||
<div id="listProject" class="v-class">
|
||||
<div id="listOfCountries" class="v-class">
|
||||
<div class="search-area">
|
||||
<div class="left">
|
||||
<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.ListName"
|
||||
v-model="sarSarAccessEOSearch.projectName"
|
||||
placeholder="请输入项目名称"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="清单名称" class="search-item search-item-last">
|
||||
<el-input
|
||||
v-model="sarSarAccessEOSearch.ListName"
|
||||
v-model="sarSarAccessEOSearch.detailedListName"
|
||||
placeholder="请输入清单名称"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item class="search-item btn-box">
|
||||
<el-button
|
||||
:loading="searching"
|
||||
icon="el-icon-search"
|
||||
type="primary"
|
||||
class="common-button-primary"
|
||||
size="small"
|
||||
@click="searchSarAccessBtn">
|
||||
查询
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item class="search-item btn-box">
|
||||
<el-button
|
||||
class="common-button-default"
|
||||
icon="el-icon-refresh-left"
|
||||
size="small"
|
||||
@click="clearSearch"></el-button>
|
||||
@click="clearSearch">清空</el-button>
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
@@ -85,12 +69,12 @@
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="countryShow"
|
||||
prop="projectName"
|
||||
label="项目名称"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="accessContent"
|
||||
prop="detailedListName"
|
||||
label="清单名称"
|
||||
align="center"
|
||||
width="260px"
|
||||
@@ -100,7 +84,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="state"
|
||||
prop="detailedListState"
|
||||
label="清单状态"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
@@ -109,32 +93,32 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="version"
|
||||
prop="detailedListVesion"
|
||||
label="清单版本"
|
||||
align="center">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="version"
|
||||
prop="applicationScope"
|
||||
label="适用领域"
|
||||
align="center">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="modifyTime"
|
||||
prop="updateTime"
|
||||
label="更新时间"
|
||||
sortable
|
||||
align="center">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="uname"
|
||||
prop="updatePeople"
|
||||
label="更新人"
|
||||
align="center">
|
||||
</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="'HYY8NGY2RYT3VEDRSK5V'">编辑</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>
|
||||
</div>
|
||||
@@ -161,67 +144,20 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'listProject',
|
||||
export default {
|
||||
name: "listProject",
|
||||
data () {
|
||||
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,
|
||||
loadData: false,
|
||||
moreSearchBtn: true,
|
||||
moreSearchShow: false,
|
||||
exportTestItemNameFlag: false, // 导出模态框
|
||||
exportName: '',
|
||||
total: 0,
|
||||
page: 1,
|
||||
rows: 10,
|
||||
// 查询相关参数
|
||||
sarSarAccessEOSearch: {
|
||||
ListName: '',
|
||||
country: '',
|
||||
accessContent: '',
|
||||
energyKind: '',
|
||||
applyArctic: '',
|
||||
region: '',
|
||||
projectName: '',
|
||||
detailedListName: '',
|
||||
page: 1,
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
validFlag: 0
|
||||
},
|
||||
sarAccessListDatas: [],
|
||||
sarAccessListTotal: 0,
|
||||
@@ -315,66 +251,14 @@
|
||||
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 () {
|
||||
this.page = 1
|
||||
this.searchSarAccess()
|
||||
},
|
||||
// 分页查询相关
|
||||
//分页查询
|
||||
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) {
|
||||
this.sarSarAccessEOSearch.page = page
|
||||
@@ -394,90 +278,15 @@
|
||||
this.sarSarAccessEOSearch.page = 1
|
||||
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) {
|
||||
this.$router.push({
|
||||
name: 'ListOfStandardsAndRegulationsDetails'
|
||||
})
|
||||
},
|
||||
swapItems (arr, index1, index2) {
|
||||
arr[index1] = arr.splice(index2, 1, arr[index1])[0]
|
||||
return arr
|
||||
},
|
||||
// 删除Access
|
||||
// 删除
|
||||
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) {
|
||||
this.selectedList = []
|
||||
@@ -485,16 +294,6 @@
|
||||
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))
|
||||
@@ -515,113 +314,19 @@
|
||||
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 () {
|
||||
// 分页查询数据
|
||||
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>
|
||||
|
||||
<style lang="less" scoped>
|
||||
@import '~@/assets/styles/style';
|
||||
@import '~@/assets/styles/mixins';
|
||||
#listProject {
|
||||
@import '~@/assets/styles/style';
|
||||
@import '~@/assets/styles/mixins';
|
||||
#listOfCountries {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -663,5 +368,6 @@
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
+39
-332
@@ -1,9 +1,24 @@
|
||||
<!-- 标准法规库 - 重点标准跟踪清单 -->
|
||||
<template>
|
||||
<div id="listTracking" class="v-class">
|
||||
<div id="listOfCountries" class="v-class">
|
||||
<div class="search-area">
|
||||
<div class="left">
|
||||
<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-input
|
||||
v-model="sarSarAccessEOSearch.ListName"
|
||||
@@ -13,35 +28,19 @@
|
||||
<el-form-item class="search-item btn-box">
|
||||
<el-button
|
||||
:loading="searching"
|
||||
icon="el-icon-search"
|
||||
type="primary"
|
||||
class="common-button-primary"
|
||||
size="small"
|
||||
@click="searchSarAccessBtn">
|
||||
查询
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item class="search-item btn-box">
|
||||
<el-button
|
||||
class="common-button-default"
|
||||
icon="el-icon-refresh-left"
|
||||
size="small"
|
||||
@click="clearSearch"></el-button>
|
||||
@click="clearSearch">清空</el-button>
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
@@ -79,22 +78,19 @@
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="countryShow"
|
||||
prop="countryArea"
|
||||
label="国家/地区"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="accessContent"
|
||||
prop="detailedListName"
|
||||
label="清单名称"
|
||||
align="center"
|
||||
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
|
||||
prop="state"
|
||||
prop="detailedListState"
|
||||
label="清单状态"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
@@ -103,32 +99,32 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="version"
|
||||
prop="detailedListVesion"
|
||||
label="清单版本"
|
||||
align="center">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="version"
|
||||
prop="applicationScope"
|
||||
label="适用领域"
|
||||
align="center">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="modifyTime"
|
||||
prop="updateTime"
|
||||
label="更新时间"
|
||||
sortable
|
||||
align="center">
|
||||
<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>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="uname"
|
||||
prop="updatePeople"
|
||||
label="更新人"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
@@ -138,10 +134,8 @@
|
||||
<el-dropdown trigger="click" @command="handleCommand">
|
||||
<i class="iconfont"></i>
|
||||
<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="'X9HP9YQL2BRKBFCDMZQT'">删除</el-dropdown-item>
|
||||
<!-- <el-dropdown-item :command="[scope.row, '流程']">流程</el-dropdown-item>-->
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
@@ -155,53 +149,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'listTracking',
|
||||
export default {
|
||||
name: "listTracking",
|
||||
data () {
|
||||
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,
|
||||
loadData: false,
|
||||
moreSearchBtn: true,
|
||||
moreSearchShow: false,
|
||||
exportTestItemNameFlag: false, // 导出模态框
|
||||
exportName: '',
|
||||
total: 0,
|
||||
page: 1,
|
||||
rows: 10,
|
||||
@@ -298,9 +250,6 @@
|
||||
// 更多
|
||||
handleCommand (command) {
|
||||
switch (command[1]) {
|
||||
case '查看':
|
||||
this.showTable(command[0])
|
||||
break
|
||||
case '编辑':
|
||||
this.editTable(command[0])
|
||||
break
|
||||
@@ -309,66 +258,14 @@
|
||||
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 () {
|
||||
this.page = 1
|
||||
this.searchSarAccess()
|
||||
},
|
||||
// 分页查询相关
|
||||
//分页查询
|
||||
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) {
|
||||
this.sarSarAccessEOSearch.page = page
|
||||
@@ -388,90 +285,15 @@
|
||||
this.sarSarAccessEOSearch.page = 1
|
||||
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) {
|
||||
this.$router.push({
|
||||
name: 'ListOfStandardsAndRegulationsDetails'
|
||||
})
|
||||
},
|
||||
swapItems (arr, index1, index2) {
|
||||
arr[index1] = arr.splice(index2, 1, arr[index1])[0]
|
||||
return arr
|
||||
},
|
||||
// 删除Access
|
||||
// 删除
|
||||
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) {
|
||||
this.selectedList = []
|
||||
@@ -479,27 +301,6 @@
|
||||
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编辑按钮 事件
|
||||
editTable (item) {
|
||||
sessionStorage.setItem('accessRow', JSON.stringify(item))
|
||||
@@ -509,113 +310,19 @@
|
||||
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 () {
|
||||
// 分页查询数据
|
||||
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>
|
||||
|
||||
<style lang="less" scoped>
|
||||
@import '~@/assets/styles/style';
|
||||
@import '~@/assets/styles/mixins';
|
||||
#listTracking {
|
||||
@import '~@/assets/styles/style';
|
||||
@import '~@/assets/styles/mixins';
|
||||
#listOfCountries {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -657,5 +364,5 @@
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user