Commit 00f025c7 by zhangxw

店面配置操作按钮修改

1 parent 962a1a83
......@@ -273,7 +273,7 @@ export default {
});
} catch (e) {
console.error("编辑商户弹窗初始化失败:", e);
this.$message.error("数据加载失败,请关闭弹窗后重试");
// this.$message.error("数据加载失败,请关闭弹窗后重试");
} finally {
// 所有接口加载完成后关闭loading
this.loading = false;
......@@ -358,7 +358,6 @@ export default {
// 回显表单数据
const editDataMapped = mapMerchantDetailToEditData(res);
console.log(editDataMapped, "22222", res);
if (editDataMapped) {
Object.keys(editDataMapped).forEach((key) => {
this.$set(this.editData, key, editDataMapped[key]);
......@@ -423,7 +422,8 @@ export default {
this.syncMerchantBrandSlotPlaceholder();
} catch (e) {
console.error("加载商户详情失败:", e);
throw e; // 抛出错误,让外层统一处理
// 接口失败时,设置默认商户类型为2(4S店)
this.$set(this.editData, "accounttypeId", 2);
} finally {
// 初始化完成,取消标记,后续用户手动修改账户等级时正常触发联动
this.isLoadingEditDetail = false;
......
......@@ -133,19 +133,24 @@
</el-switch>
</div>
</template>
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope"
:show-btn-ids="[
'9061903',
'9061904',
'9061906',
'9061908',
'9061910',
'9061912',
'9061914',
'9061927',
]" />
<div slot="auth-button" slot-scope="scope">
<auth-button v-if="scope.scope.shopStatus != 4"
slot="auth-button"
:data="scope.scope"
:show-btn-ids="[
'9061903',
'9061904',
'9061906',
'9061908',
'9061910',
'9061912',
'9061914',
]" />
<div v-else>
-
</div>
</div>
</d2-table>
</div>
<d2-file-import-dialog template-name="文件下载"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!