|
@@ -261,9 +261,17 @@ export default {
|
|
this.modalIsShow = true;
|
|
this.modalIsShow = true;
|
|
},
|
|
},
|
|
async getSysSet() {
|
|
async getSysSet() {
|
|
- const res = await systemSettingQuery();
|
|
|
|
- this.openOcr = res && res.openOcr;
|
|
|
|
- this.openGlobalMatch = res && res.openGlobalMatch;
|
|
|
|
|
|
+ const data = await systemSettingQuery();
|
|
|
|
+ data.forEach(item => {
|
|
|
|
+ item.data.forEach(field => {
|
|
|
|
+ if (field.code === "openOcr") {
|
|
|
|
+ this.openOcr = field.code === "true";
|
|
|
|
+ }
|
|
|
|
+ if (field.code === "openGlobalMatch") {
|
|
|
|
+ this.openGlobalMatch = field.code === "true";
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
},
|
|
},
|
|
nameOrNoInput() {
|
|
nameOrNoInput() {
|
|
this.clearSetTs();
|
|
this.clearSetTs();
|