funtask-feishu-okr
Version:
飞书ork Funtask 版本
1 lines • 2.11 kB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["page-index"],{9261:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"suwis-page-index"},[n("div",{staticClass:"wrapper"},[n("van-grid",{attrs:{"column-num":3,gutter:"15"}},[n("van-grid-item",{attrs:{"data-role":"project",icon:"description",text:"北京现代-日常价格巡检"},on:{click:function(e){return t.open("/patrol","beijinghyundai_price")}},nativeOn:{"contextmenu-click":function(e){return t.dispatchEvent.apply(null,arguments)},contextmenu:function(e){t.current="beijinghyundai_price"}}}),n("van-grid-item",{attrs:{"data-role":"project",icon:"description",text:"北京现代-重要内容日常巡检"},on:{click:function(e){return t.open("/patrol","beijinghyundai_important")}},nativeOn:{"contextmenu-click":function(e){return t.dispatchEvent.apply(null,arguments)},contextmenu:function(e){t.current="beijinghyundai_important"}}})],1)],1)])},a=[],r=n("1da1"),c=n("5530"),u=(n("96cf"),n("e9c4"),{layout:"full",metaInfo:{title:"网站巡检工具"},data:function(){return{current:""}},computed:{agent:function(){return Object(c["a"])(Object(c["a"])({},this.$store.state.agent),{},{schools:this.$store.state.agent.schools||{},users:this.$store.state.agent.users||{}})}},watch:{agent:{immediate:!0,deep:!0,handler:function(t){"{}"!=JSON.stringify(t)&&this.getDataView()}}},methods:{open:function(t,e){this.$router.push({path:t,query:{key:e}})},getDataView:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$axios.get("admin/dataview");case 2:n=e.sent,t.dataView=n.data.data||{};case 4:case"end":return e.stop()}}),e)})))()},dispatchEvent:function(t){this[t.detail.key]()},edit:function(){this.$router.push({path:"/project/edit",query:{key:this.current}})}}}),o=u,s=(n("bd5f"),n("2877")),p=Object(s["a"])(o,i,a,!1,null,null,null);e["default"]=p.exports},bd5f:function(t,e,n){"use strict";n("fa94")},fa94:function(t,e,n){}}]);