mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
4f79e10bd6
Former-commit-id: 376f94edd602d3dfed1cbada6e08361ee7b08e73
1 line
4.8 KiB
JavaScript
1 line
4.8 KiB
JavaScript
webpackJsonp([105],{XPkl:function(e,t,a){(e.exports=a("FZ+f")(!1)).push([e.i,"\n.left[data-v-170e04ba] {\n display: inline-block;\n margin-right: 20px;\n position: absolute;\n right: 110px;\n}\n",""])},d8Sr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("yfAY"),r=a("vMX1"),i=a("lGPi"),o=[],s={data:function(){return{groupId:this.$route.params.id,total:0,tableData:[],tableLoading:!1,modeTypes:[],orgTypes:[],statusType:[],personType:[],searchForm:{groupId:this.$route.params.id,rowsOfPage:10,currentPage:1},showImport:!1,dialogVisible:!1,dialogImageUrl:""}},created:function(){this.groupId?(this.fetchData(),this.fetchOptions()):this.$router.push({name:"VipDatabase"})},filters:{modeType:function(e){var t="";return o.some(function(a){if(a.value==e)return t=a.label,!0}),e||(t=""),t}},methods:{showImg:function(e){var t=this,a="";e.imagePath&&(a=e.imagePath.split("\\").join("/")),a?(this.dialogImageUrl="",this.$nextTick(function(){t.dialogImageUrl="/cwos-portal/portal/fileManager/imgByPath?path="+a,t.dialogVisible=!0})):this.$message.warning("无人员图片")},fetchOptions:function(){var e=this;n.b.modeType().then(function(t){e.modeTypes=t,o=t})},fetchData:function(){var e=this;this.tableLoading=!0,i.b.detail(this.searchForm).then(function(t){setTimeout(function(){e.tableData=t.data,e.total=t.total,e.tableLoading=!1},500)}).catch(function(t){e.tableLoading=!1})},goDetail:function(e){this.$router.push({name:"PersonEdit",params:{id:e.id}})},enable:function(e){var t=this;this.$set(e,"loading",!0),i.b.enable(e.id).then(function(a){t.$set(e,"loading",!1),t.fetchData()}).catch(function(a){t.$message.error(a.message),t.$set(e,"loading",!1),t.fetchData()})},disable:function(e){var t=this;this.$confirm("是否确定禁用?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$set(e,"loading",!0),i.b.disable(e.id).then(function(a){t.$set(e,"loading",!1),t.fetchData()}).catch(function(a){t.$set(e,"loading",!1),t.fetchData()})}).catch(function(){})},handleReset:function(){this.$refs.queryForm.resetFields(),this.fetchData()},handleQuery:function(){this.searchForm.currentPage=1,this.fetchData()},transterPerson:function(e){if(e){var t=e.split("#"),a=t.length>1?t[1]:"";return this.personType.some(function(e){if(e.value===a)return a=e.label,!0}),a}return""},transterCard:function(e){if(e){var t=e.split("#"),a=t.length>1?t[1]:"";return this.modeTypes.some(function(e){if(e.value===a)return a=e.label,!0}),a}return""}},components:{searchPage:r.a}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{attrs:{shadow:"hover"}},[a("search-page",{attrs:{pageSize:e.searchForm.rowsOfPage,pageNum:e.searchForm.currentPage,total:e.total},on:{"update:pageSize":function(t){return e.$set(e.searchForm,"rowsOfPage",t)},"update:page-size":function(t){return e.$set(e.searchForm,"rowsOfPage",t)},"update:pageNum":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:page-num":function(t){return e.$set(e.searchForm,"currentPage",t)},change:e.fetchData}},[a("el-form",{ref:"queryForm",attrs:{inline:!0,"label-width":"100px",model:e.searchForm}},[a("el-form-item",{attrs:{label:"姓名",prop:"name"}},[a("el-input",{model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name",t)},expression:"searchForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"编号",prop:"code"}},[a("el-input",{model:{value:e.searchForm.code,callback:function(t){e.$set(e.searchForm,"code",t)},expression:"searchForm.code"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[e._v("查询")]),e._v(" "),a("el-button",{on:{click:e.handleReset}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],staticClass:"table_expand",staticStyle:{"margin-top":"20px"},attrs:{data:e.tableData,stripe:""}},[a("el-table-column",{attrs:{prop:"name",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"code",label:"编号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("show-img",{attrs:{title:"人员图片",img:e.row.imagePath}})]}}])})],1)],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"现场照",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[e.dialogImageUrl?a("img",{staticStyle:{"max-height":"60vh","max-width":"800px",margin:"0 auto",display:"block"},attrs:{src:e.dialogImageUrl,alt:""}}):e._e()])],1)},staticRenderFns:[]};var c=a("VU/8")(s,l,!1,function(e){a("tDX+")},"data-v-170e04ba",null);t.default=c.exports},"tDX+":function(e,t,a){var n=a("XPkl");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("10e3e581",n,!0)}}); |