feat: 设备管理前端迁移

This commit is contained in:
JR
2025-07-25 13:17:15 +08:00
parent 4272b495ed
commit 043bee36ec
34 changed files with 6753 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import provider from "@/views/print/printtemplate/ProviderData";
import {hiprint} from 'vue-plugin-hiprint'
import {PRINT_DICT} from "../utils/print";
import webSite from "@/config/website";
/**
* hiprint初始化
*/
export const hiprintMixin = {
data() {
return {
hiprintTemplate: null,
hiprintThis: null
};
},
mounted() {
hiprint.init({
providers: [provider],
host: webSite.print_transfer_url,
token: webSite.print_transfer_token
});
this.hiprintThis = hiprint
this.hiprintTemplate = new hiprint.PrintTemplate();
},
};