mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-10-31 10:18:43 +08:00 
			
		
		
		
	1、bpmnjs中template中不能写注释,会导致报错
2、租客列表添加显示账号密码,修改不显示
This commit is contained in:
		| @@ -3,10 +3,8 @@ | |||||||
|     <el-form label-width="90px"> |     <el-form label-width="90px"> | ||||||
|       <el-form-item label="回路特性"> |       <el-form-item label="回路特性"> | ||||||
|         <el-select v-model="loopCharacteristics" @change="changeLoopCharacteristicsType"> |         <el-select v-model="loopCharacteristics" @change="changeLoopCharacteristicsType"> | ||||||
|           <!--bpmn:MultiInstanceLoopCharacteristics--> |  | ||||||
|           <el-option label="并行多重事件" value="ParallelMultiInstance" /> |           <el-option label="并行多重事件" value="ParallelMultiInstance" /> | ||||||
|           <el-option label="时序多重事件" value="SequentialMultiInstance" /> |           <el-option label="时序多重事件" value="SequentialMultiInstance" /> | ||||||
|           <!--bpmn:StandardLoopCharacteristics--> |  | ||||||
|           <el-option label="循环事件" value="StandardLoop" /> |           <el-option label="循环事件" value="StandardLoop" /> | ||||||
|           <el-option label="无" value="Null" /> |           <el-option label="无" value="Null" /> | ||||||
|         </el-select> |         </el-select> | ||||||
|   | |||||||
| @@ -123,14 +123,37 @@ const setDialogTile = (type: string) => { | |||||||
| } | } | ||||||
|  |  | ||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = async () => { | ||||||
|   // 重置表单 |   // 重置表单 | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|  |   await nextTick() | ||||||
|  |   console.log(allSchemas.formSchema, 'allSchemas.formSchema') | ||||||
|  |   if (allSchemas.formSchema[4].field !== 'username') { | ||||||
|  |     unref(formRef)?.addSchema( | ||||||
|  |       { | ||||||
|  |         field: 'username', | ||||||
|  |         label: '用户名称', | ||||||
|  |         component: 'Input' | ||||||
|  |       }, | ||||||
|  |       0 | ||||||
|  |     ) | ||||||
|  |     unref(formRef)?.addSchema( | ||||||
|  |       { | ||||||
|  |         field: 'password', | ||||||
|  |         label: '用户密码', | ||||||
|  |         component: 'InputPassword' | ||||||
|  |       }, | ||||||
|  |       1 | ||||||
|  |     ) | ||||||
|  |   } | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
| const handleUpdate = async (rowId: number) => { | const handleUpdate = async (rowId: number) => { | ||||||
|   setDialogTile('update') |   setDialogTile('update') | ||||||
|  |   await nextTick() | ||||||
|  |   unref(formRef)?.delSchema('username') | ||||||
|  |   unref(formRef)?.delSchema('password') | ||||||
|   // 设置数据 |   // 设置数据 | ||||||
|   const res = await TenantApi.getTenantApi(rowId) |   const res = await TenantApi.getTenantApi(rowId) | ||||||
|   unref(formRef)?.setValues(res) |   unref(formRef)?.setValues(res) | ||||||
|   | |||||||
| @@ -123,8 +123,7 @@ const crudSchemas = reactive<VxeCrudSchema>({ | |||||||
|       title: '用户名称', |       title: '用户名称', | ||||||
|       field: 'username', |       field: 'username', | ||||||
|       isTable: false, |       isTable: false, | ||||||
|       isDetail: false, |       isDetail: false | ||||||
|       isForm: false |  | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       title: '用户密码', |       title: '用户密码', | ||||||
| @@ -133,8 +132,7 @@ const crudSchemas = reactive<VxeCrudSchema>({ | |||||||
|       isDetail: false, |       isDetail: false, | ||||||
|       form: { |       form: { | ||||||
|         component: 'InputPassword' |         component: 'InputPassword' | ||||||
|       }, |       } | ||||||
|       isForm: false |  | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       title: '账号额度', |       title: '账号额度', | ||||||
|   | |||||||
| @@ -60,6 +60,13 @@ const crudSchemas = reactive<VxeCrudSchema>({ | |||||||
|         component: 'InputPassword' |         component: 'InputPassword' | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |     { | ||||||
|  |       title: '用户' + t('profile.user.sex'), | ||||||
|  |       field: 'sex', | ||||||
|  |       dictType: DICT_TYPE.SYSTEM_USER_SEX, | ||||||
|  |       dictClass: 'number', | ||||||
|  |       table: { show: false } | ||||||
|  |     }, | ||||||
|     { |     { | ||||||
|       title: '用户昵称', |       title: '用户昵称', | ||||||
|       field: 'nickname' |       field: 'nickname' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 gexinzhineng/gxzn27
					gexinzhineng/gxzn27