中文
This commit is contained in:
@@ -46,9 +46,9 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: '',
|
title: '',
|
||||||
options1: this.generateArray('HNJ', 'DJW', 8),
|
options1: this.generateArray('HNJ', 'DJW', '混碾机', '', 8),
|
||||||
index1: '',
|
index1: '',
|
||||||
options2: this.generateArray('YJ', 'SLW01', 10),
|
options2: this.generateArray('YJ', 'SLW01', '压机', '号上料位', 10),
|
||||||
index2: '',
|
index2: '',
|
||||||
val1: null,
|
val1: null,
|
||||||
disabled1: false
|
disabled1: false
|
||||||
@@ -58,12 +58,12 @@
|
|||||||
this.title = options.title
|
this.title = options.title
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
generateArray(prefix, suffix, num) {
|
generateArray(prefix, suffix, name1, name2, num) {
|
||||||
const array = []
|
const array = []
|
||||||
for (let i = 1; i <= num; i++) {
|
for (let i = 1; i <= num; i++) {
|
||||||
array.push({
|
array.push({
|
||||||
value: `${prefix}${String(i).padStart(2, '0')}${suffix}`,
|
value: `${prefix}${String(i).padStart(2, '0')}${suffix}`,
|
||||||
text: `${prefix}${String(i).padStart(2, '0')}${suffix}`
|
text: `${name1}${String(i).padStart(2, '0')}${name2}`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return array
|
return array
|
||||||
|
|||||||
Reference in New Issue
Block a user