|
@@ -115,9 +115,9 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
- securityCheckOptionList,
|
|
|
|
|
|
+ securityCheckOptionSelAllList,
|
|
securityAppCheckSetOptionList,
|
|
securityAppCheckSetOptionList,
|
|
- securityAppCheckDangerReviewList,
|
|
|
|
|
|
+ securityAppCheckSetOptionGetReviewList,
|
|
securityAppCheckDangerGetCheckDangerSubId,
|
|
securityAppCheckDangerGetCheckDangerSubId,
|
|
} from '@/pages_safetyCheck/api/index.js'
|
|
} from '@/pages_safetyCheck/api/index.js'
|
|
export default {
|
|
export default {
|
|
@@ -150,8 +150,9 @@
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.$set(this, 'optionData', JSON.parse(JSON.stringify(this.propsData)));
|
|
this.$set(this, 'optionData', JSON.parse(JSON.stringify(this.propsData)));
|
|
|
|
+ console.log('optionData',this.optionData)
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- this.securityCheckOptionList();
|
|
|
|
|
|
+ this.securityCheckOptionSelAllList();
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -162,7 +163,7 @@
|
|
this.securityAppCheckSetOptionList();
|
|
this.securityAppCheckSetOptionList();
|
|
} else if (this.optionData.infoType == 1) {
|
|
} else if (this.optionData.infoType == 1) {
|
|
//复查
|
|
//复查
|
|
- this.securityAppCheckDangerReviewList();
|
|
|
|
|
|
+ this.securityAppCheckSetOptionGetReviewList();
|
|
} else if (this.optionData.infoType == 2) {
|
|
} else if (this.optionData.infoType == 2) {
|
|
//整改
|
|
//整改
|
|
this.securityAppCheckDangerGetCheckDangerSubId();
|
|
this.securityAppCheckDangerGetCheckDangerSubId();
|
|
@@ -214,19 +215,19 @@
|
|
this.$parent.checkItemModuleButton('submit',item);
|
|
this.$parent.checkItemModuleButton('submit',item);
|
|
},
|
|
},
|
|
//基础检查项检查
|
|
//基础检查项检查
|
|
- async securityCheckOptionList() {
|
|
|
|
|
|
+ async securityCheckOptionSelAllList() {
|
|
let self = this;
|
|
let self = this;
|
|
const {
|
|
const {
|
|
data
|
|
data
|
|
- } = await securityCheckOptionList({});
|
|
|
|
|
|
+ } = await securityCheckOptionSelAllList({});
|
|
if (data.code == 200) {
|
|
if (data.code == 200) {
|
|
let maxList = this.getCascaderData(JSON.parse(JSON.stringify(data.data)), 2)
|
|
let maxList = this.getCascaderData(JSON.parse(JSON.stringify(data.data)), 2)
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- if(this.pageType == 1){
|
|
|
|
|
|
+ if(this.optionData.infoType == 0){
|
|
this.securityAppCheckSetOptionList(maxList);
|
|
this.securityAppCheckSetOptionList(maxList);
|
|
- }else if(this.pageType == 2){
|
|
|
|
- this.securityAppCheckDangerReviewList(maxList);
|
|
|
|
- }else if(this.pageType == 3){
|
|
|
|
|
|
+ }else if(this.optionData.infoType == 1){
|
|
|
|
+ this.securityAppCheckSetOptionGetReviewList(maxList);
|
|
|
|
+ }else if(this.optionData.infoType == 2){
|
|
this.securityAppCheckDangerGetCheckDangerSubId(maxList);
|
|
this.securityAppCheckDangerGetCheckDangerSubId(maxList);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -253,11 +254,11 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
/********************** 复查相关查询 **********************/
|
|
/********************** 复查相关查询 **********************/
|
|
- async securityAppCheckDangerReviewList(maxList) {
|
|
|
|
|
|
+ async securityAppCheckSetOptionGetReviewList(maxList) {
|
|
let self = this;
|
|
let self = this;
|
|
const {
|
|
const {
|
|
data
|
|
data
|
|
- } = await securityAppCheckDangerReviewList({
|
|
|
|
|
|
+ } = await securityAppCheckSetOptionGetReviewList({
|
|
planId: this.optionData.planId,
|
|
planId: this.optionData.planId,
|
|
planSetId: this.optionData.planSetId,
|
|
planSetId: this.optionData.planSetId,
|
|
subId: this.optionData.subId,
|
|
subId: this.optionData.subId,
|