标准预警初步修改~
This commit is contained in:
@@ -67,8 +67,8 @@
|
||||
<el-table-column prop="standType" label="类型" align="center">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="scope.row.sortName === 'BUSINESS_STAND'">企业标准</div>
|
||||
<div v-if="scope.row.sortName === 'FOREIGN_STAND'">海外标准法规</div>
|
||||
<div v-if="scope.row.sortName === 'INLAND_STAND'">国内标准法规</div>
|
||||
<div v-if="scope.row.standType === 'FOREIGN'">海外标准法规</div>
|
||||
<div v-if="scope.row.standType === 'INLAND'">国内标准法规</div>
|
||||
<div v-if="scope.row.sortName === 'INLAND_LAWS'">国内政策</div>
|
||||
<div v-if="scope.row.sortName === 'FOREIGN_LAWS'">国外政策</div>
|
||||
</template>
|
||||
@@ -90,12 +90,17 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="applyType" label="适用车型" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.applyType }}</a>
|
||||
<div v-if="scope.row.applyType === 'EKFCA'">FCA</div>
|
||||
<div v-if="scope.row.applyType === 'EKHEV'">HEV</div>
|
||||
<div v-if="scope.row.applyType === 'EKEV'">纯电动</div>
|
||||
<div v-if="scope.row.applyType === 'EKQY'">传统车</div>
|
||||
<div v-if="scope.row.applyType === 'EKPHEV'">混动</div>
|
||||
<div v-if="scope.row.applyType === 'DIESEL'">柴油</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="standType" label="标准类型" align="center">
|
||||
<el-table-column label="标准类型" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.standType }}</a>
|
||||
<div>{{ scope.row.standCode.slice(0,3) }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="dutyEngineer" label="标准责任工程师" align="center">
|
||||
@@ -132,8 +137,8 @@
|
||||
<el-table-column prop="sortName" label="类型" align="center">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="scope.row.sortName === 'BUSINESS_STAND'">企业标准</div>
|
||||
<div v-if="scope.row.sortName === 'FOREIGN_STAND'">海外标准法规</div>
|
||||
<div v-if="scope.row.sortName === 'INLAND_STAND'">国内标准法规</div>
|
||||
<div v-if="scope.row.standType === 'FOREIGN'">海外标准法规</div>
|
||||
<div v-if="scope.row.standType === 'INLAND'">国内标准法规</div>
|
||||
<div v-if="scope.row.sortName === 'INLAND_LAWS'">国内政策</div>
|
||||
<div v-if="scope.row.sortName === 'FOREIGN_LAWS'">国外政策</div>
|
||||
</template>
|
||||
@@ -155,12 +160,17 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="applyType" label="适用车型" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.standName }}</a>
|
||||
<div v-if="scope.row.applyType === 'EKFCA'">FCA</div>
|
||||
<div v-if="scope.row.applyType === 'EKHEV'">HEV</div>
|
||||
<div v-if="scope.row.applyType === 'EKEV'">纯电动</div>
|
||||
<div v-if="scope.row.applyType === 'EKQY'">传统车</div>
|
||||
<div v-if="scope.row.applyType === 'EKPHEV'">混动</div>
|
||||
<div v-if="scope.row.applyType === 'DIESEL'">柴油</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="standType" label="标准类型" align="center">
|
||||
<el-table-column label="标准类型" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.standType }}</a>
|
||||
<div>{{ scope.row.standCode.slice(0,3) }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="dutyEngineer" label="标准责任工程师" align="center">
|
||||
@@ -221,12 +231,18 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="applyType" label="适用车型" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.applyType }}</a>
|
||||
<div v-if="scope.row.applyType === 'EKFCA'">FCA</div>
|
||||
<div v-if="scope.row.applyType === 'EKHEV'">HEV</div>
|
||||
<div v-if="scope.row.applyType === 'EKEV'">纯电动</div>
|
||||
<div v-if="scope.row.applyType === 'EKQY'">传统车</div>
|
||||
<div v-if="scope.row.applyType === 'EKPHEV'">混动</div>
|
||||
<div v-if="scope.row.applyType === 'DIESEL'">柴油</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="mark" label="标准分类" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.mark }}</a>
|
||||
<!-- <a @click="showStandDetails(scope.row)">{{ scope.row.mark }}</a>-->
|
||||
<div>{{ scope.row.standCode.slice(0,3) }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="dutyEngineer" label="标准责任工程师" align="center">
|
||||
@@ -249,8 +265,8 @@
|
||||
:pageSize="pageConfig.newStandPageSize"
|
||||
:total="pageConfig.count3"
|
||||
autoSize
|
||||
@pageChange="page => handlePageChange('newStand', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('newStand', pageSize)"></pagination>
|
||||
@pageChange="page => handlePageChange('newItems', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('newItems', pageSize)"></pagination>
|
||||
<el-divider content-position="left" class="dynamic-child-title">在产车条款预警</el-divider>
|
||||
<el-table
|
||||
:data="oldStand"
|
||||
@@ -287,12 +303,18 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="applyType" label="适用车型" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.applyType }}</a>
|
||||
<div v-if="scope.row.applyType === 'EKFCA'">FCA</div>
|
||||
<div v-if="scope.row.applyType === 'EKHEV'">HEV</div>
|
||||
<div v-if="scope.row.applyType === 'EKEV'">纯电动</div>
|
||||
<div v-if="scope.row.applyType === 'EKQY'">传统车</div>
|
||||
<div v-if="scope.row.applyType === 'EKPHEV'">混动</div>
|
||||
<div v-if="scope.row.applyType === 'DIESEL'">柴油</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="mark" label="标准分类" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.mark }}</a>
|
||||
<div>{{ scope.row.standCode.slice(0,3) }}</div>
|
||||
<!-- <a @click="showStandDetails(scope.row)">{{ scope.row.mark }}</a>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="dutyEngineer" label="标准责任工程师" align="center">
|
||||
@@ -315,8 +337,8 @@
|
||||
:pageSize="pageConfig.oldStandPageSize"
|
||||
:total="pageConfig.count4"
|
||||
autoSize
|
||||
@pageChange="page => handlePageChange('oldStand', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('oldStand', pageSize)"></pagination>
|
||||
@pageChange="page => handlePageChange('oldItems', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('oldItems', pageSize)"></pagination>
|
||||
</div>
|
||||
</div>
|
||||
<!-- </el-tab-pane>-->
|
||||
@@ -505,7 +527,8 @@ export default {
|
||||
const result = res.data[0]
|
||||
for (const field in result) {
|
||||
this[field] = result[field].records
|
||||
// this.newItems = result.newItems.records
|
||||
this.newItems = result.newItems.records
|
||||
//可能还需要调整一下条款或标准的顺序(zyh)
|
||||
switch (field) {
|
||||
case 'newItems':
|
||||
this.pageConfig.count1 = result.newItems.total
|
||||
@@ -648,59 +671,60 @@ export default {
|
||||
})
|
||||
},
|
||||
showStandDetails(item) {
|
||||
console.log(item)
|
||||
let getStandId = item.sarId;
|
||||
let getStandType = item.sortName;
|
||||
this.$http.get("lawss/sarMenu/judgeSarMenuByRole", {
|
||||
sarId: getStandId,
|
||||
sarType: getStandType,
|
||||
isExit: "1"
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
let pageTpe = "";
|
||||
let id = "";
|
||||
let routename = "";
|
||||
if (getStandType === "INLAND_STAND" || getStandType === "FOREIGN_STAND") {
|
||||
if (this.$hasPermission("SSA6WR4HV8")) {
|
||||
pageTpe = getStandType;
|
||||
id = getStandId;
|
||||
routename = "OtherStandardDetails";
|
||||
} else {
|
||||
this.$message.error("无权访问");
|
||||
}
|
||||
} else if (getStandType === "INLAND_LAWS" || getStandType === "FOREIGN_LAWS") {
|
||||
if (this.$hasPermission("A2HDHMEA6W")) {
|
||||
pageTpe = getStandType;
|
||||
id = getStandId;
|
||||
routename = "OtherLawsDetails";
|
||||
} else {
|
||||
this.$message.error("无权访问");
|
||||
}
|
||||
} else if (getStandType === "BUSSIONESS_STAND") {
|
||||
if (this.$hasPermission("YJUHC32R7G")) {
|
||||
pageTpe = "BUSINESS_STAND";
|
||||
id = getStandId;
|
||||
routename = "OtherBussStandardDetails";
|
||||
} else {
|
||||
this.$message.error("无权访问");
|
||||
}
|
||||
}
|
||||
if (routename !== "") {
|
||||
let routeUrl = this.$router.resolve({
|
||||
name: routename,
|
||||
params: {
|
||||
id: id,
|
||||
pageType: pageTpe
|
||||
}
|
||||
});
|
||||
window.open(routeUrl.href, "_blank");
|
||||
}
|
||||
} else {
|
||||
this.$message.error(res.message);
|
||||
}
|
||||
}, e => {
|
||||
});
|
||||
// this.$http.get("lawss/sarMenu/judgeSarMenuByRole", {
|
||||
// sarId: getStandId,
|
||||
// sarType: getStandType,
|
||||
// isExit: "1"
|
||||
// }, {
|
||||
// _this: this
|
||||
// }, res => {
|
||||
// if (res.ok) {
|
||||
// let pageTpe = "";
|
||||
// let id = "";
|
||||
// let routename = "";
|
||||
// if (getStandType === "INLAND_STAND" || getStandType === "FOREIGN_STAND") {
|
||||
// if (this.$hasPermission("SSA6WR4HV8")) {
|
||||
// pageTpe = getStandType;
|
||||
// id = getStandId;
|
||||
// routename = "OtherStandardDetails";
|
||||
// } else {
|
||||
// this.$message.error("无权访问");
|
||||
// }
|
||||
// } else if (getStandType === "INLAND_LAWS" || getStandType === "FOREIGN_LAWS") {
|
||||
// if (this.$hasPermission("A2HDHMEA6W")) {
|
||||
// pageTpe = getStandType;
|
||||
// id = getStandId;
|
||||
// routename = "OtherLawsDetails";
|
||||
// } else {
|
||||
// this.$message.error("无权访问");
|
||||
// }
|
||||
// } else if (getStandType === "BUSSIONESS_STAND") {
|
||||
// if (this.$hasPermission("YJUHC32R7G")) {
|
||||
// pageTpe = "BUSINESS_STAND";
|
||||
// id = getStandId;
|
||||
// routename = "OtherBussStandardDetails";
|
||||
// } else {
|
||||
// this.$message.error("无权访问");
|
||||
// }
|
||||
// }
|
||||
// if (routename !== "") {
|
||||
// let routeUrl = this.$router.resolve({
|
||||
// name: routename,
|
||||
// params: {
|
||||
// id: id,
|
||||
// pageType: pageTpe
|
||||
// }
|
||||
// });
|
||||
// window.open(routeUrl.href, "_blank");
|
||||
// }
|
||||
// } else {
|
||||
// this.$message.error(res.message);
|
||||
// }
|
||||
// }, e => {
|
||||
// });
|
||||
},
|
||||
/**
|
||||
* @description: 日期转换
|
||||
|
||||
Reference in New Issue
Block a user