zhu-jiang-yi-yuan-bigscreen
Version:
南方医科大学珠江医院大屏端
185 lines (170 loc) • 6.47 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _nsnModel = require("nsn-model");
var _services = require("../services");
var _baseReducers = (0, _nsnModel.baseReducers)(),
setExec = _baseReducers.setExec;
var _default = {
namespace: 'screen_data',
state: {
appointmentRate: undefined,
thatDayInfo: undefined,
surgicalQuantity: undefined,
incomeYear: undefined,
leaveHospitalTrend: undefined,
monthlyHospital: undefined,
monthlyOutpatient: undefined,
outpatientTrend: undefined,
yearlyHospital: undefined,
yearlyOutpatient: undefined
},
effects: {
appointment_rate: /*#__PURE__*/regeneratorRuntime.mark(function appointment_rate(action, command) {
return regeneratorRuntime.wrap(function appointment_rate$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0, _nsnModel.exec)(action, command, _services.ScreenDataRequest.appointment_rate, 'appointmentRate');
case 2:
case "end":
return _context.stop();
}
}
}, appointment_rate);
}),
that_day_info: /*#__PURE__*/regeneratorRuntime.mark(function that_day_info(action, command) {
return regeneratorRuntime.wrap(function that_day_info$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0, _nsnModel.exec)(action, command, _services.ScreenDataRequest.that_day_info, 'thatDayInfo');
case 2:
case "end":
return _context2.stop();
}
}
}, that_day_info);
}),
surgical_quantity: /*#__PURE__*/regeneratorRuntime.mark(function surgical_quantity(action, command) {
return regeneratorRuntime.wrap(function surgical_quantity$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return (0, _nsnModel.exec)(action, command, _services.ScreenDataRequest.surgical_quantity, 'surgicalQuantity');
case 2:
case "end":
return _context3.stop();
}
}
}, surgical_quantity);
}),
income_year: /*#__PURE__*/regeneratorRuntime.mark(function income_year(action, command) {
return regeneratorRuntime.wrap(function income_year$(_context4) {
while (1) {
switch (_context4.prev = _context4.next) {
case 0:
_context4.next = 2;
return (0, _nsnModel.exec)(action, command, _services.ScreenDataRequest.income_year, 'incomeYear');
case 2:
case "end":
return _context4.stop();
}
}
}, income_year);
}),
leave_hospital_trend: /*#__PURE__*/regeneratorRuntime.mark(function leave_hospital_trend(action, command) {
return regeneratorRuntime.wrap(function leave_hospital_trend$(_context5) {
while (1) {
switch (_context5.prev = _context5.next) {
case 0:
_context5.next = 2;
return (0, _nsnModel.exec)(action, command, _services.ScreenDataRequest.leave_hospital_trend, 'leaveHospitalTrend');
case 2:
case "end":
return _context5.stop();
}
}
}, leave_hospital_trend);
}),
monthly_hospital: /*#__PURE__*/regeneratorRuntime.mark(function monthly_hospital(action, command) {
return regeneratorRuntime.wrap(function monthly_hospital$(_context6) {
while (1) {
switch (_context6.prev = _context6.next) {
case 0:
_context6.next = 2;
return (0, _nsnModel.exec)(action, command, _services.ScreenDataRequest.monthly_hospital, 'monthlyHospital');
case 2:
case "end":
return _context6.stop();
}
}
}, monthly_hospital);
}),
monthly_outpatient: /*#__PURE__*/regeneratorRuntime.mark(function monthly_outpatient(action, command) {
return regeneratorRuntime.wrap(function monthly_outpatient$(_context7) {
while (1) {
switch (_context7.prev = _context7.next) {
case 0:
_context7.next = 2;
return (0, _nsnModel.exec)(action, command, _services.ScreenDataRequest.monthly_outpatient, 'monthlyOutpatient');
case 2:
case "end":
return _context7.stop();
}
}
}, monthly_outpatient);
}),
outpatient_trend: /*#__PURE__*/regeneratorRuntime.mark(function outpatient_trend(action, command) {
return regeneratorRuntime.wrap(function outpatient_trend$(_context8) {
while (1) {
switch (_context8.prev = _context8.next) {
case 0:
_context8.next = 2;
return (0, _nsnModel.exec)(action, command, _services.ScreenDataRequest.outpatient_trend, 'outpatientTrend');
case 2:
case "end":
return _context8.stop();
}
}
}, outpatient_trend);
}),
yearly_hospital: /*#__PURE__*/regeneratorRuntime.mark(function yearly_hospital(action, command) {
return regeneratorRuntime.wrap(function yearly_hospital$(_context9) {
while (1) {
switch (_context9.prev = _context9.next) {
case 0:
_context9.next = 2;
return (0, _nsnModel.exec)(action, command, _services.ScreenDataRequest.yearly_hospital, 'yearlyHospital');
case 2:
case "end":
return _context9.stop();
}
}
}, yearly_hospital);
}),
yearly_outpatient: /*#__PURE__*/regeneratorRuntime.mark(function yearly_outpatient(action, command) {
return regeneratorRuntime.wrap(function yearly_outpatient$(_context10) {
while (1) {
switch (_context10.prev = _context10.next) {
case 0:
_context10.next = 2;
return (0, _nsnModel.exec)(action, command, _services.ScreenDataRequest.yearly_outpatient, 'yearlyOutpatient');
case 2:
case "end":
return _context10.stop();
}
}
}, yearly_outpatient);
})
},
reducers: {
setExec: setExec
}
};
exports.default = _default;