|
|
@@ -0,0 +1,157 @@
|
|
|
+<template>
|
|
|
+ <!-- 权限设置 -->
|
|
|
+ <a-modal class="commonModal add-powers"
|
|
|
+ title="权限设置"
|
|
|
+ v-model:visible="visible"
|
|
|
+ @cancel="cancel"
|
|
|
+ :loading="loading"
|
|
|
+ centered
|
|
|
+ :maskClosable="false"
|
|
|
+ width="890px">
|
|
|
+ <template #footer>
|
|
|
+ <a-button key="submit"
|
|
|
+ type="primary"
|
|
|
+ :loading="loading"
|
|
|
+ @click="cancel">完成</a-button>
|
|
|
+ </template>
|
|
|
+ <a-table :columns="columns"
|
|
|
+ :data-source="tableList"
|
|
|
+ :pagination="false">
|
|
|
+ </a-table>
|
|
|
+ </a-modal>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts">
|
|
|
+import { closeModal } from '@/common/setup/modal/index';
|
|
|
+import { defineComponent, ref, watchEffect } from 'vue';
|
|
|
+import { handleBusinessForm } from '../setup';
|
|
|
+import { ErmcpRole } from '@/services/go/ermcp/account/interface';
|
|
|
+import { queryResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
+import { QueryAccMgrRole } from '@/services/go/ermcp/account';
|
|
|
+
|
|
|
+export default defineComponent({
|
|
|
+ name: 'account_info_manager_btn_permission',
|
|
|
+ setup() {
|
|
|
+ // 控制关闭弹窗
|
|
|
+ const { visible, cancel } = closeModal('account_info_manager_btn_permission');
|
|
|
+ const loading = ref<boolean>(false);
|
|
|
+ const columns = [
|
|
|
+ { title: '角色名称', dataIndex: 'rolename', key: 'rolename' },
|
|
|
+ { title: '创建人', dataIndex: 'modifiername', key: 'modifiername' },
|
|
|
+ { title: '创建时间', dataIndex: 'modifytime', key: 'modifytime' },
|
|
|
+ { title: '状态', dataIndex: 'rolestatus', key: 'rolestatus' },
|
|
|
+ ];
|
|
|
+ const tableList = ref<ErmcpRole[]>([]);
|
|
|
+ watchEffect(() => {
|
|
|
+ if (visible.value) {
|
|
|
+ queryResultLoadingAndInfo(QueryAccMgrRole, loading).then((res) => {
|
|
|
+ tableList.value = res;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return {
|
|
|
+ visible,
|
|
|
+ cancel,
|
|
|
+ loading,
|
|
|
+ tableList,
|
|
|
+ columns,
|
|
|
+ };
|
|
|
+ },
|
|
|
+});
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less">
|
|
|
+.add-business-info {
|
|
|
+}
|
|
|
+.add-traders {
|
|
|
+}
|
|
|
+.add-managers {
|
|
|
+}
|
|
|
+.add-powers {
|
|
|
+ .powerTable {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ border: 3px solid @m-grey11;
|
|
|
+ background-color: @m-black12;
|
|
|
+ font-size: 14px;
|
|
|
+ color: @m-white0;
|
|
|
+ .flex;
|
|
|
+ flex-direction: column;
|
|
|
+ .ant-checkbox-group.commonCheckboxGroup .ant-checkbox-wrapper {
|
|
|
+ width: 90px;
|
|
|
+ span + span {
|
|
|
+ margin-right: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .powerRow {
|
|
|
+ width: 100%;
|
|
|
+ display: inline-flex;
|
|
|
+ border-bottom: 3px solid @m-grey11;
|
|
|
+ div {
|
|
|
+ align-self: center;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ .powerLeft {
|
|
|
+ width: 84px;
|
|
|
+ padding: 0 8px;
|
|
|
+ }
|
|
|
+ .powerMiddle {
|
|
|
+ width: 130px;
|
|
|
+ .flex;
|
|
|
+ flex-direction: column;
|
|
|
+ div {
|
|
|
+ width: 100%;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ padding: 0 8px;
|
|
|
+ border: 3px solid @m-grey11;
|
|
|
+ border-top: 0;
|
|
|
+ }
|
|
|
+ div:last-child {
|
|
|
+ border-bottom: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .powerRight {
|
|
|
+ flex: 1;
|
|
|
+ .flex;
|
|
|
+ flex-direction: column;
|
|
|
+ div {
|
|
|
+ width: 100%;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ padding: 0 8px;
|
|
|
+ justify-content: flex-start;
|
|
|
+ border-bottom: 3px solid @m-grey11;
|
|
|
+ }
|
|
|
+ div:last-child {
|
|
|
+ border-bottom: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.add-futures {
|
|
|
+}
|
|
|
+.add-futures-son {
|
|
|
+}
|
|
|
+.add-arbitrage {
|
|
|
+ .ant-checkbox-group.commonCheckboxGroup .ant-checkbox-wrapper {
|
|
|
+ width: 100px;
|
|
|
+ span + span {
|
|
|
+ margin-right: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .ant-checkbox-group.autoWidth {
|
|
|
+ width: 520px;
|
|
|
+ .ant-checkbox-wrapper {
|
|
|
+ width: auto;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .checkboxGroupItem {
|
|
|
+ .ant-row {
|
|
|
+ margin-bottom: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style
|
|
|
+>;
|