|
|
@@ -10,6 +10,14 @@
|
|
|
:data-source="printerDatas"
|
|
|
>
|
|
|
<template #bodyCell="{ record, column }">
|
|
|
+ <template v-if="column.key === 'supportRfid'">
|
|
|
+ <span v-if="record.supportRfid === true">
|
|
|
+ 是
|
|
|
+ </span>
|
|
|
+ <span v-else>
|
|
|
+ 否
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
<template v-if="column.key === 'operation'">
|
|
|
<span>
|
|
|
<a @click="editPrinter(false, record)">编辑</a>
|
|
|
@@ -83,39 +91,6 @@
|
|
|
:wrapper-col="{ span: 16 }"
|
|
|
>
|
|
|
<a-checkbox v-model:checked="printerState.supportRfid" />
|
|
|
- <a-checkbox
|
|
|
- v-if="printerState.supportRfid"
|
|
|
- v-model:checked="printerState.enableWritePassword"
|
|
|
- style="margin-left: 40px"
|
|
|
- >
|
|
|
- 写入密码
|
|
|
- </a-checkbox>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row v-if="printerState.enableWritePassword" :gutter="24">
|
|
|
- <a-col :span="11">
|
|
|
- <a-form-item
|
|
|
- label="访问密码"
|
|
|
- :label-col="{ span: 8 }"
|
|
|
- :wrapper-col="{ span: 16 }"
|
|
|
- >
|
|
|
- <a-input
|
|
|
- v-model:value="printerState.accessPassword"
|
|
|
- style="width: 220px"
|
|
|
- />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="11">
|
|
|
- <a-form-item
|
|
|
- label="杀死密码"
|
|
|
- :label-col="{ span: 10 }"
|
|
|
- :wrapper-col="{ span: 16 }"
|
|
|
- >
|
|
|
- <a-input
|
|
|
- v-model:value="printerState.killPassword"
|
|
|
- style="width: 220px"
|
|
|
- />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
@@ -200,9 +175,6 @@ const printerState = ref({
|
|
|
printerName: '',
|
|
|
printerType: undefined,
|
|
|
supportRfid: false,
|
|
|
- enableWritePassword: false,
|
|
|
- accessPassword: '',
|
|
|
- killPassword: '',
|
|
|
rotateAngel: 0,
|
|
|
backLength: 0,
|
|
|
offsetHeight: 0,
|