diff --git a/src/api/systemManagement/companyScore/index.js b/src/api/systemManagement/companyScore/index.js index e8eeb58..d59dda5 100644 --- a/src/api/systemManagement/companyScore/index.js +++ b/src/api/systemManagement/companyScore/index.js @@ -7,4 +7,12 @@ export function getSafeCompany(params) { method: 'post', params }) +} +// 请求企业赋分表格主页 +export function getSafeCompanyDetail(params) { + return request({ + url: '/safety/system/tbSafeCompanyScoreDetail/getSafeCompanyScoreDetail', + method: 'post', + params + }) } \ No newline at end of file diff --git a/src/assets/companyFile/020201.png b/src/assets/companyFile/020201.png new file mode 100644 index 0000000..aa6f8ef Binary files /dev/null and b/src/assets/companyFile/020201.png differ diff --git a/src/assets/companyFile/score01.png b/src/assets/companyFile/score01.png new file mode 100644 index 0000000..e39cbb1 Binary files /dev/null and b/src/assets/companyFile/score01.png differ diff --git a/src/assets/companyFile/score02.png b/src/assets/companyFile/score02.png new file mode 100644 index 0000000..ee4e7d3 Binary files /dev/null and b/src/assets/companyFile/score02.png differ diff --git a/src/assets/companyFile/score03.png b/src/assets/companyFile/score03.png new file mode 100644 index 0000000..8559c60 Binary files /dev/null and b/src/assets/companyFile/score03.png differ diff --git a/src/assets/companyFile/score04.png b/src/assets/companyFile/score04.png new file mode 100644 index 0000000..abb56f3 Binary files /dev/null and b/src/assets/companyFile/score04.png differ diff --git a/src/assets/companyFile/score05.png b/src/assets/companyFile/score05.png new file mode 100644 index 0000000..b911566 Binary files /dev/null and b/src/assets/companyFile/score05.png differ diff --git a/src/assets/companyFile/score06.png b/src/assets/companyFile/score06.png new file mode 100644 index 0000000..05b4844 Binary files /dev/null and b/src/assets/companyFile/score06.png differ diff --git a/src/assets/companyFile/score07.png b/src/assets/companyFile/score07.png new file mode 100644 index 0000000..78d6edf Binary files /dev/null and b/src/assets/companyFile/score07.png differ diff --git a/src/assets/companyFile/score08.png b/src/assets/companyFile/score08.png new file mode 100644 index 0000000..824d424 Binary files /dev/null and b/src/assets/companyFile/score08.png differ diff --git a/src/assets/companyFile/score09.png b/src/assets/companyFile/score09.png new file mode 100644 index 0000000..44f3536 Binary files /dev/null and b/src/assets/companyFile/score09.png differ diff --git a/src/router/index.js b/src/router/index.js index c631b2f..c2f3040 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -62,12 +62,18 @@ const routes = [ name: 'companyScore', component: () => import('@/views/systemManagement/companyScore'), }, - // 企业名单 + // 企业赋分详情 { - path: 'companyList', - name: 'companyList', - component: () => import('@/views/systemManagement/companyList'), + path: 'companyDetails', + name: 'companyDetails', + component: () => import('@/views/systemManagement/companyScore/components/companyDetails'), }, + // 企业名单 + // { + // path: 'companyList', + // name: 'companyList', + // component: () => import('@/views/systemManagement/companyList'), + // }, // 关联设备 { path: 'correlationEquipment', @@ -86,7 +92,13 @@ const routes = [ component: () => import('@/views/systemManagement/companyList'), } ] - } + }, + // 闭环处置 + { + path: 'closeLoopDispose', + name: 'closeLoopDispose', + component: () => import('@/views/closeLoopDispose'), + }, ] }, { diff --git a/src/views/closeLoopDispose/index.vue b/src/views/closeLoopDispose/index.vue new file mode 100644 index 0000000..fc23d9a --- /dev/null +++ b/src/views/closeLoopDispose/index.vue @@ -0,0 +1,64 @@ + + + \ No newline at end of file diff --git a/src/views/head.vue b/src/views/head.vue index acaa4e0..595d782 100644 --- a/src/views/head.vue +++ b/src/views/head.vue @@ -12,7 +12,7 @@
实时预警
- 闭环处置 + 闭环处置
要素资源
diff --git a/src/views/systemManagement/companyScore/components/companyDetails.vue b/src/views/systemManagement/companyScore/components/companyDetails.vue new file mode 100644 index 0000000..1bc3e7c --- /dev/null +++ b/src/views/systemManagement/companyScore/components/companyDetails.vue @@ -0,0 +1,624 @@ + + + \ No newline at end of file diff --git a/src/views/systemManagement/companyScore/components/companyTable.vue b/src/views/systemManagement/companyScore/components/companyTable.vue index b38cf85..5503f41 100644 --- a/src/views/systemManagement/companyScore/components/companyTable.vue +++ b/src/views/systemManagement/companyScore/components/companyTable.vue @@ -9,8 +9,7 @@ > - - + @@ -87,6 +83,10 @@ export default { type: Array, default: () => [], }, + jump_params: { + type: Object, + default: () => {}, + } }, data() { return { @@ -95,7 +95,13 @@ export default { }, methods: { jump(val) { - console.log(val); + // console.log("jump_val", val); + val = Object.assign(val,this.jump_params) + console.log("jump_val", val); + this.$router.push({ + path:'/home/systemManagement/companyDetails', + query:val + }); }, // 表头样式 table_header({ row, rowIndex }) { @@ -141,18 +147,18 @@ export default { } } /deep/.el-button.operation { - background-color: #182527; - border: 0px; - color: #2fabdc; - } + background-color: #182527; + border: 0px; + color: #2fabdc; +} - /deep/.el-button.operation:hover, - .el-button.operation:focus { - background-color: #182527; - border: 0px; - color: #2fabdc; - text-shadow: 0 0 9px rgba(21, 255, 198, 0.64); - } +/deep/.el-button.operation:hover, +.el-button.operation:focus { + background-color: #182527; + border: 0px; + color: #2fabdc; + text-shadow: 0 0 9px rgba(21, 255, 198, 0.64); +} /deep/.el-table--border::after, .el-table--group::after { width: 0px; diff --git a/src/views/systemManagement/companyScore/components/detailsTable.vue b/src/views/systemManagement/companyScore/components/detailsTable.vue new file mode 100644 index 0000000..f81532e --- /dev/null +++ b/src/views/systemManagement/companyScore/components/detailsTable.vue @@ -0,0 +1,335 @@ + + + \ No newline at end of file diff --git a/src/views/systemManagement/companyScore/components/indexTable.vue b/src/views/systemManagement/companyScore/components/indexTable.vue new file mode 100644 index 0000000..eddec12 --- /dev/null +++ b/src/views/systemManagement/companyScore/components/indexTable.vue @@ -0,0 +1,640 @@ + + + + \ No newline at end of file diff --git a/src/views/systemManagement/companyScore/components/season.vue b/src/views/systemManagement/companyScore/components/season.vue index 2eab09c..4785f8d 100644 --- a/src/views/systemManagement/companyScore/components/season.vue +++ b/src/views/systemManagement/companyScore/components/season.vue @@ -106,6 +106,10 @@ export default { type: String, default: "date", }, + show_value: { + type: String, + default: "", + }, }, data() { return { @@ -118,6 +122,10 @@ export default { }; }, created() { + // if(this.show_value) { + // this.showValue = this.show_value + // } + //如果有默认值,直接用,没有默认值,把当前日期作为默认值 if (this.defaultValue) { this.changeDefaultVal(); @@ -125,7 +133,11 @@ export default { this.defaultValue = this.year + "-" + this.month; this.changeDefaultVal(); } - console.log("showValue", this.showValue); + this.$nextTick(() => { + console.log("this.show_value000", this.show_value); + this.showValue = this.show_value; + console.log("this.showValue", this.showValue); + }); }, watch: { defaultValue(value) { @@ -150,19 +162,19 @@ export default { let month = +arr[1]; if (month >= 1 && month <= 3) { this.showValue = `${this.year}年1季度`; - this.season_param = `${this.year}-03` + this.season_param = `${this.year}-03`; } else if (month >= 4 && month <= 6) { this.showValue = `${this.year}年2季度`; - this.season_param = `${this.year}-06` + this.season_param = `${this.year}-06`; } else if (month >= 7 && month <= 9) { this.showValue = `${this.year}年3季度`; - this.season_param = `${this.year}-09` + this.season_param = `${this.year}-09`; } else if (month >= 10 && month <= 12) { this.showValue = `${this.year}年4季度`; - this.season_param = `${this.year}-12` + this.season_param = `${this.year}-12`; } - console.log('this.season_param',this.season_param); - this.$emit('get_season_param',this.season_param) + console.log("this.season_param", this.season_param); + this.$emit("get_season_param", this.season_param, this.showValue); } }, prev() { @@ -186,15 +198,18 @@ export default { year: this.year, quarter: quarter, }; + this.showValue = `${this.year}年${quarter}季度`; //发送事件给父元素 - this.$emit("getValue", result); + this.$emit("getValue", result, this.showValue); this.showSeason = false; - this.showValue = `${this.year}年${quarter}季度`; }, }, };