Commit bad97ddd by lsk

调整

parent 557cc6c6
......@@ -306,6 +306,7 @@ export default {
},
//补充自定义列处理函数
//去掉日期的时分秒毫秒
date(item,scope){
let value = scope.row[item.prop]
if(!value){
......@@ -316,6 +317,7 @@ export default {
return value.substring(0,idx)
return value
},
//code映射
code(item,scope){
let value = scope.row[item.prop]
let code = item.code
......@@ -328,22 +330,25 @@ export default {
}
return em.label
},
timeFormat(item,scope){
//去掉时间的毫秒
time(item,scope){
let value = scope.row[item.prop];
if(!value){
return ""
}
let idx = value.indexOf(".");
return value.substring(0,idx);
if(idx>0)
return value.substring(0,idx);
return value
},
//日期格式化
dateFormat(item,scope){
let value = scope.row[item.prop];
if(!value){
return ""
}
let idx = value.indexOf(" ");
return value.substring(0,idx);
}
return value.substring(0,4)+"-"+value.substring(4,6)+"-"+value.substring(6)
},
}
};
</script>
......
......@@ -461,7 +461,7 @@ export default {
stmData: {
columns: [
// '1 1 "提示日期" 160',
{index:1,position:1,width:90,pattern:'dateFormat',label:'提示日期'},
{index:1,position:1,width:90,pattern:'date',label:'提示日期'},
'2 2 "提示原因" 100',
'3 3 "业务编号" 150',
'4 4 "提示信息" 300',
......
......@@ -228,6 +228,12 @@ export default {
},
immediate: true,
},
// "didgrp.rec.lcrtyp": {
// handler(val, oldVal) {
// this.changeFormItemRequired("didgrp.cmb.pts.bankno", val == "IT");
// },
// immediate: true,
// },
},
};
</script>
......
......@@ -331,11 +331,13 @@ export default {
trnData: {
columns: [
'1 1 "编号" 200',
'2 2 "交易名称" 100',
'3 3 "日期" 200',
'4 4 "状态" 50',
'2 2 "交易名称" 120',
// '3 3 "日期" 200',
{index:3,position:3,width:110,pattern:'date',label:'日期'},
// '4 4 "状态" 50',
{index:4,position:4,width:100,pattern:'code',label:'状态',code:this.codes.relstaEN},
'5 5 "币种" 80',
'6 6 "金额" 80',
'6 6 "金额" 110',
],
data: [],
},
......
......@@ -602,11 +602,13 @@ export default {
trnData: {
columns: [
'1 1 "编号" 200',
'2 2 "交易名称" 100',
'3 3 "日期" 200',
'4 4 "状态" 50',
'2 2 "交易名称" 120',
// '3 3 "日期" 200',
{index:3,position:3,width:110,pattern:'date',label:'日期'},
// '4 4 "状态" 50',
{index:4,position:4,width:100,pattern:'code',label:'状态',code:this.codes.relstaEN},
'5 5 "币种" 80',
'6 6 "金额" 80',
'6 6 "金额" 110',
],
data: [],
},
......
......@@ -436,7 +436,7 @@ export default {
'17 5 "报文类型" 100',
'18 6 "对方银行BIC" 110',
// '7 7 "创建时间" 160 20 DateTime 1',
{index:7,position:7,width:140,pattern:'timeFormat',label:'创建时间'},
{index:7,position:7,width:140,pattern:'time',label:'创建时间'},
'19 8 "币种" 50',
'20 9 "金额" 69 2 8 1 16',
......
......@@ -388,7 +388,7 @@ export default {
'17 5 "报文类型" 100',
'18 6 "对方银行BIC" 110',
// '7 7 "创建时间" 160 20 DateTime 1',
{index:7,position:7,width:140,pattern:'timeFormat',label:'创建时间'},
{index:7,position:7,width:140,pattern:'time',label:'创建时间'},
'19 8 "币种" 50',
'20 9 "金额" 69 2 8 1 16',
......
......@@ -394,11 +394,13 @@ export default {
trnName:"sptsel",
stmData2:{
columns:[
"7 1 \"Start\" 0",
// "7 1 \"Start\" 0",
{index:7,position:1,width:140,pattern:'timeFormat',label:'Start'},
"1 2 \"Type\" 0",
"8 3 \"User\" 0",
"4 4 \"TRN\" 0",
"7 5 \"End\" 0",
// "7 5 \"End\" 0",
{index:7,position:5,width:140,pattern:'timeFormat',label:'End'},
"6 6 \"Text\" 0",
],
data:[],
......
......@@ -550,7 +550,7 @@ export default {
'12 4 "币种" 50',
'13 5 "金额" 100',
// '14 6 "创建时间" 170',
{index:14,position:6,width:140,pattern:'timeFormat',label:'创建时间'},
{index:14,position:6,width:140,pattern:'time',label:'创建时间'},
'9 7 "签名要求" 70',
'2 8 "签名状态" 70',
'16 9 "经办柜员" 70',
......
......@@ -398,7 +398,8 @@ export default {
SignaturesData: {
columns: [
'1 2:1 "User" 300',
'2 3:1 "Date / Time" 300',
// '2 3:1 "Date / Time" 300',
{index:2,position:3,width:300,pattern:'time',label:'Date / Time'},
// '3 5:1 "Action" 400',
'4 1:1 "Type" 300'
],
......@@ -420,7 +421,8 @@ export default {
'5 5 "Retries" 100',
'6 6 "Text" 200',
'7 7 "Contrary Text" 200',
'8 8 "Target Time" auto'
// '8 8 "Target Time" auto'
{index:8,position:8,width:'auto',pattern:'dateFormat',label:'Target Time'},
],
data: [],
},
......
......@@ -497,7 +497,7 @@ export default {
'12 4 "币种" 70',
'13 5 "金额" 100',
// '14 6 "创建时间" 170',
{index:14,position:6,width:140,pattern:'timeFormat',label:'创建时间'},
{index:14,position:6,width:140,pattern:'time',label:'创建时间'},
'9 7 "签名要求" 80',
'2 8 "签名状态" 80',
'16 9 "经办柜员" 80',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment