Commit f2f67eeb authored by 黄奎's avatar 黄奎
parents 69806679 6a4d3e93
...@@ -85,6 +85,7 @@ import DetailItem from "../../components/activity/activeDetail-item" ...@@ -85,6 +85,7 @@ import DetailItem from "../../components/activity/activeDetail-item"
mounted(){ mounted(){
if(this.$route.query.Id){ if(this.$route.query.Id){
this.msg.Id=this.$route.query.Id this.msg.Id=this.$route.query.Id
this.getDetail()
} }
}, },
methods: { methods: {
...@@ -116,37 +117,38 @@ import DetailItem from "../../components/activity/activeDetail-item" ...@@ -116,37 +117,38 @@ import DetailItem from "../../components/activity/activeDetail-item"
this.ActivityTitle.splice(index,1) this.ActivityTitle.splice(index,1)
}, },
getItemData(val,index){ getItemData(val,index){
console.log('119', val,index)
this.msg.ActivityTitle[index]=val this.msg.ActivityTitle[index]=val
}, },
//保存信息 //保存信息
save() { save() {
// this.$refs.child[0].ruleVerification();
this.msg.ActivityTitle=this.ActivityTitle this.msg.ActivityTitle=this.ActivityTitle
this.$refs.child.forEach(x=>{ this.$refs.child.map(x=>{
x.ruleVerification(); x.ruleVerification();
}) })
// this.$refs.Name.validate(); let res= this.$refs.child.every(x=>{
// this.$refs.StartTime.validate(); return x.ruleVerification();
// this.$refs.EndTime.validate(); })
// this.$refs.SignStartTime.validate();
// this.$refs.SignEndTime.validate();
// if (!this.$refs.Name.hasError &&
// !this.$refs.StartTime.hasError &&
// !this.$refs.EndTime.hasError &&
// !this.$refs.SignStartTime.hasError &&
// !this.$refs.SignEndTime.hasError) {
// this.apipostDS("/api/Education/GetSetActivityPlan", this.msg, (res) => { console.log('res', res)
// console.log(136,res) if(res){
// if (res.data.resultCode === 1) { this.apipostDS("/api/Education/GetSetActivityPlan", this.msg, (res) => {
// this.Success(res.data.message); console.log(136,res)
// } else { if (res.data.resultCode === 1) {
// this.Error(res.data.message); this.Success(res.data.message);
// } } else {
// }) this.Error(res.data.message);
// } }
})
}
}, },
  getDetail(){
        this.apipostDS("/api/Education/GetActivity", {Id:this.msg.Id}, (res) => {
            if (res.data.resultCode === 1) {
              this.ActivityTitle=res.data.data.ActivityTitleList
              console.log(152,res.data.data.ActivityTitleList)
            } 
          })
      }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment