|
@@ -177,6 +177,7 @@
|
|
|
@mousedown.native="mouseDownHandler"
|
|
|
@mouseup.native="mouseUpHandler"
|
|
|
@mousemove.native="mouseMoveHandler"
|
|
|
+ :rowClassName="setRowClassName"
|
|
|
:rowSelection="{
|
|
|
selectedRowKeys: selectedRowKeys,
|
|
|
onChange: onSelectChange,
|
|
@@ -421,7 +422,7 @@ import { number } from 'echarts';
|
|
|
{
|
|
|
title:'型号',
|
|
|
align:"center",
|
|
|
- dataIndex: 'xhname'
|
|
|
+ dataIndex: 'xhname',
|
|
|
},
|
|
|
{
|
|
|
title:'计划完成时间',
|
|
@@ -502,8 +503,8 @@ import { number } from 'echarts';
|
|
|
title:'预估价',
|
|
|
align:"center",
|
|
|
dataIndex: 'estimationcoat',
|
|
|
- customRender: (text) => {
|
|
|
- return Number(text).toFixed(2)
|
|
|
+ customRender: (text, record) => {
|
|
|
+ return record.contractfpe ? '-' : Number(text).toFixed(2)
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -772,6 +773,7 @@ import { number } from 'echarts';
|
|
|
this.mouseOffset = e.clientX;
|
|
|
this.handlerFirstTime = new Date().getTime()
|
|
|
this.mouseFlag = true;
|
|
|
+ console.log(this.mouseOffset)
|
|
|
},
|
|
|
mouseUpHandler(e) {
|
|
|
var lastTime = new Date().getTime();
|
|
@@ -785,6 +787,8 @@ import { number } from 'echarts';
|
|
|
mouseMoveHandler(e) {
|
|
|
// 这里面需要注意,通过ref需要那个那个包含table元素的父元素
|
|
|
let v=document.getElementsByClassName("ant-table-body")[0]
|
|
|
+ v.style.cursor = 'move'
|
|
|
+ v.style['user-select'] = 'none'
|
|
|
if (this.mouseFlag) {
|
|
|
// 设置水平方向的元素的位置
|
|
|
v.scrollLeft -= (- this.mouseOffset + (this.mouseOffset = e.clientX));
|
|
@@ -866,6 +870,12 @@ import { number } from 'echarts';
|
|
|
// var key = this.$route.name+":colsettings";
|
|
|
// let colSettings= Vue.ls.get(key);
|
|
|
},
|
|
|
+ // 亏损标红
|
|
|
+ setRowClassName(record, index){
|
|
|
+ if(record.lrl < 0){
|
|
|
+ return 'table-kuisun-color'
|
|
|
+ }
|
|
|
+ },
|
|
|
//列设置更改事件
|
|
|
onColSettingsChange (checkedValues) {
|
|
|
console.log(checkedValues)
|
|
@@ -960,7 +970,7 @@ import { number } from 'echarts';
|
|
|
console.log(res)
|
|
|
this.duibiList = res
|
|
|
this.duibiclList = []
|
|
|
-})
|
|
|
+ })
|
|
|
var selectTasknos = this.selectionRows.map( res => {
|
|
|
return res.taskno
|
|
|
})
|
|
@@ -1171,4 +1181,10 @@ import { number } from 'echarts';
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
@import '~@assets/less/common.less';
|
|
|
+</style>
|
|
|
+<style>
|
|
|
+ .table-kuisun-color{
|
|
|
+ color: red !important;
|
|
|
+ /* user-select: 'none'; */
|
|
|
+ }
|
|
|
</style>
|