function showMoreController(){
row.close = false;
this.postData = row;
this.title = that.head[flag]['name'];
that.$scope.$watch(()=> {return this.postData.close}, (newVal) => {
if(newVal){
td = Object.assign(td,this.postData)
that.DialogService.hide();
}
})
this.cancel = ()=>{
that.DialogService.hide();
}
this.submit = () =>{
console.log(this.postData);
}
}
let option ={
controller:showMoreController,
controllerAs:'vm',
clickOutsideToClose:true,
multiple: true,
template:`
<md-dialog style="min-width:600px;">
<div style="background: #7986CB;min-height: 40px;color: #fff;padding: 0 16px;font-size: 20px;line-height: 40px;">{{vm.title}}</div>
<ac-${flag} post-data="vm.postData"></ac-${flag}>
</md-dialog>`
}
this.DialogService.openDialog(null,null,null,option);
}
angularJSDialog打开代码:
最新推荐文章于 2024-12-15 09:38:12 发布
