{"version":3,"sources":["webpack:///./static/images/open/account.svg","webpack:///./static/images/open/doc.svg","webpack:///./src/apps/open/views/devCenter/kdocApps.vue?9fe3","webpack:///./static/images/open/appstore.svg","webpack:///./src/apps/open/views/devCenter/kdocApps.vue?5f49","webpack:///./src/apps/open/views/devCenter/kdocApps.vue","webpack:///./src/apps/open/views/devCenter/kdocApps.vue?aafe","webpack:///./src/apps/open/views/devCenter/kdocApps.vue?1047"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","appsTotal","attrs","on","addApp","_v","apps","tableHeaderStyle","tableRowStyle","scopedSlots","_u","key","fn","scope","row","logo","_s","app_mode","is_sandbox","isPrivate","_e","is_add_to_app_center","create_at","moment","format","$event","toAppInfo","appsPageSize","appsPage","appsPageChange","jumpDevDoc","_m","isPassed","slot","staticRenderFns","height","background","color","initEventListener","getAppList","$eventBus","$clear","$on","window","open","item","obj","index","columnIndex","leftAlign","$router","push","name","app","id","app_id","params","page","limit","developer_id","curEnterprise","then","res","data","object_array","total","catch","error","$store","getters","components","Button","methods","component"],"mappings":"8FAAAA,EAAOC,QAAU,IAA0B,4B,uBCA3CD,EAAOC,QAAU,IAA0B,wB,kCCA3C,yBAAmmB,EAAG,G,qBCAtmBD,EAAOC,QAAU,IAA0B,6B,yCCA3C,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAAEN,EAAIO,UAAY,EAAG,CAACH,EAAG,YAAY,CAACI,MAAM,CAAC,KAAO,UAAU,KAAO,SAASC,GAAG,CAAC,MAAQT,EAAIU,SAAS,CAACV,EAAIW,GAAG,UAAUP,EAAG,WAAW,CAACE,YAAY,QAAQE,MAAM,CAAC,KAAOR,EAAIY,KAAK,oBAAoBZ,EAAIa,iBAAiB,aAAab,EAAIc,cAAc,OAAS,KAAK,CAACV,EAAG,kBAAkB,CAACI,M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C,GACT,IAAIC,EAAKD,EAAIE,QAAU,GACvB5D,KAAKuD,QAAQC,KAAK,CAAEC,KAAM,cAAeI,OAAQ,CAAEF,UA3DvD,mCA8DY,WACR,OAAAD,EAAA,MAAQ,CACNI,KAAM9D,KAAKiC,SACX8B,MAAO/D,KAAKgC,aACZgC,aAAchE,KAAKiE,cAAcD,eAEhCE,KAAK,SAACC,GACL,IAAMC,EAAOD,EAAIC,KACjB,EAAKzD,KAAL,eAAgByD,EAAKC,cACrB,EAAK/D,UAAY8D,EAAKE,QACrBC,MAAM,SAACC,GACR,eAAeA,OAzEvB,qCA6EkBV,GACd9D,KAAKiC,SAAW6B,EAChB9D,KAAK4C,eA/ET,gCAeI,OAAO5C,KAAKyE,OAAOC,QAAQ,eAf/B,+BA8CI,OAAO1E,KAAKyE,OAAOC,QAAQ,6BA9C/B,oCAkDI,OAAO1E,KAAKyE,OAAOC,QAAQ,0BAlD/B,GAAsC,QAAjB,EAAQ,QAR5B,eAAU,CACTC,WAAY,CACVC,SAAA,MAEFC,QAAS,CACPjD,OAAA,QAGiB,WC7Eoa,I,wBCQrbkD,EAAY,eACd,EACAhF,EACAyC,GACA,EACA,KACA,WACA,MAIa,aAAAuC,E","file":"js/kdoc-apps.d0901983.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/account.7dc082da.svg\";","module.exports = __webpack_public_path__ + \"img/doc.5008a61f.svg\";","import mod from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./kdocApps.vue?vue&type=style&index=0&id=7b45e450&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./kdocApps.vue?vue&type=style&index=0&id=7b45e450&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/appstore.8dd66176.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"kdoc-apps\"},[(_vm.appsTotal > 0)?[_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":_vm.addApp}},[_vm._v(\"创建应用\")]),_c('el-table',{staticClass:\"table\",attrs:{\"data\":_vm.apps,\"header-cell-style\":_vm.tableHeaderStyle,\"cell-style\":_vm.tableRowStyle,\"stripe\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"logo\",\"label\":\"应用logo\",\"min-width\":\"100px\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('img',{attrs:{\"src\":scope.row.logo}})]}}],null,false,3171931651)}),_c('el-table-column',{attrs:{\"prop\":\"app_name\",\"label\":\"应用名称\",\"min-width\":\"180px\"}}),_c('el-table-column',{attrs:{\"prop\":\"app_id\",\"label\":\"APPID\",\"min-width\":\"180px\"}}),_c('el-table-column',{attrs:{\"label\":\"应用模式\",\"min-width\":\"120px\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.app_mode == 0 ? '第三方个人应用' : scope.row.app_mode == 1 ? \"第三方企业应用\" : \"企业内建应用\")+\"\\n \")]}}],null,false,3659533615)}),_c('el-table-column',{attrs:{\"prop\":\"access_url\",\"label\":\"应用类型\",\"min-width\":\"130px\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.is_sandbox ? '测试应用' : \"正式应用\")+\"\\n \")]}}],null,false,1717094914)}),(!_vm.isPrivate)?_c('el-table-column',{attrs:{\"label\":\"应用中心\",\"min-width\":\"100px\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.is_add_to_app_center ? '已提交' : \"未提交\")+\"\\n \")]}}],null,false,3066102858)}):_vm._e(),_c('el-table-column',{attrs:{\"label\":\"创建时间\",\"min-width\":\"180px\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.create_at ? _vm.moment(scope.row.create_at * 1000).format('YYYY-MM-DD HH:mm:ss') : '-')+\"\\n \")]}}],null,false,2108151395)}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"min-width\":\"100px\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{staticClass:\"btn\",attrs:{\"size\":\"mini\",\"type\":\"text\"},on:{\"click\":function($event){return _vm.toAppInfo(scope.row)}}},[_vm._v(\"查看\")])]}}],null,false,3948840355)})],1),_c('div',{staticClass:\"pagination\"},[_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"prev, pager, next\",\"total\":_vm.appsTotal,\"page-size\":_vm.appsPageSize,\"current-page\":_vm.appsPage},on:{\"current-change\":_vm.appsPageChange}})],1)]:[(!_vm.appsTotal)?_c('div',{staticClass:\"no-data-wrap\"},[_c('div',[_vm._v(\"根据接入场景,快速阅读\"),_c('Button',{attrs:{\"type\":\"text\"},on:{\"click\":_vm.jumpDevDoc}},[_vm._v(\"开发文档\")]),_vm._v(\",创建应用即可申请使用WPS开放能力,包括预览/编辑/协同\"),(!_vm.isPrivate)?[_vm._v(\"/会议\")]:_vm._e(),_vm._v(\"等\")],2),_vm._m(0)]):_vm._e(),_c('el-popover',{attrs:{\"disabled\":_vm.isPassed,\"placement\":\"top-start\",\"trigger\":\"hover\",\"content\":\"审核通过后可添加应用\"}},[_c('div',{staticClass:\"add_button_layout\",attrs:{\"slot\":\"reference\"},slot:\"reference\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"disabled\":!_vm.isPassed},on:{\"click\":_vm.addApp}},[_vm._v(\"添加我的应用\")])],1)])]],2)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',[_c('li',[_c('img',{attrs:{\"src\":require(\"static/images/open/account.svg\")}}),_c('span',[_vm._v(\"接入WPS账号\")])]),_c('li',[_c('img',{attrs:{\"src\":require(\"static/images/open/doc.svg\")}}),_c('span',[_vm._v(\"接入WPS云文档\")])]),_c('li',[_c('img',{attrs:{\"src\":require(\"static/images/open/appstore.svg\")}}),_c('span',[_vm._v(\"接入WPS应用市场\")])])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator'\nimport { CLOUD_DOC_URL } from '@/apps/open/constants'\nimport { IAppInfo } from '@/apps/open/store/modules/app/types'\nimport { appList } from '@/apps/open/services/app'\nimport moment from 'moment'\nimport { onRequestError } from '@/apps/open/utils'\nimport Button from '@/apps/open/components/Button'\n\n@Component({\n components: {\n Button\n },\n methods: {\n moment\n }\n})\nexport default class KdocApps extends Vue {\n apps: IAppInfo[] = []\n appsPage = 1\n appsPageSize = 10\n appsTotal = 0\n\n tableHeaderStyle = {\n height: '48px',\n background: '#F3F3F3',\n 'text-align': 'center',\n 'font-size': '18px',\n color: '#3C414B'\n }\n\n get isPrivate () {\n return this.$store.getters['isPrivate']\n }\n\n mounted () {\n this.initEventListener()\n this.getAppList()\n }\n\n beforeDestroy () {\n this.$eventBus.$clear('changeEnterprise', this.getAppList)\n }\n\n initEventListener () {\n this.$eventBus.$on('changeEnterprise', this.getAppList)\n }\n\n jumpDevDoc () {\n window.open(CLOUD_DOC_URL)\n }\n\n tableRowStyle (item: any) {\n let obj: any = {\n color: '#3C414B'\n }\n let index = item.columnIndex\n let leftAlign = index === 2\n obj['text-align'] = leftAlign ? 'left' : 'center'\n return obj\n }\n\n get isPassed () {\n return this.$store.getters['User/isPassedEnterprise']\n }\n\n get curEnterprise () {\n return this.$store.getters['User/curEnterprise']\n }\n\n addApp () {\n this.$router.push({ name: 'add-app' })\n }\n\n toAppInfo (app: IAppInfo) {\n let id = app.app_id || ''\n this.$router.push({ name: 'app-setting', params: { id } })\n }\n\n getAppList () {\n appList({\n page: this.appsPage,\n limit: this.appsPageSize,\n developer_id: this.curEnterprise.developer_id\n })\n .then((res) => {\n const data = res.data\n this.apps = [...data.object_array]\n this.appsTotal = data.total\n }).catch((error) => {\n onRequestError(error)\n })\n }\n\n appsPageChange (page: number) {\n this.appsPage = page\n this.getAppList()\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./kdocApps.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./kdocApps.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./kdocApps.vue?vue&type=template&id=7b45e450&scoped=true&\"\nimport script from \"./kdocApps.vue?vue&type=script&lang=ts&\"\nexport * from \"./kdocApps.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./kdocApps.vue?vue&type=style&index=0&id=7b45e450&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7b45e450\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}