feat:分析管理select-data
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user