| | |
| | | <el-button icon="el-icon-delete" plain size="small" type="danger" @click="delHandler">移除</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <action-dialog ref="actionDialog"></action-dialog> |
| | | <action-dialog ref="actionDialog" :is-muti="true" @updataAction="actionSaveHandler"></action-dialog> |
| | | </basic-container> |
| | | </el-main> |
| | | |
| | |
| | | import basicOption from "@/util/basic-option"; |
| | | import { delUIContextData, getBizTree, gridUIContextData} from "@/api/UI/uiDefine"; |
| | | import func from "@/util/func"; |
| | | import actionDialog from "@/views/modelingMenu/ui/Aciton/dialog" |
| | | import actionDialog from "@/views/modelingMenu/ui/Aciton/components/dialog" |
| | | |
| | | export default { |
| | | name: "index", |
| | |
| | | //创建 |
| | | addHandler() { |
| | | if (this.nodeRow && this.nodeRow.oid && this.nodeRow.oid!='') { |
| | | this.$refs.actionDialog.openDialog(this.nodeRow); |
| | | this.$refs.actionDialog.openDialog(); |
| | | } else { |
| | | this.$message.error('请选择业务类型'); |
| | | } |
| | | }, |
| | | // 保存action |
| | | actionSaveHandler(val) { |
| | | addAction(val).then(res => { |
| | | if(res.data.code == 200){ |
| | | this.$message.success(res.data.obj); |
| | | |
| | | } |
| | | }) |
| | | }, |
| | | delHandler() { |
| | | if (this.selectList.length <= 0) { |
| | | this.$message.error('请至少选择一条数据'); |