经纪人等级

This commit is contained in:
曹磊 2024-08-08 16:05:57 +08:00
parent 9b44ab92aa
commit 8da31d6c7c
2 changed files with 48 additions and 11 deletions

View File

@ -823,7 +823,8 @@ export default {
params: this.$http.adornParams({
id: this.id,
opinion: this.opinion,
status: this.status,
status: 1,
userId: this.userId,
}),
}).then(({data}) => {
if (data.code == 0) {
@ -858,6 +859,7 @@ export default {
id: id,
opinion: '系统取消授权',
status: 0,
userId: this.userId,
}),
}).then(({data}) => {
if (data.code == 0) {

View File

@ -75,12 +75,22 @@
</el-input>
</div>
<div style="margin-bottom: 10px">
<span style="width: 200px; display: inline-block; text-align: right">邀请技师人数</span>
<span style="width: 200px; display: inline-block; text-align: right">最小邀请技师人数</span>
<el-input
style="width: 50%"
v-model="peopleNumber"
v-model="minNumber"
type="text"
placeholder="请输入邀请技师人数"
placeholder="请输入最小邀请技师人数"
:disabled="true"
></el-input>
</div>
<div style="margin-bottom: 10px">
<span style="width: 200px; display: inline-block; text-align: right">最大邀请技师人数</span>
<el-input
style="width: 50%"
v-model="maxNumber"
type="text"
placeholder="请输入最大邀请技师人数"
:disabled="true"
></el-input>
</div>
@ -111,11 +121,19 @@
</el-input>
</div>
<div style="margin-bottom: 10px">
<span style="width: 200px; display: inline-block; text-align: right">邀请技师人数</span>
<span style="width: 200px; display: inline-block; text-align: right">最小邀请技师人数</span>
<el-input
style="width: 50%"
v-model="peopleNumber"
placeholder="请输入邀请技师人数"
v-model="minNumber"
placeholder="请输入最小邀请技师人数"
></el-input>
</div>
<div style="margin-bottom: 10px">
<span style="width: 200px; display: inline-block; text-align: right">最大邀请技师人数</span>
<el-input
style="width: 50%"
v-model="maxNumber"
placeholder="请输入最大邀请技师人数"
></el-input>
</div>
<div style="margin-bottom: 10px">
@ -141,6 +159,8 @@ export default {
tableData: [],
id: "",
level: "",
minNumber: "",
maxNumber: "",
peopleNumber: "",
rate: "",
dialogFormVisible: false,
@ -159,7 +179,6 @@ export default {
}).then(({data}) => {
if (data.code == 0) {
this.tableData = data.data;
console.log(this.tableData);
} else {
this.$notify({
title: "提示",
@ -177,6 +196,8 @@ export default {
this.id = row.id;
this.level = row.level;
this.peopleNumber = row.peopleNumber;
this.minNumber = row.minNumber;
this.maxNumber = row.maxNumber;
this.rate = row.rate;
this.dialogFormViewVisible = true;
},
@ -188,12 +209,16 @@ export default {
this.id = row.id;
this.level = row.level;
this.peopleNumber = row.peopleNumber;
this.minNumber = row.minNumber;
this.maxNumber = row.maxNumber;
this.rate = row.rate;
} else {
this.titles = "添加";
this.id = "";
this.level = "";
this.peopleNumber = "";
this.minNumber = "";
this.maxNumber = "";
this.rate = "";
}
this.dialogFormVisible = true;
@ -210,11 +235,20 @@ export default {
});
return;
}
if (this.peopleNumber == "") {
if (this.minNumber == "") {
this.$notify({
title: "提示",
duration: 1800,
message: "请输入邀请技师人数",
message: "请输入最小邀请技师人数",
type: "warning",
});
return;
}
if (this.maxNumber == "") {
this.$notify({
title: "提示",
duration: 1800,
message: "请输入最大邀请技师人数",
type: "warning",
});
return;
@ -239,7 +273,8 @@ export default {
params: this.$http.adornParams({
id: this.id,
level: this.level,
peopleNumber: this.peopleNumber,
minNumber: this.minNumber,
maxNumber: this.maxNumber,
rate: this.rate,
}),
}).then(({data}) => {