diff --git a/src/api/zongzhi/st.js b/src/api/zongzhi/st.js index 3434769..6cc5427 100644 --- a/src/api/zongzhi/st.js +++ b/src/api/zongzhi/st.js @@ -180,3 +180,37 @@ export function getDetection(id) { method: 'get' }) } + +// 查询安全隐患列表 +export function listDanger(query) { + return request({ + url: '/zongzhi/danger/list', + method: 'get', + params: query + }) +} + +// 查询安全隐患详细 +export function getDanger(id) { + return request({ + url: '/zongzhi/danger/' + id, + method: 'get' + }) +} + +// 查询通报列表 +export function listTb(query) { + return request({ + url: '/zongzhi/tb/list', + method: 'get', + params: query + }) +} + +// 查询通报详细 +export function getTb(id) { + return request({ + url: '/zongzhi/tb/' + id, + method: 'get' + }) +} diff --git a/src/store/modules/dict.js b/src/store/modules/dict.js index 6b2d2e6..6f799ba 100644 --- a/src/store/modules/dict.js +++ b/src/store/modules/dict.js @@ -17,7 +17,7 @@ const dict = { getDictType({ commit }) { return new Promise((resolve, reject) => { const query = { - list: 'sys_user_sex,tc_net_sx,tc_yq_media,tc_enter_type,tc_inlet_yewu,tc_item_type,tc_net_safety_level,tc_yes_no,tc_unit_type,tc_tmt_type,tc_net_safety_level,tc_db_steam_state,tc_attack_type' + list: 'sys_user_sex,tc_net_sx,tc_yq_media,tc_enter_type,tc_inlet_yewu,tc_item_type,tc_net_safety_level,tc_yes_no,tc_unit_type,tc_tmt_type,tc_net_safety_level,tc_db_steam_state,tc_attack_type,tc_yh_level,tc_yh_source' } getDictList(query) .then((res) => { diff --git a/src/utils/common.js b/src/utils/common.js index 2e6be00..fae9788 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -1,6 +1,7 @@ import store from '@/store' export function filterDict(type, value, isTown = false) { + if (!value) return if (isTown) { return filterTown(value) } else { diff --git a/src/views/privateOrder/security/components/componentLeft.vue b/src/views/privateOrder/security/components/componentLeft.vue index 3753033..4293577 100644 --- a/src/views/privateOrder/security/components/componentLeft.vue +++ b/src/views/privateOrder/security/components/componentLeft.vue @@ -517,6 +517,7 @@ export default { }, mounted() { this.changeBtn() // 切换 + this.getSaftyscreenSupervise() this.getSaftyscreenSafety() this.getListDetection() this.time = setInterval(() => { // 安全隐患列表 @@ -620,6 +621,14 @@ export default { getSaftyscreenSupervise() { saftyscreenSupervise().then(res => { // this.superviseObject[4].num = res.data. + res.data.forEach(item => { + this.superviseObject.forEach(it => { + if (item.name == it.title) { + it.num = item.count + } + }) + }) + console.log(res, 'aaa') }) }, /** @@ -714,8 +723,12 @@ export default { this.queryParams.type = 4 } else if (this.dialogType === '硬探针') { this.queryParams.type = 3 - } else { + } else if (this.dialogType === '监管单位') { this.queryParams.type = 5 + } else if (this.dialogType === '网站监测') { + this.queryParams.type = 6 + } else { + this.queryParams.type = 7 } this.getJgUnit() diff --git a/src/views/privateOrder/security/components/componentRight.vue b/src/views/privateOrder/security/components/componentRight.vue index f1a7aa9..a735243 100644 --- a/src/views/privateOrder/security/components/componentRight.vue +++ b/src/views/privateOrder/security/components/componentRight.vue @@ -101,7 +101,7 @@ -