|
@@ -131,6 +131,9 @@ class SiteSupervisionAllSearch extends BaseWidget {
|
|
|
this.domObj.find(".btn_exportExcel").off().click(e => {
|
|
|
this.domObj.find(".buttons-excel").trigger("click");
|
|
|
});
|
|
|
+ this.domObj.find(".btn_delete").off().click(e => {
|
|
|
+ this.deleteSiteSupervisionList();
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
|
|
@@ -291,7 +294,7 @@ class SiteSupervisionAllSearch extends BaseWidget {
|
|
|
dataTable: that.dataTable,
|
|
|
elementId: "SiteSupervisionAllSearchinfodata",
|
|
|
url: that.config.getRushList,
|
|
|
- isCheck: false,
|
|
|
+
|
|
|
searchInfo: that.searchInfo,
|
|
|
displayTitle: ["工地名称", "工地类型", "施工单位", "工地负责人", "主管单位", "主管人", "施工地点", "描述", '状态'],
|
|
|
displayField: ["siteName", "siteTypeName", "constructionUnit", "personInCharge", "manageUnit", "manager", "constructionAddress", "description", "constructionStateName"],
|
|
@@ -326,7 +329,20 @@ class SiteSupervisionAllSearch extends BaseWidget {
|
|
|
}
|
|
|
that.dataTable = this.ajaxSend.DataTables_check(option);
|
|
|
}
|
|
|
-
|
|
|
+ deleteSiteSupervisionList(){
|
|
|
+ var senddata = [];
|
|
|
+ this.dataTable.aExtentData.checkCurrentData.forEach(element => {
|
|
|
+ senddata.push(element.id);
|
|
|
+ });
|
|
|
+ this.ajaxSend.sendAjax(this, senddata, this.config.deleteSiteSupervisionList, this.ajaxSend.type.delete, function (results) {
|
|
|
+ if (results.code != 1) {
|
|
|
+ this.toast.Show(results.message);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.toast.Show(results.message);
|
|
|
+ this.getsiteSupervisionList();
|
|
|
+ }.bind(this))
|
|
|
+ }
|
|
|
|
|
|
* 销毁对象
|
|
|
*/
|