This commit is contained in:
仲么了
2023-10-31 09:18:44 +08:00
parent d6b02c77cd
commit a60cdc066e
8 changed files with 22 additions and 12 deletions

View File

@@ -87,7 +87,7 @@
<view style="height: 40rpx; background: #fff"></view>
</uni-popup>
<!-- 完成调试输入框 -->
<uni-popup ref="inputDialog" type="dialog">
<!-- <uni-popup ref="inputDialog" type="dialog">
<uni-popup-dialog
ref="inputClose"
mode="input"
@@ -97,6 +97,15 @@
@close="dialogInputClose"
@confirm="dialogInputConfirm"
></uni-popup-dialog>
</uni-popup> -->
<!-- 输入框示例 -->
<uni-popup ref="inputDialog" type="dialog">
<uni-popup-dialog ref="inputClose" type="info" mode="input" :title="dialogType"
value="对话框预置提示内容!"
placeholder="请输入内容" @confirm="dialogInputConfirm">
<uni-easyinput type="textarea" :maxlength="250" autoHeight v-model="remarkContent"
placeholder="请输入备注"></uni-easyinput>
</uni-popup-dialog>
</uni-popup>
</view>
</view>
@@ -123,6 +132,7 @@ export default {
},
data() {
return {
remarkContent: '',
dialogType: '',
domLoading: true,
loading: true,
@@ -252,7 +262,7 @@ export default {
if (this.dialogType == '取消调试') {
cancelDebug({
deviceId: this.devId,
remark: val,
remark: this.remarkContent,
type: Number(this.pageOptions.process),
}).then((res) => {
this.$util.toast(res.message)
@@ -263,7 +273,7 @@ export default {
} else {
finishDebug({
deviceId: this.devId,
remark: val,
remark: this.remarkContent,
type: Number(this.pageOptions.process),
}).then((res) => {
console.log(res)
@@ -448,11 +458,11 @@ export default {
text: '编辑',
},
{
iconPath: '/static/delate.png',
iconPath: '/static/cancel.png',
text: '取消调试',
},
{
iconPath: '/static/delate.png',
iconPath: '/static/confirm.png',
text: '完成调试',
},
)