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

2 lines
6.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d4c4b95a"],{3521:function(t,e,s){},bfe8:function(t,e,s){"use strict";s.r(e);var o=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:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v(t._s(t.$t("systemGoldSetting.title")))]),e("div",{staticClass:"card-header-right"})]),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.systemGoldSettingManageInfo.systemGoldSettings,border:"",stripe:""}},[e("el-table-column",{attrs:{prop:"settingId",label:t.$t("systemGoldSetting.settingId"),align:"center",width:"120"}}),e("el-table-column",{attrs:{prop:"goldName",label:t.$t("systemGoldSetting.goldName"),align:"center"}}),e("el-table-column",{attrs:{prop:"goldType",label:t.$t("systemGoldSetting.goldType"),align:"center"}}),e("el-table-column",{attrs:{prop:"buyPrice",label:t.$t("systemGoldSetting.buyPrice"),align:"center"}}),e("el-table-column",{attrs:{prop:"usePrice",label:t.$t("systemGoldSetting.usePrice"),align:"center"}}),e("el-table-column",{attrs:{prop:"validity",label:t.$t("systemGoldSetting.validity"),align:"center"}}),e("el-table-column",{attrs:{prop:"state",label:t.$t("systemGoldSetting.state"),align:"center"}}),e("el-table-column",{attrs:{label:t.$t("systemGoldSetting.operation"),align:"center",width:"150"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("el-button-group",[e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.openEditSystemGoldSettingModel(s.row)}}},[t._v(" "+t._s(t.$t("systemGoldSetting.editButton"))+" ")])],1)]}}])})],1),e("el-pagination",{staticClass:"pagination",attrs:{"current-page":t.systemGoldSettingManageInfo.conditions.page,"page-size":t.DEFAULT_ROWS,layout:"total, prev, pager, next",total:t.systemGoldSettingManageInfo.total},on:{"current-change":t.handleCurrentChange}})],1)],1)],1),e("edit-system-gold-setting",{ref:"editSystemGoldSetting"})],1)},i=[],l=s("b775");function a(t){return new Promise((e,s)=>{Object(l["a"])({url:"/systemGoldSetting/querySystemGoldSetting",method:"get",params:t}).then(t=>{const s=t.data;e(s)}).catch(t=>{s(t)})})}var n=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:t.$t("systemGoldSetting.editTitle"),visible:t.dialogVisible,width:"50%"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[e("el-form",{ref:"editForm",attrs:{model:t.formData,"label-width":"120px",rules:t.rules}},[e("el-form-item",{attrs:{label:t.$t("systemGoldSetting.goldName"),prop:"goldName"}},[e("el-input",{model:{value:t.formData.goldName,callback:function(e){t.$set(t.formData,"goldName",e)},expression:"formData.goldName"}})],1),e("el-form-item",{attrs:{label:t.$t("systemGoldSetting.goldType"),prop:"goldType"}},[e("el-input",{model:{value:t.formData.goldType,callback:function(e){t.$set(t.formData,"goldType",e)},expression:"formData.goldType"}})],1),e("el-form-item",{attrs:{label:t.$t("systemGoldSetting.buyPrice"),prop:"buyPrice"}},[e("el-input",{model:{value:t.formData.buyPrice,callback:function(e){t.$set(t.formData,"buyPrice",e)},expression:"formData.buyPrice"}})],1),e("el-form-item",{attrs:{label:t.$t("systemGoldSetting.usePrice"),prop:"usePrice"}},[e("el-input",{model:{value:t.formData.usePrice,callback:function(e){t.$set(t.formData,"usePrice",e)},expression:"formData.usePrice"}})],1),e("el-form-item",{attrs:{label:t.$t("systemGoldSetting.validity"),prop:"validity"}},[e("el-input",{model:{value:t.formData.validity,callback:function(e){t.$set(t.formData,"validity",e)},expression:"formData.validity"}})],1),e("el-form-item",{attrs:{label:t.$t("systemGoldSetting.state"),prop:"state"}},[e("el-input",{model:{value:t.formData.state,callback:function(e){t.$set(t.formData,"state",e)},expression:"formData.state"}})],1)],1),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.submitForm}},[t._v(t._s(t.$t("common.confirm")))])],1)],1)},r=[],d={name:"EditSystemGoldSetting",data(){return{dialogVisible:!1,formData:{settingId:"",goldName:"",goldType:"",buyPrice:"",usePrice:"",validity:"",state:""},rules:{goldName:[{required:!0,message:this.$t("systemGoldSetting.rules.goldNameRequired"),trigger:"blur"}],goldType:[{required:!0,message:this.$t("systemGoldSetting.rules.goldTypeRequired"),trigger:"blur"}]}}},methods:{open(t){t?this.formData=Object.assign({},t):this.resetForm(),this.dialogVisible=!0},resetForm(){this.formData={settingId:"",goldName:"",goldType:"",buyPrice:"",usePrice:"",validity:"",state:""}},handleClose(){this.$refs.editForm.resetFields()},submitForm(){this.$refs.editForm.validate(t=>{t&&(this.$emit("submit",this.formData),this.dialogVisible=!1)})}}},m=d,g=s("2877"),c=Object(g["a"])(m,n,r,!1,null,null,null),u=c.exports,y={name:"SystemGoldSettingManage",components:{EditSystemGoldSetting:u},data(){return{DEFAULT_PAGE:1,DEFAULT_ROWS:10,systemGoldSettingManageInfo:{systemGoldSettings:[],total:0,records:1,moreCondition:!1,settingId:"",conditions:{title:"",page:1,row:10}}}},created(){this.listSystemGoldSettings(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},methods:{listSystemGoldSettings(t,e){this.systemGoldSettingManageInfo.conditions.page=t,this.systemGoldSettingManageInfo.conditions.row=e,a(this.systemGoldSettingManageInfo.conditions).then(t=>{const e=t.data;this.systemGoldSettingManageInfo.total=e.total,this.systemGoldSettingManageInfo.records=e.records,this.systemGoldSettingManageInfo.systemGoldSettings=e.data}).catch(t=>{console.error("请求失败:",t)})},handleCurrentChange(t){this.listSystemGoldSettings(t,this.DEFAULT_ROWS)},openEditSystemGoldSettingModel(t){this.$refs.editSystemGoldSetting.open(t)},querySystemGoldSettingMethod(){this.listSystemGoldSettings(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},moreCondition(){console.log(this.systemGoldSettingManageInfo.moreCondition),this.systemGoldSettingManageInfo.moreCondition=!this.systemGoldSettingManageInfo.moreCondition}}},p=y,f=(s("cf52"),Object(g["a"])(p,o,i,!1,null,"4eb3d77c",null));e["default"]=f.exports},cf52:function(t,e,s){"use strict";s("3521")}}]);
//# sourceMappingURL=chunk-d4c4b95a.a951f9f9.js.map