| | |
| | | <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('请è³å°éæ©ä¸æ¡æ°æ®'); |
ÎļþÃû´Ó Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/dialog.vue ÐÞ¸Ä |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getActionTree, |
| | | getActionTableData, |
| | | saveAction, |
| | | updateAction, |
| | | exportAction, |
| | | deleteAction, |
| | | getPLActionParam, |
| | | savePLActionParam, |
| | | updatePLActionParam, |
| | | deletePLActionParam, |
| | | saveActionCls, |
| | | updateActionCls, |
| | | deleteActionCls |
| | | } from '@/api/UI/Action/api' |
| | | import { getActionTree, getActionTableData} from '@/api/UI/Action/api' |
| | | import func from "@/util/func"; |
| | | import basicOption from "@/util/basic-option"; |
| | | import {clonePageDef, cloneTabButton, clonetabPage} from "@/api/UI/uiDefine"; |
| | | |
| | | export default { |
| | | name: "index", |
| | | props:['isMuti'], |
| | | data() { |
| | | return { |
| | | dialog: { |
| | |
| | | created() { |
| | | }, |
| | | methods: { |
| | | openDialog(data) { |
| | | openDialog() { |
| | | this.dialog.showDialog = true; |
| | | this.getTreeList() |
| | | this.data = []; |
| | |
| | | cancelDialog() { |
| | | this.dialog.loading = false; |
| | | this.dialog.showDialog = false; |
| | | this.$refs.tree.setCurrentKey(null); |
| | | }, |
| | | submitDialog() { |
| | | if (this.selectList.length==0) { |
| | | this.$message.error('è¯·éæ©Action'); |
| | | return; |
| | | } |
| | | const saveFunction = { |
| | | 'pageDef': '' |
| | | }; |
| | | saveFunction[this.type](params).then(res => { |
| | | if(res.data.code == 200){ |
| | | this.$message.success(res.data.obj); |
| | | this.cancelDialog(); |
| | | if(this.isMuti){ |
| | | this.$emit('updataAction', this.selectList); |
| | | }else { |
| | | if(this.selectList.length>1){ |
| | | this.$message.error('è¯·éæ©ä¸æ¡Action'); |
| | | return; |
| | | } |
| | | }) |
| | | this.$emit('updataAction', this.selectList[0]); |
| | | } |
| | | |
| | | this.cancelDialog(); |
| | | |
| | | }, |
| | | // 左侧æ è¯·æ± |
| | | getTreeList(status) { |
| | |
| | | nodeClick(row) { |
| | | this.treeNodeRow = row; |
| | | this.getRightTableList(row); |
| | | this.bottomData = []; |
| | | }, |
| | | |
| | | // 头é¨å·æ°æé® |
| | |
| | | const data = res.data.data; |
| | | this.data = data; |
| | | this.tableLoading = false; |
| | | |
| | | }) |
| | | }, |
| | | |
| | |
| | | import basicOption from "@/util/basic-option"; |
| | | import func from "@/util/func"; |
| | | import { |
| | | getBtmDatasByPage, |
| | | getPortalVIDatasByPage, |
| | | getQTInfoDatasByPage, |
| | | getLinkDatasByPage, |
| | | getPLPageDefinations, |
| | | getTabButtons, |
| | | addTapButton, |
| | |
| | | joinBtn, |
| | | exitBtn |
| | | } from "@/api/UI/uiDefine"; |
| | | import actionDialog from '@/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/components/action'; |
| | | import actionDialog from '@/views/modelingMenu/ui/Aciton/components/dialog'; |
| | | import cloneDialog from "@/views/modelingMenu/ui/uiDefine/rightRegion/cloneDialog"; |
| | | |
| | | export default { |
| | |
| | | |
| | | // 鿩action |
| | | actionFoucus() { |
| | | this.$refs.actionDialog.btnActionVisible = true; |
| | | this.$refs.actionDialog.openDialog(); |
| | | }, |
| | | |
| | | // ä¿åaction |