Преглед на файлове

4.0.41 设备管理增加分辨率字段

liuyanpeng преди 2 години
родител
ревизия
3a4f950c25
променени са 2 файла, в които са добавени 24 реда и са изтрити 8 реда
  1. 1 1
      package.json
  2. 23 7
      src/printer/PrinterConfiguration.vue

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "client-base-v4",
   "description": "Leanwo Prodog Client",
-  "version": "4.0.40",
+  "version": "4.0.41",
   "author": "yangzhijie1488 <yangzhijie1488@163.com>",
   "scripts": {
     "dev": "cross-env webpack serve --config ./webpack.dev.js",

+ 23 - 7
src/printer/PrinterConfiguration.vue

@@ -11,12 +11,8 @@
     >
       <template #bodyCell="{ record, column }">
         <template v-if="column.key === 'supportRfid'">
-          <span v-if="record.supportRfid === true">
-            是
-          </span>
-          <span v-else>
-            否
-          </span>
+          <span v-if="record.supportRfid === true"> 是 </span>
+          <span v-else> 否 </span>
         </template>
         <template v-if="column.key === 'operation'">
           <span>
@@ -146,6 +142,25 @@
             </a-form-item>
           </a-col>
         </a-row>
+        <a-row :gutter="24">
+          <a-col :span="11">
+            <a-form-item
+              label="打印机分辨率"
+              :label-col="{ span: 8 }"
+              :wrapper-col="{ span: 16 }"
+            >
+              <a-select
+                v-model:value="printerState.printheads"
+                style="width: 220px"
+              >
+                <a-select-option :value="6">152.4</a-select-option>
+                <a-select-option :value="8">203.2</a-select-option>
+                <a-select-option :value="12">304.8</a-select-option>
+                <a-select-option :value="24">609.6</a-select-option>
+              </a-select>
+            </a-form-item>
+          </a-col>
+        </a-row>
       </a-form>
     </a-modal>
   </main>
@@ -179,7 +194,8 @@ const printerState = ref({
   backLength: 0,
   offsetHeight: 0,
   offsetWidth: 0,
-  darkness: 15,
+  darkness: 30,
+  printheads: 8,
 });
 const base = reactive({
   clientId: '',