diff --git a/src/pages/localTool/standardWarning.vue b/src/pages/localTool/standardWarning.vue index 471eb3411..442b777c3 100644 --- a/src/pages/localTool/standardWarning.vue +++ b/src/pages/localTool/standardWarning.vue @@ -67,8 +67,8 @@ 企业标准 - 海外标准法规 - 国内标准法规 + 海外标准法规 + 国内标准法规 国内政策 国外政策 @@ -90,12 +90,17 @@ - {{ scope.row.applyType }} + FCA + HEV + 纯电动 + 传统车 + 混动 + 柴油 - + - {{ scope.row.standType }} + {{ scope.row.standCode.slice(0,3) }} @@ -132,8 +137,8 @@ 企业标准 - 海外标准法规 - 国内标准法规 + 海外标准法规 + 国内标准法规 国内政策 国外政策 @@ -155,12 +160,17 @@ - {{ scope.row.standName }} + FCA + HEV + 纯电动 + 传统车 + 混动 + 柴油 - + - {{ scope.row.standType }} + {{ scope.row.standCode.slice(0,3) }} @@ -221,12 +231,18 @@ - {{ scope.row.applyType }} + FCA + HEV + 纯电动 + 传统车 + 混动 + 柴油 - {{ scope.row.mark }} + + {{ scope.row.standCode.slice(0,3) }} @@ -249,8 +265,8 @@ :pageSize="pageConfig.newStandPageSize" :total="pageConfig.count3" autoSize - @pageChange="page => handlePageChange('newStand', page)" - @pageSizeChange="pageSize => handlePageSizeChange('newStand', pageSize)"> + @pageChange="page => handlePageChange('newItems', page)" + @pageSizeChange="pageSize => handlePageSizeChange('newItems', pageSize)"> 在产车条款预警 - {{ scope.row.applyType }} + FCA + HEV + 纯电动 + 传统车 + 混动 + 柴油 - {{ scope.row.mark }} + {{ scope.row.standCode.slice(0,3) }} + @@ -315,8 +337,8 @@ :pageSize="pageConfig.oldStandPageSize" :total="pageConfig.count4" autoSize - @pageChange="page => handlePageChange('oldStand', page)" - @pageSizeChange="pageSize => handlePageSizeChange('oldStand', pageSize)"> + @pageChange="page => handlePageChange('oldItems', page)" + @pageSizeChange="pageSize => handlePageSizeChange('oldItems', pageSize)"> @@ -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: 日期转换