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