修改禅道已知bug
This commit is contained in:
@@ -1,22 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="height: 100%">
|
<div style="height: 100%">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
<!-- -->
|
||||||
<a-table
|
<a-table
|
||||||
class="table"
|
class="table"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x: true}"
|
:scroll="{x: '100%',y:'calc(100vh - 160px)'}"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
sticky
|
||||||
|
:components="components"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:rowClassName="rowClassName"
|
:rowClassName="rowClassName"
|
||||||
:components="components"
|
|
||||||
@change="tableOnChange"
|
@change="tableOnChange"
|
||||||
@onHeaderRow='onHeaderRow'
|
@onHeaderRow='onHeaderRow'
|
||||||
>
|
>
|
||||||
<span slot="titleName" slot-scope="text,record" :title="text">
|
<span slot="titleName" slot-scope="text,record" :title="text">
|
||||||
{{ text && text.length > 10 ? text.slice(0, 9) + '...' : text }}
|
{{ text }}
|
||||||
</span>
|
</span>
|
||||||
<div :slot="'titleName'+(index+1)" v-for="(item,index) in content">
|
<div :slot="'titleName'+(index+1)" v-for="(item,index) in content">
|
||||||
<span style='padding-right: 20px'>{{ item.db_field_txt }} </span>
|
<span style='padding-right: 20px'>{{ item.db_field_txt }} </span>
|
||||||
@@ -26,7 +28,8 @@
|
|||||||
<span slot="operationbtn" slot-scope="record">
|
<span slot="operationbtn" slot-scope="record">
|
||||||
<span v-if='currentPersonRole === "homo"'>
|
<span v-if='currentPersonRole === "homo"'>
|
||||||
<!-- 认证工程师 -->
|
<!-- 认证工程师 -->
|
||||||
<span v-if='record.state == "待发起收集" || record.state == "工程接口人退回" || record.state == "变更" || record.state == "Wait Collect" || record.state == "Sdt Back" || record.state == "Change"'>
|
<span
|
||||||
|
v-if='record.state == "待发起收集" || record.state == "工程接口人退回" || record.state == "变更" || record.state == "Wait Collect" || record.state == "Sdt Back" || record.state == "Change"'>
|
||||||
<span
|
<span
|
||||||
@click='ondataValueTobeinitiated(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>
|
@click='ondataValueTobeinitiated(record)'>{{ (record.dataValue == null || record.dataValue == 'undefined')? '--': record.dataValue}}</span>
|
||||||
</span>
|
</span>
|
||||||
@@ -56,7 +59,8 @@
|
|||||||
<a-row :gutter='24'>
|
<a-row :gutter='24'>
|
||||||
<a-col :span='24'>
|
<a-col :span='24'>
|
||||||
<a-form-model-item ref='region' :label="$t('engineeringInterfacePerson')" prop='querySdt'>
|
<a-form-model-item ref='region' :label="$t('engineeringInterfacePerson')" prop='querySdt'>
|
||||||
<a-select allowClear :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')" v-model="Dateline.querySdt">
|
<a-select allowClear :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"
|
||||||
|
v-model="Dateline.querySdt">
|
||||||
<a-select-option v-for="(item, key) in querySdtList" :key="key" :value="item.value">
|
<a-select-option v-for="(item, key) in querySdtList" :key="key" :value="item.value">
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.label ">
|
<span style="display: inline-block;width: 100%" :title=" item.label ">
|
||||||
{{ item.label }}
|
{{ item.label }}
|
||||||
@@ -174,7 +178,7 @@
|
|||||||
x: col.width,
|
x: col.width,
|
||||||
z: 1,
|
z: 1,
|
||||||
axis: 'x',
|
axis: 'x',
|
||||||
draggable: true,
|
draggable: false,
|
||||||
resizable: false
|
resizable: false
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -213,7 +217,11 @@
|
|||||||
form: {},
|
form: {},
|
||||||
rules: {
|
rules: {
|
||||||
querySdt: [
|
querySdt: [
|
||||||
{ required: true, message: this.$t('PleaseSelect')+this.$t('engineeringInterfacePerson'), trigger: 'blur' }
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('PleaseSelect') + this.$t('engineeringInterfacePerson'),
|
||||||
|
trigger: 'blur'
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
wrapperCol: {
|
wrapperCol: {
|
||||||
@@ -234,8 +242,8 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
rowClassName(row,index) {
|
rowClassName(row, index) {
|
||||||
return row.changeFlag == '1'? 'yellow' : 'red'
|
return row.changeFlag == '1' ? 'yellow' : 'red'
|
||||||
},
|
},
|
||||||
// 查看配置详细信息
|
// 查看配置详细信息
|
||||||
onClickSee(val) {
|
onClickSee(val) {
|
||||||
@@ -380,7 +388,8 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
sorter: res.sort,
|
sorter: res.sort,
|
||||||
sortOrder: res.db_field_txt
|
sortOrder: res.db_field_txt,
|
||||||
|
width: 500
|
||||||
})
|
})
|
||||||
num++
|
num++
|
||||||
this.content.push(res)
|
this.content.push(res)
|
||||||
@@ -396,9 +405,10 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
sorter: res.sort,
|
sorter: res.sort,
|
||||||
|
width: 160
|
||||||
})
|
})
|
||||||
this.columns[index].scopedSlots = {
|
this.columns[index].scopedSlots = {
|
||||||
customRender: 'titleName',
|
customRender: 'titleName'
|
||||||
}
|
}
|
||||||
if (res.click) {
|
if (res.click) {
|
||||||
// 工程接口人列表修改
|
// 工程接口人列表修改
|
||||||
@@ -475,13 +485,13 @@
|
|||||||
// })
|
// })
|
||||||
// })
|
// })
|
||||||
let tt = []
|
let tt = []
|
||||||
if(this.currentPersonRole !== 'dre') {
|
if (this.currentPersonRole !== 'dre') {
|
||||||
res.result.forEach((Obj) => {
|
res.result.forEach((Obj) => {
|
||||||
Object.keys(Obj).forEach((item) => {
|
Object.keys(Obj).forEach((item) => {
|
||||||
if(Obj[item] instanceof Object && Obj[item].controlType !== undefined){
|
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
||||||
Obj[item].list.forEach((itemLi) => {
|
Obj[item].list.forEach((itemLi) => {
|
||||||
itemLi.isLock = 1
|
itemLi.isLock = 1
|
||||||
if(itemLi.type === 'pull_more'){
|
if (itemLi.type === 'pull_more') {
|
||||||
itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',')
|
itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -492,9 +502,9 @@
|
|||||||
} else {
|
} else {
|
||||||
res.result.forEach((Obj) => {
|
res.result.forEach((Obj) => {
|
||||||
Object.keys(Obj).forEach((item) => {
|
Object.keys(Obj).forEach((item) => {
|
||||||
if(Obj[item] instanceof Object && Obj[item].controlType !== undefined){
|
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
||||||
Obj[item].list.forEach((itemLi) => {
|
Obj[item].list.forEach((itemLi) => {
|
||||||
if(itemLi.type === 'pull_more'){
|
if (itemLi.type === 'pull_more') {
|
||||||
itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',')
|
itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -534,7 +544,7 @@
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
currentPersonRole: {
|
currentPersonRole: {
|
||||||
handler: function(){
|
handler: function() {
|
||||||
this.getTableList()
|
this.getTableList()
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
@@ -612,6 +622,17 @@
|
|||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/deep/ .ant-table-tbody .yellow {
|
||||||
|
background-color: #ffff001f !important;
|
||||||
|
height: 40px !important;
|
||||||
|
border: none !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
|
.resize-table-th {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
.table-draggable-handle {
|
.table-draggable-handle {
|
||||||
/* width: 10px !important; */
|
/* width: 10px !important; */
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
@@ -624,14 +645,4 @@
|
|||||||
transform: none !important;
|
transform: none !important;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.resize-table-th {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
/deep/.ant-table-tbody .yellow {
|
|
||||||
background-color: #ffff001f !important;
|
|
||||||
height: 40px !important;
|
|
||||||
border: none !important;
|
|
||||||
padding: 0 !important;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user