需求:原始数据不能有操作,需要在里面加一个标识
- if (res.data.pmContractPayPlanList) {
- contractData.dataSource.pmContractPayPlanList =
- res.data.pmContractPayPlanList.map((item: any) => {
- item.isDelete = false
- return item
- })
- }//这里用map是因为有返回值 forEach没有
- "{ index, record }">
- <span v-if="record.isDelete == false">span>
- <MinusCircleOutlined v-else @click="deleteRow(index, record, dataSource)" />
-