| | |
| | | <template> |
| | | <div class="role-peimission"> |
| | | <div class="btn-pager"> |
| | | <el-button @click="addpermssionClick" type="primary" size="small">新增权限</el-button> |
| | | <el-button @click="addBtnClick" type="primary" size="small">新增权限</el-button> |
| | | </div> |
| | | <TableCommonView ref="tableListRef" :select-box="false" :table-list="tableList"> |
| | | <template slot="tableButton"> |
| | |
| | | </template> |
| | | </TableCommonView> |
| | | <!-- 新建/编辑 --> |
| | | <AddContractManageDialog v-if="editConfig.visible" :edit-common-config="editConfig" /> |
| | | <AddRolePermssionDialog v-if="editConfig.visible" :edit-common-config="editConfig" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import AddContractManageDialog from "@/views/sales/contractManage/AddContractManageDialog" |
| | | import AddRolePermssionDialog from "@/views/backgroundConfig/rolePermssion/AddRolePermssionDialog" |
| | | |
| | | export default { |
| | | name: "RoleOeimission", |
| | | props: {}, |
| | | components: { |
| | | AddContractManageDialog |
| | | AddRolePermssionDialog |
| | | }, |
| | | computed: { |
| | | searchCommonHeight() { |
| | |
| | | tableList: {}, |
| | | editConfig: { |
| | | visible: false, |
| | | title: "新建", |
| | | title: "新增权限", |
| | | infomation: {} |
| | | } |
| | | } |
| | |
| | | tableInfomation: [ |
| | | { |
| | | number: "1", |
| | | owner: "总经理", |
| | | authorityName: "总经理", |
| | | notes: "" |
| | | } |
| | | ], |
| | | tableColumn: [ |
| | | { label: "#", prop: "number", width: 80 }, |
| | | { label: "权限名称", prop: "owner", width: 160 }, |
| | | { label: "权限名称", prop: "authorityName", width: 160 }, |
| | | { label: "备注", prop: "notes" } |
| | | ] |
| | | } |
| | |
| | | addBtnClick() { |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "新建" |
| | | this.editConfig.infomation = { |
| | | customName: "", |
| | | documentNumber: "ZDYBD01-3", |
| | | owner: "", |
| | | contractStatus: "", |
| | | salesQuotation: "", |
| | | approvalWorkflow: "", |
| | | approvalSteps: "", |
| | | approvalPerson: "", |
| | | approvalOpinion: "" |
| | | } |
| | | this.editConfig.infomation = {} |
| | | }, |
| | | // 编辑 |
| | | handleClick(row) { |
| | | console.log(row) |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "编辑" |
| | | this.editConfig.infomation = { |
| | | customName: "", |
| | | documentNumber: "TKD20230521-12", |
| | | owner: "", |
| | | contractStatus: "", |
| | | salesQuotation: "", |
| | | approvalWorkflow: "", |
| | | approvalSteps: "", |
| | | approvalPerson: "", |
| | | approvalOpinion: "" |
| | | } |
| | | this.editConfig.infomation = { ...row } |
| | | } |
| | | } |
| | | } |