Angular DataTable(预期2-3个参数,但得到5.ts(2554))

时间:2019-06-01 09:21:08

标签: angular7

this.dtOptions = {
      pagingType: 'full_numbers',
      responsive: true,
      serverSide: true,
      pageLength: 10,
      processing: true,
      ajax: (dataTablesParameters: any, callback) => {
          that.http
             .post<DataTablesResponse>(this.apiURL + '/orderdata',{ tablename: 'completed_orders', columnname: 'file_stage',columnvalue: '011 Cancelled' },{ headers: this.httpOptions },dataTablesParameters, {}).subscribe(resp => {
                  that.persons = resp.data;
                  console.log('heelo',resp);
                  callback({
                    data: []
                  });
              });
      },
      columns:[
        {data:'clientname'}, {data:'clientfile'},
        {data:'property'}, {data:'order_date'},
        {data:'service_type'}, {data:'priority'},
        {data:'due_date'}, {data:'prev_file_stage'},
        {data:'pre_exam_prep'}, {data:'date_ready_for_exam'},
        {data:'examiner'}, {data:'reviewer'},
        {data:'post_exam_prep'}, {data:'production_time'},
        {data:'notes'}, {data:'prod_system'},
        {data:'file_stage'}, {data:'std_pricing'},
        {data:'billing_code'}, {data:'bill_amount'}
    ]
  };

0 个答案:

没有答案