添加账号
This commit is contained in:
parent
17d2fa5e33
commit
87f3d9a51a
|
@ -15,7 +15,7 @@
|
||||||
<a-col :lg="6">
|
<a-col :lg="6">
|
||||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
||||||
<a-button type="primary" v-auth="'bizEmployeesInfo:biz_employees_info:add'" @click="handleAdd" preIcon="ant-design:plus-outlined" style="margin-left: 8px"> 新增</a-button>
|
<!-- <a-button type="primary" v-auth="'bizEmployeesInfo:biz_employees_info:add'" @click="handleAdd" preIcon="ant-design:plus-outlined" style="margin-left: 8px"> 新增</a-button> -->
|
||||||
</a-col>
|
</a-col>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
@ -36,6 +36,9 @@
|
||||||
<span class="buttonMargin">
|
<span class="buttonMargin">
|
||||||
<a-button type="primary" @click="handleFwbq(item)">服务标签</a-button>
|
<a-button type="primary" @click="handleFwbq(item)">服务标签</a-button>
|
||||||
</span>
|
</span>
|
||||||
|
<span class="buttonMargin">
|
||||||
|
<a-button type="primary" @click="handleFpzh(item)">分配账号</a-button>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<icon icon="ant-design:setting-outlined" />
|
<icon icon="ant-design:setting-outlined" />
|
||||||
|
@ -69,7 +72,10 @@
|
||||||
|
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<BizEmployeesInfoModal ref="registerModal" @success="handleSuccess"></BizEmployeesInfoModal>
|
<BizEmployeesInfoModal ref="registerModal" @success="handleSuccess"></BizEmployeesInfoModal>
|
||||||
|
<!-- 服务标签 -->
|
||||||
<EmployeesServiceTagModal ref="registerServiceTagModal" @success="handleSuccess"></EmployeesServiceTagModal>
|
<EmployeesServiceTagModal ref="registerServiceTagModal" @success="handleSuccess"></EmployeesServiceTagModal>
|
||||||
|
<!--用户抽屉-->
|
||||||
|
<UserDrawer @register="registerDrawer" @success="handleSuccess" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -83,7 +89,13 @@
|
||||||
import { defHttp } from '/@/utils/http/axios';
|
import { defHttp } from '/@/utils/http/axios';
|
||||||
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
|
||||||
import { Pagination } from 'ant-design-vue';
|
import { Pagination } from 'ant-design-vue';
|
||||||
|
import { useDrawer } from '/@/components/Drawer';
|
||||||
|
import UserDrawer from '/@/views/system/user/UserDrawer.vue';
|
||||||
|
|
||||||
|
|
||||||
const APagination = Pagination;
|
const APagination = Pagination;
|
||||||
|
//注册drawer
|
||||||
|
const [registerDrawer, { openDrawer }] = useDrawer();
|
||||||
|
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
const queryParam = reactive<any>({});
|
const queryParam = reactive<any>({});
|
||||||
|
@ -115,6 +127,30 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 分配账号
|
||||||
|
function handleFpzh(item){
|
||||||
|
defHttp.get({url:'/sys/user/queryByEmployessId',params:{employessId:item.id}}).then(res=>{
|
||||||
|
console.log("🚀 ~ handleFpzh ~ res:", res)
|
||||||
|
if(res==null){
|
||||||
|
var record = {employessId:item.id,phone:item.tel,realname:item.name,sex:item.sex?parseInt(item.sex):'' }
|
||||||
|
console.log("🚀 ~ defHttp.get ~ record:", record)
|
||||||
|
openDrawer(true, {
|
||||||
|
record,
|
||||||
|
isUpdate: false,
|
||||||
|
showFooter: true,
|
||||||
|
tenantSaas: false,
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
openDrawer(true, {
|
||||||
|
record:res,
|
||||||
|
isUpdate: true,
|
||||||
|
showFooter: true,
|
||||||
|
tenantSaas: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
//分配服务标签
|
//分配服务标签
|
||||||
function handleFwbq(info){
|
function handleFwbq(info){
|
||||||
registerServiceTagModal.value.disableSubmit = false;
|
registerServiceTagModal.value.disableSubmit = false;
|
||||||
|
|
|
@ -129,6 +129,12 @@ export const formSchema: FormSchema[] = [
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
show: false,
|
show: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '员工id',
|
||||||
|
field: 'employessId',
|
||||||
|
component: 'Input',
|
||||||
|
show: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '用户账号',
|
label: '用户账号',
|
||||||
field: 'username',
|
field: 'username',
|
||||||
|
|
Loading…
Reference in New Issue