|
|
@@ -1,26 +1,18 @@
|
|
|
-var i = getUrlParam("id");
|
|
|
$(function () {
|
|
|
$("#jqGrid").jqGrid({
|
|
|
- // url: baseURL + 'qmjz/scoreStu/page',
|
|
|
- postData: { id: i },
|
|
|
+ url: baseURL + 'qmjz/scoreStu/page',
|
|
|
+ postData: { taskIds: '20,21' },
|
|
|
datatype: "json",
|
|
|
colModel: [
|
|
|
{ label: 'id', name: 'id', index: 'id', width: 50, key: true, hidden: true },
|
|
|
{ label: '用户ID', name: 'stuId', index: 'stuId', width: 80, sortable: false },
|
|
|
{ label: '手机号', name: 'phone', index: 'phone', width: 80 },
|
|
|
- {
|
|
|
- label: '转换类型', name: 'scoreType', index: 'scoreType', width: 80, formatter: function (cellvalue, options, rowdata) {
|
|
|
- // for (const item of vm.transferType) {
|
|
|
- // if (cellvalue == item.value) {
|
|
|
- // return item.code
|
|
|
- // }
|
|
|
- // }
|
|
|
- return ''
|
|
|
- }
|
|
|
- },
|
|
|
- { label: '变动积分', name: 'scoreEvent', index: 'scoreEvent', width: 80, sortable: false },
|
|
|
- { label: '变动前', name: 'beforeScoreValue', index: 'beforeScoreValue', width: 80, sortable: false },
|
|
|
- { label: '变动后', name: 'afterScoreValue', index: 'afterScoreValue', width: 80, sortable: false },
|
|
|
+ { label: '转换类型', name: 'scoreEvent', index: 'scoreEvent', width: 80 },
|
|
|
+ { label: '变动积分', name: 'scoreValue', index: 'scoreValue', width: 80, sortable: false },
|
|
|
+ { label: '变动前', name: 'beforeScoreValue', index: 'beforeScoreValue', width: 80, sortable: false , formatter: function (cellvalue, options, rowdata) {
|
|
|
+ return rowdata.surplusScore - rowdata.scoreValue;
|
|
|
+ }},
|
|
|
+ { label: '变动后', name: 'surplusScore', index: 'surplusScore', width: 80, sortable: false },
|
|
|
{ label: '时间', name: 'createTime', index: 'createTime', width: 80, sortable: false }
|
|
|
],
|
|
|
viewrecords: true,
|
|
|
@@ -58,25 +50,19 @@ $(function () {
|
|
|
var vm = new Vue({
|
|
|
el: '#rrapp',
|
|
|
data: {
|
|
|
- workTagConnect: {},
|
|
|
- dict: null,
|
|
|
showList: true,
|
|
|
q: {
|
|
|
- scoreType: '',
|
|
|
+ taskIds: '20,21',
|
|
|
phone: '',
|
|
|
- scoreEvent: '',
|
|
|
stuId: '',
|
|
|
},
|
|
|
jpgrid: {},
|
|
|
},
|
|
|
-
|
|
|
methods: {
|
|
|
init: function () {
|
|
|
- vm.q.scoreType = '';
|
|
|
+ vm.q.taskIds = '20,21';
|
|
|
vm.q.phone = '';
|
|
|
- vm.q.scoreEvent = '';
|
|
|
vm.q.stuId = '';
|
|
|
-
|
|
|
},
|
|
|
query: function () {
|
|
|
vm.reload(1);
|
|
|
@@ -93,7 +79,7 @@ var vm = new Vue({
|
|
|
page = $("#jqGrid").jqGrid('getGridParam', 'page');
|
|
|
}
|
|
|
$("#jqGrid").jqGrid('setGridParam', {
|
|
|
- postData: { 'pid': i, 'stuId': vm.q.stuId, 'phone': vm.q.phone, 'scoreEvent': vm.q.scoreEvent, 'scoreType': vm.q.scoreType },
|
|
|
+ postData: { 'stuId': vm.q.stuId, 'phone': vm.q.phone, 'taskIds': vm.q.taskIds },
|
|
|
page: page
|
|
|
}).trigger("reloadGrid");
|
|
|
},
|