feat:分析管理select-data

This commit is contained in:
houjunxiang
2026-02-09 17:13:19 +08:00
parent 1b66d63657
commit 21b72ca52a
11 changed files with 214 additions and 13 deletions

View File

@@ -14,7 +14,7 @@
<view class="mt8 mb8">{{ task.taskName }}{{ task.assayOper }}</view>
<view class="x-f">
<u-icon name="clock"></u-icon>
<text class="ml5">{{ taskOperatorTime }}</text>
<text class="ml5">{{ taskAssignTime }}</text>
</view>
</u-col>
</u-row>
@@ -39,7 +39,7 @@ const props = defineProps({
}
})
const taskOperatorTime = nx.$dayjs(props.task.taskOperatorTime).format('YYYY-MM-DD HH:mm:ss')
const taskAssignTime = nx.$dayjs(props.task.taskAssignTime).format('YYYY-MM-DD HH:mm:ss')
const emit = defineEmits(['click'])
const handleClick = () => {

View File

@@ -35,10 +35,12 @@
:disabled="field.disabled || field.fillingWay == 'calculate'"
/>
<uni-data-select
v-if="field.type == 'Select' || field.type == 'HtmlSelect'"
v-if="field.type == 'Select'"
v-model="field.value"
:multiple="field.multiple"
:localdata="field.options"
>
/>
<uni-data-select v-if="field.type == 'HtmlSelect'" v-model="field.value" :localdata="field.options">
<template v-slot:selected="{ selectedItems }">
<view v-if="selectedItems.length == 0" style="color: #c0c4cc"> 请选择 </view>
<view v-else v-html="selectedItems[0].value"> </view>
@@ -46,7 +48,7 @@
<template v-slot:option="{ item, itemSelected }">
<uni-list-item :disabled="item.disable">
<template #body>
<view v-html="item.label"></view>
<view v-html="item.text"></view>
</template>
</uni-list-item>
</template>
@@ -164,7 +166,10 @@ async function loadTaskDetail() {
hidden: false
}
if (customConfig?.componentProps?.options) {
field.options = customConfig.componentProps.options
field.options = customConfig.componentProps.options.map(option => ({ value: option.value, text: option.label }))
}
if (customConfig?.componentProps?.multiple) {
field.multiple = true
}
if (customConfig.hidden) {
field.hidden = true