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#l3xv+0OcT(X{a;8=Pg03-`!0QFX`rdg~%&5zg!i!PRre$-jw5XUTQg7(Ow#
z$&~WaHjh9AwWJ)t^iTLztz5CJs~h69+fZ=(0gO5W&tH0ywVJBIjEC9INOI^aDpC00
z0a9XP5V_;VT>;c~{Hc)o%
zK)HDa%8PO(z0={+qi!7^HiN2*M~<~AZMNP>&zK1-Bcbj{_?iE=o`gWcuWA1-3J7=gYU7+en@rUpSb#y?m)jK3dKd7yHVyWFf5j4~h
zu`AY~n7%XD``%{ux29kcvaq?Lh;^)AUz<%e(hqxYs;bb_JK#;SM;Nxa`ygV_pd#QAOsH{0pEcR$j!{E)%}Z}&14aJ
z5PQkxlegvbRB-fe7AbLupkv=`X%7A4{`aD13Vpw9
z%5xRvE-B|qd6&IsH77SU1(T4U&6O80r
zhR@dg7KLf0zWTDx5_tRvP1rF-GgQ1+Ok&>?t3w+iuF7
fx@%r$pPkPN+w-?9P1*m~%#r_Jp#Qi3_Zs*wKG9^9
From 22f1091532fa7be48d08f42524d230198bce08d4 Mon Sep 17 00:00:00 2001
From: "851673013@qq.com" <851673013@qq.com>
Date: Wed, 13 Jul 2022 14:30:32 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E6=88=91=E7=9A=84=E5=BE=85=E5=8A=9E?=
=?UTF-8?q?=EF=BC=8C=E4=B8=8A=E6=9E=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../myAgent/demo/Application-resources.vue | 2 +-
.../myAgent/demo/ResourcesAndServices.vue | 165 ++++++++++++++++++
.../myAgent/demo/ability-resource-shelf.vue | 64 +++----
3 files changed, 198 insertions(+), 33 deletions(-)
create mode 100644 back/src/views/modules/myAgent/demo/ResourcesAndServices.vue
diff --git a/back/src/views/modules/myAgent/demo/Application-resources.vue b/back/src/views/modules/myAgent/demo/Application-resources.vue
index bf310a87..c060a4f5 100644
--- a/back/src/views/modules/myAgent/demo/Application-resources.vue
+++ b/back/src/views/modules/myAgent/demo/Application-resources.vue
@@ -1,5 +1,5 @@
-
+ 22222222222222
+
diff --git a/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue b/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue
index 9581bda4..435dbd6b 100644
--- a/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue
+++ b/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue
@@ -10,7 +10,12 @@
- 22222
+
+
+
import processModule from '@/mixins/process-module'
import Applicationresources from './Application-resources.vue'
+import ResourcesAndServices from './ResourcesAndServices.vue'
export default {
// 注入公共方法
mixins: [processModule],
components: {
- Applicationresources
+ Applicationresources,
+ ResourcesAndServices
},
props: {
// fromList: {
@@ -52,59 +59,48 @@ export default {
},
data () {
return {
+ flagShow: false,
// processVisible: true,
visible: false,
// 表单属性是否可编辑
fieldDisabled: false,
- dataForm: [],
+ dataForm: {},
id: '',
shifoushizujian: true,
coverageNotShow: true,
nameNotShow: false,
- algorithmShow: true
+ algorithmShow: true,
+ insertList: []
}
},
watch: {},
computed: {},
methods: {
+ getInfo (id) {
+ this.$http.get('/resourceMountApply/' + id).then(({ data: res }) => {
+ this.dataForm = res.data.resourceDTO
+ if (this.dataForm) {
+ console.log('this.dataForm', this.dataForm)
+ this.flagShow = true
+ }
+ })
+ },
+ methodsThree () {
+ this.$http.get('/category/getCategoryTree').then((res) => {
+ this.insertList = res.data.data
+ })
+ },
init () {
this.visible = true
- // this.getInfo(this.$router.currentRoute.params.params.params.resourceDTO.id)
- // this.dataForm = this.$router.currentRoute.params.params.params.resourceDTO
- // this.id=this.$router.currentRoute
this.$nextTick(() => {
this.$refs.dataForm.resetFields()
// if (this.dataForm.id) {
// 如业务KEY已存在,不允许编辑
this.fieldDisabled = true
// this.id = this.$router.currentRoute.businessKey
- this.getInfo(this.$router.currentRoute.params.businessKey)
console.log('id', this.$router.currentRoute.params.businessKey)
// }
})
- },
- getInfo (id) {
- this.$http.get('/resourceMountApply/' + id).then(({ data: res }) => {
- if (res.code !== 0) {
- return this.$message.error(res.msg)
- }
- this.dataForm = res.data.resourceDTO
- if (this.dataForm.type != '应用资源') {
- this.shifoushizujian = false
- this.dataForm.infoList.forEach((val) => {
- if (val.attrValue === '图层服务') {
- this.coverageNotShow = false
- } else if (val.attrValue === '智能算法') {
- this.nameNotShow = true
- this.algorithmShow = false
- console.log(this.nameNotShow, 'wowowo')
- }
- })
- } else {
- this.shifoushizujian = true
- }
- console.log('this.dataForm', this.dataForm)
- })
}
},
created () {
@@ -123,7 +119,11 @@ export default {
// 初始化综合组件
this.initProcessMultiple(callbacks)
},
- mounted () {}
+ mounted () {
+ const businessKey = this.$router.currentRoute.params.businessKey
+ this.getInfo(businessKey)
+ this.methodsThree()
+ }
}