Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspection-pad-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
专网
inspection-pad-web
Commits
ca273371
提交
ca273371
authored
4月 09, 2025
作者:
JaxBBLL
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: input number
上级
f0e0c2e4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
86 行增加
和
9 行删除
+86
-9
dczt.vue
pages/inspectionContent/components/dczt.vue
+36
-3
jfwsd.vue
pages/inspectionContent/components/jfwsd.vue
+30
-3
xfxt.vue
pages/inspectionContent/components/xfxt.vue
+16
-3
inspectionContentNew.vue
pages/inspectionContent/inspectionContentNew.vue
+4
-0
没有找到文件。
pages/inspectionContent/components/dczt.vue
浏览文件 @
ca273371
...
...
@@ -23,15 +23,46 @@
@click="setInspectionResult(index, 1, item.lableArr[1])"
>
{{
item
.
lableArr
[
1
]
}}
</view>
</view
><input
</view>
</view>
<!--
<input
v-if=
"'value' in item"
class=
"input"
v-model=
"item.value"
type=
"text"
placeholder=
"请输入"
maxlength=
"3"
/>
{{
item
.
unit
}}
/>
-->
<template
v-if=
"'value' in item"
>
<NumberInput
v-if=
"index == 0"
class=
"input"
v-model=
"item.value"
type=
"number"
allowNegative
:max=
"100"
:min=
"-100"
placeholder=
"请输入"
/>
<NumberInput
v-if=
"index == 1"
class=
"input"
v-model=
"item.value"
type=
"number"
:max=
"100"
:min=
"0"
placeholder=
"请输入"
/>
<NumberInput
v-else
class=
"input"
v-model=
"item.value"
type=
"number"
placeholder=
"请输入"
/>
</
template
>
{{ item.unit }}
</view>
<
template
v-if=
"item.inspectionResult === 1"
>
<view
v-if=
"'conclusion' in item"
class=
"form-item"
>
...
...
@@ -81,6 +112,7 @@
</template>
<
script
>
import
NumberInput
from
"@/components/NumberInput/index.vue"
;
import
CommonUpload
from
"@/components/CommonUpload/index.vue"
;
import
customPopup
from
"./customPopup.vue"
;
import
_
from
"lodash"
;
...
...
@@ -88,6 +120,7 @@ import mixin from "./mixin";
export
default
{
mixins
:
[
mixin
],
components
:
{
NumberInput
,
CommonUpload
,
customPopup
,
},
...
...
pages/inspectionContent/components/jfwsd.vue
浏览文件 @
ca273371
...
...
@@ -23,14 +23,39 @@
@click="setInspectionResult(index, 1, item.lableArr[1])"
>
{{
item
.
lableArr
[
1
]
}}
</view>
</view
><input
</view>
</view>
<!--
<input
v-if=
"'value' in item"
class=
"input"
v-model=
"item.value"
type=
"text"
placeholder=
"请输入"
/>
{{
item
.
unit
}}
/>
-->
<template
v-if=
"'value' in item"
>
<NumberInput
v-if=
"index == 0"
class=
"input"
v-model=
"item.value"
type=
"number"
allowNegative
:max=
"100"
:min=
"-100"
placeholder=
"请输入"
/>
<NumberInput
v-if=
"index == 1"
class=
"input"
v-model=
"item.value"
type=
"number"
:max=
"100"
:min=
"0"
placeholder=
"请输入"
/>
</
template
>
{{ item.unit }}
</view>
<
template
v-if=
"item.inspectionResult === 1"
>
<view
v-if=
"'conclusion' in item"
class=
"form-item"
>
...
...
@@ -80,6 +105,7 @@
</template>
<
script
>
import
NumberInput
from
"@/components/NumberInput/index.vue"
;
import
CommonUpload
from
"@/components/CommonUpload/index.vue"
;
import
customPopup
from
"./customPopup.vue"
;
import
_
from
"lodash"
;
...
...
@@ -87,6 +113,7 @@ import mixin from "./mixin";
export
default
{
mixins
:
[
mixin
],
components
:
{
NumberInput
,
CommonUpload
,
customPopup
,
},
...
...
pages/inspectionContent/components/xfxt.vue
浏览文件 @
ca273371
...
...
@@ -23,15 +23,26 @@
@click="setInspectionResult(index, 1, item.lableArr[1])"
>
{{
item
.
lableArr
[
1
]
}}
</view>
</view
><input
</view>
</view>
<!--
<input
v-if=
"'value' in item && item.inspectionResult === 1"
class=
"input"
v-model=
"item.value"
type=
"text"
placeholder=
"请输入"
maxlength=
"3"
/>
{{
item
.
inspectionResult
===
1
?
item
.
unit
:
""
}}
/>
-->
<NumberInput
v-if=
"'value' in item && item.inspectionResult === 1"
class=
"input"
v-model=
"item.value"
type=
"number"
:max=
"10"
:min=
"0"
placeholder=
"请输入"
/>
{{
item
.
inspectionResult
===
1
?
item
.
unit
:
""
}}
</view>
<template
v-if=
"item.inspectionResult === 1"
>
<view
v-if=
"'conclusion' in item"
class=
"form-item"
>
...
...
@@ -81,6 +92,7 @@
</template>
<
script
>
import
NumberInput
from
"@/components/NumberInput/index.vue"
;
import
CommonUpload
from
"@/components/CommonUpload/index.vue"
;
import
customPopup
from
"./customPopup.vue"
;
import
_
from
"lodash"
;
...
...
@@ -88,6 +100,7 @@ import mixin from "./mixin";
export
default
{
mixins
:
[
mixin
],
components
:
{
NumberInput
,
CommonUpload
,
customPopup
,
},
...
...
pages/inspectionContent/inspectionContentNew.vue
浏览文件 @
ca273371
...
...
@@ -548,6 +548,7 @@ export default {
}
const
params
=
this
.
getParams
(
isSubmit
);
//数据获取
console
.
log
(
"提交时获取一次"
,
params
);
this
.
all_data
=
this
.
$store
.
state
.
all_data
||
[];
this
.
realSave
(
params
).
then
(()
=>
{
let
logContent
=
""
;
...
...
@@ -586,8 +587,11 @@ export default {
// 更新日志
const
log_list
=
this
.
$store
.
state
.
log_list
;
logContent
.
inspectionType
=
params
.
inspectionType
;
console
.
log
(
"logContent"
,
logContent
);
log_list
.
push
(
logContent
);
this
.
$store
.
commit
(
"SET_LOG_LIST"
,
log_list
);
addLog
(
log_list
).
then
((
res
)
=>
{
console
.
log
(
"日志文件写入成功"
);
});
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论