parent
bf4ab7e58b
commit
8d57126589
@ -19,6 +19,7 @@
|
|||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
<!-- 展示上级推广人的信息 -->
|
||||||
<el-descriptions v-if="bindUser" :column="1" border>
|
<el-descriptions v-if="bindUser" :column="1" border>
|
||||||
<el-descriptions-item label="头像">
|
<el-descriptions-item label="头像">
|
||||||
<el-avatar :src="bindUser.avatar" />
|
<el-avatar :src="bindUser.avatar" />
|
||||||
@ -79,7 +80,7 @@ const submitForm = async () => {
|
|||||||
if (!formRef) return
|
if (!formRef) return
|
||||||
const valid = await formRef.value.validate()
|
const valid = await formRef.value.validate()
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
|
// 未查找到合适的上级
|
||||||
if (!bindUser.value) {
|
if (!bindUser.value) {
|
||||||
message.error('请先查询并确认推广人')
|
message.error('请先查询并确认推广人')
|
||||||
return
|
return
|
||||||
@ -116,7 +117,6 @@ const handleGetUser = async () => {
|
|||||||
message.error('不能绑定自己为推广人')
|
message.error('不能绑定自己为推广人')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
formLoading.value = true
|
formLoading.value = true
|
||||||
bindUser.value = await BrokerageUserApi.getBrokerageUser(formData.value.bindUserId)
|
bindUser.value = await BrokerageUserApi.getBrokerageUser(formData.value.bindUserId)
|
||||||
if (!bindUser.value) {
|
if (!bindUser.value) {
|
||||||
|
@ -204,7 +204,7 @@ const queryParams = reactive({
|
|||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
bindUserId: null,
|
bindUserId: null,
|
||||||
brokerageEnabled: null,
|
brokerageEnabled: true,
|
||||||
createTime: []
|
createTime: []
|
||||||
})
|
})
|
||||||
const queryFormRef = ref() // 搜索的表单
|
const queryFormRef = ref() // 搜索的表单
|
||||||
@ -281,7 +281,7 @@ const handleClearBindUser = async (row: BrokerageUserApi.BrokerageUserVO) => {
|
|||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 推广资格 开通/关闭 */
|
/** 推广资格:开通/关闭 */
|
||||||
const handleBrokerageEnabledChange = async (row: BrokerageUserApi.BrokerageUserVO) => {
|
const handleBrokerageEnabledChange = async (row: BrokerageUserApi.BrokerageUserVO) => {
|
||||||
try {
|
try {
|
||||||
// 二次确认
|
// 二次确认
|
||||||
|
@ -132,7 +132,7 @@
|
|||||||
align="left"
|
align="left"
|
||||||
prop="createTime"
|
prop="createTime"
|
||||||
:formatter="dateFormatter"
|
:formatter="dateFormatter"
|
||||||
width="170px"
|
width="180px"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="备注" align="left" prop="remark" />
|
<el-table-column label="备注" align="left" prop="remark" />
|
||||||
<el-table-column label="状态" align="left" prop="status" min-width="120px">
|
<el-table-column label="状态" align="left" prop="status" min-width="120px">
|
||||||
|
Loading…
Reference in New Issue
Block a user