|
@@ -2,6 +2,9 @@
|
|
|
<div class="p-base edit-user-view">
|
|
|
<el-card shadow="never" class="form-card">
|
|
|
<base-form ref="formRef" :model="model" :items="items" :rules="rules" :label-width="'90px'">
|
|
|
+ <template #form-item-examName>
|
|
|
+ <el-input :value="mainStore.myUserInfo?.examName" disabled />
|
|
|
+ </template>
|
|
|
<el-form-item class="m-t-base form-footer">
|
|
|
<confirm-button :loading="loading" @confirm="onSubmit" @cancel="cancel"></confirm-button>
|
|
|
</el-form-item>
|
|
@@ -14,7 +17,7 @@
|
|
|
/** 新增/编辑用户 */
|
|
|
import { reactive, watch, nextTick, unref, computed, ref } from 'vue'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
-import { ElCard, ElFormItem, ElMessage } from 'element-plus'
|
|
|
+import { ElCard, ElFormItem, ElMessage, ElInput } from 'element-plus'
|
|
|
import BaseForm from '@/components/element/BaseForm.vue'
|
|
|
import ConfirmButton from '@/components/common/ConfirmButton.vue'
|
|
|
import useFetch from '@/hooks/useFetch'
|
|
@@ -112,11 +115,12 @@ const items = computed<EpFormItem[]>(() => {
|
|
|
return [
|
|
|
{
|
|
|
label: '考试批次',
|
|
|
- slotType: 'input',
|
|
|
- slot: {
|
|
|
- disabled: true,
|
|
|
- value: mainStore.myUserInfo?.examName,
|
|
|
- },
|
|
|
+ slotName: 'examName',
|
|
|
+ // slotType: 'input',
|
|
|
+ // slot: {
|
|
|
+ // disabled: true,
|
|
|
+ // value: mainStore.myUserInfo?.examName,
|
|
|
+ // },
|
|
|
},
|
|
|
{
|
|
|
label: '用户角色',
|