Commit 6c8146f3 by linjinhong

fix:修改文件上传配置

parent 9d42e007
{"apiApiHost":"https://factory.jomalls.com/api","fileApiUrl":"https://factory.jomalls.com/upload/factory","visionUrl":"https://console.jomalls.com","configPath":"D:\\work\\electron-printer\\config\\env.json"}
\ No newline at end of file
{"apiApiHost":"https://11factory.jomalls.com/api","fileApiUrl":"https://11factory.jomalls.com/upload/factory","visionUrl":"https://console.jomalls.com","configPath":"D:\\work\\electron-printer\\config\\env.json"}
\ No newline at end of file
......@@ -132,6 +132,7 @@ export default {
downloadBySubOrderNumber: async (req, res) => {
env = getHostApi().apiApiHost;
fileEnv = getHostApi().fileApiUrl;
const params = req.body;
const token = req.headers["jwt-token"];
......@@ -139,11 +140,14 @@ export default {
CN: "factory/podJomallOrderProductCn/downloadDesignImages",
US: "factory/podJomallOrderProductUs/downloadDesignImages",
GC: "factory/podJomallOrder/downloadByProduction",
HLC: "factory/podJomallOrderProductUs/downloadCompatibleDesignImages",
};
try {
const url = urlMap[params.orderType];
let url = urlMap[params.orderType];
if (params.device == 3) {
url = urlMap["HLC"];
}
const { data } = await axios.post(`${env}/${url}`, [...params.ids], {
headers: { "jwt-token": token },
});
......
......@@ -104,6 +104,7 @@ export default {
"hsla(209, 100%, 56%, 0.73)",
"#c7158577",
],
faceType: "1",
};
},
computed: {
......@@ -1070,6 +1071,16 @@ export default {
</el-tooltip>
</el-popover>
</div>
<div v-else>
<div class="selectInput">
<div>当前打印:</div>
<el-select v-model="faceType" placeholder="请选择" class="FaceType">
<el-option label="A面 / 正面" value="1"></el-option>
<el-option label="B面 / 反面" value="2"></el-option>
</el-select>
</div>
</div>
</div>
<div class="center-input">
<!-- <el-button
......@@ -1271,6 +1282,9 @@ export default {
.el-select .el-input {
max-width: 90px;
}
.FaceType .el-input {
max-width: 120px;
}
}
}
::v-deep {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment