|
@@ -0,0 +1,102 @@
|
|
|
|
|
+var i = getUrlParam("id");
|
|
|
|
|
+$(function () {
|
|
|
|
|
+ $("#jqGrid").jqGrid({
|
|
|
|
|
+ // url: baseURL + 'qmjz/scoreStu/page',
|
|
|
|
|
+ postData: { id: i },
|
|
|
|
|
+ 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: 'createTime', index: 'createTime', width: 80, sortable: false }
|
|
|
|
|
+ ],
|
|
|
|
|
+ viewrecords: true,
|
|
|
|
|
+ rownumbers: true,
|
|
|
|
|
+ rownumWidth: 25,
|
|
|
|
|
+ autowidth: true,
|
|
|
|
|
+ height: h,
|
|
|
|
|
+ rowNum: 10,
|
|
|
|
|
+ rowList: [10, 30, 50],
|
|
|
|
|
+ multiselect: false,
|
|
|
|
|
+ pager: "#jqGridPager",
|
|
|
|
|
+ jsonReader: {
|
|
|
|
|
+ root: "list",
|
|
|
|
|
+ page: "currPage",
|
|
|
|
|
+ total: "totalPage",
|
|
|
|
|
+ records: "totalCount"
|
|
|
|
|
+ },
|
|
|
|
|
+ prmNames: {
|
|
|
|
|
+ page: "pageNum",
|
|
|
|
|
+ rows: "pageSize",
|
|
|
|
|
+ order: "order"
|
|
|
|
|
+ },
|
|
|
|
|
+ gridComplete: function () {
|
|
|
|
|
+ //隐藏grid底部滚动条
|
|
|
|
|
+ $("#jqGrid").closest(".ui-jqgrid-bdiv").css({ "overflow-x": "hidden" });
|
|
|
|
|
+ },
|
|
|
|
|
+ loadComplete: function (data) {
|
|
|
|
|
+ // vm.jpgrid = data.list;
|
|
|
|
|
+ // console.log(data)
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+});
|
|
|
|
|
+
|
|
|
|
|
+var vm = new Vue({
|
|
|
|
|
+ el: '#rrapp',
|
|
|
|
|
+ data: {
|
|
|
|
|
+ workTagConnect: {},
|
|
|
|
|
+ dict: null,
|
|
|
|
|
+ showList: true,
|
|
|
|
|
+ q: {
|
|
|
|
|
+ scoreType: '',
|
|
|
|
|
+ phone: '',
|
|
|
|
|
+ scoreEvent: '',
|
|
|
|
|
+ stuId: '',
|
|
|
|
|
+ },
|
|
|
|
|
+ jpgrid: {},
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ init: function () {
|
|
|
|
|
+ vm.q.scoreType = '';
|
|
|
|
|
+ vm.q.phone = '';
|
|
|
|
|
+ vm.q.scoreEvent = '';
|
|
|
|
|
+ vm.q.stuId = '';
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+ query: function () {
|
|
|
|
|
+ vm.reload(1);
|
|
|
|
|
+ },
|
|
|
|
|
+ refresh: function () {
|
|
|
|
|
+ vm.init();
|
|
|
|
|
+ vm.reload(1);
|
|
|
|
|
+ },
|
|
|
|
|
+ reload: function (event) {
|
|
|
|
|
+ var page;
|
|
|
|
|
+ if (event == 1) {
|
|
|
|
|
+ page = 1;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ 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 },
|
|
|
|
|
+ page: page
|
|
|
|
|
+ }).trigger("reloadGrid");
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+});
|