feat: 品牌开启分销

This commit is contained in:
lzhizhao 2025-05-06 00:31:50 +08:00
parent 2ed685384d
commit f5f010c6f1
1 changed files with 6 additions and 5 deletions

View File

@ -16,7 +16,7 @@
<el-switch
:active-value="1"
:inactive-value="0"
v-model="form.status"
v-model="form.openDis"
active-text="开启"
inactive-text="禁用"
></el-switch>
@ -41,7 +41,7 @@
prop="sharingRatio"
>
<el-select
:disabled="form.status != 1"
:disabled="form.openDis != 1"
v-model="form.sharingRatio"
filterable
placeholder="请选择"
@ -72,7 +72,7 @@
:label-width="formLabelWidth"
>
<el-input
:disabled="form.status != 1"
:disabled="form.openDis != 1"
style="width: 80%"
type="textarea"
:rows="5"
@ -114,6 +114,7 @@ export default {
init(row) {
this.form = JSON.parse(JSON.stringify(row));
console.log(this.form);
this.form.openDis = this.form.openDis ? 1 : 0
this.proportion = [];
for (let i = row.minSharingRate; i <= row.maxSharingRate; i++) {
this.proportion.push(i);
@ -123,7 +124,7 @@ export default {
this.dialogFormVisible = true;
},
determine() {
if (this.form.status == 0) {
if (this.form.openDis == 0) {
this.$api.mer_admin.editBrandInfo(this.form).then((res) => {
this.dialogFormVisible = false;
this.$emit("getList");
@ -155,4 +156,4 @@ export default {
height: 16px;
background: rgba(28, 146, 152, 1);
}
</style>
</style>