加上10.13号凯哥修复拖拽bug修复代码

dev_2022-05-11
yujialong 3 years ago
parent b28b78d935
commit ec5f61e753
  1. 35
      src/pages/project/add/index.vue

@ -92,6 +92,7 @@
header-align="center"
@selection-change="handleSelectionProjectJudgment"
row-key="judgmentId"
v-loading="listLoading"
>
<el-table-column type="selection" width="55" align="center"></el-table-column>
<el-table-column prop="sort" label="序号" width="80" align="center">
@ -224,7 +225,8 @@ export default {
searchTimer: null,
isToPoint: false, //
visibleLoading: false//
visibleLoading: false, //
listLoading:false,//
};
},
computed: {
@ -249,12 +251,12 @@ export default {
}
},
watch: {
projectJudgmentData: {
handler(newValue) {
console.log("newValue:", newValue);
},
deep: true
},
// projectJudgmentData: {
// handler(newValue) {
// console.log("newValue", newValue);
// },
// deep: true
// },
judgementpointsquery(n) {
clearTimeout(this.searchTimer);
this.searchTimer = setTimeout(() => {
@ -735,16 +737,23 @@ export default {
},
// ,
listAgain() {
this.listLoading = true
let scrollTop = this.$refs.main.scrollTop
this.projectJudgmentData = []
this.$refs.main.scrollTop = scrollTop
this.$get(`${this.api.getProjectDetail}?projectId=${this.projectId}`).then(res => {
let { projectManage, projectJudgmentVos } = res;
this.projectJudgmentData = projectJudgmentVos;
this.projectJudgmentData.map((e, i) => {
e.sort = i + 1;
projectJudgmentVos.map((e,i)=>{
this.$set(e,'sort',i+1)//
this.$set(e,'name',e.name+"?")
this.$set(e,'name',e.name.slice(0,e.name.length-1)) //
});
});
this.projectJudgmentData = projectJudgmentVos;
this.listLoading = false
}).catch(()=>{
this.listLoading = false
})
}
}
};
</script>

Loading…
Cancel
Save