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