物资厂家文件出现重复新增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} <i class={iconClass}></i> {node.label}
</span> </span>
); );
s
}, },
/** 查询人员列表 */ /** 查询人员列表 */
getUserList() { getUserList() {

View File

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

View File

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