Merge remote-tracking branch 'origin/main'

This commit is contained in:
wcy 2024-10-15 17:41:38 +08:00
commit 86e9ce12a9
2 changed files with 5 additions and 2 deletions

View File

@ -708,6 +708,7 @@ export default {
// pageNum: 1, // pageNum: 1,
// pageSize: 10, // pageSize: 10,
typeName: undefined, typeName: undefined,
level: '',
// phonenumber: undefined, // phonenumber: undefined,
// status: undefined, // status: undefined,
// typeId: undefined // typeId: undefined
@ -848,7 +849,7 @@ export default {
/** 查询新增页面-上级类型下拉树结构 */ /** 查询新增页面-上级类型下拉树结构 */
getTreeData() { getTreeData() {
getMaTypeList().then((response) => { getMaTypeList().then((response) => {
this.treeOptions = response.data.rows this.treeOptions = response.data
}) })
}, },
/** 查询资产属性下拉 */ /** 查询资产属性下拉 */
@ -874,6 +875,7 @@ export default {
// - // -
handleNodeClick(data) { handleNodeClick(data) {
this.queryParams.typeId = data.id this.queryParams.typeId = data.id
this.queryParams.level = data.level
this.handleQuery() this.handleQuery()
}, },
// //

View File

@ -1227,7 +1227,7 @@ export default {
}, },
/* 确定 */ /* 确定 */
onSubmit() { onSubmit() {
const { id, typeName } = this.addFormParams const { id, typeName,parentId } = this.addFormParams
const addParams = { const addParams = {
parentId: id, parentId: id,
typeName, typeName,
@ -1235,6 +1235,7 @@ export default {
const editParams = { const editParams = {
typeId: id, typeId: id,
typeName, typeName,
parentId
} }
this.$refs['addFormParamsRef'].validate(async (valid) => { this.$refs['addFormParamsRef'].validate(async (valid) => {