标准预警初步修改~

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