Procházet zdrojové kódy

工作报告选择负责人和成员标题更改,选择抄送人回显异常修复

ming před 2 měsíci
rodič
revize
3a24b11683

+ 12 - 2
src/pages/business/common/projectMange/mall/index.vue

@@ -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(() => {});

+ 1 - 0
src/pages/business/common/projectMange/record/index.vue

@@ -328,6 +328,7 @@ function handleSubmit(type,item) {
 onReady(() => {});
 
 onShow(() => {
+  state.popup.show = false;
   //调用系统主题颜色
   proxy.$settingStore.systemThemeColor([1]);
 });

+ 5 - 5
src/pages/business/common/projectMange/write/components/template1.vue

@@ -353,11 +353,11 @@ onShow(() => {
   //   state[key] = storages[key];
   // });
 
-  //监听组件返回数据
-  // uni.$on("UserMall", function (value) {
-  //   state.userList = value;
-  //   realTimeSaving();
-  // });
+  // 监听组件返回数据
+  uni.$on("UserMall", function (value) {
+    state.userList = value;
+    realTimeSaving();
+  });
 });
 
 onLoad((options) => {