|
@@ -7,9 +7,11 @@ Page({
|
|
|
|
|
|
onLoad(e) {
|
|
|
this.data.busEnterpriseId = e.busEnterpriseId
|
|
|
+ },
|
|
|
+ onShow(){
|
|
|
+ console.log("TAG","onShow")
|
|
|
this.getEnterpriseDetails()
|
|
|
},
|
|
|
-
|
|
|
data: {
|
|
|
host: app.globalData.host,
|
|
|
busEnterpriseId: null,
|
|
@@ -107,5 +109,30 @@ Page({
|
|
|
url: '../qiyexqtable/qiyexqtable?busEnterpriseId='+this.data.busEnterpriseId,
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ bindViewQiYeDelete(){
|
|
|
+ wx.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '确认删除企业?',
|
|
|
+ complete: (res) => {
|
|
|
+ if (res.cancel) {
|
|
|
+
|
|
|
+ }else {
|
|
|
+ this.deleteEnterprise()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ deleteEnterprise() {
|
|
|
+ let obj = new Object();
|
|
|
+ obj.busEnterpriseId = this.data.busEnterpriseId
|
|
|
+ http.post("/system/AppEnterpriseController/deleteEnterprise", obj, this.deleteEnterpriseSuccess)
|
|
|
+ },
|
|
|
+ deleteEnterpriseSuccess(res) {
|
|
|
+ wx.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ })
|
|
|
+ if(res.code == 200){
|
|
|
+ wx.navigateBack()
|
|
|
+ }
|
|
|
+ },
|
|
|
})
|