update 完善项目管理的权限配置
This commit is contained in:
@@ -5,11 +5,23 @@
|
|||||||
2021-04-30
|
2021-04-30
|
||||||
Lufthafen
|
Lufthafen
|
||||||
-->
|
-->
|
||||||
<yo-tree-layout :load-data="loadTreeData" @select="onSelect" default-expanded-keys ref="tree-layout" :replace-fields="{ value: 'code', title: 'name', children: 'children' }">
|
<yo-tree-layout
|
||||||
|
:load-data="loadTreeData"
|
||||||
|
:replace-fields="{ value: 'code', title: 'name', children: 'children' }"
|
||||||
|
@select="onSelect"
|
||||||
|
default-expanded-keys
|
||||||
|
ref="tree-layout"
|
||||||
|
>
|
||||||
<container>
|
<container>
|
||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
<yo-table :columns="columns" :load-data="loadData" @query="onQuery" @resetQuery="onResetQuery" ref="table">
|
<yo-table
|
||||||
<Auth auth="authCode:page" slot="query">
|
:columns="columns"
|
||||||
|
:load-data="loadData"
|
||||||
|
@query="onQuery"
|
||||||
|
@resetQuery="onResetQuery"
|
||||||
|
ref="table"
|
||||||
|
>
|
||||||
|
<Auth auth="houseProjectInfo:page" slot="query">
|
||||||
<!-- 此处添加查询表单控件 -->
|
<!-- 此处添加查询表单控件 -->
|
||||||
<a-form-model-item label="项目名称">
|
<a-form-model-item label="项目名称">
|
||||||
<a-input placeholder="请输入项目名称" v-model="query.name" />
|
<a-input placeholder="请输入项目名称" v-model="query.name" />
|
||||||
@@ -19,7 +31,7 @@
|
|||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
<!-- ... -->
|
<!-- ... -->
|
||||||
</Auth>
|
</Auth>
|
||||||
<Auth auth="authCode:add" slot="operator">
|
<Auth auth="houseProjectInfo:add" slot="operator">
|
||||||
<a-button @click="onOpen('add-form')" icon="plus">新增项目</a-button>
|
<a-button @click="onOpen('add-form')" icon="plus">新增项目</a-button>
|
||||||
</Auth>
|
</Auth>
|
||||||
<!-- 格式化字段内容 -->
|
<!-- 格式化字段内容 -->
|
||||||
@@ -28,10 +40,10 @@
|
|||||||
<!-- 添加操作控件 -->
|
<!-- 添加操作控件 -->
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<yo-table-actions>
|
<yo-table-actions>
|
||||||
<Auth auth="authCode:edit">
|
<Auth auth="houseProjectInfo:edit">
|
||||||
<a @click="onOpen('edit-form', record)">编辑</a>
|
<a @click="onOpen('edit-form', record)">编辑</a>
|
||||||
</Auth>
|
</Auth>
|
||||||
<Auth auth="authCode:delete">
|
<Auth auth="houseProjectInfo:delete">
|
||||||
<a-popconfirm @confirm="onDelete(record)" placement="topRight" title="是否确认删除">
|
<a-popconfirm @confirm="onDelete(record)" placement="topRight" title="是否确认删除">
|
||||||
<a>删除</a>
|
<a>删除</a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
|
|||||||
Reference in New Issue
Block a user