|
@@ -82,6 +82,15 @@
|
|
|
@click="handerCompanyUserAreaList"
|
|
|
>批量设置销售所属区域(原有的暂用)</el-button>
|
|
|
</el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ size="mini"
|
|
|
+ :disabled="multiple"
|
|
|
+ @click="handleSetRegister"
|
|
|
+ >设置单独注册会员</el-button>
|
|
|
+ </el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
@@ -369,6 +378,19 @@
|
|
|
<el-button @click="cancelArea">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <!-- 设置单独注册会员弹窗 -->
|
|
|
+ <el-dialog title="设置单独注册会员" :visible.sync="registerOpen" width="400px" append-to-body>
|
|
|
+ <el-form ref="registerForm" :model="registerForm" label-width="180px">
|
|
|
+ <el-form-item label="是否需要开启单独注册">
|
|
|
+ <el-switch v-model="registerForm.status" active-value="true" inactive-value="false"></el-switch>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitRegisterForm">确 定</el-button>
|
|
|
+ <el-button @click="registerOpen = false">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -384,7 +406,8 @@ import {
|
|
|
changeUserStatus,
|
|
|
importTemplate,
|
|
|
generateSubDomain,
|
|
|
- getCitysAreaList, updateCompanyUserAreaList
|
|
|
+ getCitysAreaList, updateCompanyUserAreaList,
|
|
|
+ setIsRegisterMember
|
|
|
} from '@/api/company/companyUser'
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import { treeselect } from "@/api/company/companyDept";
|
|
@@ -541,6 +564,10 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
},
|
|
|
+ registerOpen: false,
|
|
|
+ registerForm: {
|
|
|
+ status: false
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -970,6 +997,21 @@ export default {
|
|
|
this.form.domain = response.data;
|
|
|
});
|
|
|
},
|
|
|
+ /** 设置单独注册会员按钮操作 */
|
|
|
+ handleSetRegister() {
|
|
|
+ this.registerOpen = true;
|
|
|
+ this.registerForm.status = false;
|
|
|
+ },
|
|
|
+ /** 提交设置单独注册会员 */
|
|
|
+ submitRegisterForm() {
|
|
|
+ setIsRegisterMember({status: this.registerForm.status}, this.ids).then(response => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.msgSuccess("设置成功");
|
|
|
+ this.registerOpen = false;
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|