Commit 5a63fa4e by 李伟康

```

fix(storeSignboard): 修复表单提交事件和样式调整

- 为StopBusiness组件添加表单提交事件监听器,防止页面刷新
- 调整HistoryStaffList组件中禁用按钮的点击事件绑定位置
- 优化StaffOverview组件的CSS样式,包括行高和内边距设置
- 修复ChangeMerchantDialog组件中的代码格式问题和条件判断语法
```
1 parent 4fe7f8da
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
size="small" size="small"
:rules="formRules" :rules="formRules"
:model="formData" :model="formData"
@submit.native.prevent="submit"
> >
<el-form-item <el-form-item
label="停止展业日期:" label="停止展业日期:"
......
...@@ -31,12 +31,12 @@ ...@@ -31,12 +31,12 @@
<div class="staff-info"> <div class="staff-info">
<div class="name text-hide">{{ i.staffName }}</div> <div class="name text-hide">{{ i.staffName }}</div>
<template v-if="i.deletedFlag == 'N'"> <template v-if="i.deletedFlag == 'N'">
<div class="deleted flex"> <div
class="deleted flex"
@click.stop="disabledStaff(i)"
>
禁用 禁用
<div <div class="disabled-btn flex">
class="disabled-btn flex"
@click.stop="disabledStaff(i)"
>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -528,6 +528,7 @@ export default { ...@@ -528,6 +528,7 @@ export default {
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
margin-bottom: 6px; margin-bottom: 6px;
line-height: 17px;
.disabled-btn { .disabled-btn {
width: 14px; width: 14px;
height: 14px; height: 14px;
...@@ -547,6 +548,7 @@ export default { ...@@ -547,6 +548,7 @@ export default {
&-status { &-status {
color: #35c376; color: #35c376;
font-size: 12px; font-size: 12px;
line-height: 15px;
.icon { .icon {
width: 14px; width: 14px;
height: 14px; height: 14px;
...@@ -589,6 +591,7 @@ export default { ...@@ -589,6 +591,7 @@ export default {
} }
.staff-info { .staff-info {
height: 44px; height: 44px;
padding-left: 4px;
&-item { &-item {
width: calc(100% / 3); width: calc(100% / 3);
font-size: 13px; font-size: 13px;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
:dialog-config="dialogConfig.config" :dialog-config="dialogConfig.config"
class="detail-content-warn" class="detail-content-warn"
@handleClick="submit" @handleClick="submit"
:btnLoding="btnLoding" :btnLoding="btnLoding"
> >
<el-form <el-form
v-loading="loading" v-loading="loading"
...@@ -79,9 +79,9 @@ export default { ...@@ -79,9 +79,9 @@ export default {
} }
}, },
merchantList: [], merchantList: [],
currentMerchantId:'', currentMerchantId: '',
loading: false, loading: false,
btnLoding:false btnLoding: false
} }
}, },
methods: { methods: {
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
}, },
async submit () { async submit () {
this.btnLoding = true this.btnLoding = true
if(this.currentMerchantId != this.merchantId) this.$emit('changeMerchant', { if (this.currentMerchantId != this.merchantId) this.$emit('changeMerchant', {
merchantId: this.currentMerchantId, merchantId: this.currentMerchantId,
merchantName: this.merchantList.find(item => item.merchantId == this.currentMerchantId).merchantName merchantName: this.merchantList.find(item => item.merchantId == this.currentMerchantId).merchantName
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!