|
@@ -130,6 +130,9 @@ try {
|
|
|
uInput: function() {
|
|
|
return Promise.all(/*! import() | uview-ui/components/u-input/u-input */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uview-ui/components/u-input/u-input")]).then(__webpack_require__.bind(null, /*! @/uview-ui/components/u-input/u-input.vue */ 365))
|
|
|
},
|
|
|
+ uModal: function() {
|
|
|
+ return __webpack_require__.e(/*! import() | uview-ui/components/u-modal/u-modal */ "uview-ui/components/u-modal/u-modal").then(__webpack_require__.bind(null, /*! @/uview-ui/components/u-modal/u-modal.vue */ 463))
|
|
|
+ },
|
|
|
uRadioGroup: function() {
|
|
|
return Promise.all(/*! import() | uview-ui/components/u-radio-group/u-radio-group */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uview-ui/components/u-radio-group/u-radio-group")]).then(__webpack_require__.bind(null, /*! @/uview-ui/components/u-radio-group/u-radio-group.vue */ 432))
|
|
|
},
|
|
@@ -164,6 +167,7 @@ var render = function() {
|
|
|
var m0 = _vm.getStudentsNumber(1)
|
|
|
var m1 = _vm.getStudentsNumber(2)
|
|
|
var m2 = _vm.getStudentsNumber(3)
|
|
|
+ var m3 = _vm.getStudentsNumber(4)
|
|
|
|
|
|
if (!_vm._isMounted) {
|
|
|
_vm.e0 = function($event) {
|
|
@@ -181,7 +185,8 @@ var render = function() {
|
|
|
$root: {
|
|
|
m0: m0,
|
|
|
m1: m1,
|
|
|
- m2: m2
|
|
|
+ m2: m2,
|
|
|
+ m3: m3
|
|
|
}
|
|
|
}
|
|
|
)
|
|
@@ -319,6 +324,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -351,6 +371,7 @@ var API = __webpack_require__(/*! @/config/api */ 47);var _default =
|
|
|
return {
|
|
|
classId: '',
|
|
|
studentId: '',
|
|
|
+ studentName: '',
|
|
|
classInfo: {
|
|
|
name: '',
|
|
|
classStartDate: '',
|
|
@@ -383,6 +404,7 @@ var API = __webpack_require__(/*! @/config/api */ 47);var _default =
|
|
|
|
|
|
leaveShow: false,
|
|
|
leaveForm: {},
|
|
|
+ leaveOtherShow: false,
|
|
|
vtCardShow: false,
|
|
|
vtCardId: '',
|
|
|
vtCardValue: '',
|
|
@@ -391,10 +413,11 @@ var API = __webpack_require__(/*! @/config/api */ 47);var _default =
|
|
|
},
|
|
|
onLoad: function onLoad(options) {
|
|
|
this.classId = options.id;
|
|
|
+ },
|
|
|
+ onShow: function onShow() {
|
|
|
this.initialize();
|
|
|
this.getClassShow();
|
|
|
},
|
|
|
- onReady: function onReady() {},
|
|
|
onPullDownRefresh: function onPullDownRefresh() {
|
|
|
this.initialize();
|
|
|
this.getClassShow();
|
|
@@ -488,20 +511,47 @@ var API = __webpack_require__(/*! @/config/api */ 47);var _default =
|
|
|
case 2:
|
|
|
return this.classInfo.studentLeaveRecordList.length;
|
|
|
case 3:
|
|
|
+ return this.classInfo.studentLeaveList.length;
|
|
|
+ case 4:
|
|
|
return this.classInfo.studentRenewList.length;}
|
|
|
|
|
|
},
|
|
|
+ handleOtherClick: function handleOtherClick(item) {
|
|
|
+ this.studentId = item.id;
|
|
|
+ this.studentName = item.name;
|
|
|
+ this.leaveOtherShow = true;
|
|
|
+ },
|
|
|
+ // 病假知晓
|
|
|
+ handleEndClick: function handleEndClick() {var _this3 = this;
|
|
|
+ NET.request(API.leaveLessonsEndOk, {
|
|
|
+ classId: parseInt(this.classId), studentId: parseInt(this.studentId) },
|
|
|
+ 'POST').then(function (res) {
|
|
|
+ if (res.status == 10000) {
|
|
|
+ _this3.$refs.uTips.show({
|
|
|
+ title: res.message,
|
|
|
+ type: 'success' });
|
|
|
+
|
|
|
+ _this3.initialize();
|
|
|
+ _this3.getClassShow();
|
|
|
+ } else {
|
|
|
+ _this3.$refs.uTips.show({
|
|
|
+ title: res.message,
|
|
|
+ type: 'warning' });
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
// 事假信息
|
|
|
- handleleaveClick: function handleleaveClick(item) {var _this3 = this;
|
|
|
+ handleleaveClick: function handleleaveClick(item) {var _this4 = this;
|
|
|
if (agreeType == 1) return;
|
|
|
NET.request(API.leaveLessonsInfo, {
|
|
|
id: parseInt(item.leaveRecordId) },
|
|
|
'POST').then(function (res) {
|
|
|
if (res.status == 10000) {
|
|
|
- _this3.leaveForm = _objectSpread({}, res.data);
|
|
|
- _this3.leaveShow = true;
|
|
|
+ _this4.leaveForm = _objectSpread({}, res.data);
|
|
|
+ _this4.leaveShow = true;
|
|
|
} else {
|
|
|
- _this3.$refs.uTips.show({
|
|
|
+ _this4.$refs.uTips.show({
|
|
|
title: res.message,
|
|
|
type: 'warning' });
|
|
|
|
|
@@ -509,17 +559,17 @@ var API = __webpack_require__(/*! @/config/api */ 47);var _default =
|
|
|
});
|
|
|
},
|
|
|
// 事假信息->同意
|
|
|
- handleAgreeClick: function handleAgreeClick() {var _this4 = this;
|
|
|
+ handleAgreeClick: function handleAgreeClick() {var _this5 = this;
|
|
|
NET.request(API.leaveLessonsOk, {
|
|
|
leaveId: parseInt(this.leaveForm.leaveId) },
|
|
|
'POST').then(function (res) {
|
|
|
if (res.status == 10000) {
|
|
|
- _this4.leaveShow = false;
|
|
|
- _this4.leaveForm = {};
|
|
|
- _this4.initialize();
|
|
|
+ _this5.leaveShow = false;
|
|
|
+ _this5.leaveForm = {};
|
|
|
+ _this5.initialize();
|
|
|
} else {
|
|
|
- _this4.leaveShow = false;
|
|
|
- _this4.$refs.uTips.show({
|
|
|
+ _this5.leaveShow = false;
|
|
|
+ _this5.$refs.uTips.show({
|
|
|
title: res.message,
|
|
|
type: 'warning' });
|
|
|
|
|
@@ -527,7 +577,7 @@ var API = __webpack_require__(/*! @/config/api */ 47);var _default =
|
|
|
});
|
|
|
},
|
|
|
// 续费卡列表
|
|
|
- handleVtCardClick: function handleVtCardClick(item) {var _this5 = this;
|
|
|
+ handleVtCardClick: function handleVtCardClick(item) {var _this6 = this;
|
|
|
this.studentId = parseInt(item.id);
|
|
|
var data = {
|
|
|
studentId: parseInt(this.studentId),
|
|
@@ -535,14 +585,14 @@ var API = __webpack_require__(/*! @/config/api */ 47);var _default =
|
|
|
|
|
|
NET.request(API.stuRenewalCardList, data, 'POST').then(function (res) {
|
|
|
if (res.status == 10000) {
|
|
|
- _this5.vtCardList = res.data;
|
|
|
- _this5.vtCardShow = true;
|
|
|
+ _this6.vtCardList = res.data;
|
|
|
+ _this6.vtCardShow = true;
|
|
|
} else {
|
|
|
- _this5.$refs.uTips.show({
|
|
|
+ _this6.$refs.uTips.show({
|
|
|
title: res.message,
|
|
|
type: 'warning' });
|
|
|
|
|
|
- _this5.vtCardShow = false;
|
|
|
+ _this6.vtCardShow = false;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -552,7 +602,7 @@ var API = __webpack_require__(/*! @/config/api */ 47);var _default =
|
|
|
this.vtCardValue = cardName;
|
|
|
},
|
|
|
// 续费卡确认
|
|
|
- handleAffirmClick: function handleAffirmClick() {var _this6 = this;
|
|
|
+ handleAffirmClick: function handleAffirmClick() {var _this7 = this;
|
|
|
var data = {
|
|
|
cardId: parseInt(this.vtCardId),
|
|
|
studentId: parseInt(this.studentId),
|
|
@@ -560,28 +610,28 @@ var API = __webpack_require__(/*! @/config/api */ 47);var _default =
|
|
|
|
|
|
NET.request(API.openRenewalCard, data, 'POST').then(function (res) {
|
|
|
if (res.status == 10000) {
|
|
|
- _this6.vtCardShow = false;
|
|
|
- _this6.$refs.uTips.show({
|
|
|
+ _this7.vtCardShow = false;
|
|
|
+ _this7.$refs.uTips.show({
|
|
|
title: res.message,
|
|
|
type: 'success' });
|
|
|
|
|
|
- _this6.initialize();
|
|
|
+ _this7.initialize();
|
|
|
} else {
|
|
|
- _this6.$refs.uTips.show({
|
|
|
+ _this7.$refs.uTips.show({
|
|
|
title: res.message,
|
|
|
type: 'warning' });
|
|
|
|
|
|
- _this6.vtCardShow = false;
|
|
|
+ _this7.vtCardShow = false;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
// 选择上传文件类型
|
|
|
- selectUploadType: function selectUploadType(index) {var _this7 = this;
|
|
|
+ selectUploadType: function selectUploadType(index) {var _this8 = this;
|
|
|
if (index == 0) {
|
|
|
uni.chooseImage({
|
|
|
count: 1,
|
|
|
success: function success(res) {
|
|
|
- _this7.uploadFile(res.tempFilePaths[0]);
|
|
|
+ _this8.uploadFile(res.tempFilePaths[0]);
|
|
|
},
|
|
|
fail: function fail(error) {
|
|
|
|
|
@@ -591,7 +641,7 @@ var API = __webpack_require__(/*! @/config/api */ 47);var _default =
|
|
|
uni.chooseVideo({
|
|
|
count: 1,
|
|
|
success: function success(res) {
|
|
|
- _this7.uploadFile(res.tempFilePath);
|
|
|
+ _this8.uploadFile(res.tempFilePath);
|
|
|
},
|
|
|
fail: function fail(error) {
|
|
|
|
|
@@ -615,35 +665,35 @@ var API = __webpack_require__(/*! @/config/api */ 47);var _default =
|
|
|
|
|
|
},
|
|
|
// 文件上传成功回调
|
|
|
- uploadSuccess: function uploadSuccess(id) {var _this8 = this;
|
|
|
+ uploadSuccess: function uploadSuccess(id) {var _this9 = this;
|
|
|
NET.request(API.insertClassShow, {
|
|
|
fileId: [id],
|
|
|
id: this.classId },
|
|
|
'POST').then(function (res) {
|
|
|
- _this8.getClassShow();
|
|
|
- _this8.$refs.uTips.show({
|
|
|
+ _this9.getClassShow();
|
|
|
+ _this9.$refs.uTips.show({
|
|
|
title: '班级近况发布成功',
|
|
|
type: 'success' });
|
|
|
|
|
|
}).catch(function (error) {
|
|
|
- _this8.$refs.uTips.show({
|
|
|
+ _this9.$refs.uTips.show({
|
|
|
title: error.message,
|
|
|
type: 'warning' });
|
|
|
|
|
|
});
|
|
|
},
|
|
|
// 删除班级近况
|
|
|
- deleteClassShow: function deleteClassShow(site) {var _this9 = this;
|
|
|
+ deleteClassShow: function deleteClassShow(site) {var _this10 = this;
|
|
|
NET.request(API.deleteClassShow, {
|
|
|
id: site.id },
|
|
|
'POST').then(function (res) {
|
|
|
- _this9.getClassShow();
|
|
|
- _this9.$refs.uTips.show({
|
|
|
+ _this10.getClassShow();
|
|
|
+ _this10.$refs.uTips.show({
|
|
|
title: '删除成功',
|
|
|
type: 'success' });
|
|
|
|
|
|
}).catch(function (error) {
|
|
|
- _this9.$refs.uTips.show({
|
|
|
+ _this10.$refs.uTips.show({
|
|
|
title: error.message,
|
|
|
type: 'warning' });
|
|
|
|