Commit a39dbdc6 authored by 李苏's avatar 李苏 💬

涉及gsid 删掉

parent e120b942
...@@ -711,6 +711,7 @@ ...@@ -711,6 +711,7 @@
initFxgk() { initFxgk() {
let params = {} let params = {}
params[this.menusItems[this.active]['type']] = this.menusItems[this.active]['id'] params[this.menusItems[this.active]['type']] = this.menusItems[this.active]['id']
Object.keys(params).includes('gsId')&&(delete params.gsId)
this.$post('aqgl/homepage/fxgk', params).then(res => { this.$post('aqgl/homepage/fxgk', params).then(res => {
this.fxgkList = res.data.records || [] this.fxgkList = res.data.records || []
}) })
...@@ -720,6 +721,7 @@ ...@@ -720,6 +721,7 @@
initAqts() { initAqts() {
let params = {} let params = {}
params[this.menusItems[this.active]['type']] = this.menusItems[this.active]['id'] params[this.menusItems[this.active]['type']] = this.menusItems[this.active]['id']
Object.keys(params).includes('gsId')&&(delete params.gsId)
this.$post('aqgl/homepage/aqts', params).then(res => { this.$post('aqgl/homepage/aqts', params).then(res => {
this.aqts = res.data.records || 0 this.aqts = res.data.records || 0
}) })
...@@ -731,6 +733,7 @@ ...@@ -731,6 +733,7 @@
initEyjgl() { initEyjgl() {
let params = {} let params = {}
params[this.menusItems[this.active]['type']] = this.menusItems[this.active]['id'] params[this.menusItems[this.active]['type']] = this.menusItems[this.active]['id']
Object.keys(params).includes('gsId')&&(delete params.gsId)
this.$post('aqgl/homepage/yjgl', params).then(res => { this.$post('aqgl/homepage/yjgl', params).then(res => {
let records = res.data.records let records = res.data.records
let KeyList = Object.keys(records) let KeyList = Object.keys(records)
...@@ -744,6 +747,7 @@ ...@@ -744,6 +747,7 @@
initEaqpx() { initEaqpx() {
let params = {} let params = {}
params[this.menusItems[this.active]['type']] = this.menusItems[this.active]['id'] params[this.menusItems[this.active]['type']] = this.menusItems[this.active]['id']
Object.keys(params).includes('gsId')&&(delete params.gsId)
this.$post('aqgl/homepage/aqpx', params).then(res => { this.$post('aqgl/homepage/aqpx', params).then(res => {
let records = res.data.records || [] let records = res.data.records || []
if (('公司级' in records) == false) { if (('公司级' in records) == false) {
...@@ -783,6 +787,7 @@ ...@@ -783,6 +787,7 @@
initlzgl() { initlzgl() {
let params = {} let params = {}
params[this.menusItems[this.active]['type']] = this.menusItems[this.active]['id'] params[this.menusItems[this.active]['type']] = this.menusItems[this.active]['id']
Object.keys(params).includes('gsId')&&(delete params.gsId)
this.$post('aqgl/homepage/lzgl', params).then(res => { this.$post('aqgl/homepage/lzgl', params).then(res => {
let records = _.cloneDeep(res.data.records || []) let records = _.cloneDeep(res.data.records || [])
let keyList = Object.keys(records) let keyList = Object.keys(records)
...@@ -979,6 +984,7 @@ ...@@ -979,6 +984,7 @@
inityhpc() { inityhpc() {
let params = {} let params = {}
params[this.menusItems[this.active]['type']] = this.menusItems[this.active]['id'] params[this.menusItems[this.active]['type']] = this.menusItems[this.active]['id']
Object.keys(params).includes('gsId')&&(delete params.gsId)
this.$post('aqgl/homepage/yhpc', params).then(res => { this.$post('aqgl/homepage/yhpc', params).then(res => {
let records = res.data.records let records = res.data.records
let xData = ['人员违章', '设备设施', '环境影响', '管理缺陷'] let xData = ['人员违章', '设备设施', '环境影响', '管理缺陷']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment