新版交易所前段管理后台
1
jhzh
2025-08-18 1107fcd6f49bf9543b23e1b74160f2dc9162bb3d
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-54d099f1"],{"20ca":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));const r=(t,e)=>{let a,r=e||300;return function(){let e=arguments;a&&clearTimeout(a);let o=!a;a=setTimeout(()=>{a=null},r),o&&t.apply(this,e)}}},"295b":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"修改",modal:!1,"close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,"label-width":"80px"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.dataFormSubmit()}}},[2!==t.dataForm.type?a("el-form-item",{attrs:{label:"排序号",prop:"seq"}},[a("el-input-number",{attrs:{"controls-position":"right",min:0,label:"排序号"},model:{value:t.dataForm.seq,callback:function(e){t.$set(t.dataForm,"seq",e)},expression:"dataForm.seq"}})],1):t._e(),a("el-form-item",{attrs:{label:"状态",size:"mini",prop:"status"}},[a("el-radio-group",{model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}},[a("el-radio",{attrs:{label:0}},[t._v("下线")]),a("el-radio",{attrs:{label:1}},[t._v("正常")])],1)],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.dataFormSubmit()}}},[t._v("确定")])],1)],1)},o=[],i=a("20ca"),s={data(){return{visible:!1,dataForm:{addrOrderId:0,receiver:"",province:"",mobile:""}}},methods:{init(t){this.dataForm.addrOrderId=t,this.$http({url:this.$http.adornUrl("/prod/category/listCategory/"+this.dataForm.addrOrderId),method:"get",params:this.$http.adornParams()}).then(({data:t})=>{this.dataForm=t}).then(()=>{this.visible=!0,this.$nextTick(()=>{this.$refs["dataForm"].resetFields()})})},dataFormSubmit:Object(i["a"])((function(){this.$refs["dataForm"].validate(t=>{t&&this.$http({url:this.$http.adornUrl("/prod/category"),method:this.dataForm.currentId?"put":"post",data:this.$http.adornData({categoryId:this.dataForm.currentId||void 0})}).then(({data:t})=>{this.$message({message:"操作成功",type:"success",duration:1500,onClose:()=>{this.visible=!1,this.$emit("refreshDataList")}})})})}))}},l=s,n=a("2877"),d=Object(n["a"])(l,r,o,!1,null,null,null);e["default"]=d.exports}}]);