Kaynağa Gözat

bug 提交

tags/小炒逻辑变更前
gwbvipvip 2 yıl önce
ebeveyn
işleme
00eac9ccb7
5 değiştirilmiş dosya ile 13 ekleme ve 12 silme
  1. +5
    -5
      src/pages/sys/org/components/CreateForm.jsx
  2. +0
    -1
      src/pages/sys/user/components/OrgForm.jsx
  3. +0
    -1
      src/pages/sys/user/components/PwdForm.jsx
  4. +0
    -1
      src/pages/sys/user/components/RoleAuth.jsx
  5. +8
    -4
      src/pages/sys/user/index.jsx

+ 5
- 5
src/pages/sys/org/components/CreateForm.jsx Dosyayı Görüntüle

@@ -27,10 +27,10 @@ const CreateForm = (props) => {
<Form.Item name="id" hidden={true}>
<Input />
</Form.Item>
<Form.Item name="code" label="机构编码" rules={[{ required: true, max: 64 }]}>
<Input placeholder="请输入机构编码" />
<Form.Item name="code" label="组织编码" rules={[{ required: true, max: 64 }]}>
<Input placeholder="请输入组织编码" />
</Form.Item>
<Form.Item name="name" label="机构名称" rules={[{ required: true, max: 64 }]}>
<Form.Item name="name" label="组织名称" rules={[{ required: true, max: 64 }]}>
<Input placeholder="请输入名称" />
</Form.Item>
<Form.Item name="pid" label="上级名称" rules={[{ required: true }]}>
@@ -45,9 +45,9 @@ const CreateForm = (props) => {

<Form.Item
name="type"
label="机构类型"
label="组织类型"
defaultValue={props.values.type}
rules={[{ required: true, message: '请选择机构类型' }]}
rules={[{ required: true, message: '请选择组织类型' }]}
>
<Select placeholder="请选择机构类型">
<OptGroup>


+ 0
- 1
src/pages/sys/user/components/OrgForm.jsx Dosyayı Görüntüle

@@ -28,7 +28,6 @@ const OrgForm = (props) => {
<Form
layout="vertical"
preserve={false}
layout="horizontal"
labelCol={{
span: 4,
}}


+ 0
- 1
src/pages/sys/user/components/PwdForm.jsx Dosyayı Görüntüle

@@ -17,7 +17,6 @@ const PwdForm = (props) => {
<Form
layout="vertical"
preserve={false}
layout="horizontal"
labelCol={{
span: 4,
}}


+ 0
- 1
src/pages/sys/user/components/RoleAuth.jsx Dosyayı Görüntüle

@@ -17,7 +17,6 @@ const RoleForm = (props) => {
<Form
layout="vertical"
preserve={false}
layout="horizontal"
labelCol={{
span: 4,
}}


+ 8
- 4
src/pages/sys/user/index.jsx Dosyayı Görüntüle

@@ -111,7 +111,7 @@ const userManager = () => {
api.GetRoleDic().then(r => {
var arr = [];
for (var key in r.data) {
arr.push(<Select.Option value={key}>{r.data[key]}</Select.Option>)
arr.push(<Option value={key}>{r.data[key]}</Option>)
}
SetselectData(arr);
api.GetUserRole(id).then(r => {
@@ -232,6 +232,10 @@ const userManager = () => {
dataIndex: 'adminType',
hideInSearch: true,
valueEnum: {
0: {
text: '无',
status: 'Default',
},
1: {
text: '超级管理员',
status: 'Processing',
@@ -252,11 +256,11 @@ const userManager = () => {
hideInSearch: true,
valueEnum: {
0: {
text: '正常',
text: '启用',
status: 'Processing',
},
1: {
text: '用',
text: '用',
status: 'Success',
},
},
@@ -425,7 +429,7 @@ const userManager = () => {
onFinish={async (value) => {
const values = {
sysUserId: stepFormValues.id,
orgId: value.orgId,
sysOrgId: value.orgId,
};
const success = await handleGrantData(values);
if (success) {


Yükleniyor…
İptal
Kaydet