- 博客(13)
- 收藏
- 关注
原创 自定义数据字典
// 回显数据字典 全局引入import { selectDictLabel, selectDictLabels,} from '@/utils/ruoyi'// 挂载Vue.prototype.selectDictLabel = selectDictLabel Vue.prototype.selectDictLabels = selectDictLabels//import { selectListLabel, loadingControl, getPublicTypePat.
2022-04-10 13:40:34
1370
原创 自定义tabs切换组件
//子组件// 注册全局组件import Tabs from '@/components/Tabs'//全局组件挂载Vue.component('Tabs', Tabs)// <template> <div class="tabs"> <div class="tabsName"> <span>选择场地:</span> <button v-for="(tab, key) in...
2022-04-10 10:48:25
1183
原创 简写if else
第一种省略括号/*** js 判断的几种写法*/var a = 10,b = 20;console.log(a);console.log(b);/*最直接*/if(a > b){ console.log('a大');}else{ console.log('b大');};/*改变1*/if(a > b) console.log('a大');if(a < b) console.log('b大');/*改变2*/if(a > b) console.l...
2022-04-10 10:39:13
361
原创 Set实现数组去重
第一种let arr = [12,43,23,43,68,12];let item = new Set(arr);console.log(item);//结果输出的是一个对象//使用Array.from转成数组let arr = [12,43,23,43,68,12];let item = Array.from(new Set(arr));console.log(item);// [12, 43, 23, 68]第二种let arr = [12,43,23,43,68,12]
2021-10-28 15:16:17
113
原创 elementui -自定义复制功能 无需下载插件纯原生实现
html<el-table-column :label="$t('tenant.title07')" header-align="center" align="center"> <template v-slot="scope"> <div>{{ $t("tenant.title30") }}{{ scope.row.adminAddress }}</div> <div>{{ $t("t.
2021-10-18 14:42:23
285
原创 关于处理数据的问题(2)
下拉框处理数据rows: [{ companyid: 3, company_name: "厂商名称2", algorithm: [{ algorithmid: 1, algorithm_name: "算法名称1", // 算法名 },] }, { c.
2021-10-11 10:05:10
81
原创 关于处理数据的问题(1)
rows:[{"id":11111,"valid_time":{"start":"2020-12-05T13:51:22.000+0000","end":"9999-12-31T23:59:59.000+0000"},},{...
2021-10-11 09:35:37
259
原创 typescript常用类型
//ts类型注解:约定了什么类型,就只能给变量赋值该类型的值//js已有的类型:number/string/boolean/nul/undefined/symbol(生成唯一的标识)对象类型:object//ts原始类型:number/string/booleanletnum1:number=10letnum2:boolean=falseletnum3:string='a'//ts对象类型:数组类型number[](推荐写法),Array&...
2021-06-09 14:10:12
2734
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人