法人注册部门选择问题修改 11.12

master
zhc077 1 week ago
parent 0b41b3bbf5
commit 384da30d5b
  1. 37
      jeecgboot-vue3/src/views/declarant/declarantList.vue
  2. 5
      jeecgboot-vue3/src/views/declarantUnit/declarantUnitList.vue
  3. 2
      jeecgboot-vue3/src/views/declarantUnit/depart.user.data.ts

@ -33,7 +33,7 @@
</template> </template>
<!--操作栏--> <!--操作栏-->
<template #action="{ record }"> <template #action="{ record }">
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)" /> <TableAction :actions="getTableAction(record)"/>
</template> </template>
</BasicTable> </BasicTable>
<!--用户抽屉--> <!--用户抽屉-->
@ -69,7 +69,9 @@
import { columns, searchFormSchema } from './user.data'; import { columns, searchFormSchema } from './user.data';
import { listNoCareTenant, deleteUser, batchDeleteUser, getImportUrl, getExportUrl, frozenBatch} from './user.api'; import { listNoCareTenant, deleteUser, batchDeleteUser, getImportUrl, getExportUrl, frozenBatch} from './user.api';
import {usePermission} from "/@/hooks/web/usePermission"; import {usePermission} from "/@/hooks/web/usePermission";
import {useUserStore} from "@/store/modules/user";
const userStore = useUserStore();
console.log("the current user role:",userStore.getUserInfo.roleCode);
const { createMessage, createConfirm } = useMessage(); const { createMessage, createConfirm } = useMessage();
const { isDisabledAuth } = usePermission(); const { isDisabledAuth } = usePermission();
//drawer //drawer
@ -84,7 +86,6 @@
const [registerQuitAgentModal, { openModal: openQuitAgentModal }] = useModal(); const [registerQuitAgentModal, { openModal: openQuitAgentModal }] = useModal();
//model //model
const [registerQuitModal, { openModal: openQuitModal }] = useModal(); const [registerQuitModal, { openModal: openQuitModal }] = useModal();
// //
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
designScope: 'user-list', designScope: 'user-list',
@ -233,7 +234,7 @@
/** /**
* 操作栏 * 操作栏
*/ */
function getTableAction(record): ActionItem[] { /*function getTableAction(record): ActionItem[] {
return [ return [
{ {
label: '编辑', label: '编辑',
@ -241,31 +242,25 @@
// ifShow: () => hasPermission('system:user:edit'), // ifShow: () => hasPermission('system:user:edit'),
}, },
]; ];
} }*/
/** /**
* 下拉操作栏 * 下拉操作栏
*/ */
function getDropDownAction(record): ActionItem[] { // function getDropDownAction(record): ActionItem[] {
function getTableAction(record): ActionItem[] {
return [ return [
{ {
label: '详情', label: '详情',
onClick: handleDetail.bind(null, record), onClick: handleDetail.bind(null, record),
}, },
{ /*{
label: '密码', label: '密码',
//auth: 'user:changepwd', //auth: 'user:changepwd',
onClick: handleChangePassword.bind(null, record.username), onClick: handleChangePassword.bind(null, record.username),
}, },*/
{
label: '删除',
popConfirm: {
title: '是否确认删除',
confirm: handleDelete.bind(null, record),
},
},
{ {
label: '驳回', label: '驳回',
ifShow: record.status == 1, ifShow: userStore.getUserInfo.roleCode =='faren_admin' && record.status == 1,
popConfirm: { popConfirm: {
title: '确定驳回吗?', title: '确定驳回吗?',
confirm: handleFrozen.bind(null, record, 2), confirm: handleFrozen.bind(null, record, 2),
@ -273,12 +268,20 @@
}, },
{ {
label: '通过', label: '通过',
ifShow: record.status == 2, ifShow: userStore.getUserInfo.roleCode =='faren_admin' && record.status == 2,
popConfirm: { popConfirm: {
title: '确定通过吗?', title: '确定通过吗?',
confirm: handleFrozen.bind(null, record, 1), confirm: handleFrozen.bind(null, record, 1),
}, },
}, },
{
label: '删除',
ifShow: userStore.getUserInfo.roleCode != 'shenbaoren_role',
popConfirm: {
title: '是否确认删除',
confirm: handleDelete.bind(null, record),
},
},
// { // {
// label: '', // label: '',
// onClick: handleAgentSettings.bind(null, record.username), // onClick: handleAgentSettings.bind(null, record.username),

@ -196,6 +196,11 @@ function getTableAction(record) {
confirm: handleFrozen.bind(null, record, 1), confirm: handleFrozen.bind(null, record, 1),
}, },
}, },
{
ifShow: userStore.getUserInfo.roleCode =='faren_admin',
label: '编辑',
onClick: handleEdit.bind(null, record),
},
{ {
label: '删除', label: '删除',
ifShow: userStore.getUserInfo.roleCode !='faren_admin', ifShow: userStore.getUserInfo.roleCode !='faren_admin',

@ -92,6 +92,7 @@ export const formSchema: FormSchema[] = [
componentProps:{ componentProps:{
dictCode:"depart_status" dictCode:"depart_status"
}, },
dynamicDisabled: true,
}, },
{ {
label: '名称', label: '名称',
@ -107,6 +108,7 @@ export const formSchema: FormSchema[] = [
label: '编码', label: '编码',
field: 'orgCode', field: 'orgCode',
component: 'Input', component: 'Input',
dynamicDisabled: true,
}, },
{ {
label: '手机号', label: '手机号',

Loading…
Cancel
Save