|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<u-sticky class="shadow-default" bgColor="#fff" style="top: 0">
|
|
|
- <u-navbar :titleStyle="{ color: '#000' }" :autoBack="true" title="选择人员" :placeholder="true" :safeAreaInsetTop="true" bgColor="#fff">
|
|
|
+ <u-navbar :titleStyle="{ color: '#000' }" :autoBack="true" :title="pageTitle" :placeholder="true" :safeAreaInsetTop="true" bgColor="#fff">
|
|
|
<template #left>
|
|
|
<view class="u-navbar__content__left__item">
|
|
|
<u-icon name="arrow-left" size="20" color="#000"></u-icon>
|
|
@@ -64,8 +64,9 @@ const state = reactive({
|
|
|
userList: [],
|
|
|
activeUserList: [],
|
|
|
activeUserNumber: undefined,
|
|
|
+ pageTitle: "",
|
|
|
});
|
|
|
-const { defaultHeadList, userList, activeUserList, activeUserNumber } = toRefs(state);
|
|
|
+const { defaultHeadList, userList, activeUserList, activeUserNumber,pageTitle } = toRefs(state);
|
|
|
|
|
|
function init() {
|
|
|
deptUserTreeSelect({ pageNum: "1", pageSize: "10000" }).then((res) => {
|
|
@@ -90,6 +91,15 @@ onLoad((options) => {
|
|
|
state.activeUserNumber = parseInt(options.number);
|
|
|
}
|
|
|
init();
|
|
|
+
|
|
|
+ if (options.number==1) {
|
|
|
+ state.pageTitle = "选择项目负责人";
|
|
|
+ } else if (options.number==50) {
|
|
|
+ state.pageTitle = "选择项目成员";
|
|
|
+ }else{
|
|
|
+ state.pageTitle = "选择抄送人"
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
|
|
|
onUnload(() => {});
|