update code

This commit is contained in:
lq 2024-07-20 09:33:57 +08:00
parent dce43668b3
commit 9dc291fa60

View File

@ -614,7 +614,11 @@ export default {
const svgElement = document.createElement('svg') const svgElement = document.createElement('svg')
// //
let content = '1234567788' let content = '1234567788'
let options = JsBarcode.Options let options = {
'lineColor': 'red'
}//JsBarcode.Options
console.log(options)
options['lineColor'] = 'red'
JsBarcode(svgElement, content, options) JsBarcode(svgElement, content, options)
let base64Image = this.convertSvgElementToBase64(svgElement) let base64Image = this.convertSvgElementToBase64(svgElement)
@ -787,7 +791,7 @@ export default {
} }
//localStorage.setItem('word_data', JSON.stringify(ccc.data)) //localStorage.setItem('word_data', JSON.stringify(ccc.data))
return false //return false
let saveData = { 'id': this.id, 'type': this.orderType, 'field_style': ccc.data } let saveData = { 'id': this.id, 'type': this.orderType, 'field_style': ccc.data }
let api = '/api/Administrator/OrderFieldStyle/save' let api = '/api/Administrator/OrderFieldStyle/save'
axios.post(api, saveData).then((res) => { axios.post(api, saveData).then((res) => {
@ -914,8 +918,10 @@ export default {
if (tdListItem.value.length == 0) { if (tdListItem.value.length == 0) {
continue continue
} }
let tdValue = tdListItem.value[0].value for (let j = 0; j < tdListItem.value.length; j++) {
tdListItem.value[0].value = this.getFieldValue(tdValue, order) let tdValue = tdListItem.value[j].value
tdListItem.value[j].value = this.getFieldValue(tdValue, order)
}
} }
return trList return trList
}, },