From c42506f952956add079cfb30e1df8b36b9a0ee8a Mon Sep 17 00:00:00 2001 From: TiaStars Date: Wed, 4 Dec 2024 19:19:16 +0800 Subject: [PATCH] bugfix --- src/views/components/assetsType/index_v1.vue | 7 +++- src/views/unitPages/myAssets/index.vue | 39 +------------------- 2 files changed, 7 insertions(+), 39 deletions(-) diff --git a/src/views/components/assetsType/index_v1.vue b/src/views/components/assetsType/index_v1.vue index 9fe6b17..2617fc4 100644 --- a/src/views/components/assetsType/index_v1.vue +++ b/src/views/components/assetsType/index_v1.vue @@ -11,11 +11,11 @@ + @@ -323,11 +323,16 @@ export default { results.push({ value: item.nickName, id: item.id, + tyshxydm:item.userName }) }) }) cb(results); }, + // 单位名称点击搜索到的数据 + handleSelect(item){ + this.ruleForm.tyshxydm = item.tyshxydm + }, // 新增资产确认按钮 newAssets(){ this.$refs['ruleForm'].validate((valid) => { diff --git a/src/views/unitPages/myAssets/index.vue b/src/views/unitPages/myAssets/index.vue index d8a1104..3e23325 100644 --- a/src/views/unitPages/myAssets/index.vue +++ b/src/views/unitPages/myAssets/index.vue @@ -132,44 +132,7 @@ export default { size:10, }, total:0, - tableData:[ - { - number:20230001, - name:"XXX资产", - type:"1类资产", - unit:"太仓市XXX局", - time:"2023-07-30 16:30:21", - status:0, - },{ - number:20230001, - name:"XXX资产", - type:"1类资产", - unit:"太仓市XXX局", - time:"2023-07-30 16:30:21", - status:1, - },{ - number:20230001, - name:"XXX资产", - type:"1类资产", - unit:"太仓市XXX局", - time:"2023-07-30 16:30:21", - status:2, - },{ - number:20230001, - name:"XXX资产", - type:"1类资产", - unit:"太仓市XXX局", - time:"2023-07-30 16:30:21", - status:3, - },{ - number:20230001, - name:"XXX资产", - type:"1类资产", - unit:"太仓市XXX局", - time:"2023-07-30 16:30:21", - status:4, - }, - ], + tableData:[], loading:false, tabHeader: undefined, }