Browse Source

修复三方商场已知bug

dev-xx
马远东 3 months ago
parent
commit
bb9666623f
  1. 20
      src/views/basicdata/brand/ThreePartyMallManagement.vue

20
src/views/basicdata/brand/ThreePartyMallManagement.vue

@ -108,7 +108,6 @@
@click="handleSubmit" @click="handleSubmit"
> </el-button > </el-button
> >
<el-button icon="el-icon-circle-close" @click="box = false"> </el-button>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>
@ -320,6 +319,20 @@ const remoteMethod = value => {
}); });
}); });
}; };
const GeBrandListt = async () => {
let res = await getBrandList();
const {
code,
data: { records },
} = res.data;
if (code !== 200) return;
brandList.value = records.map(val => {
return {
value: val.id,
label: val.brandName,
};
});
};
// //
function updateDictionary(targetArray, dictionaryType) { function updateDictionary(targetArray, dictionaryType) {
getDictionaryBiz(dictionaryType).then(res => { getDictionaryBiz(dictionaryType).then(res => {
@ -369,12 +382,15 @@ const onLoadPage = async () => {
details.loadingObj.list = true; details.loadingObj.list = true;
await Dictionaryrequest(); await Dictionaryrequest();
onLoad(); onLoad();
GeBrandListt();
}; };
// //
onLoadPage(); onLoadPage();
// //
const edit = async row => { const edit = async row => {
details.loadingObj.list = true;
let res = await getDetail(row.id); let res = await getDetail(row.id);
details.loadingObj.list = false;
malldialog.value = true; malldialog.value = true;
form.value = res.data.data; form.value = res.data.data;
console.log(res); console.log(res);
@ -390,7 +406,7 @@ const handleSubmit = async () => {
} }
}; };
// //
const ViewDelete = () => { const ViewDelete = (row) => {
ElMessageBox.confirm('是否确认删除数据?', '提示', { ElMessageBox.confirm('是否确认删除数据?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',

Loading…
Cancel
Save