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

Loading…
Cancel
Save