forked from github/dataease
Merge pull request #4396 from dataease/pr@dev_memory_component
Pr@dev memory component
This commit is contained in:
commit
c6282a79e6
@ -261,7 +261,6 @@ export default {
|
|||||||
|
|
||||||
.condition-content-container {
|
.condition-content-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: table;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@ -269,8 +268,6 @@ export default {
|
|||||||
|
|
||||||
.first-element {
|
.first-element {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: table-cell;
|
|
||||||
vertical-align: middle;
|
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -298,6 +295,7 @@ export default {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border: 1px solid #d7dae2;
|
border: 1px solid #d7dae2;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.condition-main-line {
|
.condition-main-line {
|
||||||
|
@ -799,6 +799,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
changeDatasource() {
|
changeDatasource() {
|
||||||
|
this.keywords = ''
|
||||||
for (let i = 0; i < this.options.length; i++) {
|
for (let i = 0; i < this.options.length; i++) {
|
||||||
if (this.options[i].id === this.dataSource) {
|
if (this.options[i].id === this.dataSource) {
|
||||||
this.selectedDatasource = this.options[i]
|
this.selectedDatasource = this.options[i]
|
||||||
|
@ -253,7 +253,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
li.select {
|
li.select {
|
||||||
background: var(--deWhiteHover, #ecf5ff) !important;
|
background: var(--deWhiteHover, #e0eaff) !important;
|
||||||
color: var(--TextActive, #3370ff) !important;
|
color: var(--TextActive, #3370ff) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,7 +223,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { PHONE_REGEX } from '@/utils/validate'
|
|
||||||
import { getDeptTree, treeByDeptId } from '@/api/system/dept'
|
import { getDeptTree, treeByDeptId } from '@/api/system/dept'
|
||||||
import { addUser, editUser, allRoles, queryAssist } from '@/api/system/user'
|
import { addUser, editUser, allRoles, queryAssist } from '@/api/system/user'
|
||||||
import { pluginLoaded, defaultPwd, wecomStatus, dingtalkStatus, larkStatus } from '@/api/user'
|
import { pluginLoaded, defaultPwd, wecomStatus, dingtalkStatus, larkStatus } from '@/api/user'
|
||||||
@ -280,7 +279,7 @@ export default {
|
|||||||
],
|
],
|
||||||
phone: [
|
phone: [
|
||||||
{
|
{
|
||||||
pattern: PHONE_REGEX,
|
validator: this.phoneRegex,
|
||||||
message: this.$t('user.phone_format'),
|
message: this.$t('user.phone_format'),
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}
|
}
|
||||||
@ -413,6 +412,16 @@ export default {
|
|||||||
callback()
|
callback()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
phoneRegex(rule, value, callback) {
|
||||||
|
const regep = new RegExp(/^1[3-9]\d{9}$/)
|
||||||
|
|
||||||
|
if (!regep.test(value)) {
|
||||||
|
const msg = this.$t('user.phone_format')
|
||||||
|
callback(new Error(msg))
|
||||||
|
} else {
|
||||||
|
callback()
|
||||||
|
}
|
||||||
|
},
|
||||||
validateUsername(rule, value, callback) {
|
validateUsername(rule, value, callback) {
|
||||||
const pattern = '^[a-zA-Z][a-zA-Z0-9\._-]*$'
|
const pattern = '^[a-zA-Z][a-zA-Z0-9\._-]*$'
|
||||||
const regep = new RegExp(pattern)
|
const regep = new RegExp(pattern)
|
||||||
|
@ -304,6 +304,7 @@
|
|||||||
type="text"
|
type="text"
|
||||||
@click="unlock(scope.row)"
|
@click="unlock(scope.row)"
|
||||||
>{{ $t("commons.unlock") }}</el-button>
|
>{{ $t("commons.unlock") }}</el-button>
|
||||||
|
<span v-else> </span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</grid-table>
|
</grid-table>
|
||||||
|
Loading…
Reference in New Issue
Block a user