|
@@ -313,7 +313,12 @@
|
313
|
313
|
<Checkbox
|
314
|
314
|
:disabled="true"
|
315
|
315
|
class="checked"
|
316
|
|
- v-model="row.checked"
|
|
316
|
+ :value="
|
|
317
|
+ Boolean(
|
|
318
|
+ strategyInfo.padViolatesInfo &&
|
|
319
|
+ strategyInfo.padViolatesInfo[row.violateType]
|
|
320
|
+ )
|
|
321
|
+ "
|
317
|
322
|
></Checkbox>
|
318
|
323
|
<span
|
319
|
324
|
style="display: inline-block; width: 120px; text-align: left"
|
|
@@ -321,19 +326,28 @@
|
321
|
326
|
>
|
322
|
327
|
</template>
|
323
|
328
|
<template slot-scope="{ row }" slot="noticed">
|
324
|
|
- <Checkbox :disabled="true" class="checked" v-model="row.noticed"
|
|
329
|
+ <Checkbox
|
|
330
|
+ :disabled="true"
|
|
331
|
+ class="checked"
|
|
332
|
+ :value="
|
|
333
|
+ strategyInfo.padViolatesInfo &&
|
|
334
|
+ strategyInfo.padViolatesInfo[row.violateType] &&
|
|
335
|
+ strategyInfo.padViolatesInfo[row.violateType].noticed === 1
|
|
336
|
+ "
|
325
|
337
|
>通知管理员</Checkbox
|
326
|
338
|
>
|
327
|
339
|
</template>
|
328
|
340
|
<template slot-scope="{ row }" slot="violationHandling">
|
329
|
|
- <RadioGroup v-model="row.handleMethod">
|
330
|
|
- <Radio
|
331
|
|
- style="margin-right: 20px"
|
332
|
|
- :disabled="true"
|
333
|
|
- label="锁定"
|
334
|
|
- ></Radio>
|
335
|
|
- <Radio :disabled="true" label="恢复出厂设置"></Radio>
|
336
|
|
- </RadioGroup>
|
|
341
|
+ <CheckboxGroup
|
|
342
|
+ :value="
|
|
343
|
+ strategyInfo.padViolatesInfo &&
|
|
344
|
+ strategyInfo.padViolatesInfo[row.violateType] &&
|
|
345
|
+ strategyInfo.padViolatesInfo[row.violateType].handleMethod
|
|
346
|
+ "
|
|
347
|
+ >
|
|
348
|
+ <Checkbox :disabled="true" label="锁定"></Checkbox>
|
|
349
|
+ <Checkbox :disabled="true" label="恢复出厂设置"></Checkbox>
|
|
350
|
+ </CheckboxGroup>
|
337
|
351
|
</template>
|
338
|
352
|
</Table>
|
339
|
353
|
</div>
|
|
@@ -1209,15 +1223,13 @@ export default {
|
1209
|
1223
|
this.strategyInfo.pdtypeInfo = pdtypeInfo;
|
1210
|
1224
|
}
|
1211
|
1225
|
if (this.strategyInfo.hasviolate) {
|
|
1226
|
+ let padViolatesInfo = {};
|
1212
|
1227
|
this.strategyInfo.padViolates = res.obj.padViolates;
|
1213
|
1228
|
this.strategyInfo.padViolates.forEach((item) => {
|
1214
|
|
- let arr = res.obj.padViolates.filter((v) => {
|
1215
|
|
- return v.violateType === item.violateType;
|
1216
|
|
- });
|
1217
|
|
- item.checked = arr.length > 0 ? true : false;
|
1218
|
|
- item.noticed = arr.length > 0 && arr[0].noticed ? true : false;
|
1219
|
|
- item.handleMethod = arr.length > 0 ? arr[0].handleMethod : "";
|
|
1229
|
+ item.handleMethod = item.handleMethod.split(";");
|
|
1230
|
+ padViolatesInfo[item.violateType] = item;
|
1220
|
1231
|
});
|
|
1232
|
+ this.strategyInfo.padViolatesInfo = padViolatesInfo;
|
1221
|
1233
|
}
|
1222
|
1234
|
this.strategyInfo.show = true;
|
1223
|
1235
|
} else {
|