123456 |
- /*!
- * build: Hopaheal
- * copyright: Mead
- * time: 2022-6-7 11:38:49
- */
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6357b5de"],{"236b":function(e,t,r){"use strict";r("a391")},"2ee6":function(e,t,r){"use strict";r.r(t);r("beb2");var o=r("d45c"),n=r.n(o);t["default"]=n.a},8997:function(e,t,r){},"8a70":function(e,t,r){"use strict";r.r(t),r.d(t,"getLists",(function(){return n})),r.d(t,"getNotice",(function(){return a})),r.d(t,"doAdd",(function(){return s})),r.d(t,"doEdit",(function(){return i})),r.d(t,"getDetail",(function(){return l})),r.d(t,"doDelete",(function(){return c})),r.d(t,"doDeletes",(function(){return u})),r.d(t,"getRead",(function(){return d})),r.d(t,"getMessage",(function(){return f})),r.d(t,"clearRead",(function(){return m})),r.d(t,"checktOrder",(function(){return p}));var o=r("b775");function n(e){return Object(o["default"])({url:"/inform/information",method:"get",params:e})}function a(e){return Object(o["default"])({url:"/inform/information-user-messages",method:"get",params:e})}function s(e){return Object(o["default"])({url:"/inform/information",method:"post",data:e})}function i(e){return Object(o["default"])({url:"/inform/information/"+e.id,method:"put",data:e})}function l(e){return Object(o["default"])({url:"/inform/information/"+e,method:"get"})}function c(e){return Object(o["default"])({url:"/inform/information/"+e.ids,method:"delete"})}function u(e){return Object(o["default"])({url:"/inform/information/delete",method:"post",data:e})}function d(e){return Object(o["default"])({url:"/inform/information-user-messages",method:"get",params:e})}function f(e){return Object(o["default"])({url:"/inform/information-read-messages",method:"post",data:e})}function m(e){return Object(o["default"])({url:"/inform/information-read-messages",method:"post",data:e})}function p(e){return Object(o["default"])({url:"/inform/information-check",method:"post",data:e})}},9128:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{staticStyle:{padding:"0 50px"},attrs:{title:e.title,visible:e.dialogFormVisible,width:"800px"},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.close},scopedSlots:e._u([{key:"footer",fn:function(){return[r("el-button",{on:{click:e.close}},[e._v("取 消")]),"编辑"==e.title?r("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v(" 确 定 ")]):e._e(),"添加"==e.title?r("el-button",{attrs:{type:"primary"},on:{click:e.add}},[e._v(" 添加 ")]):e._e()]},proxy:!0}])},[r("el-form",{ref:"form",staticStyle:{width:"80%",margin:"0 auto"},attrs:{"label-width":"80px",model:e.form,rules:e.rules}},[r("el-form-item",{attrs:{label:"公告类型",prop:"category_name"}},[r("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"请选择上级部门"},model:{value:e.form.category_id,callback:function(t){e.$set(e.form,"category_id",t)},expression:"form.category_id"}},[r("el-option",{staticStyle:{height:"auto",padding:"0"},attrs:{label:e.form.category_name,value:e.form.category_id}},[r("el-tree",{ref:"tree",attrs:{data:e.treeData,"default-expand-all":"",props:e.defaultProps},on:{"node-click":e.handleNodeClick}})],1)],1)],1),r("el-form-item",{attrs:{label:"公告名称",prop:"title"}},[r("el-input",{model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),r("el-form-item",{attrs:{label:"公告标签",prop:"tags"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{"allow-create":"","default-first-option":"",filterable:"",multiple:"",placeholder:"请选择公告标签"},model:{value:e.form.tags,callback:function(t){e.$set(e.form,"tags",t)},expression:"form.tags"}},e._l(e.form.tags,(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),r("el-form-item",{attrs:{label:"公告缩略图",prop:"cover"}},[r("el-upload",{staticClass:"upload-demo",attrs:{action:e.action,data:e.uploadData,"file-list":e.fileList,limit:e.limit,"list-type":"picture",multiple:"","on-success":e.uploadSuccess}},[r("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.clearFile}},[e._v(" "+e._s("添加"==e.title?"上传照片":"重新上传")+" ")]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(" 只能上传jpg/png文件,且不超过500kb ")])],1)],1),r("el-form-item",{attrs:{label:"公告简述",prop:"short_description"}},[r("el-input",{attrs:{autosize:"",placeholder:"请输入公告简述",type:"textarea"},model:{value:e.form.short_description,callback:function(t){e.$set(e.form,"short_description",t)},expression:"form.short_description"}})],1),r("el-form-item",{staticClass:"vab-quill-content",attrs:{label:"内容",prop:"body"}},[r("vab-quill",{ref:"vab-quill",attrs:{"min-height":200},model:{value:e.form.body,callback:function(t){e.$set(e.form,"body",t)},expression:"form.body"}})],1),r("el-form-item",{attrs:{label:"发布时间",prop:"published_at"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{format:"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期时间",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.form.published_at,callback:function(t){e.$set(e.form,"published_at",t)},expression:"form.published_at"}})],1),r("el-form-item",{attrs:{label:"公告排序",prop:"sort"}},[r("el-input",{attrs:{type:"number"},model:{value:e.form.sort,callback:function(t){e.$set(e.form,"sort",t)},expression:"form.sort"}})],1),r("el-form-item",{attrs:{label:"公告状态",prop:"status"}},[r("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},[r("el-radio",{attrs:{label:1}},[e._v("正常")]),r("el-radio",{attrs:{label:0}},[e._v("禁用")])],1)],1)],1)],1)},n=[],a=r("1da1"),s=(r("96cf"),r("b0c0"),r("d3b7"),r("25f0"),r("2ee6")),i=r("ab6c"),l=r("8a70"),c=r("f121"),u={name:"NoticeAdd",components:{VabQuill:s["default"]},data:function(){return{treeData:[],defaultProps:{children:"children",label:"name",leaf:!0},form:{is_message:1,status:1,sort:0},action:"",uploadShow:!0,uploadData:{file_type:"img",type:"article"},fileList:[],limit:1,rules:{category_id:[{required:!0,trigger:"blur",message:"请选择公告类型"}],title:[{required:!0,trigger:"blur",message:"请输入公告名称"}],tags:[{required:!0,trigger:"blur",message:"请输入公告描述"}],cover:[{required:!0,trigger:"blur",message:"请上传公告缩略图"}],short_description:[{required:!0,trigger:"blur",message:"请输入公告段介绍"}],published_at:[{required:!0,trigger:"change",message:"请选择公告发布时间"}],sort:[{required:!0,trigger:"blur",message:"请输入公告排序"}]},title:"",dialogFormVisible:!1}},created:function(){console.log(c["baseURL"],"baseURL"),this.getTree(),this.action=c["baseURL"]+"/base/common/upload",this.fileList=[]},methods:{uploadSuccess:function(e){console.log(e,"图片上传成功"),this.form.cover=e.data.url},clearFile:function(){console.log("上传之前"),this.imageUrl=""},handleNodeClick:function(e){console.log(e,"node"),this.form.category_name=e.name,this.form.category_id=e.id,this.$forceUpdate()},showEdit:function(e){e?(this.title="编辑",this.form=Object.assign({},e),this.form.category_id=this.form.category_name):this.title="添加",this.dialogFormVisible=!0},close:function(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.fileList=[]},add:function(){var e=this;this.$refs["form"].validate(function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(r){var o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=9;break}return t.next=3,Object(l["doAdd"])(e.form);case 3:o=t.sent,n=o.message,e.$baseMessage(n,"success",!1,"vab-hey-message-success"),e.$emit("fetch-data"),e.close(),e.fileList=[];case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},save:function(){var e=this;this.form.tags=this.form.tags.toString(),this.$refs["form"].validate(function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(r){var o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=9;break}return t.next=3,Object(l["doEdit"])(e.form);case 3:o=t.sent,n=o.message,e.$baseMessage(n,"success",!1,"vab-hey-message-success"),e.$emit("fetch-data"),e.close(),e.fileList=[];case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},getTree:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(i["getList"])();case 3:r=t.sent,o=r.data,e.treeData=o,console.log(e.treeData,"左侧的tree数据信息"),e.listLoading=!1;case 8:case"end":return t.stop()}}),t)})))()}}},d=u,f=(r("236b"),r("2877")),m=Object(f["a"])(d,o,n,!1,null,null,null);t["default"]=m.exports},a391:function(e,t,r){e.exports={"menu-color":"#001b34","menu-color-active":"#fff","menu-background":"#fff","column-second-menu-background":"#fff"}},ab6c:function(e,t,r){"use strict";r.r(t),r.d(t,"getTree",(function(){return n})),r.d(t,"getList",(function(){return a})),r.d(t,"doAdd",(function(){return s})),r.d(t,"doEdit",(function(){return i})),r.d(t,"doDelete",(function(){return l})),r.d(t,"getNoList",(function(){return c}));var o=r("b775");function n(e){return Object(o["default"])({url:"/inform/category-user-tree",method:"get",params:e})}function a(e){return Object(o["default"])({url:"/inform/category-user-tree",method:"get",params:e})}function s(e){return Object(o["default"])({url:"/inform/category",method:"post",data:e})}function i(e){return Object(o["default"])({url:"/inform/category/"+e.id,method:"put",data:e})}function l(e){return Object(o["default"])({url:"/inform/category/"+e.ids,method:"delete"})}function c(e){return Object(o["default"])({url:"/base/role-lists",method:"get",params:e})}},c4e1:function(e,t,r){"use strict";r("8997")},f1f0:function(e,t,r){e.exports=r.p+"static/img/data_empty.475a2a1e.png"},f908:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"menu-management-container"},[o("div",{staticClass:"left"},[o("el-card",{attrs:{"body-style":"width:200px",shadow:"hover"}},[o("el-tree",{attrs:{data:e.treeData,"default-expand-all":!0,"expand-on-click-node":!1,"node-key":"id",props:e.defaultProps,"render-content":e.renderContent},on:{"node-click":e.handleNodeClick}})],1)],1),o("div",{staticClass:"right"},[o("el-card",{attrs:{shadow:"hover"}},[o("vab-query-form",[o("vab-query-form-left-panel",{attrs:{span:12}},[o("el-button",{attrs:{icon:"el-icon-plus",type:"primary"},on:{click:e.handleEdit}},[e._v(" 添加 ")]),1==e.role_id?o("el-button",{attrs:{icon:"el-icon-delete",type:"danger"},on:{click:e.handleDelete}},[e._v(" 批量删除 ")]):e._e()],1),o("vab-query-form-right-panel",{attrs:{span:12}},[o("el-form",{attrs:{inline:!0,model:e.queryForm},nativeOn:{submit:function(e){e.preventDefault()}}},[o("el-form-item",[o("el-input",{attrs:{clearable:"",placeholder:"请输入标题"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.queryData.apply(null,arguments)}},model:{value:e.queryForm.title,callback:function(t){e.$set(e.queryForm,"title","string"===typeof t?t.trim():t)},expression:"queryForm.title"}})],1),o("el-form-item",[o("el-select",{ref:"selectblur",attrs:{clearable:"",placeholder:"审核状态"},model:{value:e.queryForm.check_status,callback:function(t){e.$set(e.queryForm,"check_status",t)},expression:"queryForm.check_status"}},e._l(e.status_list,(function(e,t){return o("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),o("el-form-item",[o("el-button",{attrs:{icon:"el-icon-search",type:"primary"},on:{click:e.queryData}},[e._v(" 查询 ")])],1)],1)],1)],1),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{border:"",data:e.list,"default-expand-all":""},on:{"selection-change":e.setSelectRows,"sort-change":e.onSortChange},scopedSlots:e._u([{key:"empty",fn:function(){return[o("el-image",{staticClass:"vab-data-empty",attrs:{src:r("f1f0")}})]},proxy:!0}])},[o("el-table-column",{attrs:{"show-overflow-tooltip":"",type:"selection"}}),o("el-table-column",{attrs:{align:"center",label:"标题","min-width":"120",prop:"title","show-overflow-tooltip":""}}),o("el-table-column",{attrs:{align:"center",label:"描述","min-width":"120",prop:"short_description","show-overflow-tooltip":""}}),o("el-table-column",{attrs:{align:"center",label:"标签","min-width":"120",prop:"tags","show-overflow-tooltip":"","sort-orders":["ascending","descending"],sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return e._l(r.tags,(function(t,r){return o("el-tag",{key:r,attrs:{type:"success"}},[e._v(" "+e._s(t)+" ")])}))}}])}),o("el-table-column",{attrs:{align:"center",label:"缩略图","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[r.cover_resource?o("el-image",{attrs:{src:r.cover_resource.url}}):o("span",[e._v("--")])]}}])}),1==e.role_id?o("el-table-column",{attrs:{align:"center",label:"作者","min-width":"120",prop:"admin_name","show-overflow-tooltip":""}}):e._e(),o("el-table-column",{attrs:{align:"center",label:"排序","min-width":"110",prop:"sort","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[o("div",{staticClass:"edit"},[e.editForm.id==r.id&&1==e.editStatus?o("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.cancelSort(r)}}}):e._e(),e.editForm.id!==r.id||0==e.editStatus?o("span",{staticClass:"sort-num"},[e._v(" "+e._s(r.sort)+" ")]):e._e(),e.editForm.id==r.id&&1==e.editStatus?o("el-input",{ref:"getFocus",staticClass:"input-sort",on:{input:e.inputSort},model:{value:r.sort,callback:function(t){e.$set(r,"sort",t)},expression:"row.sort"}}):e._e(),e.editForm.id!==r.id||0==e.editStatus?o("i",{staticClass:"el-icon-edit",on:{click:function(t){return e.changeSort(r)}}}):e._e(),e.editForm.id==r.id&&1==e.editStatus?o("i",{staticClass:"el-icon-circle-check",on:{click:function(t){return t.stopPropagation(),e.sureChange.apply(null,arguments)}}}):e._e()],1)]}}])}),o("el-table-column",{attrs:{align:"center",label:"创建时间","min-width":"120",prop:"created_at","show-overflow-tooltip":"","sort-orders":["ascending","descending"],sortable:"custom"}}),o("el-table-column",{attrs:{align:"center",label:"活动状态",prop:"status","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[1==r.status?o("el-tag",[e._v("正常")]):e._e(),0==r.status?o("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(1!=e.role_id?"取消":"禁用")+" ")]):e._e()]}}])}),o("el-table-column",{attrs:{align:"center",label:"审核状态",prop:"check_status","show-overflow-tooltip":"","sort-orders":["ascending","descending"],sortable:"custom",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return["--"==r.order_no?o("div",[e._v("--")]):e._e(),o("div",[0==r.check_status?o("el-tag",{attrs:{type:"warning"}},[e._v(" 待审核 ")]):e._e(),1==r.check_status?o("el-tag",[e._v("审核通过")]):e._e(),2==r.check_status?o("el-tag",{attrs:{type:"danger"}},[e._v(" 审核失败 ")]):e._e()],1)]}}])}),o("el-table-column",{attrs:{align:"center",fixed:"right",label:"操作","min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[1==e.role_id||1!=r.check_status&&2==e.role_id&&e.id==r.admin_id?o("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleEdit(r)}}},[e._v(" 编辑 ")]):e._e(),o("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleShow(r)}}},[e._v("详情")]),1==e.role_id?o("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleExamine(r)}}},[e._v(" 审核 ")]):e._e(),1==e.role_id||1!=r.check_status&&2==e.role_id&&e.id==r.admin_id?o("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleDelete(r)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),o("el-pagination",{attrs:{background:"","current-page":e.queryForm.page,layout:e.layout,"page-size":e.queryForm.per_page,"page-sizes":[15,20,30,40,50,100],total:e.meta.total},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1),o("el-dialog",{attrs:{"close-on-click-modal":!1,title:"审核",visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[o("el-form",{ref:"shenhe_form",staticStyle:{width:"90%",margin:"0 auto"},attrs:{"label-width":"80px",model:e.shenhe}},[o("el-form-item",{attrs:{label:"审核状态",prop:"check_status"}},[o("el-radio-group",{model:{value:e.shenhe.check_status,callback:function(t){e.$set(e.shenhe,"check_status",t)},expression:"shenhe.check_status"}},[o("el-radio",{attrs:{label:1}},[e._v("审核通过")]),o("el-radio",{attrs:{label:2}},[e._v("审核失败")])],1)],1)],1),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:e.sure_shenhe}},[e._v("确 定")])],1)],1),o("edit",{ref:"edit",on:{"fetch-data":e.getList}})],1)},n=[],a=r("1da1"),s=r("5530"),i=(r("d81d"),r("b0c0"),r("4e82"),r("96cf"),r("ab6c")),l=r("8a70"),c=r("9128"),u=r("4360"),d=r("2f62"),f={name:"Notice",components:{Edit:c["default"]},data:function(){return{editForm:{},oldSort:0,editStatus:0,flag:!1,language:u["default"].getters["settings/language"],selectRows:[],defaultProps:{children:"children",label:"name",leaf:!0},translate:"",list:[],meta:{},childrenId:[],treeData:[],readData:[],messageData:[],listLoading:!0,layout:"total, sizes, prev, pager, next, jumper",queryForm:{page:1,per_page:15,title:"",sortedBy:"desc",orderBy:""},dialogVisible:!1,shenhe:{check_status:1},status_list:[{id:0,name:"待审核"},{id:1,name:"审核通过"},{id:2,name:"审核失败"}]}},computed:Object(s["a"])({},Object(d["c"])({role_id:"user/role_id",id:"user/user_id"})),created:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.getList(),e.getTree(),console.log(e.role_id,"role_id"),console.log(e.id,"id");case 4:case"end":return t.stop()}}),t)})))()},activated:function(){this.getTree(),this.getList()},methods:{renderContent:function(e,t){var r=t.node,o=t.data;return console.log(r.key,o),e("span",{class:"tree-node"},[e("span",[r.label])])},handleExamine:function(e){this.dialogVisible=!0,this.shenhe.id=e.id},sure_shenhe:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log(e.shenhe,"sure_shenhe"),e.dialogVisible=!1,t.next=4,Object(l["checktOrder"])(e.shenhe);case 4:e.getList(),e.$refs["shenhe_form"].resetFields();case 6:case"end":return t.stop()}}),t)})))()},handleSizeChange:function(e){this.queryForm.per_page=e,this.getList()},handleCurrentChange:function(e){this.queryForm.page=e,this.getList()},queryData:function(){console.log(this.queryForm,"1111111111111111111111111111"),this.queryForm.page=1,this.getList()},handleEdit:function(e){console.log("9999999"),e.id?this.$router.push({path:"/notice/noticeEdit",query:{row:e}}):this.$router.push({path:"/notice/noticeEdit"})},handleShow:function(e){this.$router.push({path:"/notice/details",query:{id:e.id}})},setSelectRows:function(e){this.selectRows=e},handleDelete:function(e){var t=this;if(e.id)this.$baseConfirm("你确定要删除当前项吗",null,Object(a["a"])(regeneratorRuntime.mark((function r(){var o,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,Object(l["doDelete"])({ids:e.id});case 2:return o=r.sent,n=o.message,t.$baseMessage(n,"success",!1,"vab-hey-message-success"),r.next=7,t.getList();case 7:case"end":return r.stop()}}),r)}))));else if(console.log(e.id,"000000000000"),this.selectRows.length>0){var r=this.selectRows.map((function(e){return e.id}));this.$baseConfirm("你确定要删除选中项吗",null,Object(a["a"])(regeneratorRuntime.mark((function e(){var o,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(l["doDeletes"])({ids:r});case 2:return o=e.sent,n=o.message,t.$baseMessage(n,"success",!1,"vab-hey-message-success"),e.next=7,t.getList();case 7:case"end":return e.stop()}}),e)}))))}else this.$baseMessage("未选中任何行","error",!1,"vab-hey-message-error")},onSortChange:function(e){console.log(e,"prop"),"ascending"==e.order&&(this.queryForm.sortedBy="asc"),"descending"==e.order&&(this.queryForm.sortedBy="desc"),this.queryForm.orderBy=e.prop,this.getList()},getList:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(l["getLists"])(e.queryForm);case 3:r=t.sent,o=r.data,console.log(o,"所有的数据"),e.list=o.list,e.meta=o.meta.pagination,console.log(e.list,e.meta,"table表中的数据和翻页数据"),e.listLoading=!1;case 10:case"end":return t.stop()}}),t)})))()},getTree:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(i["getTree"])();case 3:r=t.sent,o=r.data,e.treeData=o,console.log(e.treeData,"左侧的tree数据信息1"),e.listLoading=!1;case 8:case"end":return t.stop()}}),t)})))()},handleNodeClick:function(e){console.log(e,"11111111111111111"),this.queryForm.category_id=e.id,this.queryForm.category_name=e.name,console.log(this.queryForm,"this.queryForm"),this.getList(this.queryForm,"00000")},cancelSort:function(e){this.editStatus=0,e.sort=this.oldSort},inputSort:function(e){console.log(e,"input排序编辑框"),this.editForm.sort=e},changeSort:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:console.log("1111111111"),t.editStatus=1,t.editForm=e,t.oldSort=e.sort,t.$nextTick((function(){t.$refs["getFocus"].focus()}));case 5:case"end":return r.stop()}}),r)})))()},sureChange:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function r(){var o,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(console.log(e,"22222222222"),t.editStatus=0,t.oldSort===t.editForm.sort){r.next=12;break}return r.next=5,Object(l["doEdit"])(t.editForm);case 5:o=r.sent,n=o.message,console.log(n,"message"),t.$baseMessage(n,"success",!1,"vab-hey-message-success"),t.getList(),r.next=13;break;case 12:return r.abrupt("return");case 13:case"end":return r.stop()}}),r)})))()}}},m=f,p=(r("c4e1"),r("2877")),h=Object(p["a"])(m,o,n,!1,null,"4a889a7e",null);t["default"]=h.exports}}]);
|