diff --git a/src/view/user/modal/edit.vue b/src/view/user/modal/edit.vue
index 7c231d1..e0a149a 100644
--- a/src/view/user/modal/edit.vue
+++ b/src/view/user/modal/edit.vue
@@ -1,64 +1,89 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 男
- 女
-
-
-
-
-
-
-
- {{post.name}}
-
-
-
-
-
-
-
-
-
+ layout="vertical"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 男
+ 女
+
+
+
+
+
+
+
+
+
+
+
+ {{ post.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+
diff --git a/src/view/user/modal/info.vue b/src/view/user/modal/info.vue
index 8f116ee..e378bdc 100644
--- a/src/view/user/modal/info.vue
+++ b/src/view/user/modal/info.vue
@@ -8,52 +8,77 @@
@cancel="cancel"
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 男
- 女
-
-
-
-
-
-
-
- {{post.name}}
-
-
-
-
-
-
-
-
-
+ layout="vertical"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 男
+ 女
+
+
+
+
+
+
+
+
+
+
+
+ {{ post.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -68,36 +93,35 @@ export default defineComponent({
},
record: {
type: Object,
- }
+ },
},
emit: ["close"],
setup(props, context) {
-
const formRef = ref();
- const state = reactive({
+ const state = reactive({
posts: [],
- depts: [],
- })
-
+ depts: [],
+ });
+
const formState = reactive({
enable: true,
- gender: "0",
+ gender: "0",
});
const formRules = {};
const loadPost = () => {
- list({}).then((response)=>{
+ list({}).then((response) => {
state.posts = response.data;
- })
- }
+ });
+ };
const loadTree = () => {
- tree({}).then((response)=>{
+ tree({}).then((response) => {
state.depts = response.data;
- })
- }
+ });
+ };
const submit = (e) => {
formRef.value.resetFields();
@@ -114,7 +138,7 @@ export default defineComponent({
/// 加载部门
loadTree();
- watch(props,(props) => {
+ watch(props, (props) => {
formState.id = props.record.id;
formState.username = props.record.username;
formState.nickname = props.record.nickname;
@@ -125,7 +149,7 @@ export default defineComponent({
formState.deptId = props.record.deptId;
formState.enable = props.record.enable;
formState.remark = props.record.remark;
- })
+ });
return {
state,
@@ -138,8 +162,13 @@ export default defineComponent({
labelCol: { span: 6 },
wrapperCol: { span: 18 },
- replaceFields: {children:'children', title:'name', key:'id', value: 'id' }
+ replaceFields: {
+ children: "children",
+ title: "name",
+ key: "id",
+ value: "id",
+ },
};
},
});
-
\ No newline at end of file
+
diff --git a/src/view/user/modal/save.vue b/src/view/user/modal/save.vue
index 5158d8f..567fe2b 100644
--- a/src/view/user/modal/save.vue
+++ b/src/view/user/modal/save.vue
@@ -8,60 +8,91 @@
@cancel="cancel"
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 男
- 女
-
-
-
-
-
-
-
- {{post.name}}
-
-
-
-
-
-
-
-
-
+ layout="vertical"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ post.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 男
+ 女
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+