feat: 提交
This commit is contained in:
@@ -20,6 +20,7 @@ import { useLoginStore } from '@/stores/login'
|
||||
import DeviceSettingsCard from './components/DeviceSettingsCard.vue'
|
||||
import DocTypeSettingsCard from './components/DocTypeSettingsCard.vue'
|
||||
import EmbedSettingsCard from './components/EmbedSettingsCard.vue'
|
||||
import MousePadTestDialog from './components/MousePadTestDialog.vue'
|
||||
import MenuResourceSettings from './components/MenuResourceSettings.vue'
|
||||
import PushSettingsCard from './components/PushSettingsCard.vue'
|
||||
import SignatureSettingsCard from './components/SignatureSettingsCard.vue'
|
||||
@@ -109,6 +110,13 @@ function sendTestSms() {
|
||||
/* ---------------- 签署设备管理 ---------------- */
|
||||
|
||||
const devices = ref<SignatureDevice[]>(mockSignatureDevices.map((device) => ({ ...device })))
|
||||
const mouseTestVisible = ref(false)
|
||||
const mouseTestDeviceName = ref('')
|
||||
|
||||
function openMouseTest(device: SignatureDevice) {
|
||||
mouseTestDeviceName.value = `${device.model} · ${device.location}`
|
||||
mouseTestVisible.value = true
|
||||
}
|
||||
|
||||
function operateDevice(device: SignatureDevice) {
|
||||
if (device.kind === 'pad') {
|
||||
@@ -286,6 +294,7 @@ function removeDocType(name: string) {
|
||||
v-else-if="activeSection === 'device'"
|
||||
:devices="devices"
|
||||
@operate="operateDevice"
|
||||
@mouse-test="openMouseTest"
|
||||
/>
|
||||
|
||||
<PushSettingsCard
|
||||
@@ -401,6 +410,12 @@ function removeDocType(name: string) {
|
||||
<el-button type="danger" @click="confirmRotate">确认轮换</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<MousePadTestDialog
|
||||
:visible="mouseTestVisible"
|
||||
:device-name="mouseTestDeviceName"
|
||||
@close="mouseTestVisible = false"
|
||||
/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user