|
@@ -367,22 +367,24 @@ export default {
|
|
done();
|
|
done();
|
|
},
|
|
},
|
|
// 获取基础页面数据
|
|
// 获取基础页面数据
|
|
- getPageBase() {
|
|
|
|
|
|
+ getPageBase(type = 1) {
|
|
let params = {
|
|
let params = {
|
|
- typ: 2,
|
|
|
|
|
|
+ typ: type,
|
|
org: this.org,
|
|
org: this.org,
|
|
oid: this.oid
|
|
oid: this.oid
|
|
};
|
|
};
|
|
- // console.log(params);
|
|
|
|
this.ajax
|
|
this.ajax
|
|
.get(this.$store.state.api + "selectTestExamineBase", params)
|
|
.get(this.$store.state.api + "selectTestExamineBase", params)
|
|
.then(res => {
|
|
.then(res => {
|
|
- console.log('selectTestExamineBase', res.data[0]);
|
|
|
|
- this.examineData = res.data[0]
|
|
|
|
|
|
+ this.examineData = res.data[0];
|
|
|
|
+ if(type == 1 && !res.data[0].length){
|
|
|
|
+ this.getPageBase(2)
|
|
|
|
+ }
|
|
|
|
+ // console.log("selectTestExamineBase", res.data);
|
|
})
|
|
})
|
|
.catch(error => {
|
|
.catch(error => {
|
|
- console.log(error);
|
|
|
|
- });
|
|
|
|
|
|
+ console.log(error);
|
|
|
|
+ });
|
|
},
|
|
},
|
|
deleteMenuItem(index) {
|
|
deleteMenuItem(index) {
|
|
this.menuList.splice(index, 1);
|
|
this.menuList.splice(index, 1);
|