修改bug
This commit is contained in:
@@ -252,7 +252,7 @@ export default {
|
||||
computed: {},
|
||||
created() {
|
||||
this.fillLineOptions();
|
||||
this.fillProductOptions();
|
||||
// this.fillProductOptions();
|
||||
},
|
||||
mounted() {
|
||||
// window.addEventListener('resize', () => {
|
||||
@@ -284,23 +284,23 @@ export default {
|
||||
);
|
||||
},
|
||||
|
||||
async fillProductOptions() {
|
||||
const { data } = await this.$axios({
|
||||
url: '/base/core-product/listAll',
|
||||
method: 'get',
|
||||
});
|
||||
const cfg = this.searchBarFormConfig.find(
|
||||
(item) => item.__index == 'product'
|
||||
);
|
||||
this.$set(
|
||||
cfg,
|
||||
'selectOptions',
|
||||
data.map((item) => ({
|
||||
id: item.id,
|
||||
name: item.name,
|
||||
}))
|
||||
);
|
||||
},
|
||||
// async fillProductOptions() {
|
||||
// const { data } = await this.$axios({
|
||||
// url: '/base/core-product/listAll',
|
||||
// method: 'get',
|
||||
// });
|
||||
// const cfg = this.searchBarFormConfig.find(
|
||||
// (item) => item.__index == 'product'
|
||||
// );
|
||||
// this.$set(
|
||||
// cfg,
|
||||
// 'selectOptions',
|
||||
// data.map((item) => ({
|
||||
// id: item.id,
|
||||
// name: item.name,
|
||||
// }))
|
||||
// );
|
||||
// },
|
||||
|
||||
async getList() {
|
||||
const { data } = await this.$axios({
|
||||
|
||||
Reference in New Issue
Block a user