pull/1058/head
贤心 2022-06-29 08:56:33 +08:00
parent 2642e573e8
commit 2589ef1cf0
3 changed files with 6 additions and 5 deletions

View File

@ -166,7 +166,7 @@ layui.use(['table', 'dropdown'], function(){
return td.find('select').val();
}}
,{field:'sign', title:'签名', minWidth: 200, style:'color: #5FB878', edit: 'textarea'}
,{field: 'experience', title: '积分', width: 100, sort: true, align:'center', totalRow: !1 || '{{= d.TOTAL_NUMS }} 分 😊', templet: '<div><a href="" class="layui-table-link">{{ d.experience }}</a></div>'}
,{field: 'experience', title: '积分', width: 100, sort: true, align:'center', totalRow: !1 ? '{{=d.LAY_COL.field}}' : '{{= d.TOTAL_NUMS }} 分 😊', templet: '<div><a href="" class="layui-table-link">{{ d.experience }}</a></div>'}
,{field:'ip', title:'IP', width: 120, align: 'right'}
,{field:'checkin', title:'打卡', width: 100, sort: true, totalRow: '{{= parseInt(d.TOTAL_NUMS) }} 次'}
,{field:'joinTime', title:'加入时间', width: 120}

View File

@ -1,6 +1,4 @@
/**
* Building Layui
*/
'use strict';
const pkg = require('./package.json');
const gulp = require('gulp');

View File

@ -1139,7 +1139,9 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
var text = item3.totalRowText || ''
,decimals = 'totalRowDecimals' in item3 ? item3.totalRowDecimals : 2
,thisTotalNum = parseFloat(totalNums[field]).toFixed(decimals)
,tplData = {}
,tplData = {
LAY_COL: item3
}
,getContent;
tplData[field] = thisTotalNum;
@ -1180,6 +1182,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
if(typeof totalRow === 'string'){
return laytpl(totalRow).render($.extend({
TOTAL_NUMS: totalNums[field]
,LAY_COL: item3
}, item3));
}
return content;