text: //ajax远程调用
  import axios from '~Config/axios/httpConfig'
  //包装param参数
  import qs from 'qs'
  
  /* 不要使用 // 进行注释！！！！！！！！！！！！！！！！！！！！！！！！   */
  
  export const AnnouncementTagApi = {
      getPageQuery(queryArr,pagination,sorter) {
          var sortObj = {}
          if(sorter){
              sorter.field = sorter.order ;
          }
          var obj = {
              queryObj:JSON.stringify(queryArr),
              paginationObj:JSON.stringify(pagination),
              sortObj:JSON.stringify(sortObj),
          }
          //查询所有公告标签信息
          return axios.post('/emCtl/announcementTag/queryDtoPage',qs.stringify(obj)).then(res => res.data);
      },
      getItemById(announcementTagId){  //根据公告标签id查询公告标签信息
          var params = {
              announcementTagId:announcementTagId
          }
          return axios.post("/emCtl/announcementTag/queryOneById",qs.stringify(params)).then(res => res.data) ;
      },
      createByForm(formObj) {     //新增公告标签
          return axios.post("/emCtl/announcementTag/createByForm",qs.stringify(formObj)).then(res => res.data);;
      },
      updateByForm(formObj) {  //更新公告标签
          return axios.post("/emCtl/announcementTag/updateByForm",qs.stringify(formObj)).then(res => res.data) ;
      },
      batchDeleteByIds(ids) {  //批量删除
          var obj = {
              delIds:ids
          }
          return axios.post("/emCtl/announcementTag/batchDeleteByIds",qs.stringify(obj,{indices: false})).then(res => res.data) ;
      },
      deleteById(delId) {  //删除
          var obj = {
              delId:delId
          }
          return axios.post("/emCtl/announcementTag/deleteById",qs.stringify(obj,{indices: false})).then(res => res.data) ;
      }
  }
  
  