master
xy 2 years ago
parent 514d570775
commit b70db122cd

@ -1,6 +1,10 @@
<script> <script>
export default { export default {
props:{ props:{
highlightCurrentRow: {
type: Boolean,
default: false
},
height:{ height:{
type:Number type:Number
}, },
@ -146,7 +150,7 @@ export default {
mounted() { mounted() {
}, },
render(h) { 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 ( return (
<div className="table-tree" style={{ 'position': 'relative' }}> <div className="table-tree" style={{ 'position': 'relative' }}>
{tableItem && tableItem.length > 0 ? {tableItem && tableItem.length > 0 ?
@ -163,6 +167,7 @@ export default {
cell-style={cellStyle} cell-style={cellStyle}
indent={indent} indent={indent}
data={list} data={list}
highlight-current-row={highlightCurrentRow}
expand-row-keys={expandRowKeys} expand-row-keys={expandRowKeys}
height={height ?? tableHeight} height={height ?? tableHeight}
className="v-table" className="v-table"
@ -173,6 +178,7 @@ export default {
tree-props={treeProps} tree-props={treeProps}
fit={true} fit={true}
on={{ on={{
['row-click']: rowClick,
['select']: selectClick, ['select']: selectClick,
['cell-click']: cellClick, ['cell-click']: cellClick,
['select-all']: selectAllClick, ['select-all']: selectAllClick,

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

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

Loading…
Cancel
Save