Browse Source

人员档案新增详情页面代码修改

guoqing 1 year ago
parent
commit
1c79dfdd02

+ 29 - 27
src/views/placeManage/placePerson/placePersonAdd.vue

@@ -423,29 +423,31 @@
             input-align="right"
           />
         </van-cell-group>
+        
         <van-cell-group v-else-if="item.dataType && item.dataDictionary != ''">
+          vhsjhf{{item.value}}
           <van-field
-            v-model="item.value"
+            v-model="teachPosition"
             center
             :label="item.chineseName"
             placeholder="请选择"
             input-align="right"
             right-icon="arrow-down"
-            @click="hs_teach = true"
+            @click="hs_select = true"
           />
-          <van-popup v-model:show="hs_teach" round position="bottom" >
+          <van-popup v-model:show="hs_select" round position="bottom" >
             <van-picker
               :columns="$dictUtils.getDictList(item.dataDictionary)"
               :columns-field-names="{
                 text: 'label',
                 value: 'value',
               }"
-              @cancel="hs_teach = false"
-              @confirm="getteach"
+              @cancel="hs_select = false"
+              @confirm="getselect"
             />
           </van-popup>
         </van-cell-group>
-        <van-cell-group v-if="item.dataType === '2'">
+        <van-cell-group v-else-if="item.dataType === '2'">
           <van-field
             v-model="item.value"
             center
@@ -453,7 +455,7 @@
             input-align="right"
           />
         </van-cell-group>
-        <van-cell-group v-if="item.dataType === '3'">
+        <van-cell-group v-else-if="item.dataType === '3'">
           <van-field
             :v-model="item.value"
             center
@@ -461,7 +463,7 @@
             input-align="right"
           />
         </van-cell-group>
-        <van-cell-group v-if="item.dataType === '4'">
+        <van-cell-group v-else-if="item.dataType === '4'">
           <van-field
             name="uploader"
             label-align="top"
@@ -480,7 +482,7 @@
             </template>
           </van-field>
         </van-cell-group>
-        <van-cell-group v-if="item.dataType === '5'">
+        <van-cell-group v-else-if="item.dataType === '5'">
           <van-field
             v-model="item.value"
             center
@@ -502,7 +504,7 @@
             />
           </van-popup>
         </van-cell-group>
-        <van-cell-group v-if="item.dataType === '6'">
+        <van-cell-group v-else-if="item.dataType === '6'">
           <van-field
             v-model="item.value"
             center
@@ -511,16 +513,15 @@
             placeholder="请选择日期时间"
             input-align="right"
             right-icon="arrow-down"
-            @click="hs_issueDate = true"
+            @click="hs_Date = true"
           />
-          <van-popup v-model:show="hs_issueDate" round position="bottom">
+          <van-popup v-model:show="hs_Date" round position="bottom">
             <van-date-picker
-              v-model="currentDate"
               title="选择日期"
               :min-date="minDate"
               :max-date="maxDate"
-              @cancel="hs_issueDate = false"
-              @confirm="getissueDate"
+              @cancel="hs_Date = false"
+              @confirm="getDate"
             />
           </van-popup>
         </van-cell-group>
@@ -999,6 +1000,7 @@ export default {
           userManagenmetDetailsDTOList.push(userManagenmetDetail);
         });
         inputForm.value.userManagenmetDetailsDTOList = userManagenmetDetailsDTOList
+        console.log(inputForm.value.userManagenmetDetailsDTOList,'================================>inputForm.value.userManagenmetDetailsDTOList');
       });
     };
     onBeforeUpdate(() => {
@@ -1050,18 +1052,18 @@ export default {
       inputForm.value = json;
       activitytext.value = selectedOptions[0].text;
     };
-    // 教职身份
+    // 扩展信息选择
     const teachPosition = ref("");
-    let hs_teach = ref(false);
-    const getteach = ({selectedOptions}) => {
-      hs_teach.value = false;
+    let hs_select = ref(false);
+    const getselect = ({selectedOptions,selectedIndexes}) => {
+      hs_select.value = false;
       teachPosition.value = selectedOptions[0].value;
     };
-    // 证书颁发时间
+    // 扩展信息的时间
     const issueDate = ref("");
-    let hs_issueDate = ref(false);
-    const getissueDate = ({ selectedOptions }) => {
-      hs_issueDate.value = false;
+    let hs_Date = ref(false);
+    const getDate = ({ selectedOptions }) => {
+      hs_Date.value = false;
       issueDate.value =
         selectedOptions[0].text +
         "-" +
@@ -1173,12 +1175,12 @@ export default {
       activitytext,
       //教职身份
       teachPosition,
-      hs_teach,
-      getteach,
+      hs_select,
+      getselect,
       //证书颁发时间
-      hs_issueDate,
+      hs_Date,
       issueDate,
-      getissueDate,
+      getDate,
       //图片上传
       fileList,
       afterRead1,

+ 36 - 11
src/views/placeManage/placePerson/placePersoninfo.vue

@@ -451,17 +451,17 @@
             placeholder="请选择"
             input-align="right"
             right-icon="arrow-down"
-            @click="hs_teach = true"
+            @click="hs_select = true"
           />
-          <van-popup v-model:show="hs_teach" round position="bottom" >
+          <van-popup v-model:show="hs_select" round position="bottom" >
             <van-picker
               :columns="$dictUtils.getDictList(item.dataDictionary)"
               :columns-field-names="{
                 text: 'label',
                 value: 'value',
               }"
-              @cancel="hs_teach = false"
-              @confirm="getteach"
+              @cancel="hs_select = false"
+              @confirm="getselect"
             />
           </van-popup>
         </van-cell-group>
@@ -522,7 +522,7 @@
             />
           </van-popup>
         </van-cell-group>
-        <van-cell-group v-if="item.dataType === '6'">
+        <van-cell-group v-else-if="item.dataType === '6'">
           <van-field
             v-model="item.value"
             center
@@ -531,16 +531,15 @@
             placeholder="请选择日期时间"
             input-align="right"
             right-icon="arrow-down"
-            @click="hs_issueDate = true"
+            @click="hs_Date = true"
           />
-          <van-popup v-model:show="hs_issueDate" round position="bottom">
+          <van-popup v-model:show="hs_Date" round position="bottom">
             <van-date-picker
-              v-model="currentDate"
               title="选择日期"
               :min-date="minDate"
               :max-date="maxDate"
-              @cancel="hs_issueDate = false"
-              @confirm="getissueDate"
+              @cancel="hs_Date = false"
+              @confirm="getDate"
             />
           </van-popup>
         </van-cell-group>
@@ -972,7 +971,25 @@ export default {
       });
       return Array;
     };
-
+    // 扩展信息选择
+    const teachPosition = ref("");
+    let hs_select = ref(false);
+    const getselect = ({selectedOptions,selectedIndexes}) => {
+      hs_select.value = false;
+      teachPosition.value = selectedOptions[0].value;
+    };
+    // 扩展信息的时间
+    const issueDate = ref("");
+    let hs_Date = ref(false);
+    const getDate = ({ selectedOptions }) => {
+      hs_Date.value = false;
+      issueDate.value =
+        selectedOptions[0].text +
+        "-" +
+        selectedOptions[1].text +
+        "-" +
+        selectedOptions[2].text;
+    };
     // 是否参加非法活动
     const activitytext = ref("");
     const activity = [
@@ -1081,6 +1098,14 @@ export default {
       getPlace1,
       options,
       getLocation,
+      //扩展信息选择器
+      teachPosition,
+      hs_select,
+      getselect,
+      //扩展信息时间
+      hs_Date,
+      issueDate,
+      getDate,
     };
   },
 };