Commit 888e81a1 by 前端

Merge branch 'v1.22.0' into 'master'

V1.22.0版本需求已上线合并代码到master

See merge request !51
2 parents c08d2843 2001b849
......@@ -47,7 +47,7 @@
v-if="item.visibleFunc"
v-model="ruleForm[item.prop]"
:placeholder="item.placeholder || '请选择'"
:filterable="item.filterable || false"
:filterable="item.filterable || false"
@change="selectChange"
@visible-change="item.visibleFunc"
>
......@@ -64,7 +64,7 @@
v-else
v-model="ruleForm[item.prop]"
:placeholder="item.placeholder || '请选择'"
:filterable="item.filterable || false"
:filterable="item.filterable || false"
@change="selectChange"
>
<el-option
......@@ -86,16 +86,17 @@
</template>
<template v-else-if="item.type === 'radio'">
<el-radio-group
@change="radioChange($event,item.prop)"
@change="radioChange($event, item.prop)"
v-model="ruleForm[item.prop]"
:disabled="item.disabled"
>
{{ruleForm[item.prop]}}
{{ ruleForm[item.prop] }}
<el-radio
v-for="(child,childIndex) in item.children"
v-for="(child, childIndex) in item.children"
:key="childIndex"
:label="childIndex"
>{{child}}</el-radio>
>{{ child }}</el-radio
>
</el-radio-group>
<el-select
v-if="item.hasSelect"
......@@ -114,11 +115,7 @@
</el-select>
</template>
<template v-else-if="item.type == 'customize'">
<slot
:scope="scope"
:name="item.slotName"
>
</slot>
<slot :scope="scope" :name="item.slotName"> </slot>
</template>
</template>
</el-form-item>
......@@ -128,62 +125,61 @@
<script>
export default {
name: 'rule-form',
name: "rule-form",
data() {
return {
// labelPosition: 'left'
}
};
},
props: {
// 表单数据
ruleData: {
type: Array,
default: () => {
return []
}
return [];
},
},
// 表单model
ruleForm: {
type: Object,
default: () => {
return {}
}
return {};
},
},
// 表单验证规则
rules: {
type: Object,
default: () => {
return {}
}
return {};
},
},
// 标签位置
labelPosition: {
type: String,
default: 'right'
default: "right",
},
size: {
type: String,
default: 'small'
default: "small",
},
labelWidth: {
type: String,
default: '100px'
}
},
mounted() {
default: "100px",
},
},
mounted() {},
methods: {
selectChange(val) {
this.$emit('selectChange', val)
this.$emit("selectChange", val);
},
radioChange(event, prop) {
this.$emit('radioChange', event, prop)
this.$emit("radioChange", event, prop);
},
update(e) {
this.$forceUpdate()
}
}
}
this.$forceUpdate();
},
},
};
</script>
<style lang="scss">
.pointer input {
......
......@@ -94,5 +94,10 @@ export const JUDGE_USER_BINDVEHICLE = params => {
return request(params,'/trialdrive/data/sniff','POST')
}
// 重置用户uuid
export const REST_USER_UUID = params => {
return request(params,'/usercenter/user/resetUID')
}
export { getUserList, getSuperUser, addUser, editUser, detailUser, deleteUser, roleList, dictInfo, resetPassword}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!