|
|
@ -147,15 +147,31 @@ |
|
|
|
<template #checked>Y</template> |
|
|
|
<template #unchecked>N</template> |
|
|
|
</n-switch> |
|
|
|
<n-input-number |
|
|
|
<n-input-group v-if="res.ctrlpro.valueType != 'bool'"> |
|
|
|
<n-input-number |
|
|
|
size="tiny" |
|
|
|
v-model:value="res.value" |
|
|
|
style="width: 80px; opacity: 0.9; text-align: center" |
|
|
|
button-placement="both" |
|
|
|
placeholder="" |
|
|
|
@keyup.enter="handleBlur(res)" |
|
|
|
/> |
|
|
|
<n-input-group-label |
|
|
|
size="tiny" |
|
|
|
style="opacity: 0.9; text-align: center; cursor: pointer" |
|
|
|
@click="handleBlur(res)" |
|
|
|
>确定</n-input-group-label |
|
|
|
> |
|
|
|
</n-input-group> |
|
|
|
<!-- <n-input-number |
|
|
|
size="tiny" |
|
|
|
v-model:value="res.value" |
|
|
|
style="width: 100px; opacity: 0.9" |
|
|
|
style="width: 100px; opacity: 0.9; text-align: center" |
|
|
|
button-placement="both" |
|
|
|
placeholder="" |
|
|
|
@blur="handleBlur(res)" |
|
|
|
v-if="res.ctrlpro.valueType != 'bool'" |
|
|
|
/> |
|
|
|
/> --> |
|
|
|
</i> |
|
|
|
</span> |
|
|
|
</div> |
|
|
@ -190,14 +206,22 @@ |
|
|
|
<template #checked>Y</template> |
|
|
|
<template #unchecked>N</template> |
|
|
|
</n-switch> |
|
|
|
<n-input-number |
|
|
|
size="tiny" |
|
|
|
v-model:value="res.value" |
|
|
|
style="width: 100px; opacity: 0.9" |
|
|
|
button-placement="both" |
|
|
|
placeholder="" |
|
|
|
v-if="res.ctrlpro.valueType != 'bool'" |
|
|
|
/> |
|
|
|
<n-input-group v-if="res.ctrlpro.valueType != 'bool'"> |
|
|
|
<n-input-number |
|
|
|
size="tiny" |
|
|
|
v-model:value="res.value" |
|
|
|
style="width: 80px; opacity: 0.9; text-align: center" |
|
|
|
button-placement="both" |
|
|
|
placeholder="" |
|
|
|
@keyup.enter="handleBlur(res)" |
|
|
|
/> |
|
|
|
<n-input-group-label |
|
|
|
size="tiny" |
|
|
|
style="opacity: 0.9; text-align: center; cursor: pointer" |
|
|
|
@click="handleBlur(res)" |
|
|
|
>确定</n-input-group-label |
|
|
|
> |
|
|
|
</n-input-group> |
|
|
|
</i> |
|
|
|
</span> |
|
|
|
</div> |
|
|
@ -288,8 +312,7 @@ function gitDevice() { |
|
|
|
} |
|
|
|
infoData.value = Object.keys(res.data).length === 0 ? [] : res.data.datas; |
|
|
|
zoneType.value = Object.keys(res.data).length === 0 ? 0 : res.data.pCounts; |
|
|
|
deviceImg.value = |
|
|
|
Object.keys(res.data).length === 0 ? '' : 'src/assets/images/device/' + res.data.imgIndex + '.gif'; |
|
|
|
deviceImg.value = Object.keys(res.data).length === 0 ? '' : res.data.imgIndex; |
|
|
|
console.log(deviceImg.value); |
|
|
|
} else { |
|
|
|
clearTimeout(timer.value); |
|
|
@ -339,7 +362,7 @@ function handleBlur(data: any) { |
|
|
|
sendCtrl(submitData).then((res: any) => { |
|
|
|
if (res.code === 200) { |
|
|
|
console.log(res.data); |
|
|
|
ElMessage(res.data.msg); |
|
|
|
ElNotification({ message: res.data.msg }); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|