分切下料2
This commit is contained in:
6
main.js
6
main.js
@@ -25,6 +25,12 @@ Vue.directive('enterNumber', {
|
||||
}
|
||||
});
|
||||
|
||||
Vue.filter('findByValue', (array, value) => {
|
||||
if (!Array.isArray(array)) return ''
|
||||
const item = array.find(item => item.value === value)
|
||||
return item ? item.text : ''
|
||||
});
|
||||
|
||||
import store from '@/vuex/store.js'
|
||||
|
||||
const app = new Vue({
|
||||
|
||||
Reference in New Issue
Block a user