| | |
| | | @row-click="rowClickHandler"> |
| | | <template slot="menuLeft"> |
| | | <el-button icon="el-icon-plus" size="small" type="primary" @click="addHandler">创建</el-button> |
| | | <el-button icon="el-icon-edit" plain size="small" type="primary" @click="editHandler">修改</el-button> |
| | | <el-button icon="el-icon-delete" plain size="small" type="danger" @click="delHandler">删除</el-button> |
| | | <!--<el-button icon="el-icon-edit" plain size="small" type="primary" @click="editHandler">修改</el-button> |
| | | <el-button icon="el-icon-delete" plain size="small" type="danger" @click="delHandler">删除</el-button>--> |
| | | </template> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button icon="el-icon-edit" size="small" type="text" @click="rowEditBtnClick(scope.row)">编辑 |
| | | </el-button> |
| | | <el-button icon="el-icon-delete" size="small" type="text" @click="rowDeleteHandler(scope.row)">删除 |
| | | </el-button> |
| | | <el-button icon="el-icon-edit" size="small" type="text" @click="rowEditBtnClick(scope.row)">编辑</el-button> |
| | | <el-button icon="el-icon-delete" size="small" type="text" @click="rowDeleteHandler(scope.row)">删除</el-button> |
| | | <el-button icon="el-icon-document-copy" size="small" type="text" @click="rowCloneHandler(scope.row)">克隆</el-button> |
| | | </template> |
| | | <template slot="plIsOpen" slot-scope="{row}"> |
| | | <el-tag v-if="row.plIsOpen === 1" type="success">启用</el-tag> |
| | |
| | | <el-button type="primary" @click="saveHandler">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <clone-dialog ref="cloneDialog"></clone-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | } from "@/api/UI/uiDefine"; |
| | | import func from "@/util/func"; |
| | | import bottomTable from "./bottomTable/index"; |
| | | import cloneDialog from "@/views/modelingMenu/ui/uiDefine/rightRegion/cloneDialog"; |
| | | |
| | | export default { |
| | | name: "plShow", |
| | |
| | | default: {} |
| | | }, |
| | | }, |
| | | components:{bottomTable}, |
| | | components:{bottomTable,cloneDialog}, |
| | | data() { |
| | | return { |
| | | uiDefineOid:'', |
| | |
| | | editBtn: false, |
| | | delBtn: false, |
| | | index:false, |
| | | menuWidth:160, |
| | | menuWidth:220, |
| | | align:'left', |
| | | column: [{ |
| | | label: '序号', |
| | | prop: 'plSeq', |
| | | width:60 |
| | | width:50 |
| | | }, { |
| | | label: '编码', |
| | | prop: 'plCode', |
| | |
| | | } |
| | | }); |
| | | }, |
| | | rowCloneHandler(row) { |
| | | this.$refs.cloneDialog.openDialog(row); |
| | | }, |
| | | } |
| | | } |
| | | </script> |