diff --git a/src/views/user/picuserimport.vue b/src/views/user/picuserimport.vue
index a93e80d..52c1f73 100644
--- a/src/views/user/picuserimport.vue
+++ b/src/views/user/picuserimport.vue
@@ -36,15 +36,6 @@
-
-
-
-
-
-
@@ -90,6 +81,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 男
+ 女
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -166,6 +213,8 @@ import { formatTime } from '@/utils/util'
],
//表格数据
table_data: [],
+ dialogVisible:false,
+ form:{},
};
},
methods: {
@@ -219,26 +268,13 @@ import { formatTime } from '@/utils/util'
//编辑
handleEdit(index, row) {
+ this.dialogVisible = true;
if (row.ViewPath) {
this.currentFilePath = row.ViewPath;
} else {
this.currentFilePath = '';
}
- // debugger;
- // if(this.table_data)
- // this.table_data = this.table_data.map(t=>{
- // t.edit = false;
- // return t;
- // })
- this.table_data.forEach((o, i) => {
- this.$set(this.table_data[i], 'edit', i == index)
- });
- // this.table_data = Object.assign({},this.table_data);
- // this.table_data[index].edit = true;
- // this.table_data.push(this.table_data.pop());
- // this.$forceUpdate();
-
- // this.$set(this.table_data[index],'edit',true)
+ this.form=row;
},
//删除
handleDelete(index, row) {
@@ -266,18 +302,13 @@ import { formatTime } from '@/utils/util'
//保存
handleSave(index, row) {
- delete this.table_data[index].edit;
- let formData = {
- ...row
- };
- delete formData.DataJsonObj;
- UserInfo_Update(row);
- this.table_data.push(this.table_data.pop());
+ UserInfo_Update(this.form);
this.$forceUpdate();
this.$message({
message: "保存成功!",
type: "success",
});
+ this.dialogVisible = false;
},
handleCancelSave(index, row) {
delete this.table_data[index].edit;