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