| | |
| | | data: params, |
| | | }); |
| | | } |
| | | export function bindClientsForNutrition(params: object) { |
| | | return request({ |
| | | url: '/user/info/bindClientsForNutrition', |
| | | method: 'post', |
| | | data: params, |
| | | }); |
| | | } |
| | | |
| | | export function deleteId(params: string) { |
| | | return request({ |
| | | url: '/user/info/delete', |
| | |
| | | |
| | | <script lang="ts"> |
| | | import { reactive, toRefs, onMounted,getCurrentInstance } from 'vue'; |
| | | import {update,getClientList} from '/@/api/register' |
| | | import {bindClientsForNutrition,getClientList} from '/@/api/register' |
| | | export default { |
| | | name: 'systemEditUser', |
| | | setup(props,context) { |
| | |
| | | proxy.$refs['edituserForm'].validate(async (valid) => { |
| | | if(valid){ |
| | | state.loading = true; |
| | | update(state.ruleForm).then(()=>{ |
| | | bindClientsForNutrition(state.ruleForm).then(()=>{ |
| | | closeDialog(); |
| | | context.emit("update:Search");//调用父级方法参数 |
| | | }).finally(() => { |