From 479ee9a7239775e1adacb4d8ffc16dc8b11ae69d Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Tue, 15 Oct 2024 09:25:51 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=9C=BA=E7=AC=AC=E5=9B=9B?=
=?UTF-8?q?=E6=AC=A1=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pagePrinter/add-printer/add-printer.vue | 37 +++++++++----------------
1 file changed, 13 insertions(+), 24 deletions(-)
diff --git a/pagePrinter/add-printer/add-printer.vue b/pagePrinter/add-printer/add-printer.vue
index 80122d1..84b69d9 100644
--- a/pagePrinter/add-printer/add-printer.vue
+++ b/pagePrinter/add-printer/add-printer.vue
@@ -113,42 +113,42 @@
-
+
-
+
打印机状态
@@ -215,11 +215,9 @@
} from '@/pagePrinter/devices.js'
import {
onLoad,
- onShow
} from '@dcloudio/uni-app'
import {
ref,
- onBeforeUnmount,
reactive,
computed,
watch,
@@ -294,14 +292,11 @@
})
}
})
-
partList.value = arr
}
-
function sizeChange(e, name) {
form[name] = e.detail.value
}
-
//打印份数
const printerNums = reactive({
list: new Array(4).fill(1).map((v, index) => {
@@ -316,7 +311,6 @@
const feets = ref([0, 1, 2, 3, 4, 5, 8].map(v => {
return v + '行'
}))
-
let form = reactive({
sort: "0",
status: 0,
@@ -348,13 +342,11 @@
...form
})
}
-
go.to('/pagePrinter/index/index')
}
// watch(() => form.config.model, (newval) => {
// console.log(newval);
// })
-
// const option = reactive({})
async function getdetails() {
const res = await Api.printerd(userId.value)
@@ -365,6 +357,7 @@
})
res.selectcheckbox = arrs
form = Object.assign(form, res)
+ form.printType = JSON.parse(form.printType)
}
onLoad((options) => {
if (options.id) {
@@ -376,10 +369,6 @@
}
// Object.assign(option, opt)
})
- onBeforeUnmount(() => {
-
- })
- onShow(() => {})