Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
86e9ce12a9
|
|
@ -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()
|
||||||
},
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
|
|
|
||||||
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue