no message
This commit is contained in:
@@ -46,9 +46,9 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: '',
|
title: '',
|
||||||
options1: this.generateArray('HNJ', 'DJW'),
|
options1: this.generateArray('HNJ', 'DJW', 8),
|
||||||
index1: '',
|
index1: '',
|
||||||
options2: this.generateArray('YJ', 'SLW01'),
|
options2: this.generateArray('YJ', 'SLW01', 10),
|
||||||
index2: '',
|
index2: '',
|
||||||
val1: null,
|
val1: null,
|
||||||
disabled1: false
|
disabled1: false
|
||||||
@@ -58,9 +58,9 @@
|
|||||||
this.title = options.title
|
this.title = options.title
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
generateArray(prefix, suffix) {
|
generateArray(prefix, suffix, num) {
|
||||||
const array = []
|
const array = []
|
||||||
for (let i = 1; i <= 8; 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: `${prefix}${String(i).padStart(2, '0')}${suffix}`
|
||||||
|
|||||||
Reference in New Issue
Block a user