From bbea392a0383ede32a1c2012cb407189f8080283 Mon Sep 17 00:00:00 2001 From: lq <13849061902@qq.com> Date: Tue, 9 Jul 2024 15:07:30 +0800 Subject: [PATCH] add code --- src/App.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 7dcc582..b074d2d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -522,7 +522,8 @@ export default { searchList:{}, searchField:{}, doc:{}, - myDiv: null + myDiv: null, + orderType:0 } }, mounted() { @@ -624,6 +625,7 @@ export default { } this.searchList = data.data.searchExt let order_id = data.data.searchExt['order_id'] + this.orderType = data.data.searchExt['order_type_id'] this.handleGenerate('imgCode', order_id) let orderData = data.data.orderExt.productList let data3 = response3.data @@ -665,7 +667,7 @@ export default { const ccc = this.instance.command.getValue() //console.log(ccc) localStorage.setItem('word_data', JSON.stringify(ccc.data)) - let saveData = {'type':1, 'field_style':ccc.data} + let saveData = {'type':this.orderType, 'field_style':ccc.data} let api = '/api/Administrator/OrderFieldStyle/save' axios.post(api, saveData).then((res) => {