feat:打印机客户端下载
This commit is contained in:
parent
69195345f9
commit
b4cec0c147
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
@ -103,11 +103,11 @@
|
||||
icon="el-icon-video-play"
|
||||
@click="handleTest(scope.row)"
|
||||
v-hasPermi="['print:printerconfig:list']"
|
||||
>设置为默认</el-button>
|
||||
>设置为默认</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
@ -132,7 +132,7 @@
|
||||
<el-switch v-model="autoGenFlag"
|
||||
active-color="#13ce66"
|
||||
active-text="自动生成"
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">
|
||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -303,19 +303,19 @@ export default {
|
||||
rules: {
|
||||
printerCode: [
|
||||
{ required: true, message: "打印机编号不能为空", trigger: "blur" }
|
||||
],
|
||||
],
|
||||
|
||||
printerName: [
|
||||
{ required: true, message: "打印机名称不能为空", trigger: "blur" }
|
||||
],
|
||||
],
|
||||
|
||||
printerIp: [
|
||||
{ required: true, message: "打印机IP地址不能为空", trigger: "blur" }
|
||||
],
|
||||
],
|
||||
printerPort: [
|
||||
{ required: true, message: "打印机端口地址不能为空", trigger: "blur" }
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
@ -431,15 +431,15 @@ export default {
|
||||
},
|
||||
//图片移除
|
||||
handleImgRemoved(imgUrl){
|
||||
this.form.printerUrl = null;
|
||||
this.form.printerUrl = null;
|
||||
},
|
||||
handleDownloadClient(){
|
||||
const resource = "https://foruda.gitee.com/images/1699583353182586077/41820ab8_1151004.png";
|
||||
const resource = "http://101.43.244.58:9090/api/v1/buckets/printtool/objects/download?prefix=UHJpbnQuZXhl";
|
||||
this.$download.saveAs(resource,'client');
|
||||
},
|
||||
/**
|
||||
* 将指定打印机作为默认打印机,存储在浏览器本地
|
||||
* @param row
|
||||
* @param row
|
||||
*/
|
||||
handleDefault(row){
|
||||
const key = 'defaultPrinter';
|
||||
@ -455,7 +455,7 @@ export default {
|
||||
});
|
||||
}else{
|
||||
this.form.printerCode = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -466,4 +466,4 @@ export default {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user