File tree Expand file tree Collapse file tree 4 files changed +33
-7
lines changed
components/bpmnProcessDesigner/package/penal/multi-instance Expand file tree Collapse file tree 4 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 3
3
<el-form label-width =" 90px" >
4
4
<el-form-item label =" 回路特性" >
5
5
<el-select v-model =" loopCharacteristics" @change =" changeLoopCharacteristicsType" >
6
- <!-- bpmn:MultiInstanceLoopCharacteristics-->
7
6
<el-option label =" 并行多重事件" value =" ParallelMultiInstance" />
8
7
<el-option label =" 时序多重事件" value =" SequentialMultiInstance" />
9
- <!-- bpmn:StandardLoopCharacteristics-->
10
8
<el-option label =" 循环事件" value =" StandardLoop" />
11
9
<el-option label =" 无" value =" Null" />
12
10
</el-select >
Original file line number Diff line number Diff line change @@ -123,14 +123,37 @@ const setDialogTile = (type: string) => {
123
123
}
124
124
125
125
// 新增操作
126
- const handleCreate = () => {
126
+ const handleCreate = async () => {
127
127
// 重置表单
128
128
setDialogTile (' create' )
129
+ await nextTick ()
130
+ console .log (allSchemas .formSchema , ' allSchemas.formSchema' )
131
+ if (allSchemas .formSchema [4 ].field !== ' username' ) {
132
+ unref (formRef )?.addSchema (
133
+ {
134
+ field: ' username' ,
135
+ label: ' 用户名称' ,
136
+ component: ' Input'
137
+ },
138
+ 0
139
+ )
140
+ unref (formRef )?.addSchema (
141
+ {
142
+ field: ' password' ,
143
+ label: ' 用户密码' ,
144
+ component: ' InputPassword'
145
+ },
146
+ 1
147
+ )
148
+ }
129
149
}
130
150
131
151
// 修改操作
132
152
const handleUpdate = async (rowId : number ) => {
133
153
setDialogTile (' update' )
154
+ await nextTick ()
155
+ unref (formRef )?.delSchema (' username' )
156
+ unref (formRef )?.delSchema (' password' )
134
157
// 设置数据
135
158
const res = await TenantApi .getTenantApi (rowId )
136
159
unref (formRef )?.setValues (res )
Original file line number Diff line number Diff line change @@ -123,8 +123,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
123
123
title : '用户名称' ,
124
124
field : 'username' ,
125
125
isTable : false ,
126
- isDetail : false ,
127
- isForm : false
126
+ isDetail : false
128
127
} ,
129
128
{
130
129
title : '用户密码' ,
@@ -133,8 +132,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
133
132
isDetail : false ,
134
133
form : {
135
134
component : 'InputPassword'
136
- } ,
137
- isForm : false
135
+ }
138
136
} ,
139
137
{
140
138
title : '账号额度' ,
Original file line number Diff line number Diff line change @@ -60,6 +60,13 @@ const crudSchemas = reactive<VxeCrudSchema>({
60
60
component : 'InputPassword'
61
61
}
62
62
} ,
63
+ {
64
+ title : '用户' + t ( 'profile.user.sex' ) ,
65
+ field : 'sex' ,
66
+ dictType : DICT_TYPE . SYSTEM_USER_SEX ,
67
+ dictClass : 'number' ,
68
+ table : { show : false }
69
+ } ,
63
70
{
64
71
title : '用户昵称' ,
65
72
field : 'nickname'
You can’t perform that action at this time.
0 commit comments