|
|
@@ -25,9 +25,8 @@
|
|
|
prop="userName"
|
|
|
>
|
|
|
<el-input
|
|
|
- :disabled="dialogType != 'add'"
|
|
|
+ :disabled="true"
|
|
|
v-model="state.form.userName"
|
|
|
- @focus="openSelectUser"
|
|
|
placeholder="请选择"
|
|
|
></el-input>
|
|
|
<!-- <el-select
|
|
|
@@ -133,11 +132,11 @@
|
|
|
alt="Preview Image"
|
|
|
/>
|
|
|
</el-dialog>
|
|
|
- <SelectUser
|
|
|
+ <!-- <SelectUser
|
|
|
ref="selectUserRef"
|
|
|
:multiple="false"
|
|
|
@selectedUserData="selectedUserData"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -156,11 +155,11 @@
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
import mittBus from '/@/utils/mitt'
|
|
|
import { useUserInfo } from '/@/stores/userInfo'
|
|
|
- const SelectUser = defineAsyncComponent(() => import('/@/views/instr/component/selectUserByDept/index.vue'))
|
|
|
+// const SelectUser = defineAsyncComponent(() => import('/@/views/instr/component/selectUserByDept/index.vue'))
|
|
|
// 向父组件传值/事件
|
|
|
const emit = defineEmits(['refresh'])
|
|
|
// 定义变量内容
|
|
|
- const selectUserRef = ref()
|
|
|
+// const selectUserRef = ref()
|
|
|
const stores = useUserInfo()
|
|
|
const { userInfos } = storeToRefs(stores)
|
|
|
const uploadUrl = import.meta.env.VITE_UPLOAD
|
|
|
@@ -290,12 +289,6 @@
|
|
|
}
|
|
|
return true
|
|
|
}
|
|
|
- const openSelectUser = () => {
|
|
|
- const param = state.form.userId
|
|
|
- ? { checkedUser: [{ id: state.form.userId, name: state.form.userName }] }
|
|
|
- : undefined
|
|
|
- selectUserRef.value.openDialog(param)
|
|
|
- }
|
|
|
const selectedUserData = (data) => {
|
|
|
state.form.userId = data.user[0].id
|
|
|
state.form.userName = data.user[0].name
|