const $f = require("./baserequest") module.exports = { //查找评分规则 getRule: function (sceneTypeId, fun) { let cb = { url: '/evaluationrule/rule', params: { sceneTypeId: sceneTypeId, }, } Object.assign(cb, fun) $f.get(cb) }, //查找评分规则子项表以及对应的具体得分 getScore: function (userId, time, fun) { let cb = { url: '/evaluationsubrule/score', params: { userId: userId, time: time }, } Object.assign(cb, fun) $f.get(cb) }, //查找用户历史得分 getHistoryPoint: function (userId, page, fun) { let cb = { url: `/evaluation/historyPoint/${userId}`, params: { page: page, per_page: 30 }, } Object.assign(cb, fun) $f.get(cb) }, //上传评分 uploadScore: function (userId, period, itemList, fun) { let cb = { url: `/evaluation/upload`, params: { userId: userId, period: period }, data: itemList } Object.assign(cb, fun) $f.post(cb) }, //获取测评详情 getDetail: function (userId, period, fun) { let cb = { url: '/evaluation/detail', params: { userId: userId, period: period }, } Object.assign(cb, fun) $f.get(cb) }, }