|  | @@ -92,8 +92,9 @@
 | 
	
		
			
				|  |  |          <span slot="operationSlot" slot-scope="text, record">
 | 
	
		
			
				|  |  |            <a href="javascript:void(0);" @click="editPlan(record)"> 编辑 </a>
 | 
	
		
			
				|  |  |            <a-divider type="vertical" />
 | 
	
		
			
				|  |  | -          <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否">
 | 
	
		
			
				|  |  | -            <a href="javascript:void(0);" @click="delPlan(record.id)" class="delRed"> 删除 </a>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +          <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="delPlan(record)">
 | 
	
		
			
				|  |  | +            <a href="javascript:void(0);" class="delRed"> 删除 </a>
 | 
	
		
			
				|  |  |            </a-popconfirm>
 | 
	
		
			
				|  |  |          </span>
 | 
	
		
			
				|  |  |        </a-table>
 | 
	
	
		
			
				|  | @@ -109,7 +110,7 @@
 | 
	
		
			
				|  |  |  import 'moment/locale/zh-cn'
 | 
	
		
			
				|  |  |  import JEllipsis from '@/components/jeecg/JEllipsis'
 | 
	
		
			
				|  |  |  import SavePlan from '@views/oa/my-plan/add/savePlan' // 子组件
 | 
	
		
			
				|  |  | -import { scheduleList, scheduleQueryById } from '@api/oa/cd-schedule'
 | 
	
		
			
				|  |  | +import { scheduleList, scheduleQueryById, scheduleDelete } from '@api/oa/cd-schedule'
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |      name: 'CalTable',
 | 
	
		
			
				|  |  |      components: { JEllipsis, SavePlan },
 | 
	
	
		
			
				|  | @@ -186,7 +187,7 @@ export default {
 | 
	
		
			
				|  |  |      // 分页查询 日程列表
 | 
	
		
			
				|  |  |          getplanList () {
 | 
	
		
			
				|  |  |              scheduleList(this.queryParam).then(res => {
 | 
	
		
			
				|  |  | -                console.log('>>>>', this.queryParam)
 | 
	
		
			
				|  |  | +                // console.log('>>>>', this.queryParam)
 | 
	
		
			
				|  |  |                  if (res.success) {
 | 
	
		
			
				|  |  |                      this.planList = res.result.records // 结果赋值给 planList
 | 
	
		
			
				|  |  |                      // console.log('当前页数据', this.planList)
 | 
	
	
		
			
				|  | @@ -199,24 +200,7 @@ export default {
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        // 选择功能的配置
 | 
	
		
			
				|  |  | -        // rowSelection1 () {
 | 
	
		
			
				|  |  | -        //     return {
 | 
	
		
			
				|  |  | -        //         // 选中项发生变化时的回调
 | 
	
		
			
				|  |  | -        //         onChange: (selectedRowKeys, selectedRows) => {
 | 
	
		
			
				|  |  | -        //             console.log('勾选项的id:', selectedRowKeys)
 | 
	
		
			
				|  |  | -        //             console.log('勾选项对象数组:', selectedRows)
 | 
	
		
			
				|  |  | -        //         },
 | 
	
		
			
				|  |  | -        //         // 选择框的默认属性配置
 | 
	
		
			
				|  |  | -        //         getCheckboxProps: record => ({
 | 
	
		
			
				|  |  | -        //             props: {
 | 
	
		
			
				|  |  | -        //                 disabled: record.title === 'Disabled User',
 | 
	
		
			
				|  |  | -        //                 // Column configuration not to be checked
 | 
	
		
			
				|  |  | -        //                 title: record.title
 | 
	
		
			
				|  |  | -        //             }
 | 
	
		
			
				|  |  | -        //         })
 | 
	
		
			
				|  |  | -        //     }
 | 
	
		
			
				|  |  | -        // },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          // 查询按钮
 | 
	
		
			
				|  |  |          searchQuery () {
 | 
	
		
			
				|  |  |              this.getplanList()
 | 
	
	
		
			
				|  | @@ -262,8 +246,16 @@ export default {
 | 
	
		
			
				|  |  |              this.queryParam.pageNo = pagination.current
 | 
	
		
			
				|  |  |              this.getplanList()
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        // 操作 删除
 | 
	
		
			
				|  |  | -        delPlan () {},
 | 
	
		
			
				|  |  | +        // 列表删除
 | 
	
		
			
				|  |  | +        delPlan (record) {
 | 
	
		
			
				|  |  | +            console.log('需要删除的数据>>>', record)
 | 
	
		
			
				|  |  | +            this.$nextTick(() => {
 | 
	
		
			
				|  |  | +                scheduleDelete({ id: record.id }).then(res => {
 | 
	
		
			
				|  |  | +                    this.getplanList()
 | 
	
		
			
				|  |  | +                    this.$message.success('删除成功')
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // 清空勾选
 | 
	
		
			
				|  |  |          onClearSelected () {},
 | 
	
	
		
			
				|  | @@ -277,6 +269,5 @@ export default {
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  <style lang="less" scoped>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  @import '~@assets/less/common.less';
 | 
	
		
			
				|  |  |  </style>
 |