mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 04:32:49 +00:00
no message
This commit is contained in:
parent
fc907d23a7
commit
35b7e3a289
13
public/images/application/create-group.svg
Normal file
13
public/images/application/create-group.svg
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>add-project</title>
|
||||
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="add-project" fill-rule="nonzero">
|
||||
<path d="M36,48 L12,48 C5.4,48 0,42.6 0,36 L0,12 C0,5.4 5.4,0 12,0 L36,0 C42.6,0 48,5.4 48,12 L48,36 C48,42.6 42.6,48 36,48 Z" id="路径" fill="#87D068"></path>
|
||||
<g id="create-group" transform="translate(12, 11)" fill="#FFFFFF">
|
||||
<path d="M24.0062996,16.1558426 C22.4649067,15.0282002 20.9136691,13.9144788 19.3527703,12.8148104 C19.3104148,12.7424251 19.2100992,12.4257396 19.2814348,11.7923686 C19.2948102,11.6487291 19.4229912,11.4903863 19.6358832,11.2155485 C19.9201108,10.8705875 20.2879347,10.381987 20.5298067,9.66152747 C20.7571887,8.92636466 21.3523946,5.77081969 19.8777553,3.68521936 C19.3717188,2.97493898 18.4209498,2.14137746 16.7389916,2 C18.5959448,4.99720221 17.9639566,9.07339723 17.5415164,10.4408 C17.1625464,11.5740818 16.6018936,12.3409131 16.1549319,12.8838026 C16.0958571,12.961843 16.0434701,13.0240491 16.0033439,13.078338 L16,13.1688196 C17.2205065,14.0283945 19.8242537,15.9013632 21.4114694,17.0640514 C22.5604926,17.8907272 23.2431449,19.2314325 23.2427864,20.6606941 L23.2427864,21 C24.2626617,20.7376034 25.0239457,19.8011191 24.9994241,18.6904578 L24.9994241,18.1000655 C24.9994241,17.3219239 24.6316002,16.6025954 24.0074142,16.1547116" id="路径"></path>
|
||||
<path d="M19.0755394,24 L2.95928939,24 C1.32593287,23.9975192 0.00244514859,22.6547542 0,20.9976069 L0,20.2554549 C0,19.2790578 0.463984608,18.3747361 1.2487624,17.8138989 C3.12024099,16.4748721 6.32928285,14.1605744 7.09630047,13.6177561 C7.14847099,13.5276618 7.27390223,13.1301206 7.18510135,12.3339121 C7.16623117,12.1706161 7.00749959,11.9543898 6.73887692,11.609779 C6.40032356,11.1593074 5.91857878,10.5624325 5.61776579,9.65698466 C5.31362277,8.73464408 4.56436533,4.77387265 6.43584391,2.15100183 C7.13182082,1.17347849 8.48603427,0 11.0002092,0 C13.5132742,0 14.8674876,1.17347849 15.5634646,2.15100183 C17.417183,4.77499883 16.6690355,8.73464408 16.3848727,9.65698466 C16.0807297,10.5613064 15.6167451,11.1773263 15.2604315,11.609779 C14.9940289,11.9543898 14.8330773,12.1525973 14.8164271,12.3339121 C14.7254062,13.1301206 14.8497275,13.5276618 14.905228,13.6177561 C15.6711356,14.1425555 18.8968277,16.4579794 20.7505461,17.8138989 C21.5347245,18.3720993 22.0009056,19.2835675 21.9993085,20.2554549 L21.9993085,20.998733 C22.0348288,22.6429543 20.6972655,24 19.0755394,24" id="路径"></path>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.7 KiB |
@ -1205,6 +1205,9 @@ export default {
|
||||
|
||||
onTabbarClick(act) {
|
||||
switch (act) {
|
||||
case 'createGroup':
|
||||
this.onAddMenu('group')
|
||||
break;
|
||||
case 'addTask':
|
||||
this.onAddTask(0)
|
||||
break;
|
||||
|
||||
@ -406,35 +406,29 @@ export default {
|
||||
initList() {
|
||||
let applyList = [
|
||||
{ value: "approve", label: "审批中心", sort: 30 },
|
||||
{ value: "report", label: "工作报告", sort: 50 },
|
||||
{ value: "okr", label: "OKR 管理", sort: 40 },
|
||||
{ value: "report", label: "工作报告", sort: 50 },
|
||||
{ value: "mybot", label: "我的机器人", sort: 55 },
|
||||
{ value: "robot", label: "AI 机器人", sort: 60 },
|
||||
{ value: "robot", label: "AI 机器人", sort: 60, show: this.systemConfig.server_closeai !== 'close' },
|
||||
{ value: "signin", label: "签到打卡", sort: 70 },
|
||||
{ value: "meeting", label: "在线会议", sort: 80 },
|
||||
{ value: "createGroup", label: "创建群组", sort: 85 },
|
||||
{ value: "word-chain", label: "群接龙", sort: 90 },
|
||||
{ value: "vote", label: "群投票", sort: 100 },
|
||||
{ value: "addProject", label: "创建项目", sort: 110 },
|
||||
{ value: "addTask", label: "添加任务", sort: 120 },
|
||||
{ value: "scan", label: "扫一扫", sort: 130, show: $A.isEEUiApp },
|
||||
{ value: "setting", label: "设置", sort: 140 },
|
||||
];
|
||||
if (this.systemConfig.server_closeai === 'close') {
|
||||
applyList = applyList.filter(h => h.value !== 'robot');
|
||||
}
|
||||
// wap模式
|
||||
if (this.windowOrientation == 'landscape') {
|
||||
// 横屏模式
|
||||
applyList.push({ value: "scan", label: "扫一扫", show: $A.isEEUiApp, sort: 130 })
|
||||
} else {
|
||||
// 竖屏模式
|
||||
// 竖屏模式
|
||||
if (this.windowPortrait) {
|
||||
applyList.push(...[
|
||||
{ value: "calendar", label: "日历", sort: 10 },
|
||||
{ value: "file", label: "文件", sort: 20 },
|
||||
{ value: "addProject", label: "创建项目", sort: 110 },
|
||||
{ value: "addTask", label: "添加任务", sort: 120 },
|
||||
{ value: "scan", label: "扫一扫", show: $A.isEEUiApp, sort: 130 },
|
||||
{ value: "setting", label: "设置", sort: 140 }
|
||||
])
|
||||
}
|
||||
// 管理员
|
||||
let adminApplyList = [];
|
||||
const adminApplyList = [];
|
||||
if (!this.userIsAdmin) {
|
||||
if (this.userInfo.department_owner) {
|
||||
adminApplyList.push({ value: "okrAnalyze", label: "OKR 结果", sort: 150 })
|
||||
@ -449,10 +443,9 @@ export default {
|
||||
{ value: "allUser", label: "团队管理", sort: 200 },
|
||||
])
|
||||
}
|
||||
adminApplyList = adminApplyList.map((h) => {
|
||||
h.type = 'admin';
|
||||
return h;
|
||||
});
|
||||
adminApplyList.map(item => {
|
||||
item.type = 'admin'
|
||||
})
|
||||
//
|
||||
this.applyList = [...applyList, ...adminApplyList].sort((a, b) => a.sort - b.sort);
|
||||
},
|
||||
|
||||
4
resources/assets/sass/pages/page-apply.scss
vendored
4
resources/assets/sass/pages/page-apply.scss
vendored
@ -143,6 +143,10 @@
|
||||
background-image: url("../images/application/approve.svg");
|
||||
}
|
||||
|
||||
&.create-group {
|
||||
background-image: url("../images/application/create-group.svg");
|
||||
}
|
||||
|
||||
&.add-project {
|
||||
background-image: url("../images/application/add-project.svg");
|
||||
}
|
||||
|
||||
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>add-project</title>
|
||||
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="add-project" fill-rule="nonzero">
|
||||
<path d="M36,48 L12,48 C5.4,48 0,42.6 0,36 L0,12 C0,5.4 5.4,0 12,0 L36,0 C42.6,0 48,5.4 48,12 L48,36 C48,42.6 42.6,48 36,48 Z" id="路径" fill="#87D068"></path>
|
||||
<g id="create-group" transform="translate(12, 11)" fill="#FFFFFF">
|
||||
<path d="M24.0062996,16.1558426 C22.4649067,15.0282002 20.9136691,13.9144788 19.3527703,12.8148104 C19.3104148,12.7424251 19.2100992,12.4257396 19.2814348,11.7923686 C19.2948102,11.6487291 19.4229912,11.4903863 19.6358832,11.2155485 C19.9201108,10.8705875 20.2879347,10.381987 20.5298067,9.66152747 C20.7571887,8.92636466 21.3523946,5.77081969 19.8777553,3.68521936 C19.3717188,2.97493898 18.4209498,2.14137746 16.7389916,2 C18.5959448,4.99720221 17.9639566,9.07339723 17.5415164,10.4408 C17.1625464,11.5740818 16.6018936,12.3409131 16.1549319,12.8838026 C16.0958571,12.961843 16.0434701,13.0240491 16.0033439,13.078338 L16,13.1688196 C17.2205065,14.0283945 19.8242537,15.9013632 21.4114694,17.0640514 C22.5604926,17.8907272 23.2431449,19.2314325 23.2427864,20.6606941 L23.2427864,21 C24.2626617,20.7376034 25.0239457,19.8011191 24.9994241,18.6904578 L24.9994241,18.1000655 C24.9994241,17.3219239 24.6316002,16.6025954 24.0074142,16.1547116" id="路径"></path>
|
||||
<path d="M19.0755394,24 L2.95928939,24 C1.32593287,23.9975192 0.00244514859,22.6547542 0,20.9976069 L0,20.2554549 C0,19.2790578 0.463984608,18.3747361 1.2487624,17.8138989 C3.12024099,16.4748721 6.32928285,14.1605744 7.09630047,13.6177561 C7.14847099,13.5276618 7.27390223,13.1301206 7.18510135,12.3339121 C7.16623117,12.1706161 7.00749959,11.9543898 6.73887692,11.609779 C6.40032356,11.1593074 5.91857878,10.5624325 5.61776579,9.65698466 C5.31362277,8.73464408 4.56436533,4.77387265 6.43584391,2.15100183 C7.13182082,1.17347849 8.48603427,0 11.0002092,0 C13.5132742,0 14.8674876,1.17347849 15.5634646,2.15100183 C17.417183,4.77499883 16.6690355,8.73464408 16.3848727,9.65698466 C16.0807297,10.5613064 15.6167451,11.1773263 15.2604315,11.609779 C14.9940289,11.9543898 14.8330773,12.1525973 14.8164271,12.3339121 C14.7254062,13.1301206 14.8497275,13.5276618 14.905228,13.6177561 C15.6711356,14.1425555 18.8968277,16.4579794 20.7505461,17.8138989 C21.5347245,18.3720993 22.0009056,19.2835675 21.9993085,20.2554549 L21.9993085,20.998733 C22.0348288,22.6429543 20.6972655,24 19.0755394,24" id="路径"></path>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.7 KiB |
Loading…
x
Reference in New Issue
Block a user