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