|
@@ -113,11 +113,12 @@
|
|
|
<!-- 高级查询区域 -->
|
|
|
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
- <a-menu slot="overlay">
|
|
|
+ <a-button key="1" @click="batchDuiBi" disabled="chooseStatus"><a-icon type="shrink" />对比</a-button>
|
|
|
+ <!-- <a-menu slot="overlay"> -->
|
|
|
<!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>对比</a-menu-item> -->
|
|
|
- <a-menu-item key="1" @click="batchDuiBi"><a-icon type="shrink" />对比</a-menu-item>
|
|
|
+ <!-- <a-menu-item key="1" @click="batchDuiBi"><a-icon type="shrink" />对比</a-menu-item>
|
|
|
</a-menu>
|
|
|
- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
|
|
|
+ <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> -->
|
|
|
</a-dropdown>
|
|
|
</div>
|
|
|
|
|
@@ -299,6 +300,8 @@ import ProjectImportListModal from '../projectImportList/modules/ProjectImportLi
|
|
|
isExpanded: false,
|
|
|
// 获取对比级
|
|
|
chooseRowType: undefined,
|
|
|
+ // 对比状态
|
|
|
+ chooseStatus: undefined,
|
|
|
// 获取到的对比数据
|
|
|
duibiList: [],
|
|
|
// 获取到的材料费对比数据
|
|
@@ -879,21 +882,29 @@ import ProjectImportListModal from '../projectImportList/modules/ProjectImportLi
|
|
|
if(selected) {
|
|
|
if (selectedRows.length == 1) {
|
|
|
this.chooseRowType = record.ji
|
|
|
+ this.chooseStatus = true
|
|
|
} else {
|
|
|
console.log(this.chooseRowType,record.ji)
|
|
|
if (this.chooseRowType != record.ji) {
|
|
|
this.chooseRowType = this.chooseRowType
|
|
|
+ this.chooseStatus = true
|
|
|
this.$message.error("请选择同级项进行对比");
|
|
|
+ } else{
|
|
|
+ this.chooseStatus = false
|
|
|
}
|
|
|
}
|
|
|
} else{
|
|
|
if (selectedRows.length == 1) {
|
|
|
console.log(777,this.selectionRows[0].ji)
|
|
|
this.chooseRowType = this.selectionRows[0].ji
|
|
|
+ this.chooseStatus = true
|
|
|
} else {
|
|
|
if (this.chooseRowType != record.ji) {
|
|
|
this.chooseRowType = this.chooseRowType
|
|
|
+ this.chooseStatus = true
|
|
|
this.$message.error("请选择同级项进行对比");
|
|
|
+ }else{
|
|
|
+ this.chooseStatus = false
|
|
|
}
|
|
|
}
|
|
|
}
|