| | |
| | | prop="scenario" |
| | | border-bottom> |
| | | <u-input v-model="form.scenario" |
| | | readonly="readonly" |
| | | :readonly="readonly" |
| | | placeholder="请输入适用场景" /> |
| | | </u-form-item> |
| | | <u-form-item label="解决效率" |
| | |
| | | prop="creator" |
| | | border-bottom> |
| | | <u-input v-model="form.creator" |
| | | readonly |
| | | placeholder="请选择创建人" |
| | | @click="openCreatorSheet" /> |
| | | <template v-if="!readonly" |
| | | #right> |
| | | <up-icon name="arrow-right" |
| | | @click="openCreatorSheet"></up-icon> |
| | | </template> |
| | | <!-- <u-input v-model="form.creator" |
| | | :readonly="readonly" |
| | | placeholder="请输入创建人" /> |
| | | placeholder="请输入创建人" /> --> |
| | | </u-form-item> |
| | | <u-form-item label="使用次数" |
| | | prop="usageCount" |
| | |
| | | :actions="equipmentOptions" |
| | | @select="handleEquipmentChange" |
| | | @close="showEquipmentSheet = false" /> |
| | | <up-action-sheet :show="showCreatorSheet" |
| | | :actions="creatorOptions" |
| | | @select="handleCreatorChange" |
| | | @close="showCreatorSheet = false" /> |
| | | <!-- <u-popup :show="showEquipmentSheet" |
| | | mode="bottom" |
| | | @close="showEquipmentSheet = false" |
| | |
| | | addKnowledgeBase, |
| | | updateKnowledgeBase, |
| | | } from "@/api/managementMeetings/knowledgeBase"; |
| | | import { userListNoPageByTenantId } from "@/api/system/user"; |
| | | |
| | | const userStore = useUserStore(); |
| | | |
| | |
| | | form.value.efficiency = action.value; |
| | | statusname.value = action.name; |
| | | showStatusSheet.value = false; |
| | | }; |
| | | const showCreatorSheet = ref(false); |
| | | const creatorOptions = ref([]); |
| | | const openCreatorSheet = () => { |
| | | showCreatorSheet.value = true; |
| | | }; |
| | | const getCreatorOptions = async () => { |
| | | try { |
| | | const res = await userListNoPageByTenantId(); |
| | | if (res.code === 200) { |
| | | creatorOptions.value = res.data || []; |
| | | creatorOptions.value.forEach(item => { |
| | | item.name = item.nickName; |
| | | item.value = item.userId; |
| | | }); |
| | | } else { |
| | | showToast("获取创建人列表失败"); |
| | | } |
| | | } catch (e) { |
| | | console.error("获取创建人列表失败:", e); |
| | | showToast("获取创建人列表失败"); |
| | | } |
| | | }; |
| | | // 创建人选择 |
| | | const handleCreatorChange = val => { |
| | | form.value.creator = val.name; |
| | | }; |
| | | const equipmentname = ref(""); |
| | | // 设备配置选择 |
| | |
| | | }); |
| | | |
| | | onMounted(() => { |
| | | getCreatorOptions(); |
| | | // 从本地存储中获取知识数据 |
| | | const knowledgeBase = uni.getStorageSync("knowledgeBase"); |
| | | if (knowledgeBase) { |