qb 6 months ago
parent
commit
8f43ec81ca
  1. 14
      src/views/basicdata/brand/basicdataCategory.vue
  2. 33
      src/views/distribution/signfor/distributionSignfor.vue

14
src/views/basicdata/brand/basicdataCategory.vue

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<el-row> <el-row>
<el-col :span="5"> <!-- <el-col :span="5">
<div class="box" v-if="qw"> <div class="box" v-if="qw">
<el-scrollbar> <el-scrollbar>
<basic-container> <basic-container>
@ -9,8 +9,8 @@
</basic-container> </basic-container>
</el-scrollbar> </el-scrollbar>
</div> </div>
</el-col> </el-col> -->
<el-col :span="19"> <el-col >
<basic-container> <basic-container>
<avue-crud <avue-crud
:option="option" :option="option"
@ -299,6 +299,7 @@ export default {
if (['edit', 'view'].includes(type)) { if (['edit', 'view'].includes(type)) {
getDetail(this.form.id).then(res => { getDetail(this.form.id).then(res => {
this.form = res.data.data; this.form = res.data.data;
this.form.type=String(this.form.type)
}); });
} }
done(); done();
@ -330,17 +331,14 @@ export default {
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
onLoad(page, params = {}) { onLoad(page, params = {}) {
console.log(this.query,';this.query');
this.loading = false; this.loading = false;
const { name, type } = this.query; const { name, type } = this.query;
let values = { let values = {
name_like: name, name_like: name,
type: type, type: type,
}; };
if (!!this.treeId) {
values.pid = this.treeId;
} else {
values.type = 1;
}
console.log('查询条件', values); console.log('查询条件', values);
getList(page.currentPage, page.pageSize, values).then(res => { getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data; const data = res.data.data;

33
src/views/distribution/signfor/distributionSignfor.vue

@ -801,7 +801,7 @@ export default {
// // console.log("<><><>>",ids); // // console.log("<><><>>",ids);
// getSignforExportOwn(row).then(res => { // getSignforExportOwn(row).then(res => {
// // console.log(res.data); // // console.log(res.data);
// downloadXls(res.data, '.xlsx'); // downloadXls(res.data, '.xlsx');`
// }); // });
}, },
@ -810,23 +810,24 @@ export default {
}, },
// //
getMasterDriverData() { async getMasterDriverData() {
return new Promise((rv, rev) => { try {
getDriverList(1, 10, '').then(res => { const res = await getDriverList(1, 10, '');
const data = res.data.data; const { code, data } = res.data;
let po = []; if (code !== 200) {
data.records.forEach(item => { return
let a = { }
console.log(res, '司机信息');
this.driverData = data.map(item => ({
dictKey: item.id, dictKey: item.id,
dictValue: item.name, dictValue: item.name,
}; }));
po.push(a);
}); console.log('===============>', data);
this.driverData = po; return Promise.resolve(data.records);
console.log('===============>', res.data.data); } catch (error) {
rv(res.data.data.records); console.error('Error:', error);
}); }
});
}, },
selectionsc(value) { selectionsc(value) {
console.log(value); console.log(value);

Loading…
Cancel
Save