禅道bug修改
This commit is contained in:
parent
2d350eaf78
commit
3d962b17d3
|
|
@ -6,226 +6,241 @@
|
||||||
@import './btn.scss';
|
@import './btn.scss';
|
||||||
|
|
||||||
body {
|
body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
|
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
|
||||||
|
Microsoft YaHei, Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
#app {
|
#app {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
*,
|
*,
|
||||||
*:before,
|
*:before,
|
||||||
*:after {
|
*:after {
|
||||||
box-sizing: inherit;
|
box-sizing: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-padding {
|
.no-padding {
|
||||||
padding: 0px !important;
|
padding: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.padding-content {
|
.padding-content {
|
||||||
padding: 4px 0;
|
padding: 4px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:focus,
|
a:focus,
|
||||||
a:active {
|
a:active {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
a,
|
a,
|
||||||
a:focus,
|
a:focus,
|
||||||
a:hover {
|
a:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
div:focus {
|
div:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fr {
|
.fr {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fl {
|
.fl {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pr-5 {
|
.pr-5 {
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pl-5 {
|
.pl-5 {
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block {
|
.block {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pointer {
|
.pointer {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inlineBlock {
|
.inlineBlock {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.clearfix {
|
.clearfix {
|
||||||
&:after {
|
&:after {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
content: " ";
|
content: ' ';
|
||||||
clear: both;
|
clear: both;
|
||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
aside {
|
aside {
|
||||||
background: #eef1f6;
|
background: #eef1f6;
|
||||||
padding: 8px 24px;
|
padding: 8px 24px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
display: block;
|
display: block;
|
||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
|
||||||
color: #2c3e50;
|
Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
||||||
-webkit-font-smoothing: antialiased;
|
sans-serif;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
color: #2c3e50;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #337ab7;
|
color: #337ab7;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: rgb(32, 160, 255);
|
color: rgb(32, 160, 255);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//main-container全局样式
|
//main-container全局样式
|
||||||
.app-container {
|
.app-container {
|
||||||
height: calc(100vh - 84px);
|
height: calc(100vh - 84px);
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
// box-sizing: border-box;
|
// box-sizing: border-box;
|
||||||
// display: flex;
|
// display: flex;
|
||||||
// flex-direction: column;
|
// flex-direction: column;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.components-container {
|
.components-container {
|
||||||
margin: 30px 50px;
|
margin: 30px 50px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination-container {
|
.pagination-container {
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-center {
|
.text-center {
|
||||||
text-align: center
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub-navbar {
|
.sub-navbar {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
transition: 600ms ease position;
|
transition: 600ms ease position;
|
||||||
background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
|
background: linear-gradient(
|
||||||
|
90deg,
|
||||||
|
rgba(32, 182, 249, 1) 0%,
|
||||||
|
rgba(32, 182, 249, 1) 0%,
|
||||||
|
rgba(33, 120, 241, 1) 100%,
|
||||||
|
rgba(33, 120, 241, 1) 100%
|
||||||
|
);
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.draft {
|
&.draft {
|
||||||
background: #d0d0d0;
|
background: #d0d0d0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.deleted {
|
&.deleted {
|
||||||
background: #d0d0d0;
|
background: #d0d0d0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-type,
|
.link-type,
|
||||||
.link-type:focus {
|
.link-type:focus {
|
||||||
color: #337ab7;
|
color: #337ab7;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: rgb(32, 160, 255);
|
color: rgb(32, 160, 255);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-container {
|
.filter-container {
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
|
|
||||||
.filter-item {
|
.filter-item {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-setting-btn {
|
.dialog-setting-btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
border-top: 1px solid #e5e5e5;
|
border-top: 1px solid #e5e5e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-right {
|
.title-right {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-family: 'PingFang SC';
|
font-family: 'PingFang SC';
|
||||||
}
|
}
|
||||||
|
|
||||||
.mt-10 {
|
.mt-10 {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cursor-blue {
|
.cursor-blue {
|
||||||
color: #409EFF;
|
color: #409eff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-footer-btn {
|
.dialog-footer-btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
padding: 12px 0;
|
padding: 12px 0;
|
||||||
border-top: 1px solid #e5e5e5;
|
border-top: 1px solid #e5e5e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tip-text {
|
.tip-text {
|
||||||
padding-left: 12px;
|
padding-left: 12px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: $red;
|
color: $red;
|
||||||
}
|
}
|
||||||
|
|
||||||
.files-content {
|
.files-content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contract-img-item-box {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -78,12 +78,26 @@
|
||||||
@closeDialogOuter="handleCloseDialogOuter"
|
@closeDialogOuter="handleCloseDialogOuter"
|
||||||
>
|
>
|
||||||
<template slot="outerContent">
|
<template slot="outerContent">
|
||||||
<el-image
|
<!-- <el-image
|
||||||
:src="contractImgList[0]"
|
:src="contractImgList[0]"
|
||||||
:preview-src-list="contractImgList"
|
:preview-src-list="contractImgList"
|
||||||
v-if="dialogConfig.outerTitle === '合同图片详情'"
|
|
||||||
style="display: block; max-width: 100%; margin: 0 auto"
|
style="display: block; max-width: 100%; margin: 0 auto"
|
||||||
/>
|
/> -->
|
||||||
|
|
||||||
|
<div
|
||||||
|
v-if="dialogConfig.outerTitle === '合同图片详情'"
|
||||||
|
class="contract-img-item-box"
|
||||||
|
>
|
||||||
|
<el-image
|
||||||
|
v-for="item in contractImgList"
|
||||||
|
:key="item"
|
||||||
|
fit="cover"
|
||||||
|
:src="item"
|
||||||
|
:preview-src-list="contractImgList"
|
||||||
|
style="height: 200px"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<ContractDetails
|
<ContractDetails
|
||||||
ref="contractDetailsRef"
|
ref="contractDetailsRef"
|
||||||
:contractInfo="contractInfo"
|
:contractInfo="contractInfo"
|
||||||
|
|
@ -169,8 +183,8 @@ export default {
|
||||||
.map((item) => item.lsUrl)
|
.map((item) => item.lsUrl)
|
||||||
this.dialogConfig.outerTitle = '合同图片详情'
|
this.dialogConfig.outerTitle = '合同图片详情'
|
||||||
this.dialogConfig.outerWidth = ''
|
this.dialogConfig.outerWidth = ''
|
||||||
this.dialogConfig.minHeight = '80vh'
|
this.dialogConfig.minHeight = ''
|
||||||
this.dialogConfig.maxHeight = '80vh'
|
this.dialogConfig.maxHeight = ''
|
||||||
this.dialogConfig.outerVisible = true
|
this.dialogConfig.outerVisible = true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -109,12 +109,23 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="dialogConfig.outerTitle === '合同图片详情'">
|
<template v-if="dialogConfig.outerTitle === '合同图片详情'">
|
||||||
<el-image
|
<!-- <el-image
|
||||||
fit="cover"
|
fit="cover"
|
||||||
:src="contractImgList[0]"
|
:src="contractImgList[0]"
|
||||||
:preview-src-list="contractImgList"
|
:preview-src-list="contractImgList"
|
||||||
style="display: block; max-width: 90%; margin: 0 auto"
|
style="display: block; max-width: 90%; margin: 0 auto"
|
||||||
/>
|
/> -->
|
||||||
|
|
||||||
|
<div class="contract-img-item-box">
|
||||||
|
<el-image
|
||||||
|
v-for="item in contractImgList"
|
||||||
|
:key="item"
|
||||||
|
fit="cover"
|
||||||
|
:src="item"
|
||||||
|
:preview-src-list="contractImgList"
|
||||||
|
style="height: 200px"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</DialogModel>
|
</DialogModel>
|
||||||
|
|
@ -233,8 +244,8 @@ export default {
|
||||||
.filter((item) => item.sourceType != 6)
|
.filter((item) => item.sourceType != 6)
|
||||||
.map((item) => item.lsUrl)
|
.map((item) => item.lsUrl)
|
||||||
this.dialogConfig.outerTitle = '合同图片详情'
|
this.dialogConfig.outerTitle = '合同图片详情'
|
||||||
this.dialogConfig.minHeight = '80vh'
|
this.dialogConfig.minHeight = ''
|
||||||
this.dialogConfig.maxHeight = '80vh'
|
this.dialogConfig.maxHeight = ''
|
||||||
this.dialogConfig.outerWidth = ''
|
this.dialogConfig.outerWidth = ''
|
||||||
this.dialogConfig.outerVisible = true
|
this.dialogConfig.outerVisible = true
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -99,11 +99,22 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="dialogConfig.outerTitle === '工资卡图片详情'">
|
<template v-if="dialogConfig.outerTitle === '工资卡图片详情'">
|
||||||
<el-image
|
<!-- <el-image
|
||||||
:src="contractImgList[0]"
|
:src="contractImgList[0]"
|
||||||
:preview-src-list="contractImgList"
|
:preview-src-list="contractImgList"
|
||||||
style="display: block; max-width: 100%; margin: 0 auto"
|
style="display: block; max-width: 100%; margin: 0 auto"
|
||||||
/>
|
/> -->
|
||||||
|
|
||||||
|
<div class="contract-img-item-box">
|
||||||
|
<el-image
|
||||||
|
v-for="item in contractImgList"
|
||||||
|
:key="item"
|
||||||
|
fit="cover"
|
||||||
|
:src="item"
|
||||||
|
:preview-src-list="contractImgList"
|
||||||
|
style="height: 200px"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</DialogModel>
|
</DialogModel>
|
||||||
|
|
@ -193,8 +204,8 @@ export default {
|
||||||
.map((item) => item.lsUrl)
|
.map((item) => item.lsUrl)
|
||||||
|
|
||||||
this.dialogConfig.outerTitle = '工资卡图片详情'
|
this.dialogConfig.outerTitle = '工资卡图片详情'
|
||||||
this.dialogConfig.minHeight = '90vh'
|
this.dialogConfig.minHeight = ''
|
||||||
this.dialogConfig.maxHeight = '90vh'
|
this.dialogConfig.maxHeight = ''
|
||||||
this.dialogConfig.outerWidth = ''
|
this.dialogConfig.outerWidth = ''
|
||||||
this.dialogConfig.outerVisible = true
|
this.dialogConfig.outerVisible = true
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initChart() {
|
initChart() {
|
||||||
|
console.log(this.threeData, 'this.threeData')
|
||||||
this.chart = echarts.init(this.$el, 'macarons')
|
this.chart = echarts.init(this.$el, 'macarons')
|
||||||
// const pieData = this.pieData.map((item) => ({
|
// const pieData = this.pieData.map((item) => ({
|
||||||
// ...item,
|
// ...item,
|
||||||
|
|
@ -82,6 +83,12 @@ export default {
|
||||||
// }))
|
// }))
|
||||||
|
|
||||||
const pieData = this.threeData
|
const pieData = this.threeData
|
||||||
|
|
||||||
|
const totalAmount = pieData.reduce(
|
||||||
|
(sum, item) => sum + item.value * 1,
|
||||||
|
0,
|
||||||
|
)
|
||||||
|
|
||||||
// 默认显示第一条数据
|
// 默认显示第一条数据
|
||||||
const defaultSelectedIndex = 0
|
const defaultSelectedIndex = 0
|
||||||
const defaultSelectedData = pieData[defaultSelectedIndex]
|
const defaultSelectedData = pieData[defaultSelectedIndex]
|
||||||
|
|
@ -89,7 +96,7 @@ export default {
|
||||||
this.chart.setOption({
|
this.chart.setOption({
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'item',
|
trigger: 'item',
|
||||||
formatter: '{a} <br/>{b}: {c} ({d}%)',
|
formatter: '{a} <br/>{b}: {c} ({d}%) ',
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
orient: 'vertical',
|
orient: 'vertical',
|
||||||
|
|
@ -99,17 +106,18 @@ export default {
|
||||||
itemWidth: 10,
|
itemWidth: 10,
|
||||||
itemHeight: 10,
|
itemHeight: 10,
|
||||||
selectedMode: false, // 关键点:关闭 legend 的交互
|
selectedMode: false, // 关键点:关闭 legend 的交互
|
||||||
formatter: function (name) {
|
formatter: (name) => {
|
||||||
// 获取对应的数据项
|
// 获取对应的数据项
|
||||||
const dataItem = pieData.find(
|
const dataItem = pieData.find(
|
||||||
(item) => item.name === name,
|
(item) => item.name === name,
|
||||||
)
|
)
|
||||||
const total = pieData.reduce(
|
if (!dataItem || totalAmount === 0) {
|
||||||
(sum, item) => sum + item.value,
|
return `{a|${
|
||||||
0,
|
dataItem?.value || 0
|
||||||
)
|
}} {b|${name}} {c|0%}`
|
||||||
|
}
|
||||||
const percent = (
|
const percent = (
|
||||||
(dataItem.value / total) *
|
(dataItem.value / totalAmount) *
|
||||||
100
|
100
|
||||||
).toFixed(1)
|
).toFixed(1)
|
||||||
return `{a|${dataItem.value}} {b|${name}} {c|${percent}%}`
|
return `{a|${dataItem.value}} {b|${name}} {c|${percent}%}`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue