Pre Merge pull request !271 from 刘永建/dev_lyj
@ -1,8 +1,8 @@
|
||||
# 页面标题
|
||||
VUE_APP_TITLE = 若依管理系统
|
||||
VUE_APP_TITLE = 智能作业系统
|
||||
|
||||
# 生产环境配置
|
||||
ENV = 'production'
|
||||
|
||||
# 若依管理系统/生产环境
|
||||
# 智能作业系统/生产环境
|
||||
VUE_APP_BASE_API = '/prod-api'
|
||||
|
@ -1,10 +1,10 @@
|
||||
# 页面标题
|
||||
VUE_APP_TITLE = 若依管理系统
|
||||
VUE_APP_TITLE = 智能作业系统
|
||||
|
||||
NODE_ENV = production
|
||||
|
||||
# 测试环境配置
|
||||
ENV = 'staging'
|
||||
|
||||
# 若依管理系统/测试环境
|
||||
# 智能作业系统/测试环境
|
||||
VUE_APP_BASE_API = '/stage-api'
|
||||
|
@ -1,52 +0,0 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询部门列表
|
||||
export function listDept(query) {
|
||||
return request({
|
||||
url: '/system/dept/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门列表(排除节点)
|
||||
export function listDeptExcludeChild(deptId) {
|
||||
return request({
|
||||
url: '/system/dept/list/exclude/' + deptId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门详细
|
||||
export function getDept(deptId) {
|
||||
return request({
|
||||
url: '/system/dept/' + deptId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增部门
|
||||
export function addDept(data) {
|
||||
return request({
|
||||
url: '/system/dept',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改部门
|
||||
export function updateDept(data) {
|
||||
return request({
|
||||
url: '/system/dept',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除部门
|
||||
export function delDept(deptId) {
|
||||
return request({
|
||||
url: '/system/dept/' + deptId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询机构列表
|
||||
export function listSysOrg(query) {
|
||||
return request({
|
||||
url: '/system/org/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询机构列表(排除节点)
|
||||
export function listSysOrgExcludeChild(orgId) {
|
||||
return request({
|
||||
url: '/system/org/list/exclude/' + orgId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询机构详细
|
||||
export function getSysOrg(orgId) {
|
||||
return request({
|
||||
url: '/system/org/' + orgId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增机构
|
||||
export function addSysOrg(data) {
|
||||
return request({
|
||||
url: '/system/org',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改机构
|
||||
export function updateSysOrg(data) {
|
||||
return request({
|
||||
url: '/system/org',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除机构
|
||||
export function delSysOrg(orgId) {
|
||||
return request({
|
||||
url: '/system/org/' + orgId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
After Width: | Height: | Size: 192 KiB |
After Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 118 KiB |
After Width: | Height: | Size: 304 B |
After Width: | Height: | Size: 705 B |
After Width: | Height: | Size: 619 B |
After Width: | Height: | Size: 378 B |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 133 KiB |
After Width: | Height: | Size: 1000 B |
@ -0,0 +1,222 @@
|
||||
<template>
|
||||
<div class="tabs">
|
||||
<ul :style="{ width: isCollapse ? 'calc(100% - 64px)' : 'calc(100% - 200px)' }">
|
||||
<li
|
||||
class="tabs-li"
|
||||
v-for="(item, index) in tabdate.tabname"
|
||||
:class="{ active: isActive(index) }"
|
||||
:key="index"
|
||||
@click="gotonext(index)"
|
||||
>
|
||||
<!-- @contextmenu.prevent="onContext($event, item)" -->
|
||||
<span class="tabs-li-title" >{{ item }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapGetters, mapMutations } from 'vuex'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
tabdate: {
|
||||
type: Object,
|
||||
default: () => {},
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
collapse: false,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
showTabs() {
|
||||
return this.tabList.length > 0
|
||||
},
|
||||
...mapGetters({
|
||||
|
||||
}),
|
||||
},
|
||||
created(){
|
||||
// console.log(this.tabname)
|
||||
},
|
||||
methods: {
|
||||
isActive(path) {
|
||||
return path === this.tabdate.activecontent
|
||||
},
|
||||
onContext(e, item) {
|
||||
console.log(e)
|
||||
},
|
||||
gotonext(index) {
|
||||
this.tabdate.activecontent = index
|
||||
this.$emit('tabchange',index)
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.tabs {
|
||||
position: relative;
|
||||
height: 39px;
|
||||
padding-right: 20px;
|
||||
background-color: #ffffff00;
|
||||
}
|
||||
/*
|
||||
.tabs:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #d9d9d9;
|
||||
top: 44px;
|
||||
} */
|
||||
|
||||
.tabs ul {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
position: relative;
|
||||
padding-left: 0px;
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
.tabs-li {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
margin-right: 10px;
|
||||
border-radius: 6px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
line-height: 38px;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-bottom-left-radius: 0px;
|
||||
border-bottom-right-radius: 0px;
|
||||
border-width: 1px 1px 0;
|
||||
background: #ffffff;
|
||||
text-align: center;
|
||||
padding: 0 5px 0 12px;
|
||||
vertical-align: middle;
|
||||
color: #333;
|
||||
-webkit-transition: all 0.3s ease-in;
|
||||
-o-transition: all 0.3s ease-in;
|
||||
transition: all 0.3s ease-in;
|
||||
}
|
||||
|
||||
.tabs-li.active {
|
||||
height: 43px;
|
||||
line-height: 43px;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-width: 1px 1px 0;
|
||||
background-color: #006CE1;
|
||||
position: relative;
|
||||
bottom: 4px;
|
||||
}
|
||||
|
||||
.tabs-li::marker {
|
||||
color: #ffffff00;
|
||||
}
|
||||
|
||||
.tabs-li.active:after {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #f2f2f2;
|
||||
top: 28px;
|
||||
margin-left: calc(-100% + 5px);
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.tabs-li:not(.active):hover {
|
||||
background: #f8f8f8;
|
||||
}
|
||||
|
||||
.tabs-li-title {
|
||||
/*float: left;*/
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
margin-right: 5px;
|
||||
color: #2D4E83;
|
||||
}
|
||||
|
||||
.tabs-li.active .tabs-li-title,
|
||||
.tabs-li:not(.active) .tabs-li-title:hover {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.tabs-close-box {
|
||||
display: none;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
z-index: 1000;
|
||||
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.context-menu-item {
|
||||
color: #666666;
|
||||
font-size: 12px;
|
||||
padding: 5px 10px;
|
||||
border-bottom: 1px solid #d9d9d9;
|
||||
}
|
||||
|
||||
.context-menu-item:nth-last-child(1) {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.context-menu-item:hover {
|
||||
background: #93c1da;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.tab-btn {
|
||||
padding: 0 5px;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
line-height: 29px;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
}
|
||||
|
||||
.tabs-close-box:before {
|
||||
box-sizing: content-box;
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
position: absolute;
|
||||
top: -16px;
|
||||
right: 38px;
|
||||
padding: 0;
|
||||
border-bottom: 8px solid #ffffff;
|
||||
border-top: 8px solid transparent;
|
||||
border-left: 8px solid transparent;
|
||||
border-right: 8px solid transparent;
|
||||
display: block;
|
||||
content: '';
|
||||
z-index: 12;
|
||||
}
|
||||
.tabs-close-box:after {
|
||||
box-sizing: content-box;
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
position: absolute;
|
||||
top: -18px;
|
||||
right: 37px;
|
||||
padding: 0;
|
||||
border-bottom: 9px solid #cccccc;
|
||||
border-top: 9px solid transparent;
|
||||
border-left: 9px solid transparent;
|
||||
border-right: 9px solid transparent;
|
||||
display: block;
|
||||
content: '';
|
||||
z-index: 10;
|
||||
}
|
||||
</style>
|
@ -0,0 +1,42 @@
|
||||
<template>
|
||||
<div class="right-fence-box">
|
||||
<div class="content">
|
||||
右侧边栏111
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
//右侧边栏布局
|
||||
.right-fence-box {
|
||||
// width: 423px;
|
||||
width: 25.5%;
|
||||
min-height: calc(100% - 100px);
|
||||
border-radius: 6px;
|
||||
box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 6px;
|
||||
background: #ffffff;
|
||||
position: absolute;
|
||||
overflow-y: auto;
|
||||
right: 24px;
|
||||
top: 24px;
|
||||
.content{
|
||||
margin-top: 20%;
|
||||
text-align: center;
|
||||
}
|
||||
.tab{
|
||||
font-size: 2px;
|
||||
background: red;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,32 @@
|
||||
let style
|
||||
let clearWaterMark = () => {
|
||||
if (style) style.remove
|
||||
}
|
||||
export default function createWaterMark(str,_height) {
|
||||
clearWaterMark()
|
||||
if (!str) return
|
||||
let width = window.parseInt(document.body.clientWidth),
|
||||
canvasWidth = width / window.parseInt(width / 400),
|
||||
fontFamily = window.getComputedStyle(document.body)['font-family'],
|
||||
canvas = document.createElement('canvas')
|
||||
canvas.width = canvasWidth
|
||||
canvas.height = 200
|
||||
let cxt = canvas.getContext('2d')
|
||||
cxt.rotate((-20 * Math.PI) / 180)
|
||||
cxt.font = `18px${fontFamily}`
|
||||
cxt.fillStyle = 'rgba(8,8,8,0.2)'
|
||||
cxt.fillText(str, 50, 200)
|
||||
let imgSrc = canvas.toDataURL('image/png')
|
||||
style = document.createElement('style')
|
||||
style.innerHTML = `.with-watermark:before{
|
||||
content:"";
|
||||
width:100%;
|
||||
pointer-events:none;
|
||||
height:${_height}px;
|
||||
display:block;
|
||||
position:absolute;
|
||||
z-index:99999;
|
||||
background-image:url("${imgSrc}")
|
||||
}`
|
||||
;(document.head.append || document.head.appendChild).apply(document.head, [style])
|
||||
}
|