Commit 00f025c7 by zhangxw

店面配置操作按钮修改

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