diff --git a/src/views/design/received/index.vue b/src/views/design/received/index.vue index 0095806..3dfa5ef 100644 --- a/src/views/design/received/index.vue +++ b/src/views/design/received/index.vue @@ -482,8 +482,6 @@ const exportTemplate = async () => { }; const importTemplate = async (files, fileList) => { // 导入表格数据 - console.log(fileList); - const file = fileList[0].raw; // 获取原始文件对象 const reader = new FileReader(); let obj = { @@ -512,17 +510,18 @@ const importTemplate = async (files, fileList) => { return; } let arr = []; + // 判断form.documents 是否对象 jsonData.forEach((item, index) => { if (item[obj.id]) { arr.push({ id: Date.now() + index, - catalogueName: item[obj.name], + catalogueName: item[obj.fliename], remark: item[obj.remark], userId: item[obj.id] }); } }); - form.documents = form.documents.concat(arr); + form.documents = arr; uploadRef.value.clearFiles(); console.log(arr); } catch (err) {} diff --git a/src/views/system/user/comm/editInfo.vue b/src/views/system/user/comm/editInfo.vue new file mode 100644 index 0000000..f91ef6c --- /dev/null +++ b/src/views/system/user/comm/editInfo.vue @@ -0,0 +1,254 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + + + + + + + 确 定 + 取 消 + + + + + + diff --git a/src/views/system/user/index copy.vue b/src/views/system/user/index copy.vue new file mode 100644 index 0000000..87d6aef --- /dev/null +++ b/src/views/system/user/index copy.vue @@ -0,0 +1,788 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + + 重置 + + + + + + + + + + + 新增 + + + + 修改 + + + + + 删除 + + + + + + 更多 + + + + + + + 下载模板 + 导入数据 + 导出数据 + + + + + + + + + + + + + + + + + + + + + + + + {{ scope.row.createTime }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + + + + + + + + + + + + + + + + + 将文件拖到此处,或点击上传 + + + + + 是否更新已经存在的用户数据 + + 仅允许导入xls、xlsx格式文件。 + 下载模板 + + + + + + + + + + + + + + 取消 + 确定 + + + + + + + + + diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 1e02ed5..c3e11ee 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -154,115 +154,17 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ dict.label }} - - - - - - - - - - - -