Browse Source

优化轮廓坐标展示,时期展示

shaun-sheep 5 years ago
parent
commit
7e7d2ea6c6

+ 2 - 2
src/components/ledger/details/detail/exhibitionBaseInformation.vue

@@ -58,10 +58,10 @@
       <el-popover
         v-else-if="Array.isArray(value.Value) && value.InputMode=='N2'"
         placement="top"
-        width="300"
+        width="600"
         trigger="hover">
         <p style="border-bottom: 1px solid #eee;padding:2px 0 4px 0;'">{{value.InfoPointName}}</p>
-        <p>{{value.Value}}</p>
+        <p style="height: 300px;overflow: auto">{{value.Value}}</p>
         <div style="text-align: center; margin: 0">
           <el-button type="text" size="mini" @click="handleCopy(value.Value)">复制</el-button>
         </div>

+ 9 - 1
src/views/ledger/cenotelist/cenoteDetail/index.vue

@@ -121,7 +121,6 @@
       this.$router.push({name: "cenotelist"});
     },
     getData() {
-
       let params1 = {
         data: {
           Orders: "sort asc",
@@ -175,6 +174,9 @@
       this.handleRadios(val)
       this.currentRadio = val
     },
+    formatDate(str) {
+      return str ? str.substr(0,4)+"-"+str.substr(4,2)+"-"+str.substr(6,2)+" "+str.substr(8,2) + ":" +str.substr(10,2) + ":"+str.substr(12,2) :'--'
+    },
     displayData(arr) {//对数据进行处理传给组件展示
       const result = {}
       arr.forEach(i => {
@@ -182,6 +184,12 @@
         if (this.instance.hasOwnProperty(i.Path) && this.currentRadio != 2) {
           i.value = this.instance[i.Path]
         }
+        if (i.InputMode == 'C5') {
+          if (this.instance.hasOwnProperty(i.Path)) {
+            let time = this.instance[i.Path]
+            i.value = this.formatDate(time)
+          }
+        }
         if (i.DataSource && i.DataSource.length) {
           let source = JSON.parse(i.DataSource)
           //判断输入类型

+ 9 - 0
src/views/ledger/facility/details/index.vue

@@ -339,12 +339,21 @@
         this.handleRadios(val)
         this.currentRadio = val
       },
+      formatDate(str) {
+        return str ? str.substr(0,4)+"-"+str.substr(4,2)+"-"+str.substr(6,2)+" "+str.substr(8,2) + ":" +str.substr(10,2) + ":"+str.substr(12,2) :'--'
+      },
       displayData(arr) {//对数据进行处理传给组件展示
         const result = {}
         arr.forEach(i => {
           if (this.instance.hasOwnProperty(i.Path) && this.currentRadio != 2) {
             i.value = this.instance[i.Path]
           }
+          if (i.InputMode == 'C5') {
+            if (this.instance.hasOwnProperty(i.Path)) {
+              let time = this.instance[i.Path]
+              i.value = this.formatDate(time)
+            }
+          }
           if (i.DataSource && i.DataSource.length) {
             let source = JSON.parse(i.DataSource)
             //判断输入类型

+ 9 - 0
src/views/ledger/property/details/index.vue

@@ -280,12 +280,21 @@
         this.handleRadios(val)
         this.currentRadio = val
       },
+      formatDate(str) {
+        return str ? str.substr(0,4)+"-"+str.substr(4,2)+"-"+str.substr(6,2)+" "+str.substr(8,2) + ":" +str.substr(10,2) + ":"+str.substr(12,2) :'--'
+      },
       displayData(arr) {//对数据进行处理传给组件展示
         const result = {}
         arr.forEach(i => {
           if (this.instance.hasOwnProperty(i.Path) && this.currentRadio != 2) {
             i.value = this.instance[i.Path]
           }
+          if (i.InputMode == 'C5') {
+            if (this.instance.hasOwnProperty(i.Path)) {
+             let time = this.instance[i.Path]
+              i.value = this.formatDate(time)
+            }
+          }
           if (i.DataSource && i.DataSource.length) {
             let source = JSON.parse(i.DataSource)
             //判断输入类型

+ 9 - 0
src/views/ledger/spacelist/spaceDetail/index.vue

@@ -357,12 +357,21 @@
       this.handleRadios(val)
       this.currentRadio = val
     },
+    formatDate(str) {
+      return str ? str.substr(0,4)+"-"+str.substr(4,2)+"-"+str.substr(6,2)+" "+str.substr(8,2) + ":" +str.substr(10,2) + ":"+str.substr(12,2) :'--'
+    },
     displayData(arr) {//对数据进行处理传给组件展示
       const result = {}
       arr.forEach(i => {
         if (this.instance.hasOwnProperty(i.Path) && this.currentRadio != 2) {
           i.value = this.instance[i.Path]
         }
+        if (i.InputMode == 'C5') {
+          if (this.instance.hasOwnProperty(i.Path)) {
+            let time = this.instance[i.Path]
+            i.value = this.formatDate(time)
+          }
+        }
         if (i.DataSource && i.DataSource.length) {
           let source = JSON.parse(i.DataSource)
           //判断输入类型

+ 9 - 1
src/views/ledger/system/systemDetail/index.vue

@@ -335,13 +335,21 @@
       this.handleRadios(val)
       this.currentRadio = val
     },
+    formatDate(str) {
+      return str ? str.substr(0,4)+"-"+str.substr(4,2)+"-"+str.substr(6,2)+" "+str.substr(8,2) + ":" +str.substr(10,2) + ":"+str.substr(12,2) :'--'
+    },
     displayData(arr) {//对数据进行处理传给组件展示
       const result = {}
       arr.forEach(i => {
         if (this.instance.hasOwnProperty(i.Path) && this.currentRadio != 2) {
           i.value = this.instance[i.Path]
         }
-
+        if (i.InputMode == 'C5') {
+          if (this.instance.hasOwnProperty(i.Path)) {
+            let time = this.instance[i.Path]
+            i.value = this.formatDate(time)
+          }
+        }
         if (i.DataSource && i.DataSource.length) {
           let source = JSON.parse(i.DataSource)
           //判断输入类型