返回上一步回显问题

lijinlong^2
吕天方 1 year ago
parent 3c93731fe2
commit 4be2244002

@ -402,20 +402,20 @@ export default {
// mydict: (state) => state.user.mydict, // mydict: (state) => state.user.mydict,
}), }),
}, },
watch:{ // watch:{
tableData:{ // tableData:{
handler(newData,oldData){ // handler(newData,oldData){
newData.map((item)=>{ // newData.map((item)=>{
if(item.isPoint == 1) { // if(item.isPoint == 1) {
this.$nextTick(() => { // this.$nextTick(() => {
this.$refs.multipleTable.toggleRowSelection(item,false); // this.$refs.multipleTable.toggleRowSelection(item,false);
}); // });
} // }
}) // })
}, // },
deep:true, // deep:true,
} // }
}, // },
methods: { methods: {
// //
selectFirm(){ selectFirm(){
@ -423,15 +423,6 @@ export default {
this.nextStep = false; this.nextStep = false;
this.filtrate(); this.filtrate();
this.nextText = "下一步"; this.nextText = "下一步";
// this.multipleSelection.forEach((_item)=>{
// this.tableData.map((item)=>{
// if(_item.uscCode == item.uscCode){
// this.$nextTick(() => {
// this.$refs.multipleTable.toggleRowSelection(item);
// });
// }
// })
// })
this.multipleSelection.map((item)=>{ this.multipleSelection.map((item)=>{
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.multipleTable.toggleRowSelection(item); this.$refs.multipleTable.toggleRowSelection(item);
@ -559,7 +550,6 @@ export default {
let count = 0; let count = 0;
let data = await this.$api.yingji.bPlanEnterpriseList(); let data = await this.$api.yingji.bPlanEnterpriseList();
this.selectList = data.data; this.selectList = data.data;
// console.log(data)
data.data.map((item) => { data.data.map((item) => {
item["uscCode"] = item.enterpriseId; item["uscCode"] = item.enterpriseId;
this.$nextTick(() => { this.$nextTick(() => {

Loading…
Cancel
Save