Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-102ff25c.75c3f386.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
8.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-102ff25c","chunk-2d0ea097"],{"3f30":function(t,e,a){},"5c15":function(t,e,a){"use strict";var n=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:t.$t("common.confirm"),visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[e("div",{staticStyle:{"text-align":"center"}},[e("p",[t._v(t._s(t.$t("communityManage.confirmDeleteCommunity")))])]),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v(t._s(t.$t("common.cancel")))]),e("el-button",{attrs:{type:"primary"},on:{click:t.deleteCommunity}},[t._v(t._s(t.$t("common.confirm")))])],1)])},o=[],i=a("d5be"),r={name:"DeleteCommunity",data(){return{dialogVisible:!1,deleteCommunityInfo:{}}},methods:{open(t){this.dialogVisible=!0,this.deleteCommunityInfo={...t}},handleClose(){this.deleteCommunityInfo={}},deleteCommunity(){Object(i["a"])(this.deleteCommunityInfo).then(t=>{0===t.code?(this.$message.success(this.$t("common.submitSuccess")),this.dialogVisible=!1,this.$emit("deleted")):this.$message.error(t.msg)}).catch(t=>{console.error("请求失败:",t),this.$message.error(this.$t("common.deleteFailed"))})}}},s=r,l=(a("ffd8"),a("2877")),u=Object(l["a"])(s,n,o,!1,null,"7c4b6a74",null);e["a"]=u.exports},"8c4d":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("未审核小区")])]),e("div",{staticClass:"table-container"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.auditCommunityManageInfo.communitys,border:""}},[e("el-table-column",{attrs:{prop:"communityId",label:"小区ID",width:"120"}}),e("el-table-column",{attrs:{prop:"name",label:"小区名称",width:"180"}}),e("el-table-column",{attrs:{prop:"address",label:"小区地址"}}),e("el-table-column",{attrs:{prop:"nearbyLandmarks",label:"附近地标",width:"150"}}),e("el-table-column",{attrs:{prop:"cityCode",label:"城市编码",width:"120"}}),e("el-table-column",{attrs:{prop:"mapX",label:"小区维度",width:"120"}}),e("el-table-column",{attrs:{prop:"mapY",label:"小区经度",width:"120"}}),e("el-table-column",{attrs:{prop:"stateName",label:"状态",width:"100"}}),e("el-table-column",{attrs:{label:"操作",width:"180",align:"right"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t._openAuditCommunityModal(a.row)}}},[t._v("审核")]),e("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(e){return t._openDeleteCommunityModal(a.row)}}},[t._v("删除")])]}}])})],1),e("el-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{"current-page":t.currentPage,"page-size":t.pageSize,total:t.auditCommunityManageInfo.total,layout:"total, prev, pager, next, jumper"},on:{"current-change":t.handleCurrentChange}})],1)])],1)],1),e("delete-community",{ref:"deleteCommunity"}),e("audit-component",{ref:"auditComponent"})],1)},o=[],i=a("b775");function r(t){return new Promise((e,a)=>{Object(i["a"])({url:"/auditCommunityManage/list",method:"get",params:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function s(t){return new Promise((e,a)=>{Object(i["a"])({url:"/auditCommunityManage/audit",method:"post",data:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}var l=a("5c15"),u=a("8fa4"),c={name:"AuditCommunityManage",components:{DeleteCommunity:l["a"],AuditComponent:u["default"]},data(){return{auditCommunityManageInfo:{communitys:[],total:0,records:1,currentCommunityId:""},currentPage:1,pageSize:10}},created(){this._listCommunitys(this.currentPage,this.pageSize)},methods:{handleCurrentChange(t){this.currentPage=t,this._listCommunitys(this.currentPage,this.pageSize)},async _listCommunitys(t,e){try{const a={page:t,row:e},n=await r(a);this.auditCommunityManageInfo.total=n.total,this.auditCommunityManageInfo.records=n.records,this.auditCommunityManageInfo.communitys=n.communitys}catch(a){console.error("请求失败:",a)}},_openAuditCommunityModal(t){this.auditCommunityManageInfo.currentCommunityId=t.communityId,this.$refs.auditComponent.open()},async _auditCommunityState(t){try{t.communityId=this.auditCommunityManageInfo.currentCommunityId,await s(t),this._listCommunitys(this.currentPage,this.pageSize)}catch(e){console.error("审核失败:",e)}},_openDeleteCommunityModal(t){this.$refs.deleteCommunity.open(t)}}},m=c,d=(a("b216"),a("2877")),h=Object(d["a"])(m,n,o,!1,null,"695ef710",null);e["default"]=h.exports},"8fa4":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:"审核信息",visible:t.dialogVisible,width:"50%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("el-form",{ref:"form",attrs:{model:t.auditInfo,"label-width":"100px"}},[e("el-form-item",{attrs:{label:"审核状态",prop:"state"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请审核"},model:{value:t.auditInfo.state,callback:function(e){t.$set(t.auditInfo,"state",e)},expression:"auditInfo.state"}},[e("el-option",{attrs:{label:"同意",value:"1100"}}),e("el-option",{attrs:{label:"拒绝",value:"1200"}})],1)],1),e("el-form-item",{attrs:{label:"原因",prop:"remark"}},[e("el-input",{attrs:{type:"textarea",placeholder:"必填,请填写原因",rows:4,maxlength:"200","show-word-limit":""},model:{value:t.auditInfo.remark,callback:function(e){t.$set(t.auditInfo,"remark",e)},expression:"auditInfo.remark"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.handleClose}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t._auditSubmit}},[t._v("确 定")])],1)],1)},o=[],i={name:"Audit",data(){return{dialogVisible:!1,auditInfo:{state:"",remark:""}}},watch:{"auditInfo.state"(t){"1100"===t?this.auditInfo.remark="同意":"1200"===t&&(this.auditInfo.remark="")}},methods:{open(){this.dialogVisible=!0,this.clearAuditInfo()},handleClose(){this.dialogVisible=!1,this.clearAuditInfo()},auditValidate(){return this.auditInfo.state?this.auditInfo.remark?!(this.auditInfo.remark.length>200)||(this.$message.error("原因内容不能超过200字"),!1):(this.$message.error("原因内容不能为空"),!1):(this.$message.error("审核状态不能为空"),!1)},_auditSubmit(){this.auditValidate()&&(this.$emit("auditNotify",{state:this.auditInfo.state,remark:this.auditInfo.remark}),this.handleClose())},clearAuditInfo(){this.auditInfo={state:"",remark:""}}}},r=i,s=a("2877"),l=Object(s["a"])(r,n,o,!1,null,null,null);e["default"]=l.exports},b216:function(t,e,a){"use strict";a("3f30")},d5be:function(t,e,a){"use strict";a.d(e,"e",(function(){return o})),a.d(e,"g",(function(){return i})),a.d(e,"h",(function(){return r})),a.d(e,"a",(function(){return s})),a.d(e,"f",(function(){return l})),a.d(e,"b",(function(){return u})),a.d(e,"c",(function(){return c})),a.d(e,"d",(function(){return m}));var n=a("b775");function o(t){return new Promise((e,a)=>{Object(n["a"])({url:"/communityManage/list",method:"get",params:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function i(t){return new Promise((e,a)=>{Object(n["a"])({url:"/communityManage/save",method:"post",data:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function r(t){return new Promise((e,a)=>{Object(n["a"])({url:"/communityManage/update",method:"post",data:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function s(t){return new Promise((e,a)=>{Object(n["a"])({url:"/communityManage/delete",method:"post",data:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function l(t){return new Promise((e,a)=>{Object(n["a"])({url:"/communityManage/recall",method:"post",data:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function u(t){return new Promise((e,a)=>{Object(n["a"])({url:"/communityManage/getAreas",method:"get",params:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function c(t){return new Promise((e,a)=>{Object(n["a"])({url:"/communityManage/getAttrSpec",method:"get",params:{specType:t}}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}function m(t){return new Promise((e,a)=>{Object(n["a"])({url:"/communityManage/getAttrValue",method:"get",params:{specCd:t}}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}},d8d8:function(t,e,a){},ffd8:function(t,e,a){"use strict";a("d8d8")}}]);
//# sourceMappingURL=chunk-102ff25c.75c3f386.js.map