diff --git a/.gitignore b/.gitignore index e52f20a..b1c025c 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ tests/**/coverage/ *.njsproj *.sln vue.config.js +vue.config.js 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; diff --git a/src/views/user/userlist.vue b/src/views/user/userlist.vue index be554f2..b8ceb15 100644 --- a/src/views/user/userlist.vue +++ b/src/views/user/userlist.vue @@ -1,140 +1,148 @@ \ No newline at end of file + .seetingsDiv { + display: flex; + align-items: center; + width: 100%; + padding-top: 10px; + padding-left: 10px; + height: 126px; + background: #efefef; + line-height: initial !important; + border-radius: 5px; + box-shadow: 0 0 5px #cdcdcd; + justify-content: space-between; + } + .seetingsDiv button { + height: 40px; + background-color: #304156; + border: 0px; + margin-left: 10px; + box-shadow: 0 0 5px #cdcdcd; + float: none; + margin-right: 10px; + } + .el-tag+.el-tag { + margin-left: 10px; + } + .button-new-tag { + margin-left: 10px; + height: 32px; + line-height: 30px; + padding-top: 0; + padding-bottom: 0; + } + .input-new-tag { + width: 90px; + margin-left: 10px; + vertical-align: bottom; + } + .el-form-itemByWang { + width: 33% !important; + float: left !important; + } +