yirimixins
v1.0.1
Published
<!-- * @Author: your name * @Date: 2022-03-07 14:13:05 * @LastEditTime: 2022-03-08 14:17:57 * @LastEditors: Please set LastEditors * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE *
Downloads
7
Readme
翌日科技前端 Mixins 方法文档
官方文档:https://cn.vuejs.org/v2/guide/mixins.html 说明:Mixins 所需的方法或者 Data 都在 data 里面声明,无需在页面写第二遍,如果写了系统的,会覆盖掉 Mixins 的内容。 注意:不要随意改任何 Mixins 名称,涉及到导出导出,上传等参数的调用
表单类
MXformData:{} MXResetForm(ref,obj) 清空表单的方法 obj=> 找不到 ref 的情况的销毁(选填) eg: ei-from ref="sysLogelForm"=> MXResetForm('sysLogelForm',obj)
表格类
MXIDs: [] 批量删除的 Key MXclickType: "", 表格数据点击后的 方法类型 edit=>编辑 view=>查看 add=>新增 delete=>删除(可扩充,用于表单状态判断,不要轻易更改) MXclickData: {}, 表格点击后的当前行数据(复制一套,避免修改后引起表格行内数据更换)
表格点击方法
//删除 IP:接口地址 MXDelete(row,IP) //批量删除 MXdeleteAll(IP)
定时任务类
MXIntervalData() 定时任务中执行的函数名称 MXsetIntervalTime 定时任务中执行时长 MXsetIntervalTime:1000
上传
下载
type:Select=>条件,user=>弹窗给用户选择 query 条件的参数类型 url 接口地址 MXdownload(type = "user", query = {}, url = "")