|
@@ -11,8 +11,7 @@
|
|
|
</svg>
|
|
</svg>
|
|
|
{{getUserName()}}
|
|
{{getUserName()}}
|
|
|
</span>
|
|
</span>
|
|
|
- <a-button @click="openPermission">权限设置</a-button>
|
|
|
|
|
- <a-button @click="openAddPermission">新增</a-button>
|
|
|
|
|
|
|
+ <BtnList :btnList="firstBtn" />
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<a-collapse class="spotCollapse"
|
|
<a-collapse class="spotCollapse"
|
|
@@ -37,7 +36,7 @@
|
|
|
<a-col :span="12">{{item.rolename}}({{item.userlist.length}})</a-col>
|
|
<a-col :span="12">{{item.rolename}}({{item.userlist.length}})</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<BtnList :selectedData="item"
|
|
<BtnList :selectedData="item"
|
|
|
- :btnList="commonBtn"
|
|
|
|
|
|
|
+ :btnList="secondBtn"
|
|
|
@onClick="openAction" />
|
|
@onClick="openAction" />
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
@@ -80,7 +79,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { defineComponent, initData, getBtnList, contextMenu, BtnList } from '@/common/export/table';
|
|
|
|
|
|
|
+import { defineComponent, initData, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
|
|
|
import filterCustomTable from '@/views/information/goods/components/filterTable/index.vue';
|
|
import filterCustomTable from '@/views/information/goods/components/filterTable/index.vue';
|
|
|
import { getLoginStatusEnumItemName } from '@/common/constants/enumsName';
|
|
import { getLoginStatusEnumItemName } from '@/common/constants/enumsName';
|
|
|
import { getAccountStatus, handleModalData, handleTableList } from '../setup';
|
|
import { getAccountStatus, handleModalData, handleTableList } from '../setup';
|
|
@@ -116,19 +115,15 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
const { loading, tableList, queryTable } = queryTableList();
|
|
const { loading, tableList, queryTable } = queryTableList();
|
|
|
- const { commonBtn, forDataBtn } = getBtnList('account_info_manager', true, ['新增']);
|
|
|
|
|
|
|
+ const [firstBtn, secondBtn, thirdBtn] = _getBtnList('account_info_manager', true).value;
|
|
|
// 新增弹窗
|
|
// 新增弹窗
|
|
|
const { selectedData: addModelData, openAction } = handleModalData<ErmcpLoginUserEx>();
|
|
const { selectedData: addModelData, openAction } = handleModalData<ErmcpLoginUserEx>();
|
|
|
// 修改 重置密码、详情等弹窗
|
|
// 修改 重置密码、详情等弹窗
|
|
|
const { selectedData: moreModelData, openAction: moreOptenAction } = handleModalData<ErmcpLoginUser>();
|
|
const { selectedData: moreModelData, openAction: moreOptenAction } = handleModalData<ErmcpLoginUser>();
|
|
|
// 处理根据状态显示对应按钮
|
|
// 处理根据状态显示对应按钮
|
|
|
function handleBtnAction() {
|
|
function handleBtnAction() {
|
|
|
- handleTableList(queryTable, tableList, forDataBtn.value);
|
|
|
|
|
|
|
+ handleTableList(queryTable, tableList, thirdBtn);
|
|
|
}
|
|
}
|
|
|
- // 新增角色
|
|
|
|
|
- const { openAction: openAddPermission } = openModal('account_info_manager_btn_permission_add');
|
|
|
|
|
- // 权限设置列表
|
|
|
|
|
- const { openAction: openPermission } = openModal('account_info_manager_btn_permission');
|
|
|
|
|
initData(() => {
|
|
initData(() => {
|
|
|
handleBtnAction();
|
|
handleBtnAction();
|
|
|
});
|
|
});
|
|
@@ -137,8 +132,9 @@ export default defineComponent({
|
|
|
function search(value: any) {}
|
|
function search(value: any) {}
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
- commonBtn,
|
|
|
|
|
- forDataBtn,
|
|
|
|
|
|
|
+ firstBtn,
|
|
|
|
|
+ secondBtn,
|
|
|
|
|
+ thirdBtn,
|
|
|
loading,
|
|
loading,
|
|
|
search,
|
|
search,
|
|
|
tableList,
|
|
tableList,
|
|
@@ -150,8 +146,6 @@ export default defineComponent({
|
|
|
moreModelData,
|
|
moreModelData,
|
|
|
moreOptenAction,
|
|
moreOptenAction,
|
|
|
handleBtnAction,
|
|
handleBtnAction,
|
|
|
- openAddPermission,
|
|
|
|
|
- openPermission,
|
|
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|