This commit is contained in:
宋伟佳
2021-06-01 17:33:30 +08:00
11 changed files with 4186 additions and 1752 deletions
+2 -2
View File
@@ -189,7 +189,7 @@
</template> </template>
</el-form> </el-form>
<div slot="footer"> <div slot="footer">
<el-button type="primary" round class="common-button-primary" @click="getDomesticStandardTableBtn">高级检索</el-button> <el-button type="primary" class="common-button-primary" @click="getDomesticStandardTableBtn">高级检索</el-button>
<el-button class="common-button-default" @click="clearAllSearch">重置</el-button> <el-button class="common-button-default" @click="clearAllSearch">重置</el-button>
</div> </div>
</el-dialog> </el-dialog>
@@ -381,7 +381,7 @@
</template> </template>
</el-form> </el-form>
<div class="search-condition-btn"> <div class="search-condition-btn">
<el-button type="primary" round class="common-button-primary" @click="getDomesticStandardTableBtn">查询</el-button> <el-button type="primary" class="common-button-primary" @click="getDomesticStandardTableBtn">查询</el-button>
<el-button class="common-button-default" @click="clearAllSearch">重置</el-button> <el-button class="common-button-default" @click="clearAllSearch">重置</el-button>
</div> </div>
</div> </div>
+5 -5
View File
@@ -158,11 +158,11 @@ export default {
// path: '/enterpriseStandardFiling', // path: '/enterpriseStandardFiling',
// menuId: 'MQBAGJQMSRZDRX3X5AVR' // menuId: 'MQBAGJQMSRZDRX3X5AVR'
// }, // },
// { {
// title: '标准合规评估结果', // 把 标准涉及项目 这几个字 改成 标准合规评估结果 title: '标准合规评估结果', // 把 标准涉及项目 这几个字 改成 标准合规评估结果
// path: '/standInvolveProject', path: '/standInvolveProject',
// menuId: 'JURHS3LVP35US88ABULS' menuId: 'JURHS3LVP35US88ABULS'
// } }
// { // {
// title: '动态信息', // title: '动态信息',
// path: '/information', // path: '/information',
@@ -1,604 +1,50 @@
x`<!-- 标准法规库 - 目标市场准入清单 --> <!-- 标准法规库 - 目标市场准入清单 -->
<template> <template>
<div id="accessStandardsAndRegulations" class="v-class"> <div id="accessStandardsAndRegulations" class="v-class">
<div class="search-area"> <el-tabs v-model="tabValue" style="height: 100%;">
<div class="left"> <el-tab-pane label="国家/地区清单" name="listOfCountries">
<el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form" > <div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
<!-- <el-form-item label="国内/海外" class="search-item">--> <list-of-countries v-if="tabValue === 'listOfCountries'"></list-of-countries>
<!-- <el-select-->
<!-- v-model="sarSarAccessEOSearch.type"-->
<!-- placeholder="请选择"-->
<!-- filterable-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in regionOptions"-->
<!-- :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-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 class="search-item btn-box">
<el-button
:loading="searching"
icon="el-icon-search"
type="primary"
class="common-button-primary"
round
@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"
round
@click="clearSearch"></el-button>
</el-form-item>
<el-button
type="primary"
class="common-button-primary"
round
@click="selectMoreBtn"
><i class="iconfont">&#xe7a5;</i>高级查询</el-button>
<AdvancedQuery
:isAdvancedSearch.sync="isAdvancedSearch"
:twoOptions="twoOptions"
:threeOptions="threeOptions"
@twoSelectChange="twoSelectChange"
@getDomesticStandardTableBtn="getDomesticStandardTableBtn"
></AdvancedQuery>
</el-form>
</div> </div>
</el-tab-pane>
<el-tab-pane label="项目类清单" name="listProject">
<div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
<list-project v-if="tabValue === 'listProject'"></list-project>
</div> </div>
<div class="action-bar"> </el-tab-pane>
<el-button <el-tab-pane label="重点标准跟踪清单" name="listTracking">
type="primary" <div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
class="common-button-primary add-button" <list-tracking v-if="tabValue === 'listTracking'"></list-tracking>
round
@click="openModal(null,'addOpt')"
v-btn-permission="'J2YEFN9MH4KWW5HMR2QH'"
><i class="iconfont">&#xe84e;</i>新增</el-button>
<el-button
class="common-button-default delete-button"
:loading="delLoading"
round
@click="deleteSarAccess('demore',null)"
v-btn-permission="'WPNW79T3DNUZPJFNMHGP'"
><i class="iconfont">&#xe61b;</i>批量删除</el-button>
</div> </div>
<div class="container"> </el-tab-pane>
<el-table <el-tab-pane label="其他清单" name="listOther">
:data="sarAccessListDatas" <div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
tooltip-effect="dark" <list-other v-if="tabValue === 'listOther'"></list-other>
style="width: 100%"
border
height="100%"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="selectOne"
ref="selection"
>
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column
prop="countryShow"
label="国家/地区"
align="center">
</el-table-column>
<el-table-column
prop="accessContent"
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"
label="清单状态"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.state === '1'">未发布</span>
<span v-if="scope.row.state === '2'">已发布</span>
</template>
</el-table-column>
<el-table-column
prop="version"
label="清单版本"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
</template>
</el-table-column>
<el-table-column
prop="modifyTime"
label="更新时间"
sortable
align="center">
<template slot-scope="scope">
<div>{{ scope.row.modifyTime ? scope.row.modifyTime.split(' ')[0] : '' }}</div>
</template>
</el-table-column>
<el-table-column
prop="uname"
label="更新人"
align="center">
</el-table-column>
<el-table-column label="操作" align="center" width="50" fixed="right">
<template slot-scope="scope">
<div @click.stop style="display: inline-block">
<el-dropdown trigger="click" @command="handleCommand">
<i class="iconfont">&#xe61e;</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>
</template>
</el-table-column>
</el-table>
<loading :loading="loading">数据获取中</loading>
<pagination :page="sarSarAccessEOSearch.page" :total="sarAccessListTotal" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
</div> </div>
</el-tab-pane>
</el-tabs>
</div> </div>
</template> </template>
<script> <script>
import listOfCountries from "../accessStandardsAndRegulations/page/listOfCountries"
import listProject from "../accessStandardsAndRegulations/page/listProject"
import listTracking from "../accessStandardsAndRegulations/page/listTracking"
import listOther from "../accessStandardsAndRegulations/page/listOther"
export default { export default {
name: 'AccessStandardsAndRegulations', name: 'AccessStandardsAndRegulations',
data () { data () {
return { return {
isAdvancedSearch: false, tabValue: 'listOfCountries'
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: {
country: '',
accessContent: '',
energyKind: '',
applyArctic: '',
region: '',
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
validFlag: 0
},
sarAccessListDatas: [],
sarAccessListTotal: 0,
loading: false,
selectedList: [],
// 新增、编辑 准入信息字段
sarAccessEO: {
country: '',
applyArctic: '',
energyKind: '',
accessContent: '',
region: ''
},
drawerPage: 1, // 当前抽屉分页的页码
drawerTotal: 0, // 抽屉分页的总条数
sarAccessEORules: {
region: [
{required: true, message: '区域不能为空', trigger: 'change'}
],
country: [
{required: true, message: '国家不能为空', trigger: 'change'}
],
accessContent: [
{required: true, message: '表格名称不能为空', trigger: 'blur'},
{type: 'string', max: 100, message: '表格名称不能超过100个字符', trigger: 'blur'}
]
},
countryOptions: [],
drawerCountryOptions: [], // 准入信息 国家下拉框
drawerCountryTwoOptions: [], // 数据搜索-多属性搜索国家下拉框
energyKindOptions: [],
categoryOptions: [],
applyArcticOptions: [],
applyAuthOptions: [], // 认证类型下拉框
// 区域
regionOptions: [
{
label: '国内',
value: 'INLAND'
},
{
label: '海外',
value: 'FOREIGN'
}
],
showModalTitle: '',
disabledFlag: false,
showModalFlag: false,
// 新增、编辑过程中数据搜索字段
sarAccessInfoSearch: {
region: '', // 区域
country: '', // 国家
keywords: '', // 关键字
energyKind: '', // 能源种类
category: '', // 所属专业领域
applyArctic: '', // 适用车型
deadLine: '', // 截止时间
applyAuth: '' // 认证类型
},
dataSourceOptions: [
{value: 'INLAND_STAND', label: '国内标准法规'},
{value: 'FOREIGN_STAND', label: '海外标准法规'},
{value: 'FOREIGN_LAWS', label: '国内外政策'},
{value: 'BUSINESS', label: '企业标准 '}
],
sarAccessInfoSearchList: [],
selectedAccInfoSearchList: [],
sarAccessInfoListArry: [],
sarAccessInfoList: [],
importExcelUrl: '/api/lawss/sarSarAccessInfo/importSarAccessInfo?accessId=',
importmodalFlag: false,
saveExportType: '',
seeModalFlag: false, // 查看抽屉显示隐藏
seeModalTitle: '', // 查看抽屉title
seeSarAccessInfoList: [], // 查看抽屉内 table
delLoading: false
} }
}, },
methods: { methods: {},
// 更多 components: {
handleCommand (command) { listOfCountries,
switch (command[1]) { listProject,
case '查看': listTracking,
this.showTable(command[0]) listOther
break
case '编辑':
this.editTable(command[0])
break
case '删除':
this.deleteSarAccess('delOne', command[0].id)
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
this.searchSarAccess()
},
pageSizeChange (pageSize) {
this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent
this.searchSarAccess()
},
clearSearch (search = true) {
// search 字段是为了处理高级查询时清空字段用的
this.sarSarAccessEOSearch.country = ''
this.sarSarAccessEOSearch.accessContent = ''
this.sarSarAccessEOSearch.applyArctic = ''
this.sarSarAccessEOSearch.energyKind = ''
this.sarSarAccessEOSearch.type = ''
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 = []
for (let i = 0; i < alldata.length; i++) {
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))
this.$router.push({
name: 'ListOfStandardsAndRegulationsDetails',
query: {
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: {}, props: {},
@@ -606,22 +52,7 @@ export default {
watch: {}, watch: {},
mounted () { 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> </script>
@@ -630,45 +61,30 @@ export default {
@import '~@/assets/styles/mixins'; @import '~@/assets/styles/mixins';
#accessStandardsAndRegulations { #accessStandardsAndRegulations {
height: 100%; height: 100%;
padding: 0 10px;
background: #fff;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.container { /deep/.el-tabs{
display: flex;
flex-direction: column;
position: relative;
flex: auto; flex: auto;
width: 100%; display: flex;
//height: calc(~'100% - 105px - 56px') !important; flex-direction: column;
.pagination { /deep/ .el-tabs__header{
position: static; margin:0 !important;
/deep/ .pagination-slot {
padding: 0;
} }
} .el-tabs__content {
} height: 100% !important;
.el-divider{ flex: auto;
.el-divider__text{
font-size: 16px;
color: #0c91e5;
}
}
.standards-drawer-table-one{
position: relative; position: relative;
height: 350px; display: flex;
.pagination{ flex-direction: column;
bottom: 0; .el-tab-pane {
height: 100%;
flex: auto;
display: flex;
flex-direction: column;
} }
} }
.standards-drawer-table{
margin-top: 10px;
}
.see-drawer{
.searchAngNewBtn{
float: right;
}
.el-divider{
clear: both;
}
} }
} }
</style> </style>
@@ -0,0 +1,676 @@
<!-- 标准法规库 - 国家/地区清单 -->
<template>
<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"
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>
</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">&#xe7a5;</i>高级查询</el-button>
</el-form-item>
<AdvancedQuery
:isAdvancedSearch.sync="isAdvancedSearch"
:twoOptions="twoOptions"
:threeOptions="threeOptions"
@twoSelectChange="twoSelectChange"
@getDomesticStandardTableBtn="getDomesticStandardTableBtn"
></AdvancedQuery>
</el-form>
</div>
</div>
<div class="action-bar">
<el-button
type="primary"
class="common-button-primary add-button"
size="mini"
@click="openModal(null,'addOpt')"
v-btn-permission="'J2YEFN9MH4KWW5HMR2QH'"
><i class="iconfont">&#xe84e;</i>新增</el-button>
<el-button
class="common-button-default delete-button"
:loading="delLoading"
size="mini"
@click="deleteSarAccess('demore',null)"
v-btn-permission="'WPNW79T3DNUZPJFNMHGP'"
><i class="iconfont">&#xe61b;</i>批量删除</el-button>
</div>
<div class="container">
<el-table
:data="sarAccessListDatas"
tooltip-effect="dark"
style="width: 100%"
border
height="100%"
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="selectOne"
ref="selection"
>
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column
prop="countryShow"
label="国家/地区"
align="center">
</el-table-column>
<el-table-column
prop="accessContent"
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"
label="清单状态"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.state === '1'">未发布</span>
<span v-if="scope.row.state === '2'">已发布</span>
</template>
</el-table-column>
<el-table-column
prop="version"
label="清单版本"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
</template>
</el-table-column>
<el-table-column
prop="version"
label="适用领域"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
</template>
</el-table-column>
<el-table-column
prop="modifyTime"
label="更新时间"
sortable
align="center">
<template slot-scope="scope">
<div>{{ scope.row.modifyTime ? scope.row.modifyTime.split(' ')[0] : '' }}</div>
</template>
</el-table-column>
<el-table-column
prop="uname"
label="更新人"
align="center">
</el-table-column>
<el-table-column label="操作" align="center" width="50" fixed="right">
<template slot-scope="scope">
<div @click.stop style="display: inline-block">
<el-dropdown trigger="click" @command="handleCommand">
<i class="iconfont">&#xe61e;</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>
</template>
</el-table-column>
</el-table>
<loading :loading="loading">数据获取中</loading>
<pagination :page="sarSarAccessEOSearch.page" :total="sarAccessListTotal" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
</div>
</div>
</template>
<script>
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: '',
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
validFlag: 0
},
sarAccessListDatas: [],
sarAccessListTotal: 0,
loading: false,
selectedList: [],
// 新增、编辑 准入信息字段
sarAccessEO: {
country: '',
applyArctic: '',
energyKind: '',
accessContent: '',
region: ''
},
drawerPage: 1, // 当前抽屉分页的页码
drawerTotal: 0, // 抽屉分页的总条数
sarAccessEORules: {
region: [
{required: true, message: '区域不能为空', trigger: 'change'}
],
country: [
{required: true, message: '国家不能为空', trigger: 'change'}
],
accessContent: [
{required: true, message: '表格名称不能为空', trigger: 'blur'},
{type: 'string', max: 100, message: '表格名称不能超过100个字符', trigger: 'blur'}
]
},
countryOptions: [],
drawerCountryOptions: [], // 准入信息 国家下拉框
drawerCountryTwoOptions: [], // 数据搜索-多属性搜索国家下拉框
energyKindOptions: [],
categoryOptions: [],
applyArcticOptions: [],
applyAuthOptions: [], // 认证类型下拉框
// 区域
regionOptions: [
{
label: '国内',
value: 'INLAND'
},
{
label: '海外',
value: 'FOREIGN'
}
],
showModalTitle: '',
disabledFlag: false,
showModalFlag: false,
// 新增、编辑过程中数据搜索字段
sarAccessInfoSearch: {
region: '', // 区域
country: '', // 国家
keywords: '', // 关键字
energyKind: '', // 能源种类
category: '', // 所属专业领域
applyArctic: '', // 适用车型
deadLine: '', // 截止时间
applyAuth: '' // 认证类型
},
dataSourceOptions: [
{value: 'INLAND_STAND', label: '国内标准法规'},
{value: 'FOREIGN_STAND', label: '海外标准法规'},
{value: 'FOREIGN_LAWS', label: '国内外政策'},
{value: 'BUSINESS', label: '企业标准 '}
],
sarAccessInfoSearchList: [],
selectedAccInfoSearchList: [],
sarAccessInfoListArry: [],
sarAccessInfoList: [],
importExcelUrl: '/api/lawss/sarSarAccessInfo/importSarAccessInfo?accessId=',
importmodalFlag: false,
saveExportType: '',
seeModalFlag: false, // 查看抽屉显示隐藏
seeModalTitle: '', // 查看抽屉title
seeSarAccessInfoList: [], // 查看抽屉内 table
delLoading: false
}
},
methods: {
// 更多
handleCommand (command) {
switch (command[1]) {
case '查看':
this.showTable(command[0])
break
case '编辑':
this.editTable(command[0])
break
case '删除':
this.deleteSarAccess('delOne', command[0].id)
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
this.searchSarAccess()
},
pageSizeChange (pageSize) {
this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent
this.searchSarAccess()
},
clearSearch (search = true) {
// search 字段是为了处理高级查询时清空字段用的
this.sarSarAccessEOSearch.country = ''
this.sarSarAccessEOSearch.accessContent = ''
this.sarSarAccessEOSearch.applyArctic = ''
this.sarSarAccessEOSearch.energyKind = ''
this.sarSarAccessEOSearch.type = ''
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 = []
for (let i = 0; i < alldata.length; i++) {
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))
this.$router.push({
name: 'ListOfStandardsAndRegulationsDetails',
query: {
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 {
height: 100%;
display: flex;
flex-direction: column;
.container {
display: flex;
flex-direction: column;
position: relative;
flex: auto;
width: 100%;
//height: calc(~'100% - 105px - 56px') !important;
.pagination {
position: static;
/deep/ .pagination-slot {
padding: 0;
}
}
}
.el-divider{
.el-divider__text{
font-size: 16px;
color: #0c91e5;
}
}
.standards-drawer-table-one{
position: relative;
height: 350px;
.pagination{
bottom: 0;
}
}
.standards-drawer-table{
margin-top: 10px;
}
.see-drawer{
.searchAngNewBtn{
float: right;
}
.el-divider{
clear: both;
}
}
}
</style>
@@ -0,0 +1,661 @@
<!-- 标准法规库 - 其他清单 -->
<template>
<div id="listOther" 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"
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>
</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">&#xe7a5;</i>高级查询</el-button>
</el-form-item>
<AdvancedQuery
:isAdvancedSearch.sync="isAdvancedSearch"
:twoOptions="twoOptions"
:threeOptions="threeOptions"
@twoSelectChange="twoSelectChange"
@getDomesticStandardTableBtn="getDomesticStandardTableBtn"
></AdvancedQuery>
</el-form>
</div>
</div>
<div class="action-bar">
<el-button
type="primary"
class="common-button-primary add-button"
size="mini"
@click="openModal(null,'addOpt')"
v-btn-permission="'J2YEFN9MH4KWW5HMR2QH'"
><i class="iconfont">&#xe84e;</i>新增</el-button>
<el-button
class="common-button-default delete-button"
:loading="delLoading"
size="mini"
@click="deleteSarAccess('demore',null)"
v-btn-permission="'WPNW79T3DNUZPJFNMHGP'"
><i class="iconfont">&#xe61b;</i>批量删除</el-button>
</div>
<div class="container">
<el-table
:data="sarAccessListDatas"
tooltip-effect="dark"
style="width: 100%"
border
height="100%"
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="selectOne"
ref="selection"
>
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column
prop="countryShow"
label="清单类别"
align="center">
</el-table-column>
<el-table-column
prop="accessContent"
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"
label="清单状态"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.state === '1'">未发布</span>
<span v-if="scope.row.state === '2'">已发布</span>
</template>
</el-table-column>
<el-table-column
prop="version"
label="清单版本"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
</template>
</el-table-column>
<el-table-column
prop="version"
label="适用领域"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
</template>
</el-table-column>
<el-table-column
prop="modifyTime"
label="更新时间"
sortable
align="center">
<template slot-scope="scope">
<div>{{ scope.row.modifyTime ? scope.row.modifyTime.split(' ')[0] : '' }}</div>
</template>
</el-table-column>
<el-table-column
prop="uname"
label="更新人"
align="center">
</el-table-column>
<el-table-column label="操作" align="center" width="50" fixed="right">
<template slot-scope="scope">
<div @click.stop style="display: inline-block">
<el-dropdown trigger="click" @command="handleCommand">
<i class="iconfont">&#xe61e;</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>
</template>
</el-table-column>
</el-table>
<loading :loading="loading">数据获取中</loading>
<pagination :page="sarSarAccessEOSearch.page" :total="sarAccessListTotal" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
</div>
</div>
</template>
<script>
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,
// 查询相关参数
sarSarAccessEOSearch: {
ListName: '',
country: '',
accessContent: '',
energyKind: '',
applyArctic: '',
region: '',
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
validFlag: 0
},
sarAccessListDatas: [],
sarAccessListTotal: 0,
loading: false,
selectedList: [],
// 新增、编辑 准入信息字段
sarAccessEO: {
country: '',
applyArctic: '',
energyKind: '',
accessContent: '',
region: ''
},
drawerPage: 1, // 当前抽屉分页的页码
drawerTotal: 0, // 抽屉分页的总条数
sarAccessEORules: {
region: [
{required: true, message: '区域不能为空', trigger: 'change'}
],
country: [
{required: true, message: '国家不能为空', trigger: 'change'}
],
accessContent: [
{required: true, message: '表格名称不能为空', trigger: 'blur'},
{type: 'string', max: 100, message: '表格名称不能超过100个字符', trigger: 'blur'}
]
},
countryOptions: [],
drawerCountryOptions: [], // 准入信息 国家下拉框
drawerCountryTwoOptions: [], // 数据搜索-多属性搜索国家下拉框
energyKindOptions: [],
categoryOptions: [],
applyArcticOptions: [],
applyAuthOptions: [], // 认证类型下拉框
// 区域
regionOptions: [
{
label: '国内',
value: 'INLAND'
},
{
label: '海外',
value: 'FOREIGN'
}
],
showModalTitle: '',
disabledFlag: false,
showModalFlag: false,
// 新增、编辑过程中数据搜索字段
sarAccessInfoSearch: {
region: '', // 区域
country: '', // 国家
keywords: '', // 关键字
energyKind: '', // 能源种类
category: '', // 所属专业领域
applyArctic: '', // 适用车型
deadLine: '', // 截止时间
applyAuth: '' // 认证类型
},
dataSourceOptions: [
{value: 'INLAND_STAND', label: '国内标准法规'},
{value: 'FOREIGN_STAND', label: '海外标准法规'},
{value: 'FOREIGN_LAWS', label: '国内外政策'},
{value: 'BUSINESS', label: '企业标准 '}
],
sarAccessInfoSearchList: [],
selectedAccInfoSearchList: [],
sarAccessInfoListArry: [],
sarAccessInfoList: [],
importExcelUrl: '/api/lawss/sarSarAccessInfo/importSarAccessInfo?accessId=',
importmodalFlag: false,
saveExportType: '',
seeModalFlag: false, // 查看抽屉显示隐藏
seeModalTitle: '', // 查看抽屉title
seeSarAccessInfoList: [], // 查看抽屉内 table
delLoading: false
}
},
methods: {
// 更多
handleCommand (command) {
switch (command[1]) {
case '查看':
this.showTable(command[0])
break
case '编辑':
this.editTable(command[0])
break
case '删除':
this.deleteSarAccess('delOne', command[0].id)
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
this.searchSarAccess()
},
pageSizeChange (pageSize) {
this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent
this.searchSarAccess()
},
clearSearch (search = true) {
// search 字段是为了处理高级查询时清空字段用的
this.sarSarAccessEOSearch.country = ''
this.sarSarAccessEOSearch.accessContent = ''
this.sarSarAccessEOSearch.applyArctic = ''
this.sarSarAccessEOSearch.energyKind = ''
this.sarSarAccessEOSearch.type = ''
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 = []
for (let i = 0; i < alldata.length; i++) {
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))
this.$router.push({
name: 'ListOfStandardsAndRegulationsDetails',
query: {
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 {
height: 100%;
display: flex;
flex-direction: column;
.container {
display: flex;
flex-direction: column;
position: relative;
flex: auto;
width: 100%;
//height: calc(~'100% - 105px - 56px') !important;
.pagination {
position: static;
/deep/ .pagination-slot {
padding: 0;
}
}
}
.el-divider{
.el-divider__text{
font-size: 16px;
color: #0c91e5;
}
}
.standards-drawer-table-one{
position: relative;
height: 350px;
.pagination{
bottom: 0;
}
}
.standards-drawer-table{
margin-top: 10px;
}
.see-drawer{
.searchAngNewBtn{
float: right;
}
.el-divider{
clear: both;
}
}
}
</style>
@@ -0,0 +1,667 @@
<!-- 标准法规库 - 项目清单 -->
<template>
<div id="listProject" 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"
placeholder="请输入项目名称"
></el-input>
</el-form-item>
<el-form-item label="清单名称" class="search-item search-item-last">
<el-input
v-model="sarSarAccessEOSearch.ListName"
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>
</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">&#xe7a5;</i>高级查询</el-button>
</el-form-item>
<AdvancedQuery
:isAdvancedSearch.sync="isAdvancedSearch"
:twoOptions="twoOptions"
:threeOptions="threeOptions"
@twoSelectChange="twoSelectChange"
@getDomesticStandardTableBtn="getDomesticStandardTableBtn"
></AdvancedQuery>
</el-form>
</div>
</div>
<div class="action-bar">
<el-button
type="primary"
class="common-button-primary add-button"
size="mini"
@click="openModal(null,'addOpt')"
v-btn-permission="'J2YEFN9MH4KWW5HMR2QH'"
><i class="iconfont">&#xe84e;</i>新增</el-button>
<el-button
class="common-button-default delete-button"
:loading="delLoading"
size="mini"
@click="deleteSarAccess('demore',null)"
v-btn-permission="'WPNW79T3DNUZPJFNMHGP'"
><i class="iconfont">&#xe61b;</i>批量删除</el-button>
</div>
<div class="container">
<el-table
:data="sarAccessListDatas"
tooltip-effect="dark"
style="width: 100%"
border
height="100%"
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="selectOne"
ref="selection"
>
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column
prop="countryShow"
label="项目名称"
align="center">
</el-table-column>
<el-table-column
prop="accessContent"
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"
label="清单状态"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.state === '1'">未发布</span>
<span v-if="scope.row.state === '2'">已发布</span>
</template>
</el-table-column>
<el-table-column
prop="version"
label="清单版本"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
</template>
</el-table-column>
<el-table-column
prop="version"
label="适用领域"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
</template>
</el-table-column>
<el-table-column
prop="modifyTime"
label="更新时间"
sortable
align="center">
<template slot-scope="scope">
<div>{{ scope.row.modifyTime ? scope.row.modifyTime.split(' ')[0] : '' }}</div>
</template>
</el-table-column>
<el-table-column
prop="uname"
label="更新人"
align="center">
</el-table-column>
<el-table-column label="操作" align="center" width="50" fixed="right">
<template slot-scope="scope">
<div @click.stop style="display: inline-block">
<el-dropdown trigger="click" @command="handleCommand">
<i class="iconfont">&#xe61e;</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>
</template>
</el-table-column>
</el-table>
<loading :loading="loading">数据获取中</loading>
<pagination :page="sarSarAccessEOSearch.page" :total="sarAccessListTotal" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
</div>
</div>
</template>
<script>
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: '',
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
validFlag: 0
},
sarAccessListDatas: [],
sarAccessListTotal: 0,
loading: false,
selectedList: [],
// 新增、编辑 准入信息字段
sarAccessEO: {
country: '',
applyArctic: '',
energyKind: '',
accessContent: '',
region: ''
},
drawerPage: 1, // 当前抽屉分页的页码
drawerTotal: 0, // 抽屉分页的总条数
sarAccessEORules: {
region: [
{required: true, message: '区域不能为空', trigger: 'change'}
],
country: [
{required: true, message: '国家不能为空', trigger: 'change'}
],
accessContent: [
{required: true, message: '表格名称不能为空', trigger: 'blur'},
{type: 'string', max: 100, message: '表格名称不能超过100个字符', trigger: 'blur'}
]
},
countryOptions: [],
drawerCountryOptions: [], // 准入信息 国家下拉框
drawerCountryTwoOptions: [], // 数据搜索-多属性搜索国家下拉框
energyKindOptions: [],
categoryOptions: [],
applyArcticOptions: [],
applyAuthOptions: [], // 认证类型下拉框
// 区域
regionOptions: [
{
label: '国内',
value: 'INLAND'
},
{
label: '海外',
value: 'FOREIGN'
}
],
showModalTitle: '',
disabledFlag: false,
showModalFlag: false,
// 新增、编辑过程中数据搜索字段
sarAccessInfoSearch: {
region: '', // 区域
country: '', // 国家
keywords: '', // 关键字
energyKind: '', // 能源种类
category: '', // 所属专业领域
applyArctic: '', // 适用车型
deadLine: '', // 截止时间
applyAuth: '' // 认证类型
},
dataSourceOptions: [
{value: 'INLAND_STAND', label: '国内标准法规'},
{value: 'FOREIGN_STAND', label: '海外标准法规'},
{value: 'FOREIGN_LAWS', label: '国内外政策'},
{value: 'BUSINESS', label: '企业标准 '}
],
sarAccessInfoSearchList: [],
selectedAccInfoSearchList: [],
sarAccessInfoListArry: [],
sarAccessInfoList: [],
importExcelUrl: '/api/lawss/sarSarAccessInfo/importSarAccessInfo?accessId=',
importmodalFlag: false,
saveExportType: '',
seeModalFlag: false, // 查看抽屉显示隐藏
seeModalTitle: '', // 查看抽屉title
seeSarAccessInfoList: [], // 查看抽屉内 table
delLoading: false
}
},
methods: {
// 更多
handleCommand (command) {
switch (command[1]) {
case '查看':
this.showTable(command[0])
break
case '编辑':
this.editTable(command[0])
break
case '删除':
this.deleteSarAccess('delOne', command[0].id)
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
this.searchSarAccess()
},
pageSizeChange (pageSize) {
this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent
this.searchSarAccess()
},
clearSearch (search = true) {
// search 字段是为了处理高级查询时清空字段用的
this.sarSarAccessEOSearch.country = ''
this.sarSarAccessEOSearch.accessContent = ''
this.sarSarAccessEOSearch.applyArctic = ''
this.sarSarAccessEOSearch.energyKind = ''
this.sarSarAccessEOSearch.type = ''
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 = []
for (let i = 0; i < alldata.length; i++) {
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))
this.$router.push({
name: 'ListOfStandardsAndRegulationsDetails',
query: {
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 {
height: 100%;
display: flex;
flex-direction: column;
.container {
display: flex;
flex-direction: column;
position: relative;
flex: auto;
width: 100%;
//height: calc(~'100% - 105px - 56px') !important;
.pagination {
position: static;
/deep/ .pagination-slot {
padding: 0;
}
}
}
.el-divider{
.el-divider__text{
font-size: 16px;
color: #0c91e5;
}
}
.standards-drawer-table-one{
position: relative;
height: 350px;
.pagination{
bottom: 0;
}
}
.standards-drawer-table{
margin-top: 10px;
}
.see-drawer{
.searchAngNewBtn{
float: right;
}
.el-divider{
clear: both;
}
}
}
</style>
@@ -0,0 +1,661 @@
<!-- 标准法规库 - 重点标准跟踪清单 -->
<template>
<div id="listTracking" 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"
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>
</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">&#xe7a5;</i>高级查询</el-button>
</el-form-item>
<AdvancedQuery
:isAdvancedSearch.sync="isAdvancedSearch"
:twoOptions="twoOptions"
:threeOptions="threeOptions"
@twoSelectChange="twoSelectChange"
@getDomesticStandardTableBtn="getDomesticStandardTableBtn"
></AdvancedQuery>
</el-form>
</div>
</div>
<div class="action-bar">
<el-button
type="primary"
class="common-button-primary add-button"
size="mini"
@click="openModal(null,'addOpt')"
v-btn-permission="'J2YEFN9MH4KWW5HMR2QH'"
><i class="iconfont">&#xe84e;</i>新增</el-button>
<el-button
class="common-button-default delete-button"
:loading="delLoading"
size="mini"
@click="deleteSarAccess('demore',null)"
v-btn-permission="'WPNW79T3DNUZPJFNMHGP'"
><i class="iconfont">&#xe61b;</i>批量删除</el-button>
</div>
<div class="container">
<el-table
:data="sarAccessListDatas"
tooltip-effect="dark"
style="width: 100%"
border
height="100%"
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="selectOne"
ref="selection"
>
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column
prop="countryShow"
label="国家/地区"
align="center">
</el-table-column>
<el-table-column
prop="accessContent"
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"
label="清单状态"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.state === '1'">未发布</span>
<span v-if="scope.row.state === '2'">已发布</span>
</template>
</el-table-column>
<el-table-column
prop="version"
label="清单版本"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
</template>
</el-table-column>
<el-table-column
prop="version"
label="适用领域"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.version != null && scope.row.version !== ''">V{{ scope.row.version }}</span>
</template>
</el-table-column>
<el-table-column
prop="modifyTime"
label="更新时间"
sortable
align="center">
<template slot-scope="scope">
<div>{{ scope.row.modifyTime ? scope.row.modifyTime.split(' ')[0] : '' }}</div>
</template>
</el-table-column>
<el-table-column
prop="uname"
label="更新人"
align="center">
</el-table-column>
<el-table-column label="操作" align="center" width="50" fixed="right">
<template slot-scope="scope">
<div @click.stop style="display: inline-block">
<el-dropdown trigger="click" @command="handleCommand">
<i class="iconfont">&#xe61e;</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>
</template>
</el-table-column>
</el-table>
<loading :loading="loading">数据获取中</loading>
<pagination :page="sarSarAccessEOSearch.page" :total="sarAccessListTotal" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
</div>
</div>
</template>
<script>
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,
// 查询相关参数
sarSarAccessEOSearch: {
ListName: '',
country: '',
accessContent: '',
energyKind: '',
applyArctic: '',
region: '',
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
validFlag: 0
},
sarAccessListDatas: [],
sarAccessListTotal: 0,
loading: false,
selectedList: [],
// 新增、编辑 准入信息字段
sarAccessEO: {
country: '',
applyArctic: '',
energyKind: '',
accessContent: '',
region: ''
},
drawerPage: 1, // 当前抽屉分页的页码
drawerTotal: 0, // 抽屉分页的总条数
sarAccessEORules: {
region: [
{required: true, message: '区域不能为空', trigger: 'change'}
],
country: [
{required: true, message: '国家不能为空', trigger: 'change'}
],
accessContent: [
{required: true, message: '表格名称不能为空', trigger: 'blur'},
{type: 'string', max: 100, message: '表格名称不能超过100个字符', trigger: 'blur'}
]
},
countryOptions: [],
drawerCountryOptions: [], // 准入信息 国家下拉框
drawerCountryTwoOptions: [], // 数据搜索-多属性搜索国家下拉框
energyKindOptions: [],
categoryOptions: [],
applyArcticOptions: [],
applyAuthOptions: [], // 认证类型下拉框
// 区域
regionOptions: [
{
label: '国内',
value: 'INLAND'
},
{
label: '海外',
value: 'FOREIGN'
}
],
showModalTitle: '',
disabledFlag: false,
showModalFlag: false,
// 新增、编辑过程中数据搜索字段
sarAccessInfoSearch: {
region: '', // 区域
country: '', // 国家
keywords: '', // 关键字
energyKind: '', // 能源种类
category: '', // 所属专业领域
applyArctic: '', // 适用车型
deadLine: '', // 截止时间
applyAuth: '' // 认证类型
},
dataSourceOptions: [
{value: 'INLAND_STAND', label: '国内标准法规'},
{value: 'FOREIGN_STAND', label: '海外标准法规'},
{value: 'FOREIGN_LAWS', label: '国内外政策'},
{value: 'BUSINESS', label: '企业标准 '}
],
sarAccessInfoSearchList: [],
selectedAccInfoSearchList: [],
sarAccessInfoListArry: [],
sarAccessInfoList: [],
importExcelUrl: '/api/lawss/sarSarAccessInfo/importSarAccessInfo?accessId=',
importmodalFlag: false,
saveExportType: '',
seeModalFlag: false, // 查看抽屉显示隐藏
seeModalTitle: '', // 查看抽屉title
seeSarAccessInfoList: [], // 查看抽屉内 table
delLoading: false
}
},
methods: {
// 更多
handleCommand (command) {
switch (command[1]) {
case '查看':
this.showTable(command[0])
break
case '编辑':
this.editTable(command[0])
break
case '删除':
this.deleteSarAccess('delOne', command[0].id)
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
this.searchSarAccess()
},
pageSizeChange (pageSize) {
this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent
this.searchSarAccess()
},
clearSearch (search = true) {
// search 字段是为了处理高级查询时清空字段用的
this.sarSarAccessEOSearch.country = ''
this.sarSarAccessEOSearch.accessContent = ''
this.sarSarAccessEOSearch.applyArctic = ''
this.sarSarAccessEOSearch.energyKind = ''
this.sarSarAccessEOSearch.type = ''
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 = []
for (let i = 0; i < alldata.length; i++) {
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))
this.$router.push({
name: 'ListOfStandardsAndRegulationsDetails',
query: {
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 {
height: 100%;
display: flex;
flex-direction: column;
.container {
display: flex;
flex-direction: column;
position: relative;
flex: auto;
width: 100%;
//height: calc(~'100% - 105px - 56px') !important;
.pagination {
position: static;
/deep/ .pagination-slot {
padding: 0;
}
}
}
.el-divider{
.el-divider__text{
font-size: 16px;
color: #0c91e5;
}
}
.standards-drawer-table-one{
position: relative;
height: 350px;
.pagination{
bottom: 0;
}
}
.standards-drawer-table{
margin-top: 10px;
}
.see-drawer{
.searchAngNewBtn{
float: right;
}
.el-divider{
clear: both;
}
}
}
</style>
@@ -143,7 +143,7 @@
icon="el-icon-search" icon="el-icon-search"
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
round size="small"
@click="searchLawsStands"> @click="searchLawsStands">
</el-button> </el-button>
</el-form-item> </el-form-item>
@@ -151,7 +151,7 @@
<el-button <el-button
class="common-button-default" class="common-button-default"
icon="el-icon-refresh-left" icon="el-icon-refresh-left"
round size="small"
@click="clearSearchLaws"></el-button> @click="clearSearchLaws"></el-button>
</el-form-item> </el-form-item>
<!-- 多属性搜索暂时不需要已添加高级检索--> <!-- 多属性搜索暂时不需要已添加高级检索-->
@@ -168,7 +168,10 @@
@click="moreSearch">{{$t('m.hideMultiAttributeSearch')}}</el-button> @click="moreSearch">{{$t('m.hideMultiAttributeSearch')}}</el-button>
</el-form-item>--> </el-form-item>-->
<el-form-item> <el-form-item>
<el-button type="primary" class="common-button-primary" round @click="selectMoreBtn"><i class="iconfont">&#xe7a5;</i>高级查询</el-button> <el-button type="primary" class="common-button-primary" size="mini" @click="selectMoreBtn">
<i class="iconfont">&#xe7a5;</i>
高级查询
</el-button>
<AdvancedQuery <AdvancedQuery
ref="advancedQuery" ref="advancedQuery"
:isAdvancedSearch.sync="isAdvancedSearch" :isAdvancedSearch.sync="isAdvancedSearch"
@@ -184,11 +187,11 @@
<div class="action-bar"> <div class="action-bar">
<el-button <el-button
class="common-button-default" class="common-button-default"
round @click="addSarAccess">添加</el-button> size="mini" @click="addSarAccess">添加</el-button>
<el-button <el-button
class="common-button-default" class="common-button-default"
v-if="showTableFlag" v-if="showTableFlag"
round @click="isShowTable" size="mini" @click="isShowTable"
>{{$t('m.showAddDataList')}}</el-button> >{{$t('m.showAddDataList')}}</el-button>
<el-button <el-button
class="common-button-default" class="common-button-default"
@@ -345,47 +348,44 @@
<el-button <el-button
type="primary" type="primary"
class="common-button-primary add-button" class="common-button-primary add-button"
round @click="addEntry" v-if="!disabledFlag" size="mini" @click="addEntry" v-if="!disabledFlag"
><i class="iconfont">&#xe84e;</i>新增</el-button> ><i class="iconfont">&#xe84e;</i>新增</el-button>
<!-- <el-button-->
<!-- class="common-button-default"-->
<!-- round @click="editEntry" v-if="!disabledFlag"-->
<!-- >编辑</el-button>-->
<el-button <el-button
class="common-button-default" class="common-button-default"
round @click="editEntry" v-if="!disabledFlag" size="small" @click="moveUp" v-if="!disabledFlag"
>编辑</el-button>
<el-button
class="common-button-default"
round @click="moveUp" v-if="!disabledFlag"
>上移</el-button> >上移</el-button>
<el-button <el-button
class="common-button-default" class="common-button-default"
round @click="moveDown" size="small" @click="moveDown"
v-if="!disabledFlag" v-if="!disabledFlag"
>下移</el-button> >下移</el-button>
<el-button <!-- <el-button-->
class="common-button-default in-button" <!-- class="common-button-default in-button"-->
round @click="importmodalFlags" <!-- round @click="importmodalFlags"-->
v-if="!disabledFlag" <!-- v-if="!disabledFlag"-->
><i class="iconfont">&#xe6de;</i>导入</el-button> <!-- ><i class="iconfont">&#xe6de;</i>导入</el-button>-->
<el-button <!-- <el-button-->
v-if="this.$route.query.id" <!-- v-if="this.$route.query.id"-->
class="common-button-default export-button" <!-- class="common-button-default export-button"-->
round @click="exportAccessInfo('apart')" <!-- round @click="exportAccessInfo('apart')"-->
><i class="iconfont">&#xe6e9;</i>导出</el-button> <!-- ><i class="iconfont">&#xe6e9;</i>导出</el-button>-->
<el-button <!-- <el-button-->
class="common-button-default" <!-- class="common-button-default"-->
:loading="searching" <!-- :loading="searching"-->
round @click="uploadImportModal" <!-- round @click="uploadImportModal"-->
v-if="!disabledFlag" <!-- v-if="!disabledFlag"-->
v-btn-permission="'KAH9AG7PWRLPAKPS88JG'" <!-- v-btn-permission="'KAH9AG7PWRLPAKPS88JG'"-->
>模板下载</el-button> <!-- >模板下载</el-button>-->
<el-button <el-button
class="common-button-default delete-button" class="common-button-default delete-button"
round @click="deleteSelectSarAccessInfo" size="mini" @click="deleteSelectSarAccessInfo"
v-if="!disabledFlag" v-if="!disabledFlag"
><i class="iconfont">&#xe61b;</i>删除</el-button> ><i class="iconfont">&#xe61b;</i>删除</el-button>
</div> </div>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="技术要求" name="SKILL">
<div class="standards-drawer-table">
<el-table <el-table
:data="sarAccessInfoList" :data="sarAccessInfoList"
class="un-select" class="un-select"
@@ -573,200 +573,390 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> <!-- <el-tabs v-model="activeName" @tab-click="handleClick">-->
</el-tab-pane> <!-- <el-tab-pane label="技术要求" name="SKILL">-->
<el-tab-pane label="行政要求" name="ADMIN"> <!-- <div class="standards-drawer-table">-->
<div class="standards-drawer-table"> <!-- <el-table-->
<el-table <!-- :data="sarAccessInfoList"-->
:data="sarAccessInfoListADMIN" <!-- class="un-select"-->
class="un-select" <!-- style="width: 100%"-->
style="width: 100%" <!-- border-->
border <!-- :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',-->
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', <!-- fontWeight: 'bold', height: '48px'}"-->
fontWeight: 'bold', height: '48px'}" <!-- @selection-change="sarAccessInfoSelect"-->
@selection-change="sarAccessInfoSelect" <!-- ref="tableSKILL"-->
ref="tableADMIN" <!-- >-->
> <!-- <el-table-column-->
<el-table-column <!-- type="selection"-->
type="selection" <!-- width="55"-->
width="55" <!-- align="center">-->
align="center"> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- width="180px"-->
width="180px" <!-- fixed="left"-->
fixed="left" <!-- label="标准号">-->
label="标准号"> <!-- <template slot-scope="scope">-->
<template slot-scope="scope"> <!-- <a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.code }}</a>-->
<a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.code }}</a> <!-- <span v-else>{{ scope.row.code }}</span>-->
<span v-else>{{ scope.row.code }}</span> <!-- </template>-->
</template> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="name"-->
prop="name" <!-- width="260px"-->
width="260px" <!-- fixed="left"-->
fixed="left" <!-- label="中文名称"-->
label="中文名称" <!-- >-->
> <!-- <template slot-scope="scope">-->
<template slot-scope="scope"> <!-- <a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.name }}</a>-->
<a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.name }}</a> <!-- <span v-else>{{ scope.row.name }}</span>-->
<span v-else>{{ scope.row.name }}</span> <!-- </template>-->
</template> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="enName"-->
prop="enName" <!-- width="260px"-->
width="260px" <!-- fixed="left"-->
fixed="left" <!-- label="英文名称">-->
label="英文名称"> <!-- <template slot-scope="scope">-->
<template slot-scope="scope"> <!-- <a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.enName }}</a>-->
<a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.enName }}</a> <!-- <span v-else>{{ scope.row.enName }}</span>-->
<span v-else>{{ scope.row.enName }}</span> <!-- </template>-->
</template> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="newPutTime"-->
prop="newPutTime" <!-- width="180px"-->
width="180px" <!-- label="新车型实施日期(项目)">-->
label="新车型实施日期(项目)"> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="prodPutTime"-->
prop="prodPutTime" <!-- width="180px"-->
width="180px" <!-- label="在产车实施日期(项目)">-->
label="在产车实施日期(项目)"> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="eopPutTime"-->
prop="eopPutTime" <!-- width="180px"-->
width="180px" <!-- label="EOP实施日期(项目)">-->
label="EOP实施日期(项目)"> <!-- </el-table-column>-->
</el-table-column> <!-- &lt;!&ndash; <el-table-column-->
<!--<el-table-column <!-- prop="newPutTextTime"-->
prop="newPutTextTime" <!-- width="210px"-->
width="210px" <!-- label="新车型实施日期(项目)"-->
label="新车型实施日期(项目)" <!-- sortable>-->
sortable> <!-- <template slot-scope="scope">-->
<template slot-scope="scope"> <!-- {{ scope.row.newPutTextTime ? scope.row.newPutTextTime : ['N/A', 'TBD', '已实施'].includes(scope.row.XCXSSRQ) ? '' : getEarliestDate(scope.row.XCXSSRQ) }}-->
{{ scope.row.newPutTextTime ? scope.row.newPutTextTime : ['N/A', 'TBD', '已实施'].includes(scope.row.XCXSSRQ) ? '' : getEarliestDate(scope.row.XCXSSRQ) }} <!-- </template>-->
</template> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="prodPutTextTime"-->
prop="prodPutTextTime" <!-- width="210px"-->
width="210px" <!-- label="在产车实施日期(项目)"-->
label="在产车实施日期(项目)" <!-- sortable>-->
sortable> <!-- <template slot-scope="scope">-->
<template slot-scope="scope"> <!-- {{ scope.row.prodPutTextTime ? scope.row.prodPutTextTime : ['N/A', 'TBD', '已实施'].includes(scope.row.ZCCSSRQ) ? '' : getEarliestDate(scope.row.ZCCSSRQ) }}-->
{{ scope.row.prodPutTextTime ? scope.row.prodPutTextTime : ['N/A', 'TBD', '已实施'].includes(scope.row.ZCCSSRQ) ? '' : getEarliestDate(scope.row.ZCCSSRQ) }} <!-- </template>-->
</template> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="eopPutTextTime"-->
prop="eopPutTextTime" <!-- width="200px"-->
width="200px" <!-- label="EOP实施日期(项目)"-->
label="EOP实施日期(项目)" <!-- sortable>-->
sortable> <!-- <template slot-scope="scope">-->
<template slot-scope="scope"> <!-- {{ scope.row.eopPutTextTime ? scope.row.eopPutTextTime : ['N/A', 'TBD', '已实施'].includes(scope.row.EOPSSRQ) ? '' : getEarliestDate(scope.row.EOPSSRQ) }}-->
{{ scope.row.eopPutTextTime ? scope.row.eopPutTextTime : ['N/A', 'TBD', '已实施'].includes(scope.row.EOPSSRQ) ? '' : getEarliestDate(scope.row.EOPSSRQ) }} <!-- </template>-->
</template> <!-- </el-table-column>&ndash;&gt;-->
</el-table-column>--> <!-- <el-table-column-->
<el-table-column <!-- prop="performInfo"-->
prop="performInfo" <!-- width="280px"-->
width="280px" <!-- show-overflow-tooltip-->
show-overflow-tooltip <!-- label="实施说明">-->
label="实施说明"> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="authDelive"-->
prop="authDelive" <!-- width="120px"-->
width="120px" <!-- label="认证交付物">-->
label="认证交付物"> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="authObjId"-->
prop="authObjId" <!-- width="100px"-->
width="100px" <!-- label="认证对象">-->
label="认证对象"> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="askNature"-->
prop="askNature" <!-- width="100px"-->
width="100px" <!-- label="监管类型">-->
label="监管类型"> <!-- <template slot-scope="scope">-->
<template slot-scope="scope"> <!-- {{ getAskNature(scope.row.askNature) }}-->
{{ getAskNature(scope.row.askNature) }} <!-- </template>-->
</template> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- width="120px"-->
width="120px" <!-- show-overflow-tooltip-->
show-overflow-tooltip <!-- label="适用车辆类型">-->
label="适用车辆类型"> <!-- <template slot-scope="scope">-->
<template slot-scope="scope"> <!-- {{ getApplyArctic(scope.row.applyArctic) }}-->
{{ getApplyArctic(scope.row.applyArctic) }} <!-- </template>-->
</template> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="ZRBMName"-->
prop="ZRBMName" <!-- width="150px"-->
width="150px" <!-- show-overflow-tooltip-->
show-overflow-tooltip <!-- label="责任部门">-->
label="责任部门"> <!-- <template slot-scope="scope">-->
<template slot-scope="scope"> <!-- {{ scope.row.ZRBMName || scope.row.zrbmname || '' }}-->
{{ scope.row.ZRBMName || scope.row.zrbmname || '' }} <!-- </template>-->
</template> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="XGBMName"-->
prop="XGBMName" <!-- width="100px"-->
width="100px" <!-- show-overflow-tooltip-->
show-overflow-tooltip <!-- label="相关部门">-->
label="相关部门"> <!-- <template slot-scope="scope">-->
<template slot-scope="scope"> <!-- {{ scope.row.XGBMName || scope.row.xgbmname || '' }}-->
{{ scope.row.XGBMName || scope.row.xgbmname || '' }} <!-- </template>-->
</template> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="FOName"-->
prop="FOName" <!-- width="150px"-->
width="150px" <!-- show-overflow-tooltip-->
show-overflow-tooltip <!-- label="FO">-->
label="FO"> <!-- <template slot-scope="scope">-->
<template slot-scope="scope"> <!-- {{ scope.row.FOName || scope.row.foname || '' }}-->
{{ scope.row.FOName || scope.row.foname || '' }} <!-- </template>-->
</template> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="proEssessUser"-->
prop="proEssessUser" <!-- width="120px"-->
width="120px" <!-- show-overflow-tooltip-->
show-overflow-tooltip <!-- label="项目评估角色">-->
label="项目评估角色"> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- prop="synopsis"-->
prop="synopsis" <!-- width="200px"-->
width="200px" <!-- show-overflow-tooltip-->
show-overflow-tooltip <!-- label="文本说明">-->
label="文本说明"> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- width="120px"-->
width="120px" <!-- show-overflow-tooltip-->
show-overflow-tooltip <!-- label="标签">-->
label="标签"> <!-- <template slot-scope="scope">-->
<template slot-scope="scope"> <!-- {{ getGXHBQ(scope.row.GXHBQ || scope.row.gxhbq) }}-->
{{ getGXHBQ(scope.row.GXHBQ || scope.row.gxhbq) }} <!-- </template>-->
</template> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column-->
<el-table-column <!-- width="120px"-->
width="120px" <!-- show-overflow-tooltip-->
show-overflow-tooltip <!-- label="要求类型">-->
label="要求类型"> <!-- <template slot-scope="scope">-->
<template slot-scope="scope"> <!-- {{ getAskType(scope.row.askType) }}-->
{{ getAskType(scope.row.askType) }} <!-- </template>-->
</template> <!-- </el-table-column>-->
</el-table-column> <!-- <el-table-column label="操作" align="center" width="50" fixed="right">-->
<el-table-column label="操作" align="center" width="50" fixed="right"> <!-- <template slot-scope="scope" v-if="scope.row.sarType === 'TEMP'">-->
<template slot-scope="scope" v-if="scope.row.sarType === 'TEMP'"> <!-- <div @click.stop style="display: inline-block">-->
<div @click.stop style="display: inline-block"> <!-- <el-dropdown trigger="click" @command="handleCommand">-->
<el-dropdown trigger="click" @command="handleCommand"> <!-- <i class="iconfont">&#xe61e;</i>-->
<i class="iconfont">&#xe61e;</i> <!-- <el-dropdown-menu slot="dropdown">-->
<el-dropdown-menu slot="dropdown"> <!-- <el-dropdown-item :command="[scope.row, '入库']">入库</el-dropdown-item>-->
<el-dropdown-item :command="[scope.row, '入库']">入库</el-dropdown-item> <!-- </el-dropdown-menu>-->
</el-dropdown-menu> <!-- </el-dropdown>-->
</el-dropdown> <!-- </div>-->
</div> <!-- </template>-->
</template> <!-- </el-table-column>-->
</el-table-column> <!-- </el-table>-->
</el-table> <!-- </div>-->
</div> <!-- </el-tab-pane>-->
</el-tab-pane> <!-- <el-tab-pane label="行政要求" name="ADMIN">-->
</el-tabs> <!-- <div class="standards-drawer-table">-->
<!-- <el-table-->
<!-- :data="sarAccessInfoListADMIN"-->
<!-- class="un-select"-->
<!-- style="width: 100%"-->
<!-- border-->
<!-- :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',-->
<!-- fontWeight: 'bold', height: '48px'}"-->
<!-- @selection-change="sarAccessInfoSelect"-->
<!-- ref="tableADMIN"-->
<!-- >-->
<!-- <el-table-column-->
<!-- type="selection"-->
<!-- width="55"-->
<!-- align="center">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- width="180px"-->
<!-- fixed="left"-->
<!-- label="标准号">-->
<!-- <template slot-scope="scope">-->
<!-- <a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.code }}</a>-->
<!-- <span v-else>{{ scope.row.code }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="name"-->
<!-- width="260px"-->
<!-- fixed="left"-->
<!-- label="中文名称"-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- <a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.name }}</a>-->
<!-- <span v-else>{{ scope.row.name }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="enName"-->
<!-- width="260px"-->
<!-- fixed="left"-->
<!-- label="英文名称">-->
<!-- <template slot-scope="scope">-->
<!-- <a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.enName }}</a>-->
<!-- <span v-else>{{ scope.row.enName }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="newPutTime"-->
<!-- width="180px"-->
<!-- label="新车型实施日期(项目)">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="prodPutTime"-->
<!-- width="180px"-->
<!-- label="在产车实施日期(项目)">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="eopPutTime"-->
<!-- width="180px"-->
<!-- label="EOP实施日期(项目)">-->
<!-- </el-table-column>-->
<!-- &lt;!&ndash;<el-table-column-->
<!-- prop="newPutTextTime"-->
<!-- width="210px"-->
<!-- label="新车型实施日期(项目)"-->
<!-- sortable>-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.newPutTextTime ? scope.row.newPutTextTime : ['N/A', 'TBD', '已实施'].includes(scope.row.XCXSSRQ) ? '' : getEarliestDate(scope.row.XCXSSRQ) }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="prodPutTextTime"-->
<!-- width="210px"-->
<!-- label="在产车实施日期(项目)"-->
<!-- sortable>-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.prodPutTextTime ? scope.row.prodPutTextTime : ['N/A', 'TBD', '已实施'].includes(scope.row.ZCCSSRQ) ? '' : getEarliestDate(scope.row.ZCCSSRQ) }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="eopPutTextTime"-->
<!-- width="200px"-->
<!-- label="EOP实施日期(项目)"-->
<!-- sortable>-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.eopPutTextTime ? scope.row.eopPutTextTime : ['N/A', 'TBD', '已实施'].includes(scope.row.EOPSSRQ) ? '' : getEarliestDate(scope.row.EOPSSRQ) }}-->
<!-- </template>-->
<!-- </el-table-column>&ndash;&gt;-->
<!-- <el-table-column-->
<!-- prop="performInfo"-->
<!-- width="280px"-->
<!-- show-overflow-tooltip-->
<!-- label="实施说明">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="authDelive"-->
<!-- width="120px"-->
<!-- label="认证交付物">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="authObjId"-->
<!-- width="100px"-->
<!-- label="认证对象">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="askNature"-->
<!-- width="100px"-->
<!-- label="监管类型">-->
<!-- <template slot-scope="scope">-->
<!-- {{ getAskNature(scope.row.askNature) }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- width="120px"-->
<!-- show-overflow-tooltip-->
<!-- label="适用车辆类型">-->
<!-- <template slot-scope="scope">-->
<!-- {{ getApplyArctic(scope.row.applyArctic) }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="ZRBMName"-->
<!-- width="150px"-->
<!-- show-overflow-tooltip-->
<!-- label="责任部门">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.ZRBMName || scope.row.zrbmname || '' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="XGBMName"-->
<!-- width="100px"-->
<!-- show-overflow-tooltip-->
<!-- label="相关部门">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.XGBMName || scope.row.xgbmname || '' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="FOName"-->
<!-- width="150px"-->
<!-- show-overflow-tooltip-->
<!-- label="FO">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.FOName || scope.row.foname || '' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="proEssessUser"-->
<!-- width="120px"-->
<!-- show-overflow-tooltip-->
<!-- label="项目评估角色">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="synopsis"-->
<!-- width="200px"-->
<!-- show-overflow-tooltip-->
<!-- label="文本说明">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- width="120px"-->
<!-- show-overflow-tooltip-->
<!-- label="标签">-->
<!-- <template slot-scope="scope">-->
<!-- {{ getGXHBQ(scope.row.GXHBQ || scope.row.gxhbq) }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- width="120px"-->
<!-- show-overflow-tooltip-->
<!-- label="要求类型">-->
<!-- <template slot-scope="scope">-->
<!-- {{ getAskType(scope.row.askType) }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="操作" align="center" width="50" fixed="right">-->
<!-- <template slot-scope="scope" v-if="scope.row.sarType === 'TEMP'">-->
<!-- <div @click.stop style="display: inline-block">-->
<!-- <el-dropdown trigger="click" @command="handleCommand">-->
<!-- <i class="iconfont">&#xe61e;</i>-->
<!-- <el-dropdown-menu slot="dropdown">-->
<!-- <el-dropdown-item :command="[scope.row, '入库']">入库</el-dropdown-item>-->
<!-- </el-dropdown-menu>-->
<!-- </el-dropdown>-->
<!-- </div>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table>-->
<!-- </div>-->
<!-- </el-tab-pane>-->
<!-- </el-tabs>-->
</div> </div>
<div class="footer"> <div class="footer">
<el-button class="common-button-primary" icon="el-icon-check" type="primary" @click="saveSarAccess" v-if="!disabledFlag" :loading="loadData">{{$t('m.submit')}}</el-button> <el-button class="common-button-primary" icon="el-icon-check" type="primary" @click="saveSarAccess" v-if="!disabledFlag" :loading="loadData">{{$t('m.submit')}}</el-button>
@@ -87,18 +87,18 @@
</el-popover> </el-popover>
</el-form-item> </el-form-item>
<el-form-item label="" class="search-item btn-box"> <el-form-item label="" class="search-item btn-box">
<el-button class="common-button-primary" type="primary" icon="el-icon-search" round @click="selectProductBtn"></el-button> <el-button class="common-button-primary" type="primary" icon="el-icon-search" size="small" @click="selectProductBtn"></el-button>
</el-form-item> </el-form-item>
<el-form-item label="" class="search-item btn-box"> <el-form-item label="" class="search-item btn-box">
<el-button class="common-button-default" icon="el-icon-refresh-left" @click="resetSelect" round></el-button> <el-button class="common-button-default" icon="el-icon-refresh-left" @click="resetSelect" size="small"></el-button>
</el-form-item> </el-form-item>
<el-button class="common-button-default export-button" <el-button class="common-button-default export-button"
round @click="exportStandard()" size="small" @click="exportStandard()"
title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项" title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项"
icon="export" icon="export"
>导出</el-button> >导出</el-button>
<el-button type="primary" class="common-button-primary" round @click="selectMoreBtn"><i class="iconfont">&#xe7a5;</i>高级查询</el-button> <el-button type="primary" class="common-button-primary" size="mini" @click="selectMoreBtn"><i class="iconfont">&#xe7a5;</i>高级查询</el-button>
<AdvancedQuery <AdvancedQuery
:isAdvancedSearch.sync="isAdvancedSearch" :isAdvancedSearch.sync="isAdvancedSearch"
:twoOptions="twoOptions" :twoOptions="twoOptions"
@@ -112,9 +112,6 @@
</div> </div>
</div> </div>
<div class="container" style="position:relative;"> <div class="container" style="position:relative;">
<div style="position: absolute;top: 0;left: 0;bottom: 0;right: 0;">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="技术要求" name="SKILL" class="container-tab-pane">
<div style="position: absolute;top: 0;left: 0;bottom: 0;right: 0;"> <div style="position: absolute;top: 0;left: 0;bottom: 0;right: 0;">
<el-table <el-table
:data="standinfoList" :data="standinfoList"
@@ -182,27 +179,27 @@
sortable sortable
> >
</el-table-column> </el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="newPutTextTime"--> <!-- prop="newPutTextTime"-->
<!-- width="210px"--> <!-- width="210px"-->
<!-- label="新车型实施日期(项目)"--> <!-- label="新车型实施日期(项目)"-->
<!-- sortable--> <!-- sortable-->
<!-- >--> <!-- >-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="prodPutTextTime"--> <!-- prop="prodPutTextTime"-->
<!-- width="210px"--> <!-- width="210px"-->
<!-- label="在产车实施日期(项目)"--> <!-- label="在产车实施日期(项目)"-->
<!-- sortable--> <!-- sortable-->
<!-- >--> <!-- >-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="eopPutTextTime"--> <!-- prop="eopPutTextTime"-->
<!-- width="200px"--> <!-- width="200px"-->
<!-- label="EOP实施日期(项目)"--> <!-- label="EOP实施日期(项目)"-->
<!-- sortable--> <!-- sortable-->
<!-- >--> <!-- >-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="synopsis"--> <!-- prop="synopsis"-->
<!-- width="100px"--> <!-- width="100px"-->
@@ -345,7 +342,7 @@
<div v-if="!scope.row.color"> <div v-if="!scope.row.color">
<span v-if="scope.row.sarType === 'TEMP'"></span> <span v-if="scope.row.sarType === 'TEMP'"></span>
<div v-else-if="scope.row.sarState === '8'|| ((scope.row.sarState === ''&& (scope.row.prcState !== ''&&scope.row.prcState !== null))||(scope.row.sarState === 'null'&& (scope.row.prcState !== ''&&scope.row.prcState !== null)))"> <div v-else-if="scope.row.sarState === '8'|| ((scope.row.sarState === ''&& (scope.row.prcState !== ''&&scope.row.prcState !== null))||(scope.row.sarState === 'null'&& (scope.row.prcState !== ''&&scope.row.prcState !== null)))">
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/blue.png">--> <!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/blue.png">-->
<!--暂不显示--> <!--暂不显示-->
</div> </div>
<div v-else-if="scope.row.sarState === '2'" > <div v-else-if="scope.row.sarState === '2'" >
@@ -356,7 +353,7 @@
<img class="iconClass" src="../../../../assets/images/ComplianceClassification/grey.png"> <img class="iconClass" src="../../../../assets/images/ComplianceClassification/grey.png">
</div> </div>
<div v-else-if="scope.row.prcState === ''||scope.row.prcState === null"> <div v-else-if="scope.row.prcState === ''||scope.row.prcState === null">
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/white.png" >--> <!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/white.png" >-->
</div> </div>
<!-- <div v-else-if="scope.row.color === '#f00'">--> <!-- <div v-else-if="scope.row.color === '#f00'">-->
<!-- <img class="iconClass" @click="typeColor(scope.row, 1, 1)" src="../../../../assets/images/ComplianceClassification/red.png" >--> <!-- <img class="iconClass" @click="typeColor(scope.row, 1, 1)" src="../../../../assets/images/ComplianceClassification/red.png" >-->
@@ -391,279 +388,556 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<loading :loading="loading">数据获取中</loading> <!-- <el-tabs v-model="activeName" @tab-click="handleClick">-->
</div> <!-- <el-tab-pane label="技术要求" name="SKILL" class="container-tab-pane">-->
</el-tab-pane> <!-- <div style="position: absolute;top: 0;left: 0;bottom: 0;right: 0;">-->
<el-tab-pane label="行政要求" name="ADMIN" class="container-tab-pane"> <!-- <el-table-->
<div style="position: absolute;top: 0;left: 0;bottom: 0;right: 0;"> <!-- :data="standinfoList"-->
<el-table <!-- style="width: 100%"-->
:data="adminInfoList" <!-- height="100%"-->
style="width: 100%" <!-- border-->
height="100%" <!-- :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',-->
border <!-- fontWeight: 'bold', height: '48px'}"-->
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', <!-- @selection-change="standSelectChange"-->
fontWeight: 'bold', height: '48px'}" <!-- ref="skillTable"-->
@selection-change="standSelectChange" <!-- >-->
ref="adminTable" <!-- <el-table-column-->
> <!-- type="selection"-->
<el-table-column <!-- width="55"-->
type="selection" <!-- align="center">-->
width="55" <!-- </el-table-column>-->
align="center"> <!-- <el-table-column-->
</el-table-column> <!-- width="180px"-->
<el-table-column <!-- fixed="left"-->
width="180px" <!-- label="标准号">-->
fixed="left" <!-- <template slot-scope="scope">-->
label="标准号"> <!-- <a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.code }}</a>-->
<template slot-scope="scope"> <!-- <span v-else>{{ scope.row.code }}</span>-->
<a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.code }}</a> <!-- </template>-->
<span v-else>{{ scope.row.code }}</span> <!-- </el-table-column>-->
</template> <!-- <el-table-column-->
</el-table-column> <!-- prop="name"-->
<el-table-column <!-- width="260px"-->
prop="name" <!-- label="中文名称"-->
width="260px" <!-- fixed="left"-->
fixed="left" <!-- >-->
label="中文名称" <!-- <template slot-scope="scope">-->
> <!-- <a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.name }}</a>-->
<template slot-scope="scope"> <!-- <span v-else>{{ scope.row.name }}</span>-->
<a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.name }}</a> <!-- </template>-->
<span v-else>{{ scope.row.name }}</span> <!-- </el-table-column>-->
</template> <!-- <el-table-column-->
</el-table-column> <!-- prop="enName"-->
<el-table-column <!-- width="260px"-->
prop="enName" <!-- fixed="left"-->
width="260px" <!-- label="英文名称">-->
fixed="left" <!-- <template slot-scope="scope">-->
label="英文名称"> <!-- <a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.enName }}</a>-->
<template slot-scope="scope"> <!-- <span v-else>{{ scope.row.enName }}</span>-->
<a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.enName }}</a> <!-- </template>-->
<span v-else>{{ scope.row.enName }}</span> <!-- </el-table-column>-->
</template> <!-- <el-table-column-->
</el-table-column> <!-- prop="newPutTime"-->
<el-table-column <!-- width="190px"-->
prop="newPutTime" <!-- label="新车型实施日期(项目)"-->
width="190px" <!-- sortable-->
label="新车型实施日期(项目)" <!-- >-->
sortable <!-- </el-table-column>-->
> <!-- <el-table-column-->
</el-table-column> <!-- prop="prodPutTime"-->
<el-table-column <!-- width="190px"-->
prop="prodPutTime" <!-- label="在产车实施日期(项目)"-->
width="190px" <!-- sortable-->
label="在产车实施日期(项目)" <!-- >-->
sortable <!-- </el-table-column>-->
> <!-- <el-table-column-->
</el-table-column> <!-- prop="eopPutTime"-->
<el-table-column <!-- width="190px"-->
prop="eopPutTime" <!-- label="EOP实施日期(项目)"-->
width="190px" <!-- sortable-->
label="EOP实施日期(项目)" <!-- >-->
sortable <!-- </el-table-column>-->
> <!--&lt;!&ndash; <el-table-column&ndash;&gt;-->
</el-table-column> <!--&lt;!&ndash; prop="newPutTextTime"&ndash;&gt;-->
<!-- <el-table-column <!--&lt;!&ndash; width="210px"&ndash;&gt;-->
prop="newPutTextTime" <!--&lt;!&ndash; label="新车型实施日期(项目)"&ndash;&gt;-->
width="210px" <!--&lt;!&ndash; sortable&ndash;&gt;-->
label="新车型实施日期(项目)" <!--&lt;!&ndash; >&ndash;&gt;-->
sortable <!--&lt;!&ndash; </el-table-column>&ndash;&gt;-->
> <!--&lt;!&ndash; <el-table-column&ndash;&gt;-->
</el-table-column> <!--&lt;!&ndash; prop="prodPutTextTime"&ndash;&gt;-->
<el-table-column <!--&lt;!&ndash; width="210px"&ndash;&gt;-->
prop="prodPutTextTime" <!--&lt;!&ndash; label="在产车实施日期(项目)"&ndash;&gt;-->
width="210px" <!--&lt;!&ndash; sortable&ndash;&gt;-->
label="在产车实施日期(项目)" <!--&lt;!&ndash; >&ndash;&gt;-->
sortable <!--&lt;!&ndash; </el-table-column>&ndash;&gt;-->
> <!--&lt;!&ndash; <el-table-column&ndash;&gt;-->
</el-table-column> <!--&lt;!&ndash; prop="eopPutTextTime"&ndash;&gt;-->
<el-table-column <!--&lt;!&ndash; width="200px"&ndash;&gt;-->
prop="eopPutTextTime" <!--&lt;!&ndash; label="EOP实施日期(项目)"&ndash;&gt;-->
width="200px" <!--&lt;!&ndash; sortable&ndash;&gt;-->
label="EOP实施日期(项目)" <!--&lt;!&ndash; >&ndash;&gt;-->
sortable <!--&lt;!&ndash; </el-table-column>&ndash;&gt;-->
> <!-- &lt;!&ndash; <el-table-column&ndash;&gt;-->
</el-table-column>--> <!-- &lt;!&ndash; prop="synopsis"&ndash;&gt;-->
<!-- <el-table-column--> <!-- &lt;!&ndash; width="100px"&ndash;&gt;-->
<!-- prop="synopsis"--> <!-- &lt;!&ndash; show-overflow-tooltip&ndash;&gt;-->
<!-- width="100px"--> <!-- &lt;!&ndash; label="法规说明">&ndash;&gt;-->
<!-- show-overflow-tooltip--> <!-- &lt;!&ndash; </el-table-column>&ndash;&gt;-->
<!-- label="法规说明">--> <!-- <el-table-column-->
<!-- </el-table-column>--> <!-- prop="performInfo"-->
<el-table-column <!-- width="280px"-->
prop="performInfo" <!-- show-overflow-tooltip-->
width="280px" <!-- label="实施说明">-->
show-overflow-tooltip <!-- </el-table-column>-->
label="实施说明"> <!-- <el-table-column-->
</el-table-column> <!-- prop="authDelive"-->
<el-table-column <!-- width="120px"-->
prop="authDelive" <!-- label="认证交付物">-->
width="120px" <!-- </el-table-column>-->
label="认证交付物"> <!-- <el-table-column-->
</el-table-column> <!-- prop="authObjId"-->
<el-table-column <!-- width="100px"-->
prop="authObjId" <!-- label="认证对象">-->
width="100px" <!-- </el-table-column>-->
label="认证对象"> <!-- <el-table-column-->
</el-table-column> <!-- prop="askNatureName"-->
<el-table-column <!-- width="100px"-->
prop="askNatureName" <!-- label="监管类型">-->
width="100px" <!-- </el-table-column>-->
label="监管类型"> <!-- <el-table-column-->
</el-table-column> <!-- prop="applyArcticId"-->
<el-table-column <!-- width="120px"-->
prop="applyArcticId" <!-- show-overflow-tooltip-->
width="120px" <!-- label="适用车辆类型">-->
show-overflow-tooltip <!-- </el-table-column>-->
label="适用车辆类型"> <!-- <el-table-column-->
</el-table-column> <!-- prop="ZRBMName"-->
<el-table-column <!-- width="150px"-->
prop="ZRBMName" <!-- show-overflow-tooltip-->
width="150px" <!-- label="责任部门">-->
show-overflow-tooltip <!-- <template slot-scope="scope">-->
label="责任部门"> <!-- {{ scope.row.ZRBMName || scope.row.zrbmname || '' }}-->
<template slot-scope="scope"> <!-- </template>-->
{{ scope.row.ZRBMName || scope.row.zrbmname || '' }} <!-- </el-table-column>-->
</template> <!-- <el-table-column-->
</el-table-column> <!-- prop="XGBMName"-->
<el-table-column <!-- width="100px"-->
prop="XGBMName" <!-- show-overflow-tooltip-->
width="100px" <!-- label="相关部门">-->
show-overflow-tooltip <!-- <template slot-scope="scope">-->
label="相关部门"> <!-- {{ scope.row.XGBMName || scope.row.xgbmname || '' }}-->
<template slot-scope="scope"> <!-- </template>-->
{{ scope.row.XGBMName || scope.row.xgbmname || '' }} <!-- </el-table-column>-->
</template> <!-- <el-table-column-->
</el-table-column> <!-- prop="FOName"-->
<el-table-column <!-- width="150px"-->
prop="FOName" <!-- show-overflow-tooltip-->
width="150px" <!-- label="FO">-->
show-overflow-tooltip <!-- <template slot-scope="scope">-->
label="FO"> <!-- {{ scope.row.FOName || scope.row.foname || '' }}-->
<template slot-scope="scope"> <!-- </template>-->
{{ scope.row.FOName || scope.row.foname || '' }} <!-- </el-table-column>-->
</template> <!-- <el-table-column-->
</el-table-column> <!-- prop="proEssessUser"-->
<el-table-column <!-- width="120px"-->
prop="proEssessUser" <!-- show-overflow-tooltip-->
width="120px" <!-- label="项目评估角色">-->
show-overflow-tooltip <!-- </el-table-column>-->
label="项目评估角色"> <!-- <el-table-column-->
</el-table-column> <!-- prop="synopsis"-->
<el-table-column <!-- width="200px"-->
prop="synopsis" <!-- show-overflow-tooltip-->
width="200px" <!-- label="文本说明">-->
show-overflow-tooltip <!-- </el-table-column>-->
label="文本说明"> <!-- <el-table-column-->
</el-table-column> <!-- width="120px"-->
<el-table-column <!-- show-overflow-tooltip-->
width="120px" <!-- label="标签">-->
show-overflow-tooltip <!-- <template slot-scope="scope">-->
label="标签"> <!-- {{ scope.row.GXHBQName || scope.row.gxhbqName || '' }}-->
<template slot-scope="scope"> <!-- </template>-->
{{ scope.row.GXHBQName || scope.row.gxhbqName || '' }} <!-- </el-table-column>-->
</template> <!-- <el-table-column-->
</el-table-column> <!-- prop="askTypeName"-->
<el-table-column <!-- width="120px"-->
prop="askTypeName" <!-- show-overflow-tooltip-->
width="120px" <!-- label="要求类型">-->
show-overflow-tooltip <!-- </el-table-column>-->
label="要求类型"> <!-- <el-table-column-->
</el-table-column> <!-- prop="prcState"-->
<el-table-column <!-- label="流程状态">-->
prop="prcState" <!-- <template slot-scope="scope">-->
label="流程状态"> <!-- <span v-if="scope.row.sarType === 'TEMP'"></span>-->
<template slot-scope="scope"> <!-- <div v-else-if="scope.row.prcState === '1'">评估中</div>-->
<span v-if="scope.row.sarType === 'TEMP'"></span> <!-- <div v-else-if="scope.row.prcState === '2'">已评估</div>-->
<div v-else-if="scope.row.prcState === '1'">评估</div> <!-- &lt;!&ndash; <div v-else-if="scope.row.prcState === '3'">评估</div>&ndash;&gt;-->
<div v-else-if="scope.row.prcState === '2'">评估</div> <!-- &lt;!&ndash; <div v-else-if="scope.row.prcState === '4'">整改</div>&ndash;&gt;-->
<!-- <div v-else-if="scope.row.prcState === '3'">评估</div>--> <!-- &lt;!&ndash; <div v-else-if="scope.row.prcState === '5'">评估</div>&ndash;&gt;-->
<!-- <div v-else-if="scope.row.prcState === '4'">已整改</div>--> <!-- <div v-else>N/A</div>-->
<!-- <div v-else-if="scope.row.prcState === '5'">未评估</div>--> <!-- </template>-->
<div v-else>N/A</div> <!-- </el-table-column>-->
</template> <!-- <el-table-column-->
</el-table-column> <!-- prop="sarState"-->
<el-table-column <!-- width="100"-->
prop="sarState" <!-- label="符合性状态">-->
width="100" <!-- <template slot-scope="scope">-->
label="符合性状态"> <!-- <span v-if="scope.row.sarType === 'TEMP'"></span>-->
<template slot-scope="scope"> <!-- <a v-else-if="scope.row.sarState === '1'" class="table-jump" @click="changeState(scope.row)">待验证</a>-->
<span v-if="scope.row.sarType === 'TEMP'"></span> <!-- <a v-else-if="scope.row.sarState === '2'" class="table-jump" @click="changeState(scope.row)">符合</a>-->
<a v-else-if="scope.row.sarState === '1'" class="table-jump" @click="changeState(scope.row)">待验证</a> <!-- <a v-else-if="scope.row.sarState === '3'" class="table-jump" @click="changeState(scope.row)">不符合</a>-->
<a v-else-if="scope.row.sarState === '2'" class="table-jump" @click="changeState(scope.row)">符合</a> <!-- <a v-else-if="scope.row.sarState === '4'" class="table-jump" @click="changeState(scope.row)">部分符合</a>-->
<a v-else-if="scope.row.sarState === '3'" class="table-jump" @click="changeState(scope.row)">符合</a> <!-- <a v-else-if="scope.row.sarState === '5'" class="table-jump" @click="changeState(scope.row)">涉及</a>-->
<a v-else-if="scope.row.sarState === '4'" class="table-jump" @click="changeState(scope.row)">部分符合</a> <!-- <a v-else-if="scope.row.sarState === '6'" class="table-jump" @click="changeState(scope.row)">评估中</a>-->
<a v-else-if="scope.row.sarState === '5'" class="table-jump" @click="changeState(scope.row)">不涉及</a> <!-- <a v-else-if="scope.row.sarState === '7'" class="table-jump">整改中</a>-->
<a v-else-if="scope.row.sarState === '6'" class="table-jump" @click="changeState(scope.row)">评估</a> <!-- <a v-else-if="scope.row.sarState === '8'" class="table-jump">评估</a>-->
<a v-else-if="scope.row.sarState === '7'" class="table-jump">整改中</a> <!-- &lt;!&ndash; <a v-else-if="scope.row.sarState === '0'" class="table-jump">部分符合</a>&ndash;&gt;-->
<a v-else-if="scope.row.sarState === '8'" class="table-jump">未评估</a> <!-- </template>-->
<!-- <a v-else-if="scope.row.sarState === '0'" class="table-jump">部分符合</a>--> <!-- </el-table-column>-->
</template> <!-- <el-table-column-->
</el-table-column> <!-- prop="sarState"-->
<el-table-column <!-- align="center"-->
prop="sarState" <!-- width="100"-->
align="center" <!-- label="合规性分级">-->
width="100" <!-- <template slot-scope="scope">-->
label="合规性分级"> <!-- &lt;!&ndash; <span v-if="scope.row.sarType === 'TEMP'"></span>&ndash;&gt;-->
<template slot-scope="scope"> <!-- &lt;!&ndash; <div v-else-if="scope.row.sarState === 8" >&ndash;&gt;-->
<div v-if="!scope.row.color"> <!-- &lt;!&ndash; <img class="iconClass" src="../../../../assets/images/ComplianceClassification/blue.png">&ndash;&gt;-->
<span v-if="scope.row.sarType === 'TEMP'"></span> <!-- &lt;!&ndash; </div>&ndash;&gt;-->
<div v-else-if="scope.row.sarState === '8'|| ((scope.row.sarState === ''&& (scope.row.prcState === ''||scope.row.prcState === null))||(scope.row.sarState === 'null'&& (scope.row.prcState === ''||scope.row.prcState === null)))" > <!-- &lt;!&ndash; <div v-else-if="scope.row.sarState === 2" >&ndash;&gt;-->
<!-- &lt;!&ndash; <img class="iconClass" src="../../../../assets/images/ComplianceClassification/green.png">&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- &lt;!&ndash; <div v-else-if="scope.row.sarState === 5">&ndash;&gt;-->
<!-- &lt;!&ndash; <img class="iconClass" src="../../../../assets/images/ComplianceClassification/white.png">&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- &lt;!&ndash; <div v-else-if="scope.row.color === '#f00' && scope.row.sarState === '3'">&ndash;&gt;-->
<!-- &lt;!&ndash; <img class="iconClass" @click="typeColor(scope.row, 1, 1)" src="../../../../assets/images/ComplianceClassification/red.png" >&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- &lt;!&ndash; <div v-else-if="scope.row.color !== '' && scope.row.sarState === '3'">&ndash;&gt;-->
<!-- &lt;!&ndash; <img class="iconClass" @click="typeColor(scope.row, 2, 1)" src="../../../../assets/images/ComplianceClassification/yellow.png" >&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- <div @click="chooseColor(scope.row, '2')">-->
<!-- <div v-if="!scope.row.color">-->
<!-- <span v-if="scope.row.sarType === 'TEMP'"></span>-->
<!-- <div v-else-if="scope.row.sarState === '8'|| ((scope.row.sarState === ''&& (scope.row.prcState !== ''&&scope.row.prcState !== null))||(scope.row.sarState === 'null'&& (scope.row.prcState !== ''&&scope.row.prcState !== null)))">-->
<!--&lt;!&ndash; <img class="iconClass" src="../../../../assets/images/ComplianceClassification/blue.png">&ndash;&gt;-->
<!-- &lt;!&ndash;暂不显示&ndash;&gt;-->
<!-- </div>-->
<!-- <div v-else-if="scope.row.sarState === '2'" >-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/green.png">-->
<!-- </div>-->
<!-- <div v-else-if="scope.row.sarState === '5'">-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/grey.png">-->
<!-- </div>-->
<!-- <div v-else-if="scope.row.prcState === ''||scope.row.prcState === null">-->
<!--&lt;!&ndash; <img class="iconClass" src="../../../../assets/images/ComplianceClassification/white.png" >&ndash;&gt;-->
<!-- </div>-->
<!-- &lt;!&ndash; <div v-else-if="scope.row.color === '#f00'">&ndash;&gt;-->
<!-- &lt;!&ndash; <img class="iconClass" @click="typeColor(scope.row, 1, 1)" src="../../../../assets/images/ComplianceClassification/red.png" >&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- <div v-else-if="scope.row.sarState === '3'">-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/yellow.png" >-->
<!-- </div>-->
<!-- </div>-->
<!-- <div v-else>-->
<!-- <div v-if="scope.row.color === 'green'" >-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/green.png">-->
<!-- &lt;!&ndash;暂不显示&ndash;&gt;-->
<!-- </div>-->
<!-- <div v-if="scope.row.color === 'red'" >-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/red.png">-->
<!-- &lt;!&ndash;暂不显示&ndash;&gt;-->
<!-- </div>-->
<!-- <div v-if="scope.row.color === 'blue'" >-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/blue.png">--> <!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/blue.png">-->
<!--暂不显示--> <!-- &lt;!&ndash;暂不显示&ndash;&gt;-->
</div> <!-- </div>-->
<div v-else-if="scope.row.sarState === '2'" > <!-- <div v-if="scope.row.color === 'grey'" >-->
<img class="iconClass" src="../../../../assets/images/ComplianceClassification/green.png"> <!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/grey.png">-->
<!-- &lt;!&ndash;暂不显示&ndash;&gt;-->
</div> <!-- </div>-->
<div v-else-if="scope.row.sarState === '5'"> <!-- <div v-if="scope.row.color === 'yellow'" >-->
<img class="iconClass" src="../../../../assets/images/ComplianceClassification/grey.png"> <!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/yellow.png">-->
</div> <!-- &lt;!&ndash;暂不显示&ndash;&gt;-->
<div v-else-if="scope.row.prcState === ''||scope.row.prcState === null"> <!-- </div>-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/white.png" >--> <!-- </div>-->
</div> <!-- </div>-->
<!-- <div v-else-if="scope.row.color === '#f00'">--> <!-- </template>-->
<!-- <img class="iconClass" @click="typeColor(scope.row, 1, 1)" src="../../../../assets/images/ComplianceClassification/red.png" >--> <!-- </el-table-column>-->
<!-- </div>--> <!-- </el-table>-->
<div v-else-if="scope.row.sarState === '3'"> <!-- <loading :loading="loading">数据获取中</loading>-->
<img class="iconClass" src="../../../../assets/images/ComplianceClassification/yellow.png" > <!-- </div>-->
</div> <!-- </el-tab-pane>-->
</div> <!-- <el-tab-pane label="行政要求" name="ADMIN" class="container-tab-pane">-->
<div v-else> <!-- <div style="position: absolute;top: 0;left: 0;bottom: 0;right: 0;">-->
<div v-if="scope.row.color === 'green'" > <!-- <el-table-->
<img class="iconClass" src="../../../../assets/images/ComplianceClassification/green.png"> <!-- :data="adminInfoList"-->
<!--暂不显示--> <!-- style="width: 100%"-->
</div> <!-- height="100%"-->
<div v-if="scope.row.color === 'red'" > <!-- border-->
<img class="iconClass" src="../../../../assets/images/ComplianceClassification/red.png"> <!-- :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',-->
<!--暂不显示--> <!-- fontWeight: 'bold', height: '48px'}"-->
</div> <!-- @selection-change="standSelectChange"-->
<div v-if="scope.row.color === 'blue'" > <!-- ref="adminTable"-->
<img class="iconClass" src="../../../../assets/images/ComplianceClassification/blue.png"> <!-- >-->
<!--暂不显示--> <!-- <el-table-column-->
</div> <!-- type="selection"-->
<div v-if="scope.row.color === 'grey'" > <!-- width="55"-->
<img class="iconClass" src="../../../../assets/images/ComplianceClassification/grey.png"> <!-- align="center">-->
<!--暂不显示--> <!-- </el-table-column>-->
</div> <!-- <el-table-column-->
<div v-if="scope.row.color === 'yellow'" > <!-- width="180px"-->
<img class="iconClass" src="../../../../assets/images/ComplianceClassification/yellow.png"> <!-- fixed="left"-->
<!--暂不显示--> <!-- label="标准号">-->
</div> <!-- <template slot-scope="scope">-->
</div> <!-- <a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.code }}</a>-->
</template> <!-- <span v-else>{{ scope.row.code }}</span>-->
</el-table-column> <!-- </template>-->
<el-table-column <!-- </el-table-column>-->
prop="isInvolveAccess" <!-- <el-table-column-->
width="150px" <!-- prop="name"-->
show-overflow-tooltip <!-- width="260px"-->
label="是否涉及准入审核"> <!-- fixed="left"-->
</el-table-column> <!-- label="中文名称"-->
</el-table> <!-- >-->
<loading :loading="loading">数据获取中</loading> <!-- <template slot-scope="scope">-->
</div> <!-- <a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.name }}</a>-->
</el-tab-pane> <!-- <span v-else>{{ scope.row.name }}</span>-->
</el-tabs> <!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="enName"-->
<!-- width="260px"-->
<!-- fixed="left"-->
<!-- label="英文名称">-->
<!-- <template slot-scope="scope">-->
<!-- <a v-if="scope.row.resId && scope.row.sarType !== 'TEMP'" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.enName }}</a>-->
<!-- <span v-else>{{ scope.row.enName }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="newPutTime"-->
<!-- width="190px"-->
<!-- label="新车型实施日期(项目)"-->
<!-- sortable-->
<!-- >-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="prodPutTime"-->
<!-- width="190px"-->
<!-- label="在产车实施日期(项目)"-->
<!-- sortable-->
<!-- >-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="eopPutTime"-->
<!-- width="190px"-->
<!-- label="EOP实施日期(项目)"-->
<!-- sortable-->
<!-- >-->
<!-- </el-table-column>-->
<!-- &lt;!&ndash; <el-table-column-->
<!-- prop="newPutTextTime"-->
<!-- width="210px"-->
<!-- label="新车型实施日期(项目)"-->
<!-- sortable-->
<!-- >-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="prodPutTextTime"-->
<!-- width="210px"-->
<!-- label="在产车实施日期(项目)"-->
<!-- sortable-->
<!-- >-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="eopPutTextTime"-->
<!-- width="200px"-->
<!-- label="EOP实施日期(项目)"-->
<!-- sortable-->
<!-- >-->
<!-- </el-table-column>&ndash;&gt;-->
<!-- &lt;!&ndash; <el-table-column&ndash;&gt;-->
<!-- &lt;!&ndash; prop="synopsis"&ndash;&gt;-->
<!-- &lt;!&ndash; width="100px"&ndash;&gt;-->
<!-- &lt;!&ndash; show-overflow-tooltip&ndash;&gt;-->
<!-- &lt;!&ndash; label="法规说明">&ndash;&gt;-->
<!-- &lt;!&ndash; </el-table-column>&ndash;&gt;-->
<!-- <el-table-column-->
<!-- prop="performInfo"-->
<!-- width="280px"-->
<!-- show-overflow-tooltip-->
<!-- label="实施说明">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="authDelive"-->
<!-- width="120px"-->
<!-- label="认证交付物">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="authObjId"-->
<!-- width="100px"-->
<!-- label="认证对象">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="askNatureName"-->
<!-- width="100px"-->
<!-- label="监管类型">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="applyArcticId"-->
<!-- width="120px"-->
<!-- show-overflow-tooltip-->
<!-- label="适用车辆类型">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="ZRBMName"-->
<!-- width="150px"-->
<!-- show-overflow-tooltip-->
<!-- label="责任部门">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.ZRBMName || scope.row.zrbmname || '' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="XGBMName"-->
<!-- width="100px"-->
<!-- show-overflow-tooltip-->
<!-- label="相关部门">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.XGBMName || scope.row.xgbmname || '' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="FOName"-->
<!-- width="150px"-->
<!-- show-overflow-tooltip-->
<!-- label="FO">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.FOName || scope.row.foname || '' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="proEssessUser"-->
<!-- width="120px"-->
<!-- show-overflow-tooltip-->
<!-- label="项目评估角色">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="synopsis"-->
<!-- width="200px"-->
<!-- show-overflow-tooltip-->
<!-- label="文本说明">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- width="120px"-->
<!-- show-overflow-tooltip-->
<!-- label="标签">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.GXHBQName || scope.row.gxhbqName || '' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="askTypeName"-->
<!-- width="120px"-->
<!-- show-overflow-tooltip-->
<!-- label="要求类型">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="prcState"-->
<!-- label="流程状态">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-if="scope.row.sarType === 'TEMP'"></span>-->
<!-- <div v-else-if="scope.row.prcState === '1'">评估中</div>-->
<!-- <div v-else-if="scope.row.prcState === '2'">已评估</div>-->
<!-- &lt;!&ndash; <div v-else-if="scope.row.prcState === '3'">已评估</div>&ndash;&gt;-->
<!-- &lt;!&ndash; <div v-else-if="scope.row.prcState === '4'">已整改</div>&ndash;&gt;-->
<!-- &lt;!&ndash; <div v-else-if="scope.row.prcState === '5'">未评估</div>&ndash;&gt;-->
<!-- <div v-else>N/A</div>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="sarState"-->
<!-- width="100"-->
<!-- label="符合性状态">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-if="scope.row.sarType === 'TEMP'"></span>-->
<!-- <a v-else-if="scope.row.sarState === '1'" class="table-jump" @click="changeState(scope.row)">待验证</a>-->
<!-- <a v-else-if="scope.row.sarState === '2'" class="table-jump" @click="changeState(scope.row)">符合</a>-->
<!-- <a v-else-if="scope.row.sarState === '3'" class="table-jump" @click="changeState(scope.row)">不符合</a>-->
<!-- <a v-else-if="scope.row.sarState === '4'" class="table-jump" @click="changeState(scope.row)">部分符合</a>-->
<!-- <a v-else-if="scope.row.sarState === '5'" class="table-jump" @click="changeState(scope.row)">不涉及</a>-->
<!-- <a v-else-if="scope.row.sarState === '6'" class="table-jump" @click="changeState(scope.row)">评估中</a>-->
<!-- <a v-else-if="scope.row.sarState === '7'" class="table-jump">整改中</a>-->
<!-- <a v-else-if="scope.row.sarState === '8'" class="table-jump">未评估</a>-->
<!-- &lt;!&ndash; <a v-else-if="scope.row.sarState === '0'" class="table-jump">部分符合</a>&ndash;&gt;-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="sarState"-->
<!-- align="center"-->
<!-- width="100"-->
<!-- label="合规性分级">-->
<!-- <template slot-scope="scope">-->
<!-- <div v-if="!scope.row.color">-->
<!-- <span v-if="scope.row.sarType === 'TEMP'"></span>-->
<!-- <div v-else-if="scope.row.sarState === '8'|| ((scope.row.sarState === ''&& (scope.row.prcState === ''||scope.row.prcState === null))||(scope.row.sarState === 'null'&& (scope.row.prcState === ''||scope.row.prcState === null)))" >-->
<!--&lt;!&ndash; <img class="iconClass" src="../../../../assets/images/ComplianceClassification/blue.png">&ndash;&gt;-->
<!-- &lt;!&ndash;暂不显示&ndash;&gt;-->
<!-- </div>-->
<!-- <div v-else-if="scope.row.sarState === '2'" >-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/green.png">-->
<!-- </div>-->
<!-- <div v-else-if="scope.row.sarState === '5'">-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/grey.png">-->
<!-- </div>-->
<!-- <div v-else-if="scope.row.prcState === ''||scope.row.prcState === null">-->
<!--&lt;!&ndash; <img class="iconClass" src="../../../../assets/images/ComplianceClassification/white.png" >&ndash;&gt;-->
<!-- </div>-->
<!-- &lt;!&ndash; <div v-else-if="scope.row.color === '#f00'">&ndash;&gt;-->
<!-- &lt;!&ndash; <img class="iconClass" @click="typeColor(scope.row, 1, 1)" src="../../../../assets/images/ComplianceClassification/red.png" >&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- <div v-else-if="scope.row.sarState === '3'">-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/yellow.png" >-->
<!-- </div>-->
<!-- </div>-->
<!-- <div v-else>-->
<!-- <div v-if="scope.row.color === 'green'" >-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/green.png">-->
<!-- &lt;!&ndash;暂不显示&ndash;&gt;-->
<!-- </div>-->
<!-- <div v-if="scope.row.color === 'red'" >-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/red.png">-->
<!-- &lt;!&ndash;暂不显示&ndash;&gt;-->
<!-- </div>-->
<!-- <div v-if="scope.row.color === 'blue'" >-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/blue.png">-->
<!-- &lt;!&ndash;暂不显示&ndash;&gt;-->
<!-- </div>-->
<!-- <div v-if="scope.row.color === 'grey'" >-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/grey.png">-->
<!-- &lt;!&ndash;暂不显示&ndash;&gt;-->
<!-- </div>-->
<!-- <div v-if="scope.row.color === 'yellow'" >-->
<!-- <img class="iconClass" src="../../../../assets/images/ComplianceClassification/yellow.png">-->
<!-- &lt;!&ndash;暂不显示&ndash;&gt;-->
<!-- </div>-->
<!-- </div>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="isInvolveAccess"-->
<!-- width="150px"-->
<!-- show-overflow-tooltip-->
<!-- label="是否涉及准入审核">-->
<!-- </el-table-column>-->
<!-- </el-table>-->
<!-- <loading :loading="loading">数据获取中</loading>-->
<!-- </div>-->
<!-- </el-tab-pane>-->
<!-- </el-tabs>-->
</div> </div>
</div> </div>
<!--导出文件改名字模态框--> <!--导出文件改名字模态框-->
@@ -1,35 +1,9 @@
<!--项目评估结果-->
<template> <template>
<div class="stand-involve-project-detail"> <div class="stand-involve-project-detail">
<!-- <div class="laws-details-header">-->
<!-- &lt;!&ndash; <div class="back" title="返回" @click="back">&ndash;&gt;-->
<!-- &lt;!&ndash; <i class="el-icon-back"></i>&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- <div class="title">技术涉及项目</div>-->
<!-- </div>-->
<div class="search-area"> <div class="search-area">
<div class="left"> <div class="left">
<el-form ref="sarProject" :model="sarProject" inline @keyup.enter.native="searchStandAndLaws"> <el-form ref="sarProject" :model="sarProject" inline @keyup.enter.native="searchStandAndLaws">
<!-- <el-form-item label="国家/地区" class="search-item">-->
<!-- <el-input v-model="sarProject.country"-->
<!-- placeholder="根据国家/地区查找"-->
<!-- clearable></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="国家/地区" class="search-item search-item-last">-->
<!-- <el-select-->
<!-- v-model="sarProject.country"-->
<!-- placeholder="请选择"-->
<!-- filterable-->
<!-- clearable-->
<!-- >-->
<!-- <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"> <el-form-item label="标准/政策号" class="search-item">
<el-input v-model="sarProject.standCode" <el-input v-model="sarProject.standCode"
placeholder="标准/政策号查找" placeholder="标准/政策号查找"
@@ -43,16 +17,12 @@
clearable></el-input> clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="" class="search-item btn-box"> <el-form-item label="" class="search-item btn-box">
<el-button class="common-button-primary" type="primary" icon="el-icon-search" round @click="searchStandAndLaws"></el-button> <el-button class="common-button-primary" type="primary" icon="el-icon-search" size="mini" @click="searchStandAndLaws"></el-button>
</el-form-item> </el-form-item>
<el-form-item label="" class="search-item btn-box"> <el-form-item label="" class="search-item btn-box">
<el-button class="common-button-default" icon="el-icon-refresh-left" @click="resetSelect" round></el-button> <el-button class="common-button-default" icon="el-icon-refresh-left" @click="resetSelect" size="mini"></el-button>
</el-form-item> </el-form-item>
<!-- <el-form-item label="" class="search-item btn-box">--> <!-- <Button type="primary" @click="showExportModal('all')">全部导出</Button>&ndash;&gt;-->
<!-- <el-button class="common-button-default export-button" icon="export" @click="showExportModal('apart')">导出</el-button>-->
<!-- </el-form-item>-->
<!-- <Button type="primary" @click="showExportModal('apart')">导出</Button>-->
<!-- <Button type="primary" @click="showExportModal('all')">全部导出</Button>-->
</el-form> </el-form>
</div> </div>
<div class="right"> <div class="right">
@@ -131,7 +101,7 @@
title="标准涉及项目符合性" title="标准涉及项目符合性"
:visible.sync="showSarProStateModal" :visible.sync="showSarProStateModal"
:wrapperClosable="false" :wrapperClosable="false"
size="800px" size="1100px"
:before-close="clearSearchPro" :before-close="clearSearchPro"
class="not-footer-drawer" class="not-footer-drawer"
> >
@@ -152,14 +122,14 @@
icon="el-icon-search" icon="el-icon-search"
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
round size="mini"
@click="querySarProStateZero"></el-button> @click="querySarProStateZero"></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" icon="el-icon-refresh-left"
round size="mini"
@click="clearSearchProState"></el-button> @click="clearSearchProState"></el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@@ -183,59 +153,86 @@
width="55" width="55"
align="center"> align="center">
</el-table-column> </el-table-column>
<!-- <el-table-column-->
<!-- prop="accessType"-->
<!-- label="清单类型">-->
<!-- <template slot-scope="scope">-->
<!-- <div v-if="scope.row.accessType === 'first'">研发合规法规清单</div>-->
<!-- <div v-if="scope.row.accessType === 'second'">认证合规法规清单</div>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column <el-table-column
prop="productName" prop="carModel"
label="产品线">
</el-table-column>
<el-table-column
prop="carModel"
label="项目编号">
</el-table-column>
<el-table-column
prop="carModel"
label="项目名称"> label="项目名称">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="carModel" prop="carModel"
label="公告车型号"> label="标准编号">
</el-table-column> </el-table-column>
<!--<el-table-column-->
<!-- prop="itemName"-->
<!-- label="标准名称">-->
<!-- <template slot-scope="scope">-->
<!-- <div>{{ exportShowName }}</div>-->
<!-- </template>-->
<!--</el-table-column>-->
<el-table-column <el-table-column
prop="sarState" prop="carModel"
label="符合性状态"> label="标准名称">
<template slot-scope="scope"> </el-table-column>
<!-- <div class="table-jump" @click="handleSarStateClick(scope.row)">--> <el-table-column
<div class="table-jump" @click="changeState(scope.row)"> prop="carModel"
<div v-if="scope.row.sarState === 1">待验证</div> label="标准章节">
<div v-if="scope.row.sarState === 2">符合</div> </el-table-column>
<div v-if="scope.row.sarState === 3">不符合</div> <el-table-column
<div v-if="scope.row.sarState === 4">部分符合</div> prop="carModel"
<div v-if="scope.row.sarState === 5">不涉及</div> label="标准主要内容">
<div v-if="scope.row.sarState === 6">评估中</div> </el-table-column>
<div v-if="scope.row.sarState === 7">整改中</div> <el-table-column
<div v-if="scope.row.sarState === 8"></div> align="center"
</div> label="在研产品">
</template> <el-table-column
prop=""
label="实施时间">
</el-table-column>
<el-table-column
prop=""
label="合规">
</el-table-column>
<el-table-column
align="center"
label="不合规">
<el-table-column
prop=""
label="不合规项目">
</el-table-column>
<el-table-column
prop=""
label="应对措施">
</el-table-column>
<el-table-column
prop=""
label="完成时间">
</el-table-column>
</el-table-column>
</el-table-column>
<el-table-column
align="center"
label="在产产品">
<el-table-column
prop=""
label="实施时间">
</el-table-column>
<el-table-column
prop=""
label="合规(具体情况)">
</el-table-column>
<el-table-column
align="center"
label="不合规">
<el-table-column
prop=""
label="应对措施">
</el-table-column>
<el-table-column
prop=""
label="完成时间">
</el-table-column>
</el-table-column>
</el-table-column> </el-table-column>
<!-- <el-table-column label="操作" align="center" width="50" fixed="right">-->
<!-- <template slot-scope="scope">-->
<!-- <div @click.stop style="display: inline-block">-->
<!-- <el-dropdown trigger="click" @command="handleCommandInside">-->
<!-- <i class="iconfont">&#xe61e;</i>-->
<!-- <el-dropdown-menu slot="dropdown">-->
<!-- <el-dropdown-item :command="[scope.row, '编辑']">编辑</el-dropdown-item>-->
<!--&lt;!&ndash; <el-dropdown-item :command="[scope.row, '查看']">查看</el-dropdown-item>&ndash;&gt;-->
<!-- </el-dropdown-menu>-->
<!-- </el-dropdown>-->
<!-- </div>-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table> </el-table>
<pagination <pagination
:page="sarProStateTotalPage" :page="sarProStateTotalPage"
@@ -243,10 +240,6 @@
@pageChange="pageProStateChange" @pageChange="pageProStateChange"
@pageSizeChange="pageProStateSizeChange"></pagination> @pageSizeChange="pageProStateSizeChange"></pagination>
</div> </div>
<!-- <div class="demo-drawer-footer">-->
<!-- <el-button class="common-button-primary" icon="el-icon-check" type="primary" @click="saveCopyInfor" :loading="isSubmit">提交</el-button>-->
<!-- <el-button class="common-button-default" icon="el-icon-close" @click="resetForm">取消</el-button>-->
<!-- </div>-->
</div> </div>
<!-- 编辑符合性--> <!-- 编辑符合性-->
@@ -690,23 +683,7 @@ export default {
this.exportShowName = row.standName this.exportShowName = row.standName
this.sarItem.productCode = '' this.sarItem.productCode = ''
this.sarItem.productName = '' this.sarItem.productName = ''
// this.queryItemsBySar()
this.row = row this.row = row
// 原方案
// if (this.row.isExistItems === 1) {
// this.isExistItems = 1
// this.standNum = this.row.standCode
// // this.querySarProStateFirst()
// this.saveSarId = this.row.standId
// this.queryItemsBySar()
// this.showSarProStateModal = true
// } else {
// this.isExistItems = 0
// this.querySarProStateZero()
// this.showSarProStateModal = true
// }
this.$http.get('lawss/sarProductStand/isPermission', {standId: this.saveSarId}, { this.$http.get('lawss/sarProductStand/isPermission', {standId: this.saveSarId}, {
_this: this, _this: this,
loading: 'loading3' loading: 'loading3'
@@ -1,35 +1,9 @@
<!--技术评估结果-->
<template> <template>
<div class="technology-involve-project"> <div class="technology-involve-project">
<!-- <div class="laws-details-header">-->
<!-- &lt;!&ndash; <div class="back" title="返回" @click="back">&ndash;&gt;-->
<!-- &lt;!&ndash; <i class="el-icon-back"></i>&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- <div class="title">标准涉及项目</div>-->
<!-- </div>-->
<div class="search-area"> <div class="search-area">
<div class="left"> <div class="left">
<el-form ref="sarProject" :model="sarProject" inline @keyup.enter.native="searchStandAndLaws"> <el-form ref="sarProject" :model="sarProject" inline @keyup.enter.native="searchStandAndLaws">
<!-- <el-form-item label="国家/地区" class="search-item">-->
<!-- <el-input v-model="sarProject.country"-->
<!-- placeholder="根据国家/地区查找"-->
<!-- clearable></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="国家/地区" class="search-item search-item-last">-->
<!-- <el-select-->
<!-- v-model="sarProject.country"-->
<!-- placeholder="请选择"-->
<!-- filterable-->
<!-- clearable-->
<!-- >-->
<!-- <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"> <el-form-item label="标准/政策号" class="search-item">
<el-input v-model="sarProject.standCode" <el-input v-model="sarProject.standCode"
placeholder="标准/政策号查找" placeholder="标准/政策号查找"
@@ -43,16 +17,11 @@
clearable></el-input> clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="" class="search-item btn-box"> <el-form-item label="" class="search-item btn-box">
<el-button class="common-button-primary" type="primary" icon="el-icon-search" round @click="searchStandAndLaws"></el-button> <el-button class="common-button-primary" type="primary" icon="el-icon-search" size="mini" @click="searchStandAndLaws"></el-button>
</el-form-item> </el-form-item>
<el-form-item label="" class="search-item btn-box"> <el-form-item label="" class="search-item btn-box">
<el-button class="common-button-default" icon="el-icon-refresh-left" @click="resetSelect" round></el-button> <el-button class="common-button-default" icon="el-icon-refresh-left" @click="resetSelect" size="mini"></el-button>
</el-form-item> </el-form-item>
<!-- <el-form-item label="" class="search-item btn-box">-->
<!-- <el-button class="common-button-default export-button" icon="export" @click="showExportModal('apart')">导出</el-button>-->
<!-- </el-form-item>-->
<!-- <Button type="primary" @click="showExportModal('apart')">导出</Button>-->
<!-- <Button type="primary" @click="showExportModal('all')">全部导出</Button>-->
</el-form> </el-form>
</div> </div>
<div class="right"> <div class="right">
@@ -88,11 +57,6 @@
<div v-if="scope.row.standType === 'BUSINESS_STAND'">企业标准</div> <div v-if="scope.row.standType === 'BUSINESS_STAND'">企业标准</div>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column-->
<!-- prop="country"-->
<!-- label="国家/地区"-->
<!-- >-->
<!-- </el-table-column>-->
<el-table-column <el-table-column
prop="standCode" prop="standCode"
label="标准/政策号" label="标准/政策号"
@@ -111,15 +75,6 @@
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-view btn-i" v-btn-permission="'WWVT239CTACWUGHMMQVY'" @click="handleProjectCompliance(scope.row)"></i> <i class="el-icon-view btn-i" v-btn-permission="'WWVT239CTACWUGHMMQVY'" @click="handleProjectCompliance(scope.row)"></i>
<!--<div @click.stop style="display: inline-block">-->
<!-- <el-dropdown trigger="click" @command="handleCommand">-->
<!-- <i class="iconfont">&#xe61e;</i>-->
<!-- <el-dropdown-menu slot="dropdown">-->
<!-- <el-dropdown-item :command="[scope.row, '查看项目符合性']">查看项目符合性</el-dropdown-item>-->
<!-- &lt;!&ndash; <el-dropdown-item :command="[scope.row, '流程']">流程</el-dropdown-item>&ndash;&gt;-->
<!-- </el-dropdown-menu>-->
<!-- </el-dropdown>-->
<!--</div>-->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -131,7 +86,7 @@
title="标准涉及项目符合性" title="标准涉及项目符合性"
:visible.sync="showSarProStateModal" :visible.sync="showSarProStateModal"
:wrapperClosable="false" :wrapperClosable="false"
size="800px" size="1100px"
:before-close="clearSearchPro" :before-close="clearSearchPro"
class="not-footer-drawer" class="not-footer-drawer"
> >
@@ -152,14 +107,14 @@
icon="el-icon-search" icon="el-icon-search"
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
round size="mini"
@click="querySarProStateZero"></el-button> @click="querySarProStateZero"></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" icon="el-icon-refresh-left"
round size="mini"
@click="clearSearchProState"></el-button> @click="clearSearchProState"></el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@@ -168,7 +123,6 @@
</div> </div>
</div> </div>
<el-table <el-table
v-if="this.isExistItems === 0"
ref="multipleTable" ref="multipleTable"
:data="sarProStateListDatas" :data="sarProStateListDatas"
tooltip-effect="dark" tooltip-effect="dark"
@@ -183,58 +137,51 @@
width="55" width="55"
align="center"> align="center">
</el-table-column> </el-table-column>
<!-- <el-table-column-->
<!-- prop="accessType"-->
<!-- label="清单类型">-->
<!-- <template slot-scope="scope">-->
<!-- <div v-if="scope.row.accessType === 'first'">研发合规法规清单</div>-->
<!-- <div v-if="scope.row.accessType === 'second'">认证合规法规清单</div>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column <el-table-column
prop="productName" prop="productName"
label="项目名称"> label="标准编号">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="carModel" prop="carModel"
label="公告车型号"> label="标准名称">
</el-table-column> </el-table-column>
<!--<el-table-column-->
<!-- prop="itemName"-->
<!-- label="标准名称">-->
<!-- <template slot-scope="scope">-->
<!-- <div>{{ exportShowName }}</div>-->
<!-- </template>-->
<!--</el-table-column>-->
<el-table-column <el-table-column
prop="sarState" v-if="SarProStateType === 'INLAND'"
label="符合性状态"> prop="productName"
<template slot-scope="scope"> label="上一版本标准编号">
<div class="table-jump" @click="changeState(scope.row)"> </el-table-column>
<div v-if="scope.row.sarState === 1">待验证</div> <el-table-column
<div v-if="scope.row.sarState === 2">符合</div> v-if="SarProStateType !== 'INLAND'"
<div v-if="scope.row.sarState === 3">不符合</div> prop="productName"
<div v-if="scope.row.sarState === 4">部分符合</div> label="对应国行标">
<div v-if="scope.row.sarState === 5">不涉及</div> </el-table-column>
<div v-if="scope.row.sarState === 6">评估中</div> <el-table-column
<div v-if="scope.row.sarState === 7">整改中</div> prop="productName"
<div v-if="scope.row.sarState === 8">未评估</div> label="具体章条">
</div> </el-table-column>
</template> <el-table-column
prop="carModel"
align="center"
label="解读内容">
<el-table-column
prop="carModel"
label="核心技术要求(简述、请勿抄写标准)">
</el-table-column>
<el-table-column
v-if="SarProStateType === 'INLAND'"
prop="carModel"
label="相对于上一版本变化点">
</el-table-column>
<el-table-column
v-if="SarProStateType !== 'INLAND'"
prop="carModel"
label="相对于国行标差异点">
</el-table-column>
<el-table-column
prop="carModel"
label="合规性分析">
</el-table-column>
</el-table-column> </el-table-column>
<!-- <el-table-column label="操作" align="center" width="50" fixed="right">-->
<!-- <template slot-scope="scope">-->
<!-- <div @click.stop style="display: inline-block">-->
<!-- <el-dropdown trigger="click" @command="handleCommandInside">-->
<!-- <i class="iconfont">&#xe61e;</i>-->
<!-- <el-dropdown-menu slot="dropdown">-->
<!-- <el-dropdown-item :command="[scope.row, '编辑']">编辑</el-dropdown-item>-->
<!--&lt;!&ndash; <el-dropdown-item :command="[scope.row, '查看']">查看</el-dropdown-item>&ndash;&gt;-->
<!-- </el-dropdown-menu>-->
<!-- </el-dropdown>-->
<!-- </div>-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table> </el-table>
<pagination <pagination
:page="sarProStateTotalPage" :page="sarProStateTotalPage"
@@ -431,6 +378,7 @@ export default {
name: "technologyInvolveProject", name: "technologyInvolveProject",
data () { data () {
return { return {
SarProStateType: '',
// 条件查询 // 条件查询
sarProject: { sarProject: {
// 国家地区 // 国家地区
@@ -691,45 +639,9 @@ name: "technologyInvolveProject",
this.exportShowName = row.standName this.exportShowName = row.standName
this.sarItem.productCode = '' this.sarItem.productCode = ''
this.sarItem.productName = '' this.sarItem.productName = ''
// this.queryItemsBySar()
this.row = row this.row = row
this.SarProStateType = row.standType
// 原方案 this.showSarProStateModal = true
// if (this.row.isExistItems === 1) {
// this.isExistItems = 1
// this.standNum = this.row.standCode
// // this.querySarProStateFirst()
// this.saveSarId = this.row.standId
// this.queryItemsBySar()
// this.showSarProStateModal = true
// } else {
// this.isExistItems = 0
// this.querySarProStateZero()
// this.showSarProStateModal = true
// }
this.$http.get('lawss/sarProductStand/isPermission', {standId: this.saveSarId}, {
_this: this,
loading: 'loading3'
}, res => {
if (res.ok){
// 现阶段方案
this.isExistItems = 0
this.querySarProStateZero()
// this.showSarProStateModal = true]
let routeUrl = this.$router.resolve({
name: 'ComplianceDetails',
query: {
sarId: row.standId,
sarType: row.standType
}
})
window.open(routeUrl.href, '_blank')
} else{
this.$message.warning('无权访问')
}
}, e => {
})
}, },
handleProjectPreview (row) { handleProjectPreview (row) {
this.saveClickProductId = row.productId this.saveClickProductId = row.productId