Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@advertising-all/advertising-data-dict

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@advertising-all/advertising-data-dict - npm Package Compare versions

Comparing version 1.0.78 to 1.0.79

2

index.js

@@ -1,1 +0,1 @@

(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("_vmm_html"),require("Vue")):"function"===typeof define&&define.amd?define(["_vmm_html","Vue"],e):"object"===typeof exports?exports["main"]=e(require("_vmm_html"),require("Vue")):t["main"]=e(t["_vmm_html"],t["Vue"])})("undefined"!==typeof self?self:this,(function(t,e){return function(t){var e={};function a(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=t,a.c=e,a.d=function(t,e,i){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(i,n,function(e){return t[e]}.bind(null,n));return i},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s="8fc3")}({"033c":function(t,e,a){var i=a("322d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("b4e0").default;n("9cc22caa",i,!0,{sourceMap:!1,shadowMode:!1})},"0fc3":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"body",staticStyle:{padding:"10px","text-align":"left"}},[a("h1",{staticStyle:{"text-align":"center","margin-bottom":"10px"}},[t._v("系统数据字典")]),a("div",{staticStyle:{"margin-top":"20px","margin-left":"25px"}},[t._v(" 系统显示名称: "),a("Input",{staticStyle:{width:"200px"},attrs:{disabled:t.disabled},model:{value:t.dataDict.name,callback:function(e){t.$set(t.dataDict,"name",e)},expression:"dataDict.name"}}),a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:t.saveName}},[t._v("修改")])],1),a("div",{staticStyle:{"margin-top":"20px","margin-left":"25px"}},[t._v(" 系统菜单位置: "),a("Select",{staticStyle:{width:"200px"},model:{value:t.dataDict.menuPosition,callback:function(e){t.$set(t.dataDict,"menuPosition",e)},expression:"dataDict.menuPosition"}},t._l(["垂直菜单","横向菜单"],(function(e){return a("Option",{key:e,attrs:{value:e}},[t._v(t._s(e))])})),1),a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:t.updateMenuPosition}},[t._v("修改")])],1),a("div",{staticStyle:{"margin-top":"20px","margin-left":"25px"}},[t._v(" 广告系统域名: "),a("Input",{staticStyle:{width:"200px"},model:{value:t.dataDict.domain,callback:function(e){t.$set(t.dataDict,"domain",e)},expression:"dataDict.domain"}}),a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:t.saveDomain}},[t._v("修改")])],1),a("div",[a("addPicBut")],1)])},n=[],o=a("9ab4"),r=a("8bbf"),s=a.n(r),c=a("7f5d"),d=a("42a3"),l=a.n(d),u=a("9224"),p=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"body",staticStyle:{padding:"10px","text-align":"left"}},[a("div",[a("span",{staticStyle:{"margin-left":"1%"}},[t._v("系统登陆背景图:")]),a("Button",{staticStyle:{"margin-top":"10px"},attrs:{type:"primary"},on:{click:t.addDict}},[t._v("修改")]),a("Button",{staticStyle:{"margin-top":"10px","margin-left":"20px"},attrs:{type:"primary"},on:{click:t.preview}},[t._v("预览")]),a("Modal",{attrs:{width:"360"},model:{value:t.showModaladd,callback:function(e){t.showModaladd=e},expression:"showModaladd"}},[a("p",{staticStyle:{color:"#f60","text-align":"center"},attrs:{slot:"header"},slot:"header"},[t._v("图片信息")]),a("div",{staticStyle:{"text-align":"center"}},[a("Form",{ref:"",attrs:{"label-width":90}},[a("FormItem",{attrs:{label:"图片上传"}},[a("localUpload",{ref:"upload",on:{success:t.uploadSuccess}})],1)],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"text"},on:{click:t.cancelModal}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.addModal}},[t._v("确认")])],1)]),a("Modal",{model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[a("p",{staticStyle:{color:"#f60","text-align":"center"},attrs:{slot:"header"},slot:"header"},[t._v("图片信息")]),a("img",{staticStyle:{"margin-left":"20%",height:"180px",width:"320px"},attrs:{src:t.loginPic,alt:""}}),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary"},on:{click:t.ok}},[t._v("确认")])],1)])],1),a("div",[a("span",{staticStyle:{"margin-left":"1%"}},[t._v("系统首页背景图:")]),a("Button",{staticStyle:{"margin-top":"10px"},attrs:{type:"primary"},on:{click:t.addHome}},[t._v("修改")]),a("Button",{staticStyle:{"margin-top":"10px","margin-left":"20px"},attrs:{type:"primary"},on:{click:t.previewHomePic}},[t._v("预览")]),a("Modal",{attrs:{width:"360"},model:{value:t.showModalPicadd,callback:function(e){t.showModalPicadd=e},expression:"showModalPicadd"}},[a("p",{staticStyle:{color:"#f60","text-align":"center"},attrs:{slot:"header"},slot:"header"},[t._v("图片信息")]),a("div",{staticStyle:{"text-align":"center"}},[a("Form",{ref:"",attrs:{"label-width":90}},[a("FormItem",{attrs:{label:"图片上传"}},[a("localUpload",{ref:"upload",on:{success:t.uploadSuccessAll}})],1)],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"text"},on:{click:t.cancelModal}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.addSureModal}},[t._v("确认")])],1)]),a("Modal",{model:{value:t.modalHomePic,callback:function(e){t.modalHomePic=e},expression:"modalHomePic"}},[a("p",{staticStyle:{color:"#f60","text-align":"center"},attrs:{slot:"header"},slot:"header"},[t._v("图片信息")]),a("img",{staticStyle:{"margin-left":"20%",height:"180px",width:"320px"},attrs:{src:t.homePic,alt:""}}),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary"},on:{click:t.ok}},[t._v("确认")])],1)])],1)])},f=[];l.a.logger(u["a"]+" scenc");var m=s.a.extend({name:"homePic",title:"首页背景图",icon:"",type:"page",data(){return{modalLogPic:!1,modalHomePic:!1,modalPic:!1,homePic:{},homePicArr:[],showModal:!1,showModaladd:!1,loginPic:{},loginPicArr:[],showModalPic:!1,showModalPicadd:!1,picMessage:{},homePicMessage:{}}},components:{localUpload:()=>l.a.project.vueComponent("@advertising-all/resource-manager","upload")},watch:{},methods:{previewHomePic(){return Object(o["a"])(this,void 0,void 0,(function*(){this.modalHomePic=!0;const t=yield c["a"].logAPi.db.systemDataDict.find({filter:{}});this.homePic=t[0].hompicPath}))},preview(){return Object(o["a"])(this,void 0,void 0,(function*(){this.modalPic=!0;const t=yield c["a"].logAPi.db.systemDataDict.find({filter:{}});this.loginPic=t[0].loginPicPath}))},ok(){this.modalPic=!1,this.modalHomePic=!1},uploadSuccess(t){1===t.status?(this.picMessage=t.data,this.$Message.success("上传成功")):this.$Message.error("上传失败,请重试")},uploadSuccessAll(t){1===t.status?(this.homePicMessage=t.data,this.$Message.success("上传成功")):this.$Message.error("上传失败,请重试")},addDict(){this.homePic={},this.showModaladd=!0},addHome(){this.loginPic={},this.showModalPicadd=!0},cancelModal(){this.showModaladd=!1,this.showModalPicadd=!1,this.initData()},cancelModals(){this.showModalPic=!1,this.showModalPicadd=!1},addSureModal(){return Object(o["a"])(this,void 0,void 0,(function*(){yield c["a"].logAPi.db.systemDataDict.updateOne({filter:{id:this.homePicArr.id},update:{$set:{hompicPath:this.homePicMessage.path}},options:{upsert:!0}});this.showModalPicadd=!1,this.initData()}))},addModal(){return Object(o["a"])(this,void 0,void 0,(function*(){yield c["a"].logAPi.db.systemDataDict.updateOne({filter:{id:this.homePicArr.id},update:{$set:{loginPicPath:this.picMessage.path}},options:{upsert:!0}});this.showModaladd=!1,this.initData()}))},initData(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=yield c["a"].logAPi.db.systemDataDict.find({filter:{}});this.homePicArr=t}))}},created(){this.initData()}}),h=m,b=(a("99a9"),a("c9da")),v=Object(b["a"])(h,p,f,!1,null,"731d0204",null),g=v.exports;l.a.logger(u["a"]+" scenc");var y=s.a.extend({name:"dataDict",title:"系统信息字典",icon:"",type:"page",data(){return{dataDict:{}}},computed:{},components:{addPicBut:g},methods:{updateMenuPosition(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=yield c["a"].logAPi.db.systemDataDict.updateOne({filter:{id:this.dataDict.id},update:{$set:{menuPosition:this.dataDict.menuPosition}}});1==t.ok?(this.$Notice.success({title:"系统菜单位置修改成功!"}),this.initdata()):this.$Notice.warn({title:"系统菜单位置修改失败,请稍后重试!"})}))},saveDomain(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=this.dataDict.domain,e=yield c["a"].logAPi.db.systemDataDict.updateOne({filter:{id:this.dataDict.id},update:{$set:{domain:t}}});1==e.ok?(this.$Notice.success({title:"系统域名修改成功!"}),this.initdata()):this.$Notice.warn({title:"系统域名修改失败,请稍后重试!"})}))},saveName(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=yield c["a"].logAPi.db.systemDataDict.updateOne({filter:{id:this.dataDict.id},update:{$set:{name:this.dataDict.name}}});1==t.ok?(this.$Notice.success({title:"系统显示名称修改成功!"}),this.initdata()):this.$Notice.warn({title:"系统显示名称修改失败,请稍后重试!"})}))},initdata(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=yield c["a"].logAPi.db.systemDataDict.find({filter:{}});t.length>0&&(this.dataDict=t[0])}))}},created(){this.initdata()}}),x=y,_=(a("a325"),Object(b["a"])(x,i,n,!1,null,"466dafa2",null));e["default"]=_.exports},"13b2":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sessions={res:{client:{},server:{}}}},"1b87":function(t,e,a){var i=a("69cf");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("b4e0").default;n("582c80c3",i,!0,{sourceMap:!1,shadowMode:!1})},"1d15":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"body",staticStyle:{padding:"10px","text-align":"left"}},[a("h2",{staticStyle:{"text-align":"center"}},[t._v("业务数据字典")]),a("defaultAdvertisingImg"),a("commenSubColumn")],1)},n=[],o=a("9ab4"),r=a("8bbf"),s=a.n(r),c=a("42a3"),d=a.n(c),l=a("9224"),u=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"body",staticStyle:{padding:"10px","text-align":"left"}},[a("div",[a("span",{staticStyle:{display:"inline-block",width:"120px","text-align":"center"}},[t._v("缺省广告图片:")]),a("Button",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary"},on:{click:t.editImg}},[t._v("修改")]),a("Button",{attrs:{type:"primary"},on:{click:t.viewDefaultImg}},[t._v("预览")])],1),a("Modal",{attrs:{title:"图片信息"},model:{value:t.showImgModal,callback:function(e){t.showImgModal=e},expression:"showImgModal"}},[t.isEdit?a("div",[a("localUpload",{ref:"upload",on:{success:t.uploadSuccessAll}})],1):t._e(),t.isEdit?t._e():a("div",[a("img",{staticStyle:{display:"block",margin:"0 auto",height:"180px",width:"320px"},attrs:{src:t.defaultObj.defaultAdvertisingImg,alt:""}})]),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary"},on:{click:t.confirmModal}},[t._v("确认")])],1)])],1)},p=[],f=a("7f5d");d.a.logger(l["a"]+" scenc");var m=s.a.extend({name:"homePic",title:"首页背景图",icon:"",type:"page",data(){return{showImgModal:!1,isEdit:!1,defaultObj:{}}},components:{localUpload:()=>d.a.project.vueComponent("@advertising-all/resource-manager","upload")},methods:{viewDefaultImg(){return Object(o["a"])(this,void 0,void 0,(function*(){this.isEdit=!1,this.showImgModal=!0}))},confirmModal(){return Object(o["a"])(this,void 0,void 0,(function*(){this.isEdit?(yield f["a"].logAPi.db.dataDict.updateOne({filter:{id:this.defaultObj.id},update:{$set:{defaultAdvertisingImg:this.defaultObj.defaultAdvertisingImg}}}),this.showImgModal=!1):this.showImgModal=!1}))},editImg(){this.isEdit=!0,this.showImgModal=!0},uploadSuccessAll(t){1===t.status?(this.defaultObj.defaultAdvertisingImg=t.data.path,this.$Message.success("上传成功")):this.$Message.error("上传失败,请重试")}},created(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=yield f["a"].logAPi.db.dataDict.find({filter:{}});t.length>0&&(this.defaultObj=t[0])}))}}),h=m,b=(a("b8e1"),a("c9da")),v=Object(b["a"])(h,u,p,!1,null,"4e62adcc",null),g=v.exports,y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"body",staticStyle:{padding:"10px","text-align":"left"}},[a("div",[a("Button",{attrs:{type:"primary"},on:{click:t.onClickCreate}},[t._v("创建")])],1),a("Table",{attrs:{columns:t.header,data:t.data},scopedSlots:t._u([{key:"operation",fn:function(e){var i=e.row;return[a("Button",{attrs:{type:"error"},on:{click:function(e){return t.onDelete(i)}}},[t._v("删除")])]}}])}),a("Modal",{attrs:{title:"广告位"},on:{"on-ok":function(e){return t.onConfirm(t.cmsc)},"on-cancel":t.onCancel},model:{value:t.showModal,callback:function(e){t.showModal=e},expression:"showModal"}},[a("chooseSubCol",{on:{"on-select":t.onSelect}})],1)],1)},x=[];d.a.logger(l["a"]+" scenc");var _=s.a.extend({components:{chooseSubCol:()=>d.a.project.vueComponent("@advertising-all/column-manager","chooseSubCol")},data(){return{showModal:!1,defaultObj:{},header:[{title:"广告位名称",key:"name",align:"center"},{title:"所属栏目",key:"cname",align:"center"},{title:"操作",slot:"operation",align:"center"}],data:[],cmsc:{},columns:[],subcolumns:[],locations:[],ids:[]}},methods:{onClickCreate(){this.cmsc={},this.showModal=!0},onSelect(t){this.cmsc.cid=t[0].id,this.cmsc.cname=t[0].name,this.cmsc.id=t[1].id,this.cmsc.name=t[1].name},onConfirm(t){return Object(o["a"])(this,void 0,void 0,(function*(){if(this.ids.indexOf(t.id)>-1)return this.$Modal.warning({title:`子栏目(编号:${t.id}, 名称:${t.name}), 已存在.`});yield f["a"].logAPi.db.commenSubColumn.updateOne({filter:{id:t.id},update:{$set:t},options:{upsert:!0}}),this.init(),this.onCancel()}))},onCancel(){this.cmsc={}},onDelete(t){return Object(o["a"])(this,void 0,void 0,(function*(){this.$Modal.confirm({title:`确认删除${t.name}吗?`,onOk:()=>{f["a"].logAPi.db.commenSubColumn.deleteOne({filter:{id:t.id}}),this.init()}})}))},init(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=yield f["a"].logAPi.db.commenSubColumn.find({filter:{}});this.data=t,this.ids=t.map(t=>t.id)}))}},created(){return Object(o["a"])(this,void 0,void 0,(function*(){this.init()}))}}),P=_,D=(a("c791"),Object(b["a"])(P,y,x,!1,null,"0ac8cbb7",null)),w=D.exports;d.a.logger(l["a"]+" scenc");var O=s.a.extend({name:"dataDictMessage",title:"业务数据字典",icon:"",type:"page",data(){return{}},components:{defaultAdvertisingImg:g,commenSubColumn:w},watch:{},methods:{},created(){return Object(o["a"])(this,void 0,void 0,(function*(){}))}}),M=O,S=(a("3be0"),Object(b["a"])(M,i,n,!1,null,"77b64cfe",null));e["default"]=S.exports},"1e38":function(t,e,a){var i=a("9548");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("b4e0").default;n("140b8a5c",i,!0,{sourceMap:!1,shadowMode:!1})},"2c9d":function(t,e,a){var i={"./dataDict.vue":"0fc3","./dataDictMessage.vue":"1d15","./logs.vue":"e893"};function n(t){var e=o(t);return a(e)}function o(t){if(!a.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}n.keys=function(){return Object.keys(i)},n.resolve=o,t.exports=n,n.id="2c9d"},"322d":function(t,e,a){var i=a("72ab");e=i(!1),e.push([t.i,".title[data-v-4e62adcc]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}.body[data-v-4e62adcc]{text-align:left;padding:10px;box-sizing:border-box}.pageStyle[data-v-4e62adcc]{float:right;margin-top:5px}",""]),t.exports=e},"33f1":function(t,e,a){var i=a("72ab");e=i(!1),e.push([t.i,".title[data-v-77b64cfe]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}.body[data-v-77b64cfe]{text-align:left;padding:10px;box-sizing:border-box}.pageStyle[data-v-77b64cfe]{float:right;margin-top:5px}",""]),t.exports=e},"3be0":function(t,e,a){"use strict";var i=a("c3f6"),n=a.n(i);n.a},"42a3":function(e,a){e.exports=t},"4db0":function(t,e,a){var i=a("72ab");e=i(!1),e.push([t.i,".title[data-v-731d0204]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}.body[data-v-731d0204]{text-align:left;padding:10px;box-sizing:border-box}.pageStyle[data-v-731d0204]{float:right;margin-top:5px}",""]),t.exports=e},"51ce":function(t,e,a){var i=a("72ab");e=i(!1),e.push([t.i,".title[data-v-466dafa2]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}.body[data-v-466dafa2]{text-align:left;padding:10px;box-sizing:border-box}.pageStyle[data-v-466dafa2]{float:right;margin-top:5px}",""]),t.exports=e},"567b":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=a("db9b");e.schemas=i.createDbSchemas({location:new i.DbSchema({},{id:{fields:{id:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),column:new i.DbSchema({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),subColumn:new i.DbSchema({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),columnGroup:new i.DbSchema({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),schedule:new i.DbSchema({},{id:{fields:{id:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),menu:new i.DbSchema({},{cid:{fields:{cid:1},options:{unique:!0,sparse:!1,dropDups:!0}},date:{fields:{date:1},options:{unique:!0,sparse:!1,dropDups:!0}}})})},"5abb":function(t,e,a){var i=a("4db0");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("b4e0").default;n("593dc0f6",i,!0,{sourceMap:!1,shadowMode:!1})},"5f9b":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("7a39");e.Api={clearSysLog:i.HTTP(["user"],""),sysLog:i.HTTP(["user"],""),adminHello:i.HTTP(["user"],"admin")}},"69cf":function(t,e,a){var i=a("72ab");e=i(!1),e.push([t.i,".title[data-v-0ac8cbb7]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}.body[data-v-0ac8cbb7]{text-align:left;padding:10px;box-sizing:border-box}.pageStyle[data-v-0ac8cbb7]{float:right;margin-top:5px}",""]),t.exports=e},"72ab":function(t,e,a){"use strict";function i(t,e){var a=t[1]||"",i=t[3];if(!i)return a;if(e&&"function"===typeof btoa){var o=n(i),r=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[a].concat(r).concat([o]).join("\n")}return[a].join("\n")}function n(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(a," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var a=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(a,"}"):a})).join("")},e.i=function(t,a,i){"string"===typeof t&&(t=[[null,t,""]]);var n={};if(i)for(var o=0;o<this.length;o++){var r=this[o][0];null!=r&&(n[r]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);i&&n[c[0]]||(a&&(c[2]?c[2]="".concat(a," and ").concat(c[2]):c[2]=a),e.push(c))}},e}},"72b1":function(t,e,a){"use strict";var i=a("1e38"),n=a.n(i);n.a},"7a39":function(t,e,a){"use strict";function i(t){for(var a in t)e.hasOwnProperty(a)||(e[a]=t[a])}e.__esModule=!0,i(a("b8cb")),i(a("9099"))},"7bc5":function(t){t.exports=JSON.parse('{"name":"@advertising-all/column-manager-api","version":"1.0.47","description":"栏目管理api","main":"dist/src/index.js","types":"./src/index.ts","moduleType":"api","license":"MIT","scripts":{"serve":"tsc -w","build":"tsc","doc":"typedoc --json ./document/doc.json ./src/"},"devDependencies":{"@vmm/api":"^1.0.7"},"dependencies":{"global":"^4.4.0","typescript":"^3.8.3"}}')},"7d21":function(t,e,a){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,a=1,i=arguments.length;a<i;a++)for(var n in e=arguments[a],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},i.apply(this,arguments)};e.__esModule=!0;var n=a("8b83"),o=function(){function t(t,e){this.value=t,this.name=e}return t}();function r(t){for(var e=0,a=Object.keys(t);e<a.length;e++){var i=a[e];t[i].collName=i}return t}e.DbField=o,e.createDbSchemas=r;var s=function(){function t(t,e,a){this.collName="",this.docSchema={},this.indexSchema=e,this.collOptions=t,this.collOptions._extDb=a}return t}();function c(t,e){return{C:{insertOne:n.HTTP(t,e),insertMany:n.HTTP(t,e)},R:{findOne:n.HTTP(t,e),find:n.HTTP(t,e),countDocuments:n.HTTP(t,e),estimatedDocumentCount:n.HTTP(t,e),geoHaystackSearch:n.HTTP(t,e),distinct:n.HTTP(t,e)},U:{updateOne:n.HTTP(t,e),updateMany:n.HTTP(t,e),findOneAndReplace:n.HTTP(t,e),findOneAndUpdate:n.HTTP(t,e)},D:{deleteOne:n.HTTP(t,e),deleteMany:n.HTTP(t,e),findOneAndDelete:n.HTTP(t,e)}}}e.DbSchema=s;(function(){function t(){}})();function d(t,e,a,i){var n=c(a,i),o=n["R"];return Object.defineProperty(o,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(o,"_schema",{enumerable:!1,writable:!1,value:t}),o}function l(t,e,a,n){var o=c(a,n),r=i(i({},o["U"]),o["R"]);return Object.defineProperty(r,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(r,"_schema",{enumerable:!1,writable:!1,value:t}),r}function u(t,e,a,n){var o=c(a,n),r=i(i(i({},o["C"]),o["U"]),o["R"]);return Object.defineProperty(r,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(r,"_schema",{enumerable:!1,writable:!1,value:t}),r}function p(t,e,a,n){var o=c(a,n),r=i(i(i(i({},o["C"]),o["R"]),o["U"]),o["D"]);return Object.defineProperty(r,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(r,"_schema",{enumerable:!1,writable:!1,value:t}),r}e.DB_R=d,e.DB_RU=l,e.DB_CRU=u,e.DB_CRUD=p},"7f5d":function(t,e,a){"use strict";var i=a("42a3"),n=a.n(i),o=a("e0c3"),r=a.n(o),s=a("e279"),c=a.n(s);e["a"]={logAPi:n.a.project.loadApi(r.a),column:n.a.project.loadApi(c.a)}},"860b":function(t){t.exports=JSON.parse('{"name":"@advertising-all/advertising-data-dict-api","version":"1.0.52","description":"数据字典API","main":"dist/src/index.js","types":"./src/index.ts","moduleType":"api","license":"MIT","scripts":{"serve":"tsc -w","build":"tsc","doc":"typedoc --json ./document/doc.json ./src/"},"devDependencies":{"@vmm/api":"^1.0.7"}}')},"8b83":function(t,e,a){"use strict";function i(t,e){var a=function(){throw new Error("INVALID HTTP API")},i=a;return i._sessions=t,i._actor=e,a}e.__esModule=!0,e.HTTP=i},"8bbf":function(t,a){t.exports=e},"8fc3":function(t,e,a){"use strict";if(a.r(e),"undefined"!==typeof window){var i=window.document.currentScript,n=a("ec87");i=n(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:n});var o=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(a.p=o[1])}var r=a("9ab4"),s=a("8bbf"),c=a.n(s);const d=new c.a({data(){return{counter:0}},computed:{},methods:{},created(){return Object(r["a"])(this,void 0,void 0,(function*(){setInterval(()=>{this.counter++},1e3)}))}});var l=d,u=a("9224"),p=a("42a3"),f=a.n(p);const m=f.a.logger(u["a"]+":main");f.a.project.loadVueDir(u["a"],a("2c9d"));const h={helloData:l};window[u["a"].replace(/[@\/-]/g,"_")]=h,m.info("created ...",u["a"].replace(/[@\/-]/g,"_"),window[u["a"].replace(/[@\/-]/g,"_")]);var b=h;e["default"]=b},9099:function(t,e,a){"use strict";function i(t,e){var a=function(){throw new Error("INVALID HTTP API")},i=a;return i._sessions=t,i._actor=e,a}e.__esModule=!0,e.HTTP=i},9224:function(t){t.exports=JSON.parse('{"a":"@advertising-all/advertising-data-dict"}')},9548:function(t,e,a){var i=a("72ab");e=i(!1),e.push([t.i,".title[data-v-61449afe]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}",""]),t.exports=e},"97f5":function(t,e,a){var i=a("51ce");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("b4e0").default;n("5bd59f36",i,!0,{sourceMap:!1,shadowMode:!1})},"99a9":function(t,e,a){"use strict";var i=a("5abb"),n=a.n(i);n.a},"9ab4":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));function i(t,e,a,i){function n(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,o){function r(t){try{c(i.next(t))}catch(e){o(e)}}function s(t){try{c(i["throw"](t))}catch(e){o(e)}}function c(t){t.done?a(t.value):n(t.value).then(r,s)}c((i=i.apply(t,e||[])).next())}))}},a325:function(t,e,a){"use strict";var i=a("97f5"),n=a.n(i);n.a},b4e0:function(t,e,a){"use strict";function i(t,e){for(var a=[],i={},n=0;n<e.length;n++){var o=e[n],r=o[0],s=o[1],c=o[2],d=o[3],l={id:t+":"+n,css:s,media:c,sourceMap:d};i[r]?i[r].parts.push(l):a.push(i[r]={id:r,parts:[l]})}return a}a.r(e),a.d(e,"default",(function(){return m}));var n="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},r=n&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,d=!1,l=function(){},u=null,p="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(t,e,a,n){d=a,u=n||{};var r=i(t,e);return h(r),function(e){for(var a=[],n=0;n<r.length;n++){var s=r[n],c=o[s.id];c.refs--,a.push(c)}e?(r=i(t,e),h(r)):r=[];for(n=0;n<a.length;n++){c=a[n];if(0===c.refs){for(var d=0;d<c.parts.length;d++)c.parts[d]();delete o[c.id]}}}}function h(t){for(var e=0;e<t.length;e++){var a=t[e],i=o[a.id];if(i){i.refs++;for(var n=0;n<i.parts.length;n++)i.parts[n](a.parts[n]);for(;n<a.parts.length;n++)i.parts.push(v(a.parts[n]));i.parts.length>a.parts.length&&(i.parts.length=a.parts.length)}else{var r=[];for(n=0;n<a.parts.length;n++)r.push(v(a.parts[n]));o[a.id]={id:a.id,refs:1,parts:r}}}}function b(){var t=document.createElement("style");return t.type="text/css",r.appendChild(t),t}function v(t){var e,a,i=document.querySelector("style["+p+'~="'+t.id+'"]');if(i){if(d)return l;i.parentNode.removeChild(i)}if(f){var n=c++;i=s||(s=b()),e=y.bind(null,i,n,!1),a=y.bind(null,i,n,!0)}else i=b(),e=x.bind(null,i),a=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else a()}}var g=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}();function y(t,e,a,i){var n=a?"":i.css;if(t.styleSheet)t.styleSheet.cssText=g(e,n);else{var o=document.createTextNode(n),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(o,r[e]):t.appendChild(o)}}function x(t,e){var a=e.css,i=e.media,n=e.sourceMap;if(i&&t.setAttribute("media",i),u.ssrId&&t.setAttribute(p,e.id),n&&(a+="\n/*# sourceURL="+n.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}},b8cb:function(t,e,a){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,a=1,i=arguments.length;a<i;a++)for(var n in e=arguments[a],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},i.apply(this,arguments)};e.__esModule=!0;var n=a("9099"),o=function(){function t(t,e){this.value=t,this.name=e}return t}();function r(t){for(var e=0,a=Object.keys(t);e<a.length;e++){var i=a[e];t[i].collName=i}return t}e.DbField=o,e.createDbSchemas=r;var s=function(){function t(t,e,a){this.collName="",this.docSchema={},this.indexSchema=e,this.collOptions=t,this.collOptions._extDb=a}return t}();function c(t,e){return{C:{insertOne:n.HTTP(t,e),insertMany:n.HTTP(t,e)},R:{findOne:n.HTTP(t,e),find:n.HTTP(t,e),countDocuments:n.HTTP(t,e),estimatedDocumentCount:n.HTTP(t,e),geoHaystackSearch:n.HTTP(t,e),distinct:n.HTTP(t,e)},U:{updateOne:n.HTTP(t,e),updateMany:n.HTTP(t,e),findOneAndReplace:n.HTTP(t,e),findOneAndUpdate:n.HTTP(t,e)},D:{deleteOne:n.HTTP(t,e),deleteMany:n.HTTP(t,e),findOneAndDelete:n.HTTP(t,e)}}}e.DbSchema=s;(function(){function t(){}})();function d(t,e,a,i){var n=c(a,i),o=n["R"];return Object.defineProperty(o,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(o,"_schema",{enumerable:!1,writable:!1,value:t}),o}function l(t,e,a,n){var o=c(a,n),r=i(i({},o["U"]),o["R"]);return Object.defineProperty(r,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(r,"_schema",{enumerable:!1,writable:!1,value:t}),r}function u(t,e,a,n){var o=c(a,n),r=i(i(i({},o["C"]),o["U"]),o["R"]);return Object.defineProperty(r,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(r,"_schema",{enumerable:!1,writable:!1,value:t}),r}function p(t,e,a,n){var o=c(a,n),r=i(i(i(i({},o["C"]),o["R"]),o["U"]),o["D"]);return Object.defineProperty(r,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(r,"_schema",{enumerable:!1,writable:!1,value:t}),r}e.DB_R=d,e.DB_RU=l,e.DB_CRU=u,e.DB_CRUD=p},b8e1:function(t,e,a){"use strict";var i=a("033c"),n=a.n(i);n.a},c3f6:function(t,e,a){var i=a("33f1");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("b4e0").default;n("0b290ddc",i,!0,{sourceMap:!1,shadowMode:!1})},c791:function(t,e,a){"use strict";var i=a("1b87"),n=a.n(i);n.a},c9da:function(t,e,a){"use strict";function i(t,e,a,i,n,o,r,s){var c,d="function"===typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=a,d._compiled=!0),i&&(d.functional=!0),o&&(d._scopeId="data-v-"+o),r?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=c):n&&(c=s?function(){n.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(t,e){return c.call(e),l(t,e)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:d}}a.d(e,"a",(function(){return i}))},db9b:function(t,e,a){"use strict";function i(t){for(var a in t)e.hasOwnProperty(a)||(e[a]=t[a])}e.__esModule=!0,i(a("7d21")),i(a("8b83"))},e0c3:function(t,e,a){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,a=1,i=arguments.length;a<i;a++)for(var n in e=arguments[a],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var n=a("860b"),o=a("5f9b"),r=a("e91c"),s=a("13b2");e.default={pkg:{name:n.name,version:n.version,description:n.description},api:i({},o.Api),db:i({},r.DbApi),session:i({},s.sessions)};var c=a("ed9d");e.schemaLog=c.schemas},e279:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=a("7bc5"),n=a("eb27"),o=a("f5d1"),r=a("e2d9");e.default={pkg:{name:i.name,version:i.version,description:i.description},api:{...n.Api},db:{...o.DbApi},session:{...r.sessions}};var s=a("567b");e.schemaHello=s.schemas},e2d9:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sessions={res:{client:{hello:"this is hello"},server:{}}}},e893:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{padding:"10px","text-align":"left"}},[a("div",{staticStyle:{display:"flex","align-items":"flex-end","margin-bottom":"5px"}},[a("div",{staticStyle:{width:"50%","margin-left":"auto"}},[a("Input",{attrs:{placeholder:"请输入检索信息"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchList(e)}},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}},[a("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v("请输入检索内容")]),a("Button",{attrs:{slot:"append",icon:"ios-search"},on:{click:t.searchList},slot:"append"})],1)],1)]),a("div",[a("Table",{attrs:{border:"",stripe:"",columns:t.header,data:t.logList}}),a("Page",{attrs:{"page-size":t.limit,total:t.logNumber},on:{"on-change":t.pageChange}})],1)])},n=[],o=a("9ab4"),r=a("8bbf"),s=a.n(r),c=a("7f5d"),d=a("42a3"),l=a.n(d),u=a("9224");l.a.logger(u["a"]+" scenc");var p=s.a.extend({name:"logs",title:"系统日志",icon:"",type:"page",data(){return{logList:[],limit:10,skip:0,logNumber:0,header:[],searchVal:""}},methods:{searchList(){this.getLog()},getLog(t){return Object(o["a"])(this,void 0,void 0,(function*(){const e=this.limit,a=t||this.skip,i={createdTime:-1};let n={};this.searchVal&&(n={$or:[{actorName:{$regex:""+this.searchVal,$options:"i"}},{ip:{$regex:""+this.searchVal,$options:"i"}},{action:{$regex:""+this.searchVal,$options:"i"}}]}),this.logList=yield c["a"].logAPi.db.sysLogs.find({filter:n,options:{limit:e,skip:a,sort:i}}),this.logNumber=yield c["a"].logAPi.db.sysLogs.countDocuments({filter:n})}))},pageChange(t){this.getLog(10*(t-1))},formatTen(t){return t>9?t+"":"0"+t},formatDate(t){t=new Date(t);var e=t.getFullYear(),a=t.getMonth()+1,i=t.getDate(),n=t.getHours(),o=t.getMinutes();t.getSeconds();return e+"/"+this.formatTen(a)+"/"+this.formatTen(i)+" "+this.formatTen(n)+":"+this.formatTen(o)}},created(){return Object(o["a"])(this,void 0,void 0,(function*(){this.header=[{title:"操作用户",width:100,key:"actorName",align:"center"},{title:"操作内容",key:"action",align:"center"},{title:"操作时间",width:180,render:(t,e)=>t("div",{},this.formatDate(e.row.createdTime)),align:"center"},{title:"结果",width:80,render:(t,e)=>t("div",{},e.row.actErr?e.row.actErr:"成功"),align:"center"}],this.getLog()}))}}),f=p,m=(a("72b1"),a("c9da")),h=Object(m["a"])(f,i,n,!1,null,"61449afe",null);e["default"]=h.exports},e91c:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("7a39"),n=a("ed9d");e.DbApi={dataDict:i.DB_CRUD(n.schemas.dataDict,{},[],""),systemDataDict:i.DB_CRUD(n.schemas.systemDataDict,{},[],""),sysLogs:i.DB_R(n.schemas.sysLogs,{},[],""),commenSubColumn:i.DB_CRUD(n.schemas.ICommenSubColumn,{},[],"")}},eb27:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=a("db9b");e.Api={hello:i.HTTP([],""),adminHello:i.HTTP(["user"],"admin"),getMenuByMac:i.HTTP([],""),getMenuByCid:i.HTTP(["user"],"admin"),matterShowNumTotal:i.HTTP(["user"],"admin"),matterShowDateTotal:i.HTTP(["user"],"admin")}},ec87:function(t,e,a){var i,n,o;(function(a,r){n=[],i=r,o="function"===typeof i?i.apply(e,n):i,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(u){var t,e,a,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,n=/@([^@]*):(\d+):(\d+)\s*$/gi,o=i.exec(u.stack)||n.exec(u.stack),r=o&&o[1]||!1,s=o&&o[2]||!1,c=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");r===c&&(t=document.documentElement.outerHTML,e=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),a=t.replace(e,"$1").trim());for(var l=0;l<d.length;l++){if("interactive"===d[l].readyState)return d[l];if(d[l].src===r)return d[l];if(r===c&&d[l].innerHTML&&d[l].innerHTML.trim()===a)return d[l]}return null}}return t}))},ed9d:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("7a39");e.schemas=i.createDbSchemas({dataDict:new i.DbSchema({},{}),systemDataDict:new i.DbSchema({},{}),sysLogs:new i.DbSchema({},{}),ICommenSubColumn:new i.DbSchema({},{})})},f5d1:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const i=a("db9b"),n=a("567b");e.DbApi={location:i.DB_CRUD(n.schemas.location,{},["user"],"admin"),schedule:i.DB_CRUD(n.schemas.schedule,{},["user"],"admin"),column:i.DB_CRUD(n.schemas.column,{},["user"],"admin"),subColumn:i.DB_CRUD(n.schemas.subColumn,{},["user"],"admin"),columnGroup:i.DB_CRUD(n.schemas.columnGroup,{},["user"],"admin")}}})}));
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("_vmm_html"),require("Vue")):"function"===typeof define&&define.amd?define(["_vmm_html","Vue"],e):"object"===typeof exports?exports["main"]=e(require("_vmm_html"),require("Vue")):t["main"]=e(t["_vmm_html"],t["Vue"])})("undefined"!==typeof self?self:this,(function(t,e){return function(t){var e={};function i(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.d=function(t,e,a){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(a,n,function(e){return t[e]}.bind(null,n));return a},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s="8fc3")}({"033c":function(t,e,i){var a=i("322d");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("b4e0").default;n("9cc22caa",a,!0,{sourceMap:!1,shadowMode:!1})},"0fc3":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"body",staticStyle:{padding:"10px","text-align":"left"}},[i("h1",{staticStyle:{"text-align":"center","margin-bottom":"10px"}},[t._v("系统数据字典")]),i("div",{staticStyle:{"margin-top":"20px","margin-left":"25px"}},[t._v(" 系统显示名称: "),i("Input",{staticStyle:{width:"200px"},attrs:{disabled:t.disabled},model:{value:t.dataDict.name,callback:function(e){t.$set(t.dataDict,"name",e)},expression:"dataDict.name"}}),i("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:t.saveName}},[t._v("修改")])],1),i("div",{staticStyle:{"margin-top":"20px","margin-left":"25px"}},[t._v(" 系统菜单位置: "),i("Select",{staticStyle:{width:"200px"},model:{value:t.dataDict.menuPosition,callback:function(e){t.$set(t.dataDict,"menuPosition",e)},expression:"dataDict.menuPosition"}},t._l(["垂直菜单","横向菜单"],(function(e){return i("Option",{key:e,attrs:{value:e}},[t._v(t._s(e))])})),1),i("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:t.updateMenuPosition}},[t._v("修改")])],1),i("div",{staticStyle:{"margin-top":"20px","margin-left":"25px"}},[t._v(" 广告系统域名: "),i("Input",{staticStyle:{width:"200px"},model:{value:t.dataDict.domain,callback:function(e){t.$set(t.dataDict,"domain",e)},expression:"dataDict.domain"}}),i("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:t.saveDomain}},[t._v("修改")])],1),i("div",{staticStyle:{"margin-top":"20px","margin-left":"25px"}},[t._v(" 图片默认播出时长/秒: "),i("Input",{staticStyle:{width:"40px"},model:{value:t.dataDict.defaultPlayTime,callback:function(e){t.$set(t.dataDict,"defaultPlayTime",e)},expression:"dataDict.defaultPlayTime"}}),i("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:t.saveDefaultPlayTime}},[t._v("修改")])],1),i("div",[i("addPicBut")],1)])},n=[],o=i("9ab4"),r=i("8bbf"),s=i.n(r),c=i("7f5d"),d=i("42a3"),l=i.n(d),u=i("9224"),p=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"body",staticStyle:{padding:"10px","text-align":"left"}},[i("div",[i("span",{staticStyle:{"margin-left":"1%"}},[t._v("系统登陆背景图:")]),i("Button",{staticStyle:{"margin-top":"10px"},attrs:{type:"primary"},on:{click:t.addDict}},[t._v("修改")]),i("Button",{staticStyle:{"margin-top":"10px","margin-left":"20px"},attrs:{type:"primary"},on:{click:t.preview}},[t._v("预览")]),i("Modal",{attrs:{width:"360"},model:{value:t.showModaladd,callback:function(e){t.showModaladd=e},expression:"showModaladd"}},[i("p",{staticStyle:{color:"#f60","text-align":"center"},attrs:{slot:"header"},slot:"header"},[t._v("图片信息")]),i("div",{staticStyle:{"text-align":"center"}},[i("Form",{ref:"",attrs:{"label-width":90}},[i("FormItem",{attrs:{label:"图片上传"}},[i("localUpload",{ref:"upload",on:{success:t.uploadSuccess}})],1)],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("Button",{attrs:{type:"text"},on:{click:t.cancelModal}},[t._v("取消")]),i("Button",{attrs:{type:"primary"},on:{click:t.addModal}},[t._v("确认")])],1)]),i("Modal",{model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[i("p",{staticStyle:{color:"#f60","text-align":"center"},attrs:{slot:"header"},slot:"header"},[t._v("图片信息")]),i("img",{staticStyle:{"margin-left":"20%",height:"180px",width:"320px"},attrs:{src:t.loginPic,alt:""}}),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("Button",{attrs:{type:"primary"},on:{click:t.ok}},[t._v("确认")])],1)])],1),i("div",[i("span",{staticStyle:{"margin-left":"1%"}},[t._v("系统首页背景图:")]),i("Button",{staticStyle:{"margin-top":"10px"},attrs:{type:"primary"},on:{click:t.addHome}},[t._v("修改")]),i("Button",{staticStyle:{"margin-top":"10px","margin-left":"20px"},attrs:{type:"primary"},on:{click:t.previewHomePic}},[t._v("预览")]),i("Modal",{attrs:{width:"360"},model:{value:t.showModalPicadd,callback:function(e){t.showModalPicadd=e},expression:"showModalPicadd"}},[i("p",{staticStyle:{color:"#f60","text-align":"center"},attrs:{slot:"header"},slot:"header"},[t._v("图片信息")]),i("div",{staticStyle:{"text-align":"center"}},[i("Form",{ref:"",attrs:{"label-width":90}},[i("FormItem",{attrs:{label:"图片上传"}},[i("localUpload",{ref:"upload",on:{success:t.uploadSuccessAll}})],1)],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("Button",{attrs:{type:"text"},on:{click:t.cancelModal}},[t._v("取消")]),i("Button",{attrs:{type:"primary"},on:{click:t.addSureModal}},[t._v("确认")])],1)]),i("Modal",{model:{value:t.modalHomePic,callback:function(e){t.modalHomePic=e},expression:"modalHomePic"}},[i("p",{staticStyle:{color:"#f60","text-align":"center"},attrs:{slot:"header"},slot:"header"},[t._v("图片信息")]),i("img",{staticStyle:{"margin-left":"20%",height:"180px",width:"320px"},attrs:{src:t.homePic,alt:""}}),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("Button",{attrs:{type:"primary"},on:{click:t.ok}},[t._v("确认")])],1)])],1)])},f=[];l.a.logger(u["a"]+" scenc");var m=s.a.extend({name:"homePic",title:"首页背景图",icon:"",type:"page",data(){return{modalLogPic:!1,modalHomePic:!1,modalPic:!1,homePic:{},homePicArr:[],showModal:!1,showModaladd:!1,loginPic:{},loginPicArr:[],showModalPic:!1,showModalPicadd:!1,picMessage:{},homePicMessage:{}}},components:{localUpload:()=>l.a.project.vueComponent("@advertising-all/resource-manager","upload")},watch:{},methods:{previewHomePic(){return Object(o["a"])(this,void 0,void 0,(function*(){this.modalHomePic=!0;const t=yield c["a"].logAPi.db.systemDataDict.find({filter:{}});this.homePic=t[0].hompicPath}))},preview(){return Object(o["a"])(this,void 0,void 0,(function*(){this.modalPic=!0;const t=yield c["a"].logAPi.db.systemDataDict.find({filter:{}});this.loginPic=t[0].loginPicPath}))},ok(){this.modalPic=!1,this.modalHomePic=!1},uploadSuccess(t){1===t.status?(this.picMessage=t.data,this.$Message.success("上传成功")):this.$Message.error("上传失败,请重试")},uploadSuccessAll(t){1===t.status?(this.homePicMessage=t.data,this.$Message.success("上传成功")):this.$Message.error("上传失败,请重试")},addDict(){this.homePic={},this.showModaladd=!0},addHome(){this.loginPic={},this.showModalPicadd=!0},cancelModal(){this.showModaladd=!1,this.showModalPicadd=!1,this.initData()},cancelModals(){this.showModalPic=!1,this.showModalPicadd=!1},addSureModal(){return Object(o["a"])(this,void 0,void 0,(function*(){yield c["a"].logAPi.db.systemDataDict.updateOne({filter:{id:this.homePicArr.id},update:{$set:{hompicPath:this.homePicMessage.path}},options:{upsert:!0}});this.showModalPicadd=!1,this.initData()}))},addModal(){return Object(o["a"])(this,void 0,void 0,(function*(){yield c["a"].logAPi.db.systemDataDict.updateOne({filter:{id:this.homePicArr.id},update:{$set:{loginPicPath:this.picMessage.path}},options:{upsert:!0}});this.showModaladd=!1,this.initData()}))},initData(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=yield c["a"].logAPi.db.systemDataDict.find({filter:{}});this.homePicArr=t}))}},created(){this.initData()}}),h=m,b=(i("99a9"),i("c9da")),v=Object(b["a"])(h,p,f,!1,null,"731d0204",null),g=v.exports;l.a.logger(u["a"]+" scenc");var y=s.a.extend({name:"dataDict",title:"系统信息字典",icon:"",type:"page",data(){return{dataDict:{}}},computed:{},components:{addPicBut:g},methods:{updateMenuPosition(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=yield c["a"].logAPi.db.systemDataDict.updateOne({filter:{id:this.dataDict.id},update:{$set:{menuPosition:this.dataDict.menuPosition}}});1==t.ok?(this.$Notice.success({title:"系统菜单位置修改成功!"}),this.initdata()):this.$Notice.warn({title:"系统菜单位置修改失败,请稍后重试!"})}))},saveDomain(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=this.dataDict.domain,e=yield c["a"].logAPi.db.systemDataDict.updateOne({filter:{id:this.dataDict.id},update:{$set:{domain:t}}});1==e.ok?(this.$Notice.success({title:"系统域名修改成功!"}),this.initdata()):this.$Notice.warn({title:"系统域名修改失败,请稍后重试!"})}))},saveDefaultPlayTime(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=this.dataDict.defaultPlayTime;if(isNaN(t))return this.$Notice.warn({title:"修改失败, 需要填入数字!"});const e=yield c["a"].logAPi.db.systemDataDict.updateOne({filter:{id:this.dataDict.id},update:{$set:{defaultPlayTime:t}}});1==e.ok?(this.$Notice.success({title:"修改成功"}),this.initdata()):this.$Notice.warn({title:"修改失败,请稍后重试!"})}))},saveName(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=yield c["a"].logAPi.db.systemDataDict.updateOne({filter:{id:this.dataDict.id},update:{$set:{name:this.dataDict.name}}});1==t.ok?(this.$Notice.success({title:"系统显示名称修改成功!"}),this.initdata()):this.$Notice.warn({title:"系统显示名称修改失败,请稍后重试!"})}))},initdata(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=yield c["a"].logAPi.db.systemDataDict.find({filter:{}});t.length>0&&(this.dataDict=t[0])}))}},created(){this.initdata()}}),x=y,P=(i("358c"),Object(b["a"])(x,a,n,!1,null,"e15b8f86",null));e["default"]=P.exports},"13b2":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sessions={res:{client:{},server:{}}}},"1b87":function(t,e,i){var a=i("69cf");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("b4e0").default;n("582c80c3",a,!0,{sourceMap:!1,shadowMode:!1})},"1d15":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"body",staticStyle:{padding:"10px","text-align":"left"}},[i("h2",{staticStyle:{"text-align":"center"}},[t._v("业务数据字典")]),i("defaultAdvertisingImg"),i("commenSubColumn")],1)},n=[],o=i("9ab4"),r=i("8bbf"),s=i.n(r),c=i("42a3"),d=i.n(c),l=i("9224"),u=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"body",staticStyle:{padding:"10px","text-align":"left"}},[i("div",[i("span",{staticStyle:{display:"inline-block",width:"120px","text-align":"center"}},[t._v("缺省广告图片:")]),i("Button",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary"},on:{click:t.editImg}},[t._v("修改")]),i("Button",{attrs:{type:"primary"},on:{click:t.viewDefaultImg}},[t._v("预览")])],1),i("Modal",{attrs:{title:"图片信息"},model:{value:t.showImgModal,callback:function(e){t.showImgModal=e},expression:"showImgModal"}},[t.isEdit?i("div",[i("localUpload",{ref:"upload",on:{success:t.uploadSuccessAll}})],1):t._e(),t.isEdit?t._e():i("div",[i("img",{staticStyle:{display:"block",margin:"0 auto",height:"180px",width:"320px"},attrs:{src:t.defaultObj.defaultAdvertisingImg,alt:""}})]),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("Button",{attrs:{type:"primary"},on:{click:t.confirmModal}},[t._v("确认")])],1)])],1)},p=[],f=i("7f5d");d.a.logger(l["a"]+" scenc");var m=s.a.extend({name:"homePic",title:"首页背景图",icon:"",type:"page",data(){return{showImgModal:!1,isEdit:!1,defaultObj:{}}},components:{localUpload:()=>d.a.project.vueComponent("@advertising-all/resource-manager","upload")},methods:{viewDefaultImg(){return Object(o["a"])(this,void 0,void 0,(function*(){this.isEdit=!1,this.showImgModal=!0}))},confirmModal(){return Object(o["a"])(this,void 0,void 0,(function*(){this.isEdit?(yield f["a"].logAPi.db.dataDict.updateOne({filter:{id:this.defaultObj.id},update:{$set:{defaultAdvertisingImg:this.defaultObj.defaultAdvertisingImg}}}),this.showImgModal=!1):this.showImgModal=!1}))},editImg(){this.isEdit=!0,this.showImgModal=!0},uploadSuccessAll(t){1===t.status?(this.defaultObj.defaultAdvertisingImg=t.data.path,this.$Message.success("上传成功")):this.$Message.error("上传失败,请重试")}},created(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=yield f["a"].logAPi.db.dataDict.find({filter:{}});t.length>0&&(this.defaultObj=t[0])}))}}),h=m,b=(i("b8e1"),i("c9da")),v=Object(b["a"])(h,u,p,!1,null,"4e62adcc",null),g=v.exports,y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"body",staticStyle:{padding:"10px","text-align":"left"}},[i("div",[i("Button",{attrs:{type:"primary"},on:{click:t.onClickCreate}},[t._v("创建")])],1),i("Table",{attrs:{columns:t.header,data:t.data},scopedSlots:t._u([{key:"operation",fn:function(e){var a=e.row;return[i("Button",{attrs:{type:"error"},on:{click:function(e){return t.onDelete(a)}}},[t._v("删除")])]}}])}),i("Modal",{attrs:{title:"广告位"},on:{"on-ok":function(e){return t.onConfirm(t.cmsc)},"on-cancel":t.onCancel},model:{value:t.showModal,callback:function(e){t.showModal=e},expression:"showModal"}},[i("chooseSubCol",{on:{"on-select":t.onSelect}})],1)],1)},x=[];d.a.logger(l["a"]+" scenc");var P=s.a.extend({components:{chooseSubCol:()=>d.a.project.vueComponent("@advertising-all/column-manager","chooseSubCol")},data(){return{showModal:!1,defaultObj:{},header:[{title:"广告位名称",key:"name",align:"center"},{title:"所属栏目",key:"cname",align:"center"},{title:"操作",slot:"operation",align:"center"}],data:[],cmsc:{},columns:[],subcolumns:[],locations:[],ids:[]}},methods:{onClickCreate(){this.cmsc={},this.showModal=!0},onSelect(t){this.cmsc.cid=t[0].id,this.cmsc.cname=t[0].name,this.cmsc.id=t[1].id,this.cmsc.name=t[1].name},onConfirm(t){return Object(o["a"])(this,void 0,void 0,(function*(){if(this.ids.indexOf(t.id)>-1)return this.$Modal.warning({title:`子栏目(编号:${t.id}, 名称:${t.name}), 已存在.`});yield f["a"].logAPi.db.commenSubColumn.updateOne({filter:{id:t.id},update:{$set:t},options:{upsert:!0}}),this.init(),this.onCancel()}))},onCancel(){this.cmsc={}},onDelete(t){return Object(o["a"])(this,void 0,void 0,(function*(){this.$Modal.confirm({title:`确认删除${t.name}吗?`,onOk:()=>{f["a"].logAPi.db.commenSubColumn.deleteOne({filter:{id:t.id}}),this.init()}})}))},init(){return Object(o["a"])(this,void 0,void 0,(function*(){const t=yield f["a"].logAPi.db.commenSubColumn.find({filter:{}});this.data=t,this.ids=t.map(t=>t.id)}))}},created(){return Object(o["a"])(this,void 0,void 0,(function*(){this.init()}))}}),_=P,D=(i("c791"),Object(b["a"])(_,y,x,!1,null,"0ac8cbb7",null)),w=D.exports;d.a.logger(l["a"]+" scenc");var O=s.a.extend({name:"dataDictMessage",title:"业务数据字典",icon:"",type:"page",data(){return{}},components:{defaultAdvertisingImg:g,commenSubColumn:w},watch:{},methods:{},created(){return Object(o["a"])(this,void 0,void 0,(function*(){}))}}),T=O,M=(i("3be0"),Object(b["a"])(T,a,n,!1,null,"77b64cfe",null));e["default"]=M.exports},"1e38":function(t,e,i){var a=i("9548");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("b4e0").default;n("140b8a5c",a,!0,{sourceMap:!1,shadowMode:!1})},"2c9d":function(t,e,i){var a={"./dataDict.vue":"0fc3","./dataDictMessage.vue":"1d15","./logs.vue":"e893"};function n(t){var e=o(t);return i(e)}function o(t){if(!i.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}n.keys=function(){return Object.keys(a)},n.resolve=o,t.exports=n,n.id="2c9d"},"322d":function(t,e,i){var a=i("72ab");e=a(!1),e.push([t.i,".title[data-v-4e62adcc]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}.body[data-v-4e62adcc]{text-align:left;padding:10px;box-sizing:border-box}.pageStyle[data-v-4e62adcc]{float:right;margin-top:5px}",""]),t.exports=e},"33f1":function(t,e,i){var a=i("72ab");e=a(!1),e.push([t.i,".title[data-v-77b64cfe]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}.body[data-v-77b64cfe]{text-align:left;padding:10px;box-sizing:border-box}.pageStyle[data-v-77b64cfe]{float:right;margin-top:5px}",""]),t.exports=e},"358c":function(t,e,i){"use strict";var a=i("d3e9"),n=i.n(a);n.a},"3be0":function(t,e,i){"use strict";var a=i("c3f6"),n=i.n(a);n.a},"42a3":function(e,i){e.exports=t},"4db0":function(t,e,i){var a=i("72ab");e=a(!1),e.push([t.i,".title[data-v-731d0204]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}.body[data-v-731d0204]{text-align:left;padding:10px;box-sizing:border-box}.pageStyle[data-v-731d0204]{float:right;margin-top:5px}",""]),t.exports=e},"567b":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const a=i("db9b");e.schemas=a.createDbSchemas({location:new a.DbSchema({},{id:{fields:{id:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),column:new a.DbSchema({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),subColumn:new a.DbSchema({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),columnGroup:new a.DbSchema({},{name:{fields:{name:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),schedule:new a.DbSchema({},{id:{fields:{id:1},options:{unique:!0,sparse:!1,dropDups:!0}}}),menu:new a.DbSchema({},{cid:{fields:{cid:1},options:{unique:!0,sparse:!1,dropDups:!0}},date:{fields:{date:1},options:{unique:!0,sparse:!1,dropDups:!0}}})})},"5abb":function(t,e,i){var a=i("4db0");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("b4e0").default;n("593dc0f6",a,!0,{sourceMap:!1,shadowMode:!1})},"5f9b":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("7a39");e.Api={clearSysLog:a.HTTP(["user"],""),sysLog:a.HTTP(["user"],""),adminHello:a.HTTP(["user"],"admin")}},"69cf":function(t,e,i){var a=i("72ab");e=a(!1),e.push([t.i,".title[data-v-0ac8cbb7]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}.body[data-v-0ac8cbb7]{text-align:left;padding:10px;box-sizing:border-box}.pageStyle[data-v-0ac8cbb7]{float:right;margin-top:5px}",""]),t.exports=e},"72ab":function(t,e,i){"use strict";function a(t,e){var i=t[1]||"",a=t[3];if(!a)return i;if(e&&"function"===typeof btoa){var o=n(a),r=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[i].concat(r).concat([o]).join("\n")}return[i].join("\n")}function n(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(i," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=a(e,t);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,a){"string"===typeof t&&(t=[[null,t,""]]);var n={};if(a)for(var o=0;o<this.length;o++){var r=this[o][0];null!=r&&(n[r]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);a&&n[c[0]]||(i&&(c[2]?c[2]="".concat(i," and ").concat(c[2]):c[2]=i),e.push(c))}},e}},"72b1":function(t,e,i){"use strict";var a=i("1e38"),n=i.n(a);n.a},"7a39":function(t,e,i){"use strict";function a(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}e.__esModule=!0,a(i("b8cb")),a(i("9099"))},"7bc5":function(t){t.exports=JSON.parse('{"name":"@advertising-all/column-manager-api","version":"1.0.47","description":"栏目管理api","main":"dist/src/index.js","types":"./src/index.ts","moduleType":"api","license":"MIT","scripts":{"serve":"tsc -w","build":"tsc","doc":"typedoc --json ./document/doc.json ./src/"},"devDependencies":{"@vmm/api":"^1.0.7"},"dependencies":{"global":"^4.4.0","typescript":"^3.8.3"}}')},"7d21":function(t,e,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++)for(var n in e=arguments[i],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},a.apply(this,arguments)};e.__esModule=!0;var n=i("8b83"),o=function(){function t(t,e){this.value=t,this.name=e}return t}();function r(t){for(var e=0,i=Object.keys(t);e<i.length;e++){var a=i[e];t[a].collName=a}return t}e.DbField=o,e.createDbSchemas=r;var s=function(){function t(t,e,i){this.collName="",this.docSchema={},this.indexSchema=e,this.collOptions=t,this.collOptions._extDb=i}return t}();function c(t,e){return{C:{insertOne:n.HTTP(t,e),insertMany:n.HTTP(t,e)},R:{findOne:n.HTTP(t,e),find:n.HTTP(t,e),countDocuments:n.HTTP(t,e),estimatedDocumentCount:n.HTTP(t,e),geoHaystackSearch:n.HTTP(t,e),distinct:n.HTTP(t,e)},U:{updateOne:n.HTTP(t,e),updateMany:n.HTTP(t,e),findOneAndReplace:n.HTTP(t,e),findOneAndUpdate:n.HTTP(t,e)},D:{deleteOne:n.HTTP(t,e),deleteMany:n.HTTP(t,e),findOneAndDelete:n.HTTP(t,e)}}}e.DbSchema=s;(function(){function t(){}})();function d(t,e,i,a){var n=c(i,a),o=n["R"];return Object.defineProperty(o,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(o,"_schema",{enumerable:!1,writable:!1,value:t}),o}function l(t,e,i,n){var o=c(i,n),r=a(a({},o["U"]),o["R"]);return Object.defineProperty(r,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(r,"_schema",{enumerable:!1,writable:!1,value:t}),r}function u(t,e,i,n){var o=c(i,n),r=a(a(a({},o["C"]),o["U"]),o["R"]);return Object.defineProperty(r,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(r,"_schema",{enumerable:!1,writable:!1,value:t}),r}function p(t,e,i,n){var o=c(i,n),r=a(a(a(a({},o["C"]),o["R"]),o["U"]),o["D"]);return Object.defineProperty(r,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(r,"_schema",{enumerable:!1,writable:!1,value:t}),r}e.DB_R=d,e.DB_RU=l,e.DB_CRU=u,e.DB_CRUD=p},"7f5d":function(t,e,i){"use strict";var a=i("42a3"),n=i.n(a),o=i("e0c3"),r=i.n(o),s=i("e279"),c=i.n(s);e["a"]={logAPi:n.a.project.loadApi(r.a),column:n.a.project.loadApi(c.a)}},"860b":function(t){t.exports=JSON.parse('{"name":"@advertising-all/advertising-data-dict-api","version":"1.0.53","description":"数据字典API","main":"dist/src/index.js","types":"./src/index.ts","moduleType":"api","license":"MIT","scripts":{"serve":"tsc -w","build":"tsc","doc":"typedoc --json ./document/doc.json ./src/"},"devDependencies":{"@vmm/api":"^1.0.7"}}')},"8b83":function(t,e,i){"use strict";function a(t,e){var i=function(){throw new Error("INVALID HTTP API")},a=i;return a._sessions=t,a._actor=e,i}e.__esModule=!0,e.HTTP=a},"8bbf":function(t,i){t.exports=e},"8fc3":function(t,e,i){"use strict";if(i.r(e),"undefined"!==typeof window){var a=window.document.currentScript,n=i("ec87");a=n(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:n});var o=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(i.p=o[1])}var r=i("9ab4"),s=i("8bbf"),c=i.n(s);const d=new c.a({data(){return{counter:0}},computed:{},methods:{},created(){return Object(r["a"])(this,void 0,void 0,(function*(){setInterval(()=>{this.counter++},1e3)}))}});var l=d,u=i("9224"),p=i("42a3"),f=i.n(p);const m=f.a.logger(u["a"]+":main");f.a.project.loadVueDir(u["a"],i("2c9d"));const h={helloData:l};window[u["a"].replace(/[@\/-]/g,"_")]=h,m.info("created ...",u["a"].replace(/[@\/-]/g,"_"),window[u["a"].replace(/[@\/-]/g,"_")]);var b=h;e["default"]=b},9099:function(t,e,i){"use strict";function a(t,e){var i=function(){throw new Error("INVALID HTTP API")},a=i;return a._sessions=t,a._actor=e,i}e.__esModule=!0,e.HTTP=a},9224:function(t){t.exports=JSON.parse('{"a":"@advertising-all/advertising-data-dict"}')},9548:function(t,e,i){var a=i("72ab");e=a(!1),e.push([t.i,".title[data-v-61449afe]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}",""]),t.exports=e},"99a9":function(t,e,i){"use strict";var a=i("5abb"),n=i.n(a);n.a},"9ab4":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));function a(t,e,i,a){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function r(t){try{c(a.next(t))}catch(e){o(e)}}function s(t){try{c(a["throw"](t))}catch(e){o(e)}}function c(t){t.done?i(t.value):n(t.value).then(r,s)}c((a=a.apply(t,e||[])).next())}))}},a5fd:function(t,e,i){var a=i("72ab");e=a(!1),e.push([t.i,".title[data-v-e15b8f86]{text-align:center;border-bottom:1px solid wheat;padding-bottom:4px}.body[data-v-e15b8f86]{text-align:left;padding:10px;box-sizing:border-box}.pageStyle[data-v-e15b8f86]{float:right;margin-top:5px}",""]),t.exports=e},b4e0:function(t,e,i){"use strict";function a(t,e){for(var i=[],a={},n=0;n<e.length;n++){var o=e[n],r=o[0],s=o[1],c=o[2],d=o[3],l={id:t+":"+n,css:s,media:c,sourceMap:d};a[r]?a[r].parts.push(l):i.push(a[r]={id:r,parts:[l]})}return i}i.r(e),i.d(e,"default",(function(){return m}));var n="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},r=n&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,d=!1,l=function(){},u=null,p="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(t,e,i,n){d=i,u=n||{};var r=a(t,e);return h(r),function(e){for(var i=[],n=0;n<r.length;n++){var s=r[n],c=o[s.id];c.refs--,i.push(c)}e?(r=a(t,e),h(r)):r=[];for(n=0;n<i.length;n++){c=i[n];if(0===c.refs){for(var d=0;d<c.parts.length;d++)c.parts[d]();delete o[c.id]}}}}function h(t){for(var e=0;e<t.length;e++){var i=t[e],a=o[i.id];if(a){a.refs++;for(var n=0;n<a.parts.length;n++)a.parts[n](i.parts[n]);for(;n<i.parts.length;n++)a.parts.push(v(i.parts[n]));a.parts.length>i.parts.length&&(a.parts.length=i.parts.length)}else{var r=[];for(n=0;n<i.parts.length;n++)r.push(v(i.parts[n]));o[i.id]={id:i.id,refs:1,parts:r}}}}function b(){var t=document.createElement("style");return t.type="text/css",r.appendChild(t),t}function v(t){var e,i,a=document.querySelector("style["+p+'~="'+t.id+'"]');if(a){if(d)return l;a.parentNode.removeChild(a)}if(f){var n=c++;a=s||(s=b()),e=y.bind(null,a,n,!1),i=y.bind(null,a,n,!0)}else a=b(),e=x.bind(null,a),i=function(){a.parentNode.removeChild(a)};return e(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap)return;e(t=a)}else i()}}var g=function(){var t=[];return function(e,i){return t[e]=i,t.filter(Boolean).join("\n")}}();function y(t,e,i,a){var n=i?"":a.css;if(t.styleSheet)t.styleSheet.cssText=g(e,n);else{var o=document.createTextNode(n),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(o,r[e]):t.appendChild(o)}}function x(t,e){var i=e.css,a=e.media,n=e.sourceMap;if(a&&t.setAttribute("media",a),u.ssrId&&t.setAttribute(p,e.id),n&&(i+="\n/*# sourceURL="+n.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=i;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}},b8cb:function(t,e,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++)for(var n in e=arguments[i],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},a.apply(this,arguments)};e.__esModule=!0;var n=i("9099"),o=function(){function t(t,e){this.value=t,this.name=e}return t}();function r(t){for(var e=0,i=Object.keys(t);e<i.length;e++){var a=i[e];t[a].collName=a}return t}e.DbField=o,e.createDbSchemas=r;var s=function(){function t(t,e,i){this.collName="",this.docSchema={},this.indexSchema=e,this.collOptions=t,this.collOptions._extDb=i}return t}();function c(t,e){return{C:{insertOne:n.HTTP(t,e),insertMany:n.HTTP(t,e)},R:{findOne:n.HTTP(t,e),find:n.HTTP(t,e),countDocuments:n.HTTP(t,e),estimatedDocumentCount:n.HTTP(t,e),geoHaystackSearch:n.HTTP(t,e),distinct:n.HTTP(t,e)},U:{updateOne:n.HTTP(t,e),updateMany:n.HTTP(t,e),findOneAndReplace:n.HTTP(t,e),findOneAndUpdate:n.HTTP(t,e)},D:{deleteOne:n.HTTP(t,e),deleteMany:n.HTTP(t,e),findOneAndDelete:n.HTTP(t,e)}}}e.DbSchema=s;(function(){function t(){}})();function d(t,e,i,a){var n=c(i,a),o=n["R"];return Object.defineProperty(o,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(o,"_schema",{enumerable:!1,writable:!1,value:t}),o}function l(t,e,i,n){var o=c(i,n),r=a(a({},o["U"]),o["R"]);return Object.defineProperty(r,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(r,"_schema",{enumerable:!1,writable:!1,value:t}),r}function u(t,e,i,n){var o=c(i,n),r=a(a(a({},o["C"]),o["U"]),o["R"]);return Object.defineProperty(r,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(r,"_schema",{enumerable:!1,writable:!1,value:t}),r}function p(t,e,i,n){var o=c(i,n),r=a(a(a(a({},o["C"]),o["R"]),o["U"]),o["D"]);return Object.defineProperty(r,"_db",{enumerable:!1,writable:!1,value:e}),Object.defineProperty(r,"_schema",{enumerable:!1,writable:!1,value:t}),r}e.DB_R=d,e.DB_RU=l,e.DB_CRU=u,e.DB_CRUD=p},b8e1:function(t,e,i){"use strict";var a=i("033c"),n=i.n(a);n.a},c3f6:function(t,e,i){var a=i("33f1");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("b4e0").default;n("0b290ddc",a,!0,{sourceMap:!1,shadowMode:!1})},c791:function(t,e,i){"use strict";var a=i("1b87"),n=i.n(a);n.a},c9da:function(t,e,i){"use strict";function a(t,e,i,a,n,o,r,s){var c,d="function"===typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=i,d._compiled=!0),a&&(d.functional=!0),o&&(d._scopeId="data-v-"+o),r?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=c):n&&(c=s?function(){n.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(t,e){return c.call(e),l(t,e)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:d}}i.d(e,"a",(function(){return a}))},d3e9:function(t,e,i){var a=i("a5fd");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("b4e0").default;n("4349b0d6",a,!0,{sourceMap:!1,shadowMode:!1})},db9b:function(t,e,i){"use strict";function a(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}e.__esModule=!0,a(i("7d21")),a(i("8b83"))},e0c3:function(t,e,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++)for(var n in e=arguments[i],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var n=i("860b"),o=i("5f9b"),r=i("e91c"),s=i("13b2");e.default={pkg:{name:n.name,version:n.version,description:n.description},api:a({},o.Api),db:a({},r.DbApi),session:a({},s.sessions)};var c=i("ed9d");e.schemaLog=c.schemas},e279:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const a=i("7bc5"),n=i("eb27"),o=i("f5d1"),r=i("e2d9");e.default={pkg:{name:a.name,version:a.version,description:a.description},api:{...n.Api},db:{...o.DbApi},session:{...r.sessions}};var s=i("567b");e.schemaHello=s.schemas},e2d9:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sessions={res:{client:{hello:"this is hello"},server:{}}}},e893:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{padding:"10px","text-align":"left"}},[i("div",{staticStyle:{display:"flex","align-items":"flex-end","margin-bottom":"5px"}},[i("div",{staticStyle:{width:"50%","margin-left":"auto"}},[i("Input",{attrs:{placeholder:"请输入检索信息"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchList(e)}},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}},[i("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v("请输入检索内容")]),i("Button",{attrs:{slot:"append",icon:"ios-search"},on:{click:t.searchList},slot:"append"})],1)],1)]),i("div",[i("Table",{attrs:{border:"",stripe:"",columns:t.header,data:t.logList}}),i("Page",{attrs:{"page-size":t.limit,total:t.logNumber},on:{"on-change":t.pageChange}})],1)])},n=[],o=i("9ab4"),r=i("8bbf"),s=i.n(r),c=i("7f5d"),d=i("42a3"),l=i.n(d),u=i("9224");l.a.logger(u["a"]+" scenc");var p=s.a.extend({name:"logs",title:"系统日志",icon:"",type:"page",data(){return{logList:[],limit:10,skip:0,logNumber:0,header:[],searchVal:""}},methods:{searchList(){this.getLog()},getLog(t){return Object(o["a"])(this,void 0,void 0,(function*(){const e=this.limit,i=t||this.skip,a={createdTime:-1};let n={};this.searchVal&&(n={$or:[{actorName:{$regex:""+this.searchVal,$options:"i"}},{ip:{$regex:""+this.searchVal,$options:"i"}},{action:{$regex:""+this.searchVal,$options:"i"}}]}),this.logList=yield c["a"].logAPi.db.sysLogs.find({filter:n,options:{limit:e,skip:i,sort:a}}),this.logNumber=yield c["a"].logAPi.db.sysLogs.countDocuments({filter:n})}))},pageChange(t){this.getLog(10*(t-1))},formatTen(t){return t>9?t+"":"0"+t},formatDate(t){t=new Date(t);var e=t.getFullYear(),i=t.getMonth()+1,a=t.getDate(),n=t.getHours(),o=t.getMinutes();t.getSeconds();return e+"/"+this.formatTen(i)+"/"+this.formatTen(a)+" "+this.formatTen(n)+":"+this.formatTen(o)}},created(){return Object(o["a"])(this,void 0,void 0,(function*(){this.header=[{title:"操作用户",width:100,key:"actorName",align:"center"},{title:"操作内容",key:"action",align:"center"},{title:"操作时间",width:180,render:(t,e)=>t("div",{},this.formatDate(e.row.createdTime)),align:"center"},{title:"结果",width:80,render:(t,e)=>t("div",{},e.row.actErr?e.row.actErr:"成功"),align:"center"}],this.getLog()}))}}),f=p,m=(i("72b1"),i("c9da")),h=Object(m["a"])(f,a,n,!1,null,"61449afe",null);e["default"]=h.exports},e91c:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("7a39"),n=i("ed9d");e.DbApi={dataDict:a.DB_CRUD(n.schemas.dataDict,{},[],""),systemDataDict:a.DB_CRUD(n.schemas.systemDataDict,{},[],""),sysLogs:a.DB_R(n.schemas.sysLogs,{},[],""),commenSubColumn:a.DB_CRUD(n.schemas.ICommenSubColumn,{},[],"")}},eb27:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const a=i("db9b");e.Api={hello:a.HTTP([],""),adminHello:a.HTTP(["user"],"admin"),getMenuByMac:a.HTTP([],""),getMenuByCid:a.HTTP(["user"],"admin"),matterShowNumTotal:a.HTTP(["user"],"admin"),matterShowDateTotal:a.HTTP(["user"],"admin")}},ec87:function(t,e,i){var a,n,o;(function(i,r){n=[],a=r,o="function"===typeof a?a.apply(e,n):a,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(u){var t,e,i,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,n=/@([^@]*):(\d+):(\d+)\s*$/gi,o=a.exec(u.stack)||n.exec(u.stack),r=o&&o[1]||!1,s=o&&o[2]||!1,c=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");r===c&&(t=document.documentElement.outerHTML,e=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=t.replace(e,"$1").trim());for(var l=0;l<d.length;l++){if("interactive"===d[l].readyState)return d[l];if(d[l].src===r)return d[l];if(r===c&&d[l].innerHTML&&d[l].innerHTML.trim()===i)return d[l]}return null}}return t}))},ed9d:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("7a39");e.schemas=a.createDbSchemas({dataDict:new a.DbSchema({},{}),systemDataDict:new a.DbSchema({},{}),sysLogs:new a.DbSchema({},{}),ICommenSubColumn:new a.DbSchema({},{})})},f5d1:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const a=i("db9b"),n=i("567b");e.DbApi={location:a.DB_CRUD(n.schemas.location,{},["user"],"admin"),schedule:a.DB_CRUD(n.schemas.schedule,{},["user"],"admin"),column:a.DB_CRUD(n.schemas.column,{},["user"],"admin"),subColumn:a.DB_CRUD(n.schemas.subColumn,{},["user"],"admin"),columnGroup:a.DB_CRUD(n.schemas.columnGroup,{},["user"],"admin")}}})}));
{
"name": "@advertising-all/advertising-data-dict",
"version": "1.0.78",
"version": "1.0.79",
"description": "系统设置",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -23,2 +23,3 @@ import { DbSchema } from '@vmm/api';

loginPicPath: string | null;
defaultPlayTime: number;
domain: string | null;

@@ -25,0 +26,0 @@ menuPosition: '垂直菜单' | '横向菜单';

@@ -1,7 +0,9 @@

import Vue from "vue";
import Vue from 'vue';
import { ISystemDataDict } from '@advertising-all/advertising-data-dict-api/src/db/DbSchema';
declare const _default: import("vue/types/vue").ExtendedVue<Vue, {
dataDict: any;
dataDict: ISystemDataDict;
}, {
updateMenuPosition(): Promise<void>;
saveDomain(): Promise<void>;
saveDefaultPlayTime(): Promise<any>;
saveName(): Promise<void>;

@@ -8,0 +10,0 @@ initdata(): Promise<void>;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc