new_naweigete/crmeb/public/admin/dist/system_static/js/chunk-a55531f6.10e01915.js

1 line
7.6 KiB
JavaScript
Raw Normal View History

2025-03-12 10:47:34 +08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-a55531f6"],{6317:function(t,e,i){},a9e7:function(t,e,i){i.d(e,"j",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"h",(function(){return r})),i.d(e,"i",(function(){return s})),i.d(e,"f",(function(){return l})),i.d(e,"g",(function(){return c})),i.d(e,"d",(function(){return d})),i.d(e,"a",(function(){return u})),i.d(e,"b",(function(){return m})),i.d(e,"e",(function(){return f})),i.d(e,"l",(function(){return p})),i.d(e,"k",(function(){return h}));var a=i("6b6c");function n(){return Object(a.a)({url:"/system/crud/menus",method:"get"})}function o(){return Object(a.a)({url:"/system/crud/column_type",method:"get"})}function r(t){return Object(a.a)({url:"/system/crud/file_path",method:"post",data:t})}function s(t){return Object(a.a)({url:"/system/crud",method:"get",params:t})}function l(t){return Object(a.a)({url:"/system/crud/".concat(t),method:"get"})}function c(t){return Object(a.a)({url:"/system/crud/download/".concat(t),method:"get"})}function d(t){return Object(a.a)({url:"/system/crud/data_dictionary",method:"get",params:t})}function u(){return Object(a.a)({url:"/system/crud/association_table",method:"get"})}function m(t){return Object(a.a)({url:"/system/crud/association_table/".concat(t),method:"get"})}function f(t){return Object(a.a)({url:"/system/crud/data_dictionary/".concat(t),method:"get"})}function p(t,e){return Object(a.a)({url:"/system/crud/data_dictionary/".concat(t),method:"post",data:e})}function h(t,e){return Object(a.a)({url:"/system/crud/save_file/".concat(t),method:"post",data:e})}},cdfd:function(t,e,i){i("6317")},cfa3:function(t,e,i){i.r(e),i("b0c0");var a=i("5530"),n=(i("14d9"),i("a434"),i("2f62")),o=i("a9e7");a={name:"user_level",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,from:{name:"",page:1,limit:15},dictionaryList:[],optionsModal:!1,dictionaryName:"",optionsList:[],levelLists:[],total:0,FromData:null,imgName:"",visible:!1,titleType:"level",dictionaryId:0}},created:function(){this.getCrudDataDictionary()},computed:Object(a.a)(Object(a.a)({},Object(n.c)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{beforeChange:function(){this.getCrudDataDictionary()},addOneOptions:function(){this.optionsList.push({label:"",value:""})},delOneOptions:function(t){this.optionsList.splice(t,1)},eidtOptions:function(t){var e=this;this.dictionaryId=t,this.optionsModal=!0,Object(o.e)(this.dictionaryId).then((function(t){e.dictionaryName=t.data.name,e.optionsList=t.data.value||[{label:"",value:""}]}))},addOptions:function(){var t=this,e={name:this.dictionaryName,value:this.optionsList};Object(o.l)(this.dictionaryId,e).then((function(e){t.optionsModal=!1,t.dictionaryId=0,t.dictionaryName="",t.getCrudDataDictionary(),t.$message.success(e.msg)})).catch((function(e){t.$message.error(e.msg)}))},getCrudDataDictionary:function(){var t=this;Object(o.d)(this.from).then((function(e){t.dictionaryList=e.data.list,t.total=e.data.count}))},del:function(t,e,i){var a=this;e={title:e,num:i,url:"system/crud/data_dictionary/".concat(t.id),method:"delete",ids:""};this.$modalSure(e).then((function(t){a.$message.success(t.msg),a.getCrudDataDictionary()})).catch((function(t){a.$message.error(t.msg)}))},add:function(){this.optionsModal=!0,this.dictionaryId=0,this.dictionaryName="",this.optionsList=[{label:"",value:""}]},searchs:function(){this.from.page=1,this.getCrudDataDictionary()},submitFail:function(){this.getList()}}},i("cdfd"),n=i("2877"),i=Object(n.a)(a,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("el-form",{ref:"levelFrom",attrs:{model:t.from,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"字典名称:","label-for":"name"}},[e("el-input",{staticClass:"form_content_width",attrs:{clearab