物资厂家文件出现重复新增bug

This commit is contained in:
jjLv 2024-10-29 14:53:33 +08:00
parent 56a6ad55fc
commit 38b9e2c32e
3 changed files with 28 additions and 3 deletions

View File

@ -523,7 +523,7 @@ export default {
<i class={iconClass}></i> {node.label}
</span>
);
s
},
/** 查询人员列表 */
getUserList() {

View File

@ -520,6 +520,7 @@
},
async getImaUpload(){
this.businessLicenseFileList = []
const reqData = new FormData()
const {fileTwo} = await this.getFileData()
let res = await imgUpLoadThree(fileTwo);

View File

@ -22,6 +22,7 @@
:props="defaultProps"
:expand-on-click-node="false"
:filter-node-method="filterNode"
:render-content="renderConent"
ref="tree"
node-key="id"
default-expand-all
@ -261,6 +262,7 @@ import {
getListByMatConfig,
bindRepair,
} from "@/api/ma/typeConfig";
import { getUserList } from "@/api/basic/basic";
import { getInfo } from "@/api/login";
import { downloadFile } from "@/utils/download";
export default {
@ -368,6 +370,25 @@ export default {
// this.companyId = res.user.companyId
// })
// },
renderConent(h, { node }) {
let iconClass = '';
console.log('node',node)
// node
if (node.level == 4) {
iconClass = 'el-icon-user-solid';
}
// else if (node.type === 'file') {
// iconClass = 'el-icon-document';
// }
return (
<span>
<i class={iconClass}></i> {node.label}
</span>
);
},
keeperDataChange(e) {
this.keeperDataRange.forEach((item) => {
if (e === item.value) {
@ -467,8 +488,11 @@ export default {
},
/** 查询新增页面-上级类型下拉树结构 */
getTreeData() {
getMatConfigList().then((response) => {
this.treeOptions = response.data;
// getMatConfigList().then((response) => {
// this.treeOptions = response.data;
// });
getUserList({ userName: this.userName ,deptId:0}).then(response => {
this.treeOptions = response.data
});
},
/** 查询列表 */