master
xy 2 years ago
parent 514d570775
commit b70db122cd

@ -1,6 +1,10 @@
<script>
export default {
props:{
highlightCurrentRow: {
type: Boolean,
default: false
},
height:{
type:Number
},
@ -146,7 +150,7 @@ export default {
mounted() {
},
render(h) {
let {rowKey,expandRowKeys,selectChange,selectAllClick,summaryMethod,cellClick,btnWidth,selectClick,height,createIndexRow,tableStyle,treeProps,showSummary,showHeader,$scopedSlots,showIndex,defaultExpandAll,headerCellStyle,headerRowStyle,rowStyle,cellStyle,indent,tableHeight,tableItem,list,deleteClick,editorClick,rowClick,objectSpanMethod} = this
let {highlightCurrentRow,rowKey,expandRowKeys,selectChange,selectAllClick,summaryMethod,cellClick,btnWidth,selectClick,height,createIndexRow,tableStyle,treeProps,showSummary,showHeader,$scopedSlots,showIndex,defaultExpandAll,headerCellStyle,headerRowStyle,rowStyle,cellStyle,indent,tableHeight,tableItem,list,deleteClick,editorClick,rowClick,objectSpanMethod} = this
return (
<div className="table-tree" style={{ 'position': 'relative' }}>
{tableItem && tableItem.length > 0 ?
@ -163,6 +167,7 @@ export default {
cell-style={cellStyle}
indent={indent}
data={list}
highlight-current-row={highlightCurrentRow}
expand-row-keys={expandRowKeys}
height={height ?? tableHeight}
className="v-table"
@ -173,6 +178,7 @@ export default {
tree-props={treeProps}
fit={true}
on={{
['row-click']: rowClick,
['select']: selectClick,
['cell-click']: cellClick,
['select-all']: selectAllClick,

@ -607,7 +607,7 @@ export default {
type: 'bar',
barWidth: barWidth,
name: `${this.carrySelect.month}计划`,
barGap: "96%", //
barGap: "90%", //
itemStyle: {
borderRadius: [0, 0, 0, 0],//
color: color1//
@ -617,7 +617,7 @@ export default {
show: true,
position: 'top',
textStyle: {//
fontSize: '5px',
fontSize: 12,
color: '#4d8bdc',
},
formatter: params => `${params.value}%`
@ -629,7 +629,7 @@ export default {
type: "pictorialBar",
data: constData1,//
symbol: "diamond",//
symbolOffset: ["-196%", "50%"],//
symbolOffset: ["-190%", "50%"],//
symbolSize: [barWidth, 10],//[]
itemStyle: {
normal: {
@ -647,7 +647,7 @@ export default {
symbolPosition: "end",
data: showData1,//
symbol: "diamond",
symbolOffset: ["-234%", "-50%"],
symbolOffset: ["-230%", "-50%"],
symbolSize: [barWidth - 4, (10 * (barWidth - 4)) / barWidth],
itemStyle: {
normal: {
@ -674,7 +674,7 @@ export default {
show: true,
position: 'top',
textStyle: {//
fontSize: '5px',
fontSize: 12,
color: '#4d8bdc',
},
formatter: params => `${params.value}%`
@ -731,7 +731,7 @@ export default {
show: true,
position: 'top',
textStyle: {//
fontSize: '5px',
fontSize: 12,
color: '#4d8bdc',
},
formatter: params => `${params.value}%`
@ -743,7 +743,7 @@ export default {
type: "pictorialBar",
data: constData3,
symbol: "diamond",
symbolOffset: ["196%", "50%"],
symbolOffset: ["192%", "50%"],
symbolSize: [barWidth, 10],
itemStyle: {
normal: {
@ -761,7 +761,7 @@ export default {
symbolPosition: "end",
data: showData3,
symbol: "diamond",
symbolOffset: ["237%", "-50%"],
symbolOffset: ["233%", "-50%"],
symbolSize: [barWidth - 4, (10 * (barWidth - 4)) / barWidth],
itemStyle: {
normal: {

@ -75,7 +75,7 @@
:width="720"
@on-ok="planSelectForSearch"
>
<template v-slot:normalContent>
<template>
<Input
v-model="planSearch.name"
search
@ -101,6 +101,7 @@
>
</div>
<xy-table
highlight-current-row
:list="plans"
@rowClick="selectPlanForSearch"
:show-index="false"

Loading…
Cancel
Save