2 lines
8.7 KiB
JavaScript
2 lines
8.7 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0793805e"],{"050a":function(e,t,s){"use strict";s.r(t);var l=function(){var e=this,t=e._self._c;return t("el-row",[t("el-col",{attrs:{span:24}},[t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("系统配置")]),t("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:"small"},on:{click:e.openEditSystemInfoInfoModel}},[e._v(" 修改 ")])],1),t("div",{staticClass:"card-body"},[t("el-row",[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("标题名称:")]),t("span",[e._v(e._s(e.systemInfoManageInfo.systemTitle))])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("副标题:")]),t("span",[e._v(e._s(e.systemInfoManageInfo.subSystemTitle))])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("简写名称:")]),t("span",[e._v(e._s(e.systemInfoManageInfo.systemSimpleTitle))])])])],1),t("el-row",[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("公司名称:")]),t("span",[e._v(e._s(e.systemInfoManageInfo.companyName))])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("logo地址:")]),t("span",[e._v(e._s(e.systemInfoManageInfo.logoUrl))])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("静态url:")]),t("span",[e._v(e._s(e.systemInfoManageInfo.imgUrl))])])])],1),t("el-row",[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("默认小区编号:")]),t("span",[e._v(e._s(e.systemInfoManageInfo.defaultCommunityId))])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("业主标题:")]),t("span",[e._v(e._s(e.systemInfoManageInfo.ownerTitle))])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("物业手机标题:")]),t("span",[e._v(e._s(e.systemInfoManageInfo.propertyTitle))])])])],1),t("el-row",[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("qq地图key:")]),t("span",[e._v(e._s(e.systemInfoManageInfo.qqMapKey))])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("商城地址:")]),t("span",[e._v(e._s(e.systemInfoManageInfo.mallUrl))])])])],1)],1)]),t("edit-system-info",{ref:"editSystemInfo"})],1)],1)},o=[],a=s("b775");function n(e){return new Promise((t,s)=>{Object(a["a"])({url:"/system.listSystemInfo",method:"get",params:e}).then(e=>{const s=e.data;t(s)}).catch(e=>{s(e)})})}function i(e){return new Promise((t,s)=>{Object(a["a"])({url:"/system.updateSystemInfo",method:"post",data:e}).then(e=>{const s=e.data;t(s)}).catch(e=>{s(e)})})}var m=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:"修改系统配置",visible:e.dialogVisible,width:"70%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("el-form",{ref:"form",attrs:{model:e.editSystemInfoInfo,"label-width":"120px"}},[t("el-form-item",{attrs:{label:"标题名称",prop:"systemTitle"}},[t("el-input",{attrs:{placeholder:"必填,请填写标题名称"},model:{value:e.editSystemInfoInfo.systemTitle,callback:function(t){e.$set(e.editSystemInfoInfo,"systemTitle",t)},expression:"editSystemInfoInfo.systemTitle"}})],1),t("el-form-item",{attrs:{label:"副标题",prop:"subSystemTitle"}},[t("el-input",{attrs:{placeholder:"必填,请填写副标题"},model:{value:e.editSystemInfoInfo.subSystemTitle,callback:function(t){e.$set(e.editSystemInfoInfo,"subSystemTitle",t)},expression:"editSystemInfoInfo.subSystemTitle"}})],1),t("el-form-item",{attrs:{label:"简写标题",prop:"systemSimpleTitle"}},[t("el-input",{attrs:{placeholder:"必填,请填写简写标题"},model:{value:e.editSystemInfoInfo.systemSimpleTitle,callback:function(t){e.$set(e.editSystemInfoInfo,"systemSimpleTitle",t)},expression:"editSystemInfoInfo.systemSimpleTitle"}})],1),t("el-form-item",{attrs:{label:"公司名称",prop:"companyName"}},[t("el-input",{attrs:{placeholder:"必填,请填写公司名称"},model:{value:e.editSystemInfoInfo.companyName,callback:function(t){e.$set(e.editSystemInfoInfo,"companyName",t)},expression:"editSystemInfoInfo.companyName"}})],1),t("el-form-item",{attrs:{label:"logo地址",prop:"logoUrl"}},[t("el-input",{attrs:{placeholder:"必填,请填写logo地址"},model:{value:e.editSystemInfoInfo.logoUrl,callback:function(t){e.$set(e.editSystemInfoInfo,"logoUrl",t)},expression:"editSystemInfoInfo.logoUrl"}})],1),t("el-form-item",{attrs:{label:"静态url",prop:"imgUrl"}},[t("el-input",{attrs:{placeholder:"必填,请填写静态url"},model:{value:e.editSystemInfoInfo.imgUrl,callback:function(t){e.$set(e.editSystemInfoInfo,"imgUrl",t)},expression:"editSystemInfoInfo.imgUrl"}})],1),t("el-form-item",{attrs:{label:"默认小区编号",prop:"defaultCommunityId"}},[t("el-input",{attrs:{placeholder:"必填,请填写默认小区编号"},model:{value:e.editSystemInfoInfo.defaultCommunityId,callback:function(t){e.$set(e.editSystemInfoInfo,"defaultCommunityId",t)},expression:"editSystemInfoInfo.defaultCommunityId"}})],1),t("el-form-item",{attrs:{label:"业主标题",prop:"ownerTitle"}},[t("el-input",{attrs:{placeholder:"必填,请填写业主标题"},model:{value:e.editSystemInfoInfo.ownerTitle,callback:function(t){e.$set(e.editSystemInfoInfo,"ownerTitle",t)},expression:"editSystemInfoInfo.ownerTitle"}})],1),t("el-form-item",{attrs:{label:"物业手机标题",prop:"propertyTitle"}},[t("el-input",{attrs:{placeholder:"必填,请填写物业手机标题"},model:{value:e.editSystemInfoInfo.propertyTitle,callback:function(t){e.$set(e.editSystemInfoInfo,"propertyTitle",t)},expression:"editSystemInfoInfo.propertyTitle"}})],1),t("el-form-item",{attrs:{label:"qq地图key",prop:"qqMapKey"}},[t("el-input",{attrs:{placeholder:"必填,请填写qq地图key"},model:{value:e.editSystemInfoInfo.qqMapKey,callback:function(t){e.$set(e.editSystemInfoInfo,"qqMapKey",t)},expression:"editSystemInfoInfo.qqMapKey"}})],1),t("el-form-item",{attrs:{label:"商城地址",prop:"mallUrl"}},[t("el-input",{attrs:{placeholder:"必填,请填写商城地址"},model:{value:e.editSystemInfoInfo.mallUrl,callback:function(t){e.$set(e.editSystemInfoInfo,"mallUrl",t)},expression:"editSystemInfoInfo.mallUrl"}})],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.editSystemInfo}},[e._v("保存")])],1)],1)},r=[],f={name:"EditSystemInfo",data(){return{dialogVisible:!1,editSystemInfoInfo:{systemId:"",systemTitle:"",subSystemTitle:"",companyName:"",logoUrl:"",imgUrl:"",defaultCommunityId:"",ownerTitle:"",propertyTitle:"",qqMapKey:"",mallUrl:"",systemSimpleTitle:""}}},methods:{open(e){this.dialogVisible=!0,e&&(this.editSystemInfoInfo={...e})},handleClose(e){this.$confirm("确认关闭?").then(t=>{e()}).catch(e=>{})},editSystemInfo(){this.validateForm()&&i(this.editSystemInfoInfo).then(e=>{0===e.code?(this.$message.success("修改成功"),this.dialogVisible=!1,this.$emit("refresh")):this.$message.error(e.msg)}).catch(e=>{console.error("请求失败处理",e),this.$message.error("修改失败")})},validateForm(){const e=["systemTitle","subSystemTitle","systemSimpleTitle","companyName","logoUrl","imgUrl","defaultCommunityId","ownerTitle","propertyTitle","qqMapKey","mallUrl"];for(const t of e)if(!this.editSystemInfoInfo[t])return this.$message.error(this.$refs.form.fields.find(e=>e.prop===t).label+"不能为空"),!1;return!0}}},c=f,d=(s("b7a9"),s("2877")),p=Object(d["a"])(c,m,r,!1,null,"938bb5fa",null),y=p.exports,I={name:"SystemInfoManage",components:{EditSystemInfo:y},data(){return{systemInfoManageInfo:{systemId:"",systemTitle:"",subSystemTitle:"",companyName:"",logoUrl:"",imgUrl:"",defaultCommunityId:"",ownerTitle:"",propertyTitle:"",qqMapKey:"",mallUrl:"",systemSimpleTitle:""}}},created(){this.listSystemInfos()},methods:{openEditSystemInfoInfoModel(){this.$refs.editSystemInfo.open(this.systemInfoManageInfo)},listSystemInfos(){const e={page:1,row:1};n(e).then(e=>{e.data&&e.data.length>0&&(this.systemInfoManageInfo=e.data[0])}).catch(e=>{console.error("请求失败处理",e)})}}},u=I,b=(s("77a5"),Object(d["a"])(u,l,o,!1,null,"7795774f",null));t["default"]=b.exports},"091f":function(e,t,s){},"77a5":function(e,t,s){"use strict";s("091f")},b7a9:function(e,t,s){"use strict";s("eca6")},eca6:function(e,t,s){}}]);
|
||
//# sourceMappingURL=chunk-0793805e.64dc4252.js.map
|