|
@@ -75,6 +75,7 @@
|
|
|
filterable>
|
|
|
<el-option v-for="(item,index) in pricesArray"
|
|
|
:key="index"
|
|
|
+ :disabled="surplustime < item"
|
|
|
:label="item"
|
|
|
:value="item">
|
|
|
</el-option>
|
|
@@ -140,7 +141,7 @@
|
|
|
type="info"
|
|
|
size="small"
|
|
|
plain
|
|
|
- :disabled="surplustime < (selectPrice || 0) || Math.min(...pricesArray)"
|
|
|
+ :disabled="surplustime < ((selectPrice || 0) || Math.min(...pricesArray))"
|
|
|
@click="create"
|
|
|
style="margin-top: 10px;width: 100%;"
|
|
|
>添加循环</el-button>
|
|
@@ -184,8 +185,7 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
pricesArray() {
|
|
|
- console.log(this.prices, this.type)
|
|
|
- return (this.prices[this.type] || '').split(',') || []
|
|
|
+ return (this.prices[this.type] || '').split(',').filter(item => !!item)
|
|
|
}
|
|
|
},
|
|
|
methods: {
|