diff --git a/src/pages/Middle/Mold/InkjetPrinter/print.vue b/src/pages/Middle/Mold/InkjetPrinter/print.vue
index e5073f5..40766c1 100644
--- a/src/pages/Middle/Mold/InkjetPrinter/print.vue
+++ b/src/pages/Middle/Mold/InkjetPrinter/print.vue
@@ -31,13 +31,14 @@
-
+
@@ -86,9 +87,9 @@ export default {
actions: {
get: `${BASE_URL.BASE_URL}/InkjetPrinter/v1/inkjet/printer/list`,
- getFiles: `${BASE_URL.BASE_URL}/InkjetPrinter/v1/tplus/text`
+ getFiles: `http://36.133.149.247:9112/api/tp/getSqList`
},
-
+ searchKey: '',
currentPrint: null,
table1Height: 300,
addText: '',
@@ -113,7 +114,7 @@ export default {
],
detailsData: [
- { fileName: '080142-690844XAB', x: 0, y: 0, direction: 0, fontName: 'Arial', fontSize: 100, fontSpacing: 10 }
+
]
@@ -140,6 +141,7 @@ export default {
url: this.actions.getFiles,
loading: "加载中...",
data: {
+ key: this.searchKey
}
}).then(a => {
@@ -147,17 +149,24 @@ export default {
let ds = [];
let textList = a.textList || a.data.textList || [];
- textList.forEach(text => {
- ds.push({ fileName: text, x: 0, y: 0, direction: 0, fontName: 'Arial', fontSize: 100, fontSpacing: 10 })
+ textList.forEach(item => {
+ ds.push({ fileName: item.sequance, x: 0, y: 0, direction: 0, fontName: 'Arial', fontSize: 100, fontSpacing: 10 })
});
this.detailsData = ds;
}
});
+ },
+ pageSearch() {
+
+ this.filesInit();
+
+
},
pageAdd() {
- this.detailsData = [...this.detailsData, { fileName: this.addText || '', x: 0, y: 0, direction: 0, fontName: 'Arial', fontSize: 100, fontSpacing: 10 }]
+
+ this.detailsData = [...this.detailsData, { fileName: this.searchKey, x: 0, y: 0, direction: 0, fontName: 'Arial', fontSize: 100, fontSpacing: 10 }];
},