소스 검색

场所bug修改

guoqing 1 년 전
부모
커밋
dab303b2bb
2개의 변경된 파일14개의 추가작업 그리고 10개의 파일을 삭제
  1. 4 2
      src/views/placeManage/placeRegister/placeRegister.vue
  2. 10 8
      src/views/placeManage/placeRegister/placeRegisterInfo.vue

+ 4 - 2
src/views/placeManage/placeRegister/placeRegister.vue

@@ -1047,7 +1047,8 @@ export default {
           "-" +
           selectedOptions[1].text +
           "-" +
-          selectedOptions[2].text,
+          selectedOptions[2].text
+          +" 00:00:00",
       });
       inputForm.value = json;
     };
@@ -1061,7 +1062,8 @@ export default {
           "-" +
           selectedOptions[1].text +
           "-" +
-          selectedOptions[2].text,
+          selectedOptions[2].text
+          +" 00:00:00",
       });
       inputForm.value = json;
     };

+ 10 - 8
src/views/placeManage/placeRegister/placeRegisterInfo.vue

@@ -740,6 +740,7 @@ export default {
     onMounted(() => {
       var id = JSON.parse(router.currentRoute.value.query.id);
       new placeRegister().queryById(id).then((res) => {
+        console.log(res,'=====================>res');
         dataitem.value = res;
         const rN = Object.assign(dataitem.value, {
           religiousName: getreligiousT(dataitem.value.religiousType),
@@ -1044,7 +1045,7 @@ export default {
         name: "file",
         url:
           $base +
-          `/sys/file/webupload/upload?uploadPath=/religioussites/siteinfo/religiousSitesInfo`,
+          `/sys/file/webupload/upload?uploadPath=religioussites/siteinfo/religiousSitesInfo`,
         headers: {
           "Content-Type": "multipart/form-data",
           token: window.localStorage.getItem("MZ_TOKEN"),
@@ -1110,29 +1111,30 @@ export default {
     let hs_SetupTime = ref(false);
     const getSetupTime = ({ selectedOptions }) => {
       hs_SetupTime.value = false;
-      const json = Object.assign(inputForm.value, {
+      const json = Object.assign(dataitem.value, {
         approvedEstablishmentTime:
           selectedOptions[0].text +
           "-" +
           selectedOptions[1].text +
           "-" +
-          selectedOptions[2].text,
+          selectedOptions[2].text
+          +" 00:00:00",
       });
-      inputForm.value = json;
+      dataitem.value = json;
     };
-    //批准设立时间
     let hs_SignTime = ref(false);
     const getSignTime = ({ selectedOptions }) => {
       hs_SignTime.value = false;
-      const json = Object.assign(inputForm.value, {
+      const json = Object.assign(dataitem.value, {
         registrationDate:
           selectedOptions[0].text +
           "-" +
           selectedOptions[1].text +
           "-" +
-          selectedOptions[2].text,
+          selectedOptions[2].text
+          +" 00:00:00",
       });
-      inputForm.value = json;
+      dataitem.value = json;
     };
     // 互联网专区
     const internetForm = ref({