🌈 style: 删除console.log
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<template>
|
||||
<el-select v-model="_value" placeholder="请选择">
|
||||
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapGetters } from 'vuex';
|
||||
|
||||
export default {
|
||||
name: 'AmountSelect',
|
||||
computed: {
|
||||
...mapGetters(['financialAccounts']),
|
||||
_value: {
|
||||
get() {
|
||||
return this.value;
|
||||
},
|
||||
set(value) {
|
||||
this.$emit('input', value);
|
||||
}
|
||||
}
|
||||
},
|
||||
props: {
|
||||
value: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
options: [],
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getFinancialAccounts();
|
||||
},
|
||||
methods: {
|
||||
getFinancialAccounts() {
|
||||
this.options = this.financialAccounts.map(item => ({
|
||||
label: item.accountName,
|
||||
value: item.accountId
|
||||
}));
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -52,7 +52,6 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.options = this.rawMaterialList;
|
||||
console.log(this.options, this.rawMaterialList);
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['rawMaterialList'])
|
||||
|
||||
@@ -63,7 +63,6 @@ export default {
|
||||
productId: {
|
||||
handler(newVal) {
|
||||
const res = this.productMap[this.productId] ? this.productMap[this.productId] : {};
|
||||
console.log(res)
|
||||
this.product = res;
|
||||
},
|
||||
immediate: true
|
||||
|
||||
@@ -48,7 +48,6 @@ export default {
|
||||
materialId: {
|
||||
handler: function (newVal) {
|
||||
const res = this.materialMap[this.materialId] ? this.materialMap[this.materialId] : {};
|
||||
console.log(res)
|
||||
this.material = res;
|
||||
},
|
||||
immediate: true
|
||||
|
||||
@@ -44,7 +44,6 @@ export default {
|
||||
}
|
||||
this.vditor = new Vditor('vditor', config);
|
||||
if (this.readonly) {
|
||||
console.log(this.vditor)
|
||||
this.vditor.vditor.disabled()
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user