|
@@ -103,8 +103,8 @@
|
|
|
</el-row>
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="用户账号配额" prop="number">
|
|
|
- <el-input v-model="ruleForm.number" placeholder="请输入用户账号配额"></el-input>
|
|
|
+ <el-form-item label="用户账号配额" prop="number" >
|
|
|
+ <el-input-number style="width:100%" controls-position="right" :max="99" :min="0" v-model="ruleForm.number" :step="10" placeholder="请输入用户账号配额"></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
@@ -329,10 +329,13 @@ export default {
|
|
|
this.$refs.ruleForm.validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.ruleForm.functions=[]
|
|
|
- for(var i =0;i<this.ruleForm.function.length;i++){
|
|
|
+ if(this.ruleForm.hasOwnProperty('function')){
|
|
|
+ for(var i =0;i<this.ruleForm.function.length;i++){
|
|
|
var a =this.ruleForm.function[i].join(',')
|
|
|
this.ruleForm.functions.push(a)
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
this.btnLoading = true
|
|
|
if (this.ruleForm.id) {
|
|
|
this.$api.editTenant(this.ruleForm).then(response => {
|
|
@@ -397,8 +400,14 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
-
|
|
|
+<style lang="scss">
|
|
|
+ .el-input-number .el-input__inner{
|
|
|
+ text-align: left;
|
|
|
+ padding-left: 0;
|
|
|
+ }
|
|
|
+</style>
|
|
|
<style lang="scss" scoped>
|
|
|
+
|
|
|
.admin-client {
|
|
|
|
|
|
}
|