feat: There is no way the,laws

This commit is contained in:
super_liu
2021-10-30 21:08:08 +08:00
parent b68d88c1bf
commit c08fa38da1
+53 -46
View File
@@ -85,18 +85,18 @@
show-overflow-tooltip
v-if="selectIndex !== 'msgdyinfo'"
align="center"
:label="selectIndex === 'stand'|| 'bussstand'? $t('m.standNumber') : (selectIndex === 'laws' ? $t('m.documentNumber') : $t('m.enterpriseStandardNumber'))">
:label="(selectIndex === 'stand'||'bussstand') && selectIndex !== 'laws' ? $t('m.standNumber') : (selectIndex === 'laws' ? '政策编号' : $t('m.enterpriseStandardNumber'))">
<template slot-scope="scope">
<a class="jumpColor" style="margin-left: 10px" @click="judgeRolePermiOnSar(scope.row, 1)">{{ scope.row.numbershow }}</a>
<a class="jumpColor" style="margin-left: 10px" @click="judgeRolePermiOnSar(scope.row, 1)">{{ selectIndex === 'laws' ? scope.row.lawsNumber :scope.row.numbershow }}</a>
</template>
</el-table-column>
<el-table-column
show-overflow-tooltip
v-if="selectIndex !== 'msgdyinfo'"
align="center"
:label="selectIndex === 'stand'||'bussstand' ? $t('m.standName') : (selectIndex === 'laws' ? $t('m.fileName') : $t('m.enterpriseStandardName'))">
:label="(selectIndex === 'stand'||'bussstand') && selectIndex !== 'laws' ? $t('m.standName') : (selectIndex === 'laws' ? '中文名称' : $t('m.enterpriseStandardName'))">
<template slot-scope="scope">
<a class="jumpColor" style="margin-left: 10px" @click="judgeRolePermiOnSar(scope.row, 1)">{{ scope.row.nameshow }}</a>
<a class="jumpColor" style="margin-left: 10px" @click="judgeRolePermiOnSar(scope.row, 1)">{{ selectIndex === 'laws' ? scope.row.lawsName : scope.row.nameshow }}</a>
</template>
</el-table-column>
<el-table-column
@@ -111,11 +111,12 @@
</el-table-column>
<el-table-column
align="center"
:label="$t('m.putTime')"
:label="(selectIndex === 'stand'||'bussstand') && selectIndex !== 'laws' ? $t('m.putTime') : '新车实施日期'"
width="130">
<template slot-scope="scope">
<div v-if="selectIndex === 'stand' || selectIndex === 'bussstand' ? (scope.row.SSRQ !== null && scope.row.SSRQ !== undefined && scope.row.SSRQ !== '') : (scope.row.putTime !== null && scope.row.putTime !== undefined && scope.row.putTime !== '')">
{{ $dateFormat(new Date((selectIndex === 'stand' || (selectIndex === 'bussstand' && scope.row.standType === 'FOREIGN')) ? scope.row.SSRQ : scope.row.putTime), "yyyy-MM-dd") }}
<div v-if="selectIndex === 'stand' || selectIndex === 'bussstand' ? (scope.row.SSRQ !== null && scope.row.SSRQ !== undefined && scope.row.SSRQ !== '')
: (selectIndex === 'laws' ? scope.row.XCXSSRQLAWS : (scope.row.putTime !== null && scope.row.putTime !== undefined && scope.row.putTime !== ''))">
{{ $dateFormat(new Date((selectIndex === 'stand' || (selectIndex === 'bussstand' && scope.row.standType === 'FOREIGN')) ? scope.row.SSRQ : (selectIndex === 'laws' ? scope.row.XCXSSRQLAWS :scope.row.putTime)), "yyyy-MM-dd") }}
</div>
<div v-else></div>
</template>
@@ -126,10 +127,10 @@
:label="selectIndex === 'stand'||'bussstand' ? $t('m.standStateShow') : (selectIndex === 'laws' ? $t('m.fileStatus') : $t('m.enterpriseStandardStatus'))"
width="200">
<template slot-scope="scope">
<span v-if="selectIndex === 'laws'">{{ getLawsState(scope.row.statecode) }}</span>
<div v-else :class="selectIndex === 'enterprise' ? (scope.row.textStatusBussName === '参考' ? 'yellowClass' :
(scope.row.textStatusBussName === '作废' || scope.row.textStatusBussName === '被代替' ? 'redClass' : '')) : ''">
{{ selectIndex === 'stand'|| (selectIndex === 'bussstand' && scope.row.standType === 'FOREIGN') ? scope.row.textStatusName : (selectIndex === 'laws' ? scope.row.textStatusLawsName : scope.row.textStatusBussName) }}</div>
<!-- <span v-if="selectIndex === 'laws'">{{ getLawsState(scope.row.statecode) }}</span>-->
<div :class="selectIndex === 'enterprise' || selectIndex === 'laws' ? (scope.row.textStatusBussName === '参考' ? 'yellowClass' :
(scope.row.textStatusBussName || scope.row.lawsTextStateName === '作废' || scope.row.textStatusBussName === '被代替' ? 'redClass' : '')) : ''">
{{ selectIndex === 'stand'|| (selectIndex === 'bussstand' && scope.row.standType === 'FOREIGN') ? scope.row.textStatusName : (selectIndex === 'laws' ? scope.row.lawsTextStateName : scope.row.textStatusBussName) }}</div>
</template>
</el-table-column>
<el-table-column
@@ -368,7 +369,7 @@
seniortypeStand: ['selectIndex', 'standSort', 'category', 'nature', 'standState', 'applyArctic', 'applyAuth', 'CLLX', 'CBCD', 'ZRLX', 'CYSD'],
seniortypeBuss: ['selectIndex', 'country', 'standSort', 'category', 'nature', 'standState', 'textStatus', 'applyArctic', 'applyAuth', 'CLLX', 'CBCD', 'ZRLX', 'CYSD'],
// seniortypeLaws: ['selectIndex', 'country', 'SYCLLX', 'ZRLX', 'WSSFCY'], // 政策的适用车辆类型、我司是否参与 和 国内的字段不一样
seniortypeLaws: ['selectIndex', 'country', 'CLLX', 'ZRLX', 'CYSD'], // 政策的适用车辆类型、我司是否参与 和 国内的字段不一样
seniortypeLaws: ['selectIndex', 'lawsSyqy', 'lawsSycx', 'CYSDLAWS'], // 政策的适用车辆类型、我司是否参与 和 国内的字段不一样
seniortypeEnterprise : ['selectIndex','BUSSSTATE','ORGLIST'],
seniortypeMsg: ['selectIndex', 'module'],
// 检索选项
@@ -388,10 +389,10 @@
label: '海外标准法规', // value没改
value: 'bussstand'
},
// {
// label: '国内外政策',
// value: 'laws'
// },
{
label: '国内外政策',
value: 'laws'
},
{
label: '企业标准',
value: 'enterprise'
@@ -719,10 +720,10 @@
label: '海外标准法规',
value: 'bussstand'
},
// {
// label: '国内外政策',
// value: 'laws'
// },
{
label: '国内外政策',
value: 'laws'
},
{
label: '企业标准',
value: 'enterprise'
@@ -1042,6 +1043,18 @@
case 'ORGLIST':
option.title = '主起草部门'
option.index = 15
break
case 'lawsSyqy':
option.title = '适用区域'
option.index = 16
break
case 'lawsSycx':
option.title = '适用车型'
option.index = 17
break
case 'CYSDLAWS':
option.title = '我司参与深度'
option.index = 18
}
option.showOpenBtn = false
option.options = data[key]
@@ -1105,22 +1118,22 @@
break
// 国内外政策
case 'laws':
filterOptions.country = originOptions.country
filterOptions.country.title = '适用区域'
filterOptions.country.index = 1
filterOptions.lawsSyqy = originOptions.lawsSyqy
filterOptions.lawsSyqy.title = '适用区域'
filterOptions.lawsSyqy.index = 1
// 适用车辆类型
filterOptions.CLLX = originOptions.CLLX
filterOptions.lawsSycx = originOptions.lawsSycx
// filterOptions.SYCLLX = originOptions.CLLX
filterOptions.CLLX.title = '适用车辆类型'
filterOptions.CLLX.index = 2
filterOptions.lawsSycx.title = '适用车辆'
filterOptions.lawsSycx.index = 2
// 监管类型
filterOptions.ZRLX = originOptions.ZRLX
filterOptions.ZRLX.title = '准入类型'
filterOptions.ZRLX.index = 3
// filterOptions.ZRLX = originOptions.ZRLX
// filterOptions.ZRLX.title = '准入类型'
// filterOptions.ZRLX.index = 3
// 我司参与状态
filterOptions.CYSD = originOptions.SHIFOU
filterOptions.CYSD.title = '我司是否参与'
filterOptions.CYSD.index = 4
filterOptions.CYSDLAWS = originOptions.CYSDLAWS
filterOptions.CYSDLAWS.title = '我司是否参与'
filterOptions.CYSDLAWS.index = 3
break
// 海外标准法规
case 'bussstand':
@@ -1257,10 +1270,6 @@
let searchKeys = Object.keys(this.searchOptions)
for (let key in searchCondition) {
if (searchKeys.indexOf(key) !== -1) {
if (condition.selectIndex === 'laws') {
condition.SYCLLX = condition.CLLX
condition.WSSFCY = condition.CYSD
}
condition[key] = searchCondition[key].join(',') === 'all' ? '' : searchCondition[key].join(',')
}
}
@@ -1285,10 +1294,7 @@
}
// 查询为国内外政策时,改变查询参数名
if (condition.selectIndex === 'laws') {
condition.SYCLLX = condition.CLLX
condition.WSSFCY = condition.CYSD
delete condition.CLLX
delete condition.CYSD
condition.type = 'laws'
}
if(condition.selectValue === undefined){
condition.selectValue = ''
@@ -2321,12 +2327,13 @@
// }
} else if (item.type === 'laws') {
// if (this.$hasPermission('HK36LHK9444NPN8X634W')){
routername = 'OtherLawsDetails'
if (item.lawsType === 'INLAND') {
pagetype = 'INLAND_LAWS'
} else {
pagetype = 'FOREIGN_LAWS'
}
routername = 'OtherLawsStandDetails'
pagetype = 'LAWS_STAND'
// if (item.lawsType === 'INLAND') {
// pagetype = 'INLAND_LAWS'
// } else {
// pagetype = 'FOREIGN_LAWS'
// }
// }else {
// this.$message({
// message: '无权访问',