Commit 1f7eab93 authored by wangxuelai's avatar wangxuelai

''

parent 9ed53252
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>轻校</title><link rel="shortcut icon" href="https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png"><meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0;" name="viewport"><meta http-equiv="X-UA-Compatible" content="IE=edge"><!-- Polyfills --><!--[if lt IE 10]>
<script src="js/console-polyfill.js"></script>
<![endif]--><script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"></script><link href="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.css?1564469816120" rel="stylesheet"><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/lib/vendor.dll.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?3" charset="utf-8"></script></head><body><div id="root"></div><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.js?1564469816121" charset="utf-8"></script></body></html>
\ No newline at end of file
<![endif]--><script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"></script><link href="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.css?1564471604614" rel="stylesheet"><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/lib/vendor.dll.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?3" charset="utf-8"></script></head><body><div id="root"></div><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.js?1564471604614" charset="utf-8"></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -717,6 +717,9 @@ export default {
const {
quickCommentParams, quickPrivitecommentOpen, tabCClockDetail, quickCommentSubmiting,
} = yield select(state => state.clockmgt);
const {
sid,
} = yield select(state => state.webapp);
if (quickCommentSubmiting) {
return;
}
......@@ -731,10 +734,12 @@ export default {
newcommon.img = newcommon.img == '' ? '' : JSON.stringify(newcommon.img);
newcommon.audio = newcommon.audio == '' ? '' : JSON.stringify(newcommon.audio);
newcommon.record_ids = payload.record_ids;
newcommon.school_id = sid;
const newprivite = JSON.parse(JSON.stringify(privite));
newprivite.img = newprivite.img == '' ? '' : JSON.stringify(newprivite.img);
newprivite.audio = newprivite.audio == '' ? '' : JSON.stringify(newprivite.audio);
newprivite.record_ids = payload.record_ids;
newprivite.school_id = sid;
if (common.score == 0) {
message.warn('评分不能为0', 1);
return;
......@@ -753,7 +758,7 @@ export default {
if (quickPrivitecommentOpen) {
priviteBatchReviewData = yield call(clockmgtajax.batchReview, newprivite);
} else if (!quickPrivitecommentOpen && newprivite.id) {
priviteReviewDeleteData = yield call(clockmgtajax.reviewsDelete, { id: newprivite.id });
priviteReviewDeleteData = yield call(clockmgtajax.reviewsDelete, { id: newprivite.id, school_id: sid });
}
yield put({
type: 'updateState',
......@@ -808,15 +813,18 @@ export default {
},
* singleCommentPost({ payload }, { call, put, select }) {
const { singleCommentParams, singlePrivitecommentOpen, singleCommentSubmiting } = yield select(state => state.clockmgt);
const { sid } = yield select(state => state.webapp);
const { common, privite } = singleCommentParams;
const newcommon = JSON.parse(JSON.stringify(common));
newcommon.img = newcommon.img == '' ? '' : JSON.stringify(newcommon.img);
newcommon.audio = newcommon.audio == '' ? '' : JSON.stringify(newcommon.audio);
newcommon.record_ids = payload.record_ids;
newcommon.school_id = sid;
const newprivite = JSON.parse(JSON.stringify(privite));
newprivite.img = newprivite.img == '' ? '' : JSON.stringify(newprivite.img);
newprivite.audio = newprivite.audio == '' ? '' : JSON.stringify(newprivite.audio);
newprivite.record_ids = payload.record_ids;
newprivite.school_id = sid;
if (common.score == 0) {
message.warn('评分不能为0', 1);
return;
......@@ -843,7 +851,7 @@ export default {
if (singlePrivitecommentOpen) {
priviteReviewDeleteData = yield call(clockmgtajax.batchReview, newprivite);
} else if (!singlePrivitecommentOpen && newprivite.id) {
priviteReviewDeleteData = yield call(clockmgtajax.reviewsDelete, { id: newprivite.id });
priviteReviewDeleteData = yield call(clockmgtajax.reviewsDelete, { id: newprivite.id, school_id: sid });
}
if (commonBatchReviewData.code == 200) {
message.success('点评成功', 1.5);
......
......@@ -19,6 +19,9 @@ export function reviewsDelete(params) {
return request({
url: `${api.clockmgt.reviewsDelete}/${params.id}`,
method: 'DELETE',
data: {
school_id: params.school_id,
},
});
}
export function clockPlaceTop(params) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment