|
@@ -29,7 +29,7 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div class="ml-10">
|
|
|
- <el-button type="warning" icon="el-icon-sort" size="small">排序</el-button>
|
|
|
+ <el-button type="warning" icon="el-icon-sort" size="small" @click="sortPro">排序</el-button>
|
|
|
</div>
|
|
|
<div class="ml-10">
|
|
|
<el-button type="warning" icon="el-icon-star-off" size="small" class="custom-primary-btn">收藏夹</el-button>
|
|
@@ -226,7 +226,8 @@
|
|
|
<!-- 合同段排序弹窗 -->
|
|
|
<ContractSort
|
|
|
ref="contractSortRef"
|
|
|
-
|
|
|
+ :title="sortTitle"
|
|
|
+
|
|
|
@confirm="handleSortConfirm"
|
|
|
/>
|
|
|
</el-container>
|
|
@@ -335,6 +336,7 @@ export default {
|
|
|
],
|
|
|
sortContractVisible: false, // 合同段排序弹窗
|
|
|
sortContractList: [],
|
|
|
+ sortTitle: '合同段排序',
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -595,8 +597,8 @@ export default {
|
|
|
sortContract(){
|
|
|
// this.sortContractVisible = true;
|
|
|
this.sortContractList = JSON.parse(JSON.stringify(this.contractList));
|
|
|
- console.log( this.$refs.contractSortRef,' this.$refs.contractSortRef');
|
|
|
-
|
|
|
+ this.sortTitle = '合同段排序';
|
|
|
+
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.contractSortRef.show(this.sortContractList);
|
|
|
});
|
|
@@ -608,6 +610,14 @@ export default {
|
|
|
// TODO: 调用接口保存排序结果
|
|
|
this.contractList = [...sortedList];
|
|
|
this.$message.success('排序成功');
|
|
|
+ },
|
|
|
+ sortPro(){
|
|
|
+ this.sortContractList = JSON.parse(JSON.stringify(this.projectList));
|
|
|
+ this.sortTitle = '项目排序';
|
|
|
+
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.contractSortRef.show(this.sortContractList);
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|