mirror of
https://github.com/jumpserver/lina.git
synced 2025-11-07 18:08:50 +00:00
Compare commits
2 Commits
pr@dev@ass
...
v2.12.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce614bba7c | ||
|
|
29d3647579 |
@@ -104,7 +104,7 @@ export default {
|
||||
return route
|
||||
},
|
||||
cleanFormValue(values) {
|
||||
if (!values.update_password) {
|
||||
if (this.$route.params.id && !values.update_password) {
|
||||
delete values['password']
|
||||
}
|
||||
return values
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<script type="text/jsx">
|
||||
<template>
|
||||
<p class="item-value">{{ iValue }}</p>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: 'ItemValue',
|
||||
props: {
|
||||
@@ -15,15 +18,21 @@ export default {
|
||||
default: null
|
||||
}
|
||||
},
|
||||
render(h) {
|
||||
if (typeof this.formatter === 'function') {
|
||||
return this.formatter(this.item, this.value)
|
||||
computed: {
|
||||
iValue() {
|
||||
let value = this.value
|
||||
if (typeof this.formatter === 'function') {
|
||||
value = this.formatter(this.item, this.value)
|
||||
}
|
||||
return value
|
||||
}
|
||||
return <span>{this.value}</span>
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.item-value {
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user