11 2021 档案
摘要:// get请求获取数据(有参数) getDataList: function () { this.$http.get('/api/edu_classroom', { params: { page: this.pageIndex, size: this.pageSize, sort: "create
阅读全文
摘要://map()根据当前数组映射出一个新的数组,map和forEach等遍历方法不同,在forEach中return语句是没有任何效果的,而map则可以改变当前循环的值,返回一个新的被改变过值之后的数组(map需return),一般用来处理需要修改某一个数组的值。 let arr1 = [1,2,3]
阅读全文
摘要://引入实例
import sha1 from '../../utils/sha1'
const temp_info = Object.assign({}, this.info)
this.$set(temp_info, 'password', sha1.hex_sha1(this.info.password))
this.$set(temp_info, 'confirmPassword', sha1.hex_sha1(this.info.confirmPassword))
阅读全文
摘要:<el-table @sort-change="sortChange" stripe :data="dataList" border style="width: 100%" @selection-change="selectionChangeHandle" :header-cell-style="{
阅读全文
摘要:<style> .el-tooltip__popper { font-size: 15px; max-width: 400px !important; } </style> <el-table-column show-overflow-tooltip prop="department" header
阅读全文
摘要://校验密码一致性 var isPasswdAffirm = (rule, value, callback) => { if (this.adminInfo.adminPwd) { if (value == this.adminInfo.adminPwd) { callback() } else {
阅读全文
摘要:# 关闭当前tag 跳转到其他路由 this.$store.dispatch('tagsView/delVisitedView', this.$route) // 跳转到指定路由 this.$router.replace({ path: '/dt/dt_template_config', query
阅读全文
浙公网安备 33010602011771号