Auto Submit

dev_local_v9_test3
autosubmit 2 years ago
parent a98d1e48ce
commit 2429eeb3d8

@ -512,7 +512,7 @@ var VerifyType = /*#__PURE__*/function (VerifyType) {
return VerifyType;
}(VerifyType || {});
var Page = function Page(_ref) {
var _globalSetting$settin2, _globalSetting$settin3;
var _user$userInfo3, _globalSetting$settin, _globalSetting$settin2, _globalSetting$settin3;
var globalSetting = _ref.globalSetting,
dispatch = _ref.dispatch,
user = _ref.user;
@ -663,19 +663,27 @@ var Page = function Page(_ref) {
};
var bannerBtns = [{
name: '新建课堂',
click: handleAddVerify
click: handleAddVerify,
isShow: (user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.identity) !== 'student' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.hide_course)
}, {
name: '加入课堂',
click: function click() {
return handleJoinVerify(VerifyType.Classrooms);
}
},
isShow: true
}, {
name: '新手指引',
click: open,
sign: true
sign: true,
isShow: true
}, {
name: '概览统计',
click: function click() {
(0,util/* openNewWindow */.xg)('/classroomsoverview');
},
isShow: (0,authority/* isSuperAdmins */.Ny)()
}].filter(function (e) {
var _user$userInfo3, _globalSetting$settin;
return (user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.identity) !== 'student' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.hide_course) ? true : e.name !== '新建课堂';
return e.isShow;
});
return /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: Indexmodules.page,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -626,7 +626,7 @@ var Page = function Page(_ref) {
bannerBtns = _useState18[0],
setBannerBtns = _useState18[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _user$userInfo3, _globalSetting$settin;
var _user$userInfo3, _globalSetting$settin, _bannerBtns$map;
if (((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.user_identity) !== '学生' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.hide_subject)) {
setBannerBtns([{
name: '新建课程',
@ -634,6 +634,17 @@ var Page = function Page(_ref) {
sign: false
}].concat(toConsumableArray_default()(bannerBtns)));
}
if ((0,authority/* isSuperAdmins */.Ny)() && !(bannerBtns !== null && bannerBtns !== void 0 && (_bannerBtns$map = bannerBtns.map(function (item) {
return item.name;
})) !== null && _bannerBtns$map !== void 0 && _bannerBtns$map.includes("概览统计"))) {
setBannerBtns([].concat(toConsumableArray_default()(bannerBtns), [{
name: '概览统计',
click: function click() {
(0,util/* openNewWindow */.xg)('/pathsoverview');
},
sign: false
}]));
}
}, [(_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.user_identity]);
return /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: Indexmodules.page,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -139,6 +139,7 @@ var jsx_runtime = __webpack_require__(37712);
var Page = function Page(_ref) {
var _user$userInfo3, _globalSetting$settin2, _globalSetting$settin3;
@ -391,7 +392,7 @@ var Page = function Page(_ref) {
bannerBtns = _useState16[0],
setBannerBtns = _useState16[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _user$userInfo, _globalSetting$settin, _user$userInfo2;
var _user$userInfo, _globalSetting$settin, _user$userInfo2, _bannerBtns$map;
if (((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_identity) !== '学生' && !(globalSetting !== null && globalSetting !== void 0 && (_globalSetting$settin = globalSetting.setting) !== null && _globalSetting$settin !== void 0 && _globalSetting$settin.hide_shixun) && user !== null && user !== void 0 && (_user$userInfo2 = user.userInfo) !== null && _user$userInfo2 !== void 0 && _user$userInfo2.is_shixun_marker) {
setBannerBtns([{
name: '新建项目',
@ -399,6 +400,17 @@ var Page = function Page(_ref) {
sign: false
}].concat(toConsumableArray_default()(bannerBtns)));
}
if ((0,authority/* isSuperAdmins */.Ny)() && !(bannerBtns !== null && bannerBtns !== void 0 && (_bannerBtns$map = bannerBtns.map(function (item) {
return item.name;
})) !== null && _bannerBtns$map !== void 0 && _bannerBtns$map.includes("概览统计"))) {
setBannerBtns([].concat(toConsumableArray_default()(bannerBtns), [{
name: '概览统计',
click: function click() {
(0,util/* openNewWindow */.xg)('/shixunsoverview');
},
sign: false
}]));
}
}, [(_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.user_identity]);
return /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: Indexmodules.page,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

@ -292,10 +292,10 @@ mark {
\**************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: "iconfont"; /* Project id 653600 */
src: url(./static/iconfont.de7bf788.woff2) format('woff2'),
url(./static/iconfont.f9c02bd2.woff) format('woff'),
url(./static/iconfont.5ac5f779.ttf) format('truetype'),
url(./static/iconfont.df7da3a4.svg#iconfont) format('svg');
src: url(./static/iconfont.2e8b3695.woff2) format('woff2'),
url(./static/iconfont.641fa2d1.woff) format('woff'),
url(./static/iconfont.04c7a97b.ttf) format('truetype'),
url(./static/iconfont.8d28887b.svg#iconfont) format('svg');
}
.iconfont {
@ -306,6 +306,214 @@ mark {
-moz-osx-font-smoothing: grayscale;
}
.icon-liucheng:before {
content: "\ec16";
}
.icon-sheji:before {
content: "\ec17";
}
.icon-liuchengtu:before {
content: "\ec14";
}
.icon-sheji_huatu:before {
content: "\ec15";
}
.icon-tongguoguankashu:before {
content: "\ec13";
}
.icon-shangsheng:before {
content: "\ec12";
}
.icon-zhengzaikaoshishu:before {
content: "\ec0d";
}
.icon-qiandaoshu:before {
content: "\ec0e";
}
.icon-jinrixuexirenshu:before {
content: "\ec0f";
}
.icon-shiyankecheng1:before {
content: "\ec10";
}
.icon-leijipingcecishu:before {
content: "\ec11";
}
.icon-dangqianleijizongxuexirenshu:before {
content: "\ec08";
}
.icon-kejianshu:before {
content: "\ec09";
}
.icon-hudongpinglunshu:before {
content: "\ec0a";
}
.icon-dangqianzaixianrenshu:before {
content: "\ec0b";
}
.icon-zuirexuexibang:before {
content: "\ec0c";
}
.icon-zhidingweizhi:before {
content: "\ec07";
}
.icon-ziyuanfenpei:before {
content: "\ec06";
}
.icon-wuchuangkou:before {
content: "\ec05";
}
.icon-ziyuanzhongxin:before {
content: "\ec04";
}
.icon-ketangkebiao:before {
content: "\ec03";
}
.icon-anlifenxiang:before {
content: "\ec00";
}
.icon-haokezhanshi:before {
content: "\ec01";
}
.icon-jiaoliuyantao:before {
content: "\ec02";
}
.icon-goumai:before {
content: "\ebff";
}
.icon-lishijilu:before {
content: "\ebfe";
}
.icon-shebei-xiao:before {
content: "\ebfd";
}
.icon-yuyuexiangqing1:before {
content: "\ebfb";
}
.icon-fanhui4:before {
content: "\ebfc";
}
.icon-zhangjieceshibeifen:before {
content: "\ebef";
}
.icon-biaoqing:before {
content: "\ebfa";
}
.icon-qukuailian1:before {
content: "\ebf9";
}
.icon-suanfasheji1:before {
content: "\ebf6";
}
.icon-jingjiguanli:before {
content: "\ebf7";
}
.icon-dianzixinxi1:before {
content: "\ebf8";
}
.icon-jingpeikecheng:before {
content: "\ebf1";
}
.icon-yunjisuan:before {
content: "\ebf2";
}
.icon-shuxueyutongji:before {
content: "\ebf3";
}
.icon-qiyekecheng:before {
content: "\ebf4";
}
.icon-xunifangzhen:before {
content: "\ebf5";
}
.icon-wulianwang:before {
content: "\ebf0";
}
.icon-jiesuo1:before {
content: "\ebed";
}
.icon-suoding:before {
content: "\ebee";
}
.icon-xiaoxitongzhi:before {
content: "\ebec";
}
.icon-xuanzhong11:before {
content: "\ebea";
}
.icon-yiwancheng6:before {
content: "\ebeb";
}
.icon-shangbianxiantiao:before {
content: "\ebe9";
}
.icon-xiebianjiantou:before {
content: "\ebe8";
}
.icon-panduanhujiu:before {
content: "\ebe6";
}
.icon-shiyongaed:before {
content: "\ebe7";
}
.icon-a-302:before {
content: "\ebe5";
}
.icon-xianchangqueren:before {
content: "\ebe1";
}
.icon-duohangtiankongxiang:before {
content: "\ebe4";
}

5383
umi.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save