excutorList.js 864 Bytes
import create from 'dd-store';
import pageStore from '../meetingDetail/store';
create.Page({
  store: pageStore,
  data: {
    // action: "",
    currentTask: '',//store
  },
  onLoad(query) {
    // this.setData({
    //   action: query.action
    // })
  },
  deleteExcutor() {
    dd.confirm({
      title: '删除执行人',
      content: '确认删除执行人吗?',
      confirmButtonText: '确定',
      cancelButtonText: '取消',
      success: (res) => {
        if (res.confirm) {
          this.store.data.currentTask.acceptorInfo = null;
          this.store.data.currentTask.acceptorId = '';
          // //更新保存添加标示
          // if (this.data.action == 'update') {
          //   this.store.data.isDeleteAcceptorInfo = true;
          // }
          this.update();
          dd.navigateBack();
        }
      }
    });

  }
});