idea配置eslint和prettier
This commit is contained in:
parent
bcdfbb26f9
commit
7d91985bb2
6
.idea/jsLinters/eslint.xml
Normal file
6
.idea/jsLinters/eslint.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="EslintConfiguration">
|
||||||
|
<option name="fix-on-save" value="true" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
7
.idea/prettier.xml
Normal file
7
.idea/prettier.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="PrettierConfiguration">
|
||||||
|
<option name="myConfigurationMode" value="AUTOMATIC" />
|
||||||
|
<option name="myRunOnSave" value="true" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
|
|
@ -3,22 +3,22 @@
|
||||||
<view class="workbench-card">
|
<view class="workbench-card">
|
||||||
<view class="header">
|
<view class="header">
|
||||||
<text class="title">工作台</text>
|
<text class="title">工作台</text>
|
||||||
<!-- <view class="search-box" @click="goToSearch">-->
|
<!-- <view class="search-box" @click="goToSearch">-->
|
||||||
<!-- <text class="search-icon">🔍</text>-->
|
<!-- <text class="search-icon">🔍</text>-->
|
||||||
<!-- <text class="placeholder">搜索</text>-->
|
<!-- <text class="placeholder">搜索</text>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="grid">
|
<view class="grid">
|
||||||
<view
|
<view
|
||||||
class="grid-item"
|
v-for="item in items"
|
||||||
v-for="item in items"
|
:key="item.key"
|
||||||
:key="item.key"
|
v-permission="item.permission"
|
||||||
@click="handleClick(item)"
|
class="grid-item"
|
||||||
v-permission="item.permission"
|
@click="handleClick(item)"
|
||||||
>
|
>
|
||||||
<view class="icon-wrapper">
|
<view class="icon-wrapper">
|
||||||
<image class="icon-image" :src="item.icon" mode="aspectFit" />
|
<image :src="item.icon" class="icon-image" mode="aspectFit"/>
|
||||||
</view>
|
</view>
|
||||||
<text class="item-text">{{ item.text }}</text>
|
<text class="item-text">{{ item.text }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -27,21 +27,21 @@
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
||||||
<!-- 悬浮球 - 添加任务 -->
|
<!-- 悬浮球 - 添加任务 -->
|
||||||
<FabPlus @click="goToAddTask" />
|
<FabPlus @click="goToAddTask"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import {ref} from 'vue';
|
||||||
import FabPlus from '@/components/FabPlus.vue';
|
import FabPlus from '@/components/FabPlus.vue';
|
||||||
|
|
||||||
const items = ref([
|
const items = ref([
|
||||||
{ key: 'verify', text: '审批管理', icon: '/static/workbench/verify.png', permission: ['bst:verify:list'] },
|
{key: 'verify', text: '审批管理', icon: '/static/workbench/verify.png', permission: ['bst:verify:list']},
|
||||||
// { key: 'customer', text: '客户管理', icon: '/static/workbench/customer.png' },
|
// { key: 'customer', text: '客户管理', icon: '/static/workbench/customer.png' },
|
||||||
{ key: 'project', text: '项目管理', icon: '/static/workbench/project.png' },
|
{key: 'project', text: '项目管理', icon: '/static/workbench/project.png'},
|
||||||
{ key: 'task', text: '任务管理', icon: '/static/workbench/task.png' },
|
{key: 'task', text: '任务管理', icon: '/static/workbench/task.png'},
|
||||||
// { key: 'schedule', text: '日程管理', icon: '/static/workbench/schedule.png' },
|
// { key: 'schedule', text: '日程管理', icon: '/static/workbench/schedule.png' },
|
||||||
// { key: 'contact', text: '通讯录', icon: '/static/workbench/contact.png' },
|
// { key: 'contact', text: '通讯录', icon: '/static/workbench/contact.png' },
|
||||||
{ key: 'notice', text: '公告管理', icon: '/static/workbench/notice.png' },
|
{key: 'notice', text: '公告管理', icon: '/static/workbench/notice.png'},
|
||||||
// { key: 'wechat', text: '工作微信', icon: '/static/workbench/wechat.png' }
|
// { key: 'wechat', text: '工作微信', icon: '/static/workbench/wechat.png' }
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
@ -64,7 +64,7 @@ const handleClick = (item) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (item.key === 'customer') {
|
if (item.key === 'customer') {
|
||||||
uni.switchTab({ url: '/pages/index/index' });
|
uni.switchTab({url: '/pages/index/index'});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (item.key === 'project') {
|
if (item.key === 'project') {
|
||||||
|
|
@ -82,7 +82,7 @@ const handleClick = (item) => {
|
||||||
|
|
||||||
|
|
||||||
// 其他入口占位
|
// 其他入口占位
|
||||||
uni.showToast({ title: '开发中', icon: 'none' });
|
uni.showToast({title: '开发中', icon: 'none'});
|
||||||
};
|
};
|
||||||
|
|
||||||
// 跳转到添加任务页面
|
// 跳转到添加任务页面
|
||||||
|
|
@ -129,9 +129,11 @@ const goToAddTask = () => {
|
||||||
background: #f5f6f7;
|
background: #f5f6f7;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-icon {
|
.search-icon {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.placeholder {
|
.placeholder {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
|
|
@ -161,6 +163,7 @@ const goToAddTask = () => {
|
||||||
//justify-content: center;
|
//justify-content: center;
|
||||||
//overflow: hidden;
|
//overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-image {
|
.icon-image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,16 @@ const normalizePermissionList = (permissions) => {
|
||||||
.split(',')
|
.split(',')
|
||||||
.map((perm) => perm.trim())
|
.map((perm) => perm.trim())
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user