|
|
@@ -100,14 +100,24 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
<h3>权益设置</h3>
|
|
|
- <el-form-item :label="ruleForm.name+rights1" prop="project_reduction_rate">
|
|
|
- <el-input style="width: 30%" v-model="commonRights.limit1"></el-input>次
|
|
|
- </el-form-item>
|
|
|
- <br />
|
|
|
- <el-form-item :label="ruleForm.name+rights2" prop="job_reduction_rate">
|
|
|
- <el-input style="width: 30%" v-model="commonRights.limit2"></el-input>个
|
|
|
- </el-form-item>
|
|
|
- <br />
|
|
|
+ <el-form v-if="ruleForm.id==2">
|
|
|
+ <el-form-item :label="ruleForm.name+rights1" prop="accept_times">
|
|
|
+ <el-input style="width: 30%" v-model="ruleForm.accept_times"></el-input>次
|
|
|
+ </el-form-item>
|
|
|
+ <br />
|
|
|
+ <el-form-item :label="ruleForm.name+rights2" prop="accept_count">
|
|
|
+ <el-input style="width: 30%" v-model="ruleForm.accept_count"></el-input>个
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <el-form v-else>
|
|
|
+ <el-form-item :label="ruleForm.name+rights1" prop="chat_times">
|
|
|
+ <el-input style="width: 30%" v-model="ruleForm.chat_times"></el-input>次
|
|
|
+ </el-form-item>
|
|
|
+ <br />
|
|
|
+ <el-form-item :label="ruleForm.name+rights2" prop="hire_times">
|
|
|
+ <el-input style="width: 30%" v-model="ruleForm.hire_times"></el-input>个
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
<el-form-item :label="ruleForm.name+'整包减免费率'" prop="project_reduction_rate">
|
|
|
 <el-input style="width: 30%" v-model="ruleForm.project_reduction_rate"></el-input>%
|
|
|
</el-form-item>
|
|
|
@@ -203,12 +213,7 @@ export default {
|
|
|
let res;
|
|
|
if (this.shows){
|
|
|
const ruleForm = this.ruleForm;
|
|
|
- const rights = {
|
|
|
- 'id':ruleForm.id,
|
|
|
- 'limit1':this.commonRights.limit1,
|
|
|
- 'limit2':this.commonRights.limit2,
|
|
|
- };
|
|
|
- res = await this.$post("/api/admin/vip/set_rights", rights);
|
|
|
+
|
|
|
const can_buy_monthly = ruleForm.can_buy_monthly ? "1" : "0";
|
|
|
const can_buy_quarterly = ruleForm.can_buy_quarterly ? "1" : "0";
|
|
|
const can_buy_half_yearly = ruleForm.can_buy_half_yearly ? "1" : "0";
|
|
|
@@ -274,8 +279,6 @@ export default {
|
|
|
break;
|
|
|
}
|
|
|
const res = await this.$post("/api/admin/vip/getDetail", { id });
|
|
|
- const resRights = await this.$post("/api/admin/vip/get_rights", { id });
|
|
|
- this.commonRights = resRights.data;
|
|
|
const data = res.data;
|
|
|
// console.log({id}.id);
|
|
|
const can_buy_monthly = data.can_buy_monthly === "1";
|