|
@@ -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)
|
|
|
//判断输入类型
|