1 line
20 KiB
Plaintext
1 line
20 KiB
Plaintext
|
|
webpackJsonp([9],{"+/MR":function(t,e){},"457U":function(t,e){},"5FmO":function(t,e){},"7ewL":function(t,e,n){"use strict";var r=n("LTzH"),o=n("VqY/"),i={findByType:function(t){var e=Array.isArray(t)?t.join(","):t;return r.a.get(o.a.API_URL+"resourceManage/config?configData="+e).then(function(e){return Array.isArray(t)?e.data.data:e.data.data[t]})},findArticleType:function(){return this.findByType("articleType")}};e.a=i},"91sB":function(t,e){},CndG:function(t,e,n){"use strict";var r=n("LTzH"),o=n("VqY/"),i={getUserInfo:function(){return r.a.get(o.a.API_URL+"user/present").then(function(t){return t.data})},getRelatedAccount:function(){return r.a.get(o.a.API_URL+"account/list").then(function(t){return t.data})},getCurrentAccount:function(){return r.a.get(o.a.API_URL+"account/present").then(function(t){return t.data})},switchAccount:function(t){return r.a.put(o.a.API_URL+"account/present/shift",{accountId:t}).then(function(t){return t.data})}};e.a=i},IcnI:function(t,e,n){"use strict";var r,o=n("yf3K"),i=n("bSIt"),a=n("a3Yh"),u=n.n(a),c=n("Klf7"),s=n.n(c),l=n("7ewL"),d=n("CndG"),p={state:{fetchLoading:!1,title:"",user:{userName:null},adShapeList:[],accountList:[],resourcePlatformList:[],productList:[],editTemplateData:{},currentAccount:"",isAdmin:!1},getters:{fetchLoading:function(t){return t.fetchLoading},userCookie:function(t){return t.user},resourcePlatformList:function(t){return t.resourcePlatformList},productList:function(t){return t.productList},adShapeList:function(t){return t.adShapeList},accountList:function(t){return t.accountList},currentAccount:function(t){return t.currentAccount},user:function(t){return t.user},editTemplateData:function(t){return t.editTemplateData},isAdmin:function(t){return t.isAdmin}},actions:{FETCH_LOADING:function(t,e){(0,t.commit)("loading",e)},dicInit:function(t){var e=t.commit;l.a.findByType(["resourcePlatform","product","adShape"]).then(function(t){e("dicInit",{resourcePlatformList:t.resourcePlatform,productList:t.product,adShapeList:t.adShape})})},getRelatedAccount:function(t,e){var n=t.commit;d.a.getRelatedAccount().then(function(t){n("accountList",t.data)})},editTemplate:function(t,e){(0,t.commit)("editTemplate",e)},userLogin:function(t){var e=t.commit;d.a.getUserInfo().then(function(t){200===t.status&&(s.a.set("UserName",t.data.name,{expires:"30m"}),e("userLogin",{userName:t.data.name}),e("isAdmin",1===t.data.role))})},getCurrentAccount:function(t){var e=t.commit;d.a.getCurrentAccount().then(function(t){e("currentAccount",t.data.accountName)})}},mutations:(r={},u()(r,"loading",function(t,e){t.fetchLoading=e}),u()(r,"userLogin",function(t,e){t.user=e}),u()(r,"userLogout",function(t,e){t.user=e}),u()(r,"accountList",function(t,e){t.accountList=e}),u()(r,"editTemplate",function(t,e){t.editTemplateData=e}),u()(r,"dicInit",function(t,e){t.adShapeList=e.adShapeList,t.resourcePlatformList=e.resourcePlatformList,t.productList=e.productList}),u()(r,"currentAccount",function(t,e){t.currentAccount=e}),u()(r,"isAdmin",function(t,e){t.isAdmin=e}),r)},h=n("Bjlo").Promise;window.Promise||(window.Promise=h),o.default.use(i.a);var f=new i.a.Store({modules:{app:p}});e.a=f},L6Yq:function(t,e){t.exports="data:image/gif;base64,R0lGODlhlgCWALMAAK3M2f/Hw5GLjLWnovns4fDg1p6wuYZ7e97RyKCamsS3sH9wcNHFvXppaf/06Lrl9SH5BAAAAAAALAAAAACWAJYAAAT/8MlJq7046827/2AojmRpnmiqrmzrvnAsz3Rt37gK5HxfAoLGzkcsYgyHhnJobBKRyijTSbUBo9iqlnbFZrdgl2Hh9YbPKUCybEa7Rwl2efF2A6YatXxePwMWCR1je2UHfWB/DXQbQYSFh1trDQYZeo6PkFSNSgJHl3KdmU1xXngPm59eoaJPbJQTlqllq6w8iZgPt7KztT6SZTsGu3uBvTmoZQnCw3LFxjbLzNLOzzO60sOv1TO/2Lva2zCk3szg4S0A5Njm5yvd6qns7Sjj8Lum8ybp9szU+Sfv+KUSIO+fh0ECvS0oaPAImYTwADXcgBAiv4UTLXSxCPEAvnwV/zlaZBgOmUiLtNrFOnnS0LxrLFt+ZAUz5skFMyHVtHkzZ52dPFsa2xe0aIOUkAIaZUnyjMmlNv29iQbVKMafVbM2ONDUCFCtPLkiegoWKkGfNQDUK8tWUdcYIduWvdpD7UO5ZQWg5XIXL1S6ReL6NWrgzh0DBhIIcMklQV97Cw5IfqxQwAAFChgwQICAgYIBAignfPvDQGjIlhkUIOCgtWsHBTw73gVI9evbrwkwWMuPsYuN8AQwYI27eGsCCHgnQ2C8uesCAyDu1TfbW4ICzrPDHiD6unbtBciWuwFl2AEG37+Hx3KAefrv0dUhnUH1UwLi77XHv58/PQNyvllTnv8sCfT3ngIFGpieAtjgRB4zAygo4YTNxZdNDl8lQ+GGHLZmYTx1iVYIfh2WaKB4hSw2H32fuGfii/khwMx0LSgVhQIw5pjfh5esSINy
|