|
@@ -99,7 +99,9 @@ export default {
|
99
|
99
|
rule_id: item.rule_id,
|
100
|
100
|
set_val: item.setval,
|
101
|
101
|
group_id: item.group_id,
|
102
|
|
- enable: item.enable == 1 ? 0 : 1
|
|
102
|
+ enable: item.enable == 1 ? 0 : 1,
|
|
103
|
+ is_system_admin: this.$cookie.getCookie('isSuperManage') == 1 ? 1 : '',
|
|
104
|
+ sys_group_id: this.$cookie.getCookie('isSuperManage') == 1 ? sessionStorage.getItem('company_session_defaultCorp_level_1').toString() : ''
|
103
|
105
|
}).then((res) => {
|
104
|
106
|
var res = res.data;
|
105
|
107
|
this.$loading(this.$loadingConfig).close();
|
|
@@ -149,7 +151,9 @@ export default {
|
149
|
151
|
rule_id: this.rule_id,
|
150
|
152
|
set_val: this.warningNum,
|
151
|
153
|
group_id: this.warninggroup_val,
|
152
|
|
- enable: this.enable ? 1 : 0
|
|
154
|
+ enable: this.enable ? 1 : 0,
|
|
155
|
+ is_system_admin: this.$cookie.getCookie('isSuperManage') == 1 ? 1 : '',
|
|
156
|
+ sys_group_id: this.$cookie.getCookie('isSuperManage') == 1 ? sessionStorage.getItem('company_session_defaultCorp_level_1').toString() : ''
|
153
|
157
|
}).then((res) => {
|
154
|
158
|
var res = res.data
|
155
|
159
|
if (res && res.errno == 0) {
|
|
@@ -169,6 +173,10 @@ export default {
|
169
|
173
|
get_warninggroupList () {
|
170
|
174
|
this.loading = true
|
171
|
175
|
this.$axios.get(this.URL.BASEURL + this.URL.warn_groupList, {
|
|
176
|
+ params: {
|
|
177
|
+ is_system_admin: this.$cookie.getCookie('isSuperManage') == 1 ? 1 : '',
|
|
178
|
+ sys_group_id: this.$cookie.getCookie('isSuperManage') == 1 ? sessionStorage.getItem('company_session_defaultCorp_level_1').toString() : ''
|
|
179
|
+ }
|
172
|
180
|
}).then((res) => {
|
173
|
181
|
var res = res.data
|
174
|
182
|
if (res && res.errno == 0) {
|
|
@@ -188,6 +196,10 @@ export default {
|
188
|
196
|
this.page = page ? page : this.page;
|
189
|
197
|
this.loading = true
|
190
|
198
|
this.$axios.get(this.URL.BASEURL + this.URL.warn_ruleConfList, {
|
|
199
|
+ params: {
|
|
200
|
+ is_system_admin: this.$cookie.getCookie('isSuperManage') == 1 ? 1 : '',
|
|
201
|
+ sys_group_id: this.$cookie.getCookie('isSuperManage') == 1 ? sessionStorage.getItem('company_session_defaultCorp_level_1').toString() : ''
|
|
202
|
+ }
|
191
|
203
|
}).then((res) => {
|
192
|
204
|
var res = res.data
|
193
|
205
|
this.loading = false
|