@@ -234,68 +234,8 @@ export default {
if (item) {
this.dataList = item
}
- }
- },
- computed: {},
- methods: {
- videoAndImg (link) {
- if (link) {
- window.open(link)
- } else {
- this.$message({
- message: '未上传',
- type: 'warning'
- })
- }
},
- deptName () {
- console.log(this.dataForm.deptId)
- this.$http
- .get(`/sys/dept/${this.dataForm.deptId}`)
- .then(({ data: res }) => {
- console.log(res.data.name, 'res')
- this.unit = res.data.name
- })
- },
- queryPartAppByKeyIdFunction (index, indexSon, indexSonSon) {
- if (this.dataForm.type === '组件服务') {
- this.$http
- .get(
- '/dataResourceRel/queryApp4PartByKeyId' +
- '?keyId=' +
- this.dataForm.id
- )
- .then(({ data: res }) => {
- this.dataView.children[index].children[indexSon].children[
- indexSonSon
- ].note1 = ''
- res.data.map((item) => {
- this.dataView.children[index].children[indexSon].children[
- indexSonSon
- ].note1 += item.name + ';'
- })
- })
- } else {
- this.$http
- .get(
- '/dataResourceRel/queryPart4AppByKeyId?keyId=' +
- this.dataForm.id +
- '&type=' +
- '组件服务'
- )
- .then(({ data: res }) => {
- this.dataView.children[index].children[indexSon].children[
- indexSonSon
- ].note1 = ''
- res.data.map((item) => {
- this.dataView.children[index].children[indexSon].children[
- indexSonSon
- ].note1 += item.name + ';'
- })
- })
- }
- },
- insertListFunction (val) {
+ insertList (val) {
if (val) {
if (this.dataForm.type === '应用资源') {
this.dataView = val.filter(
@@ -483,10 +423,69 @@ export default {
}
}
},
+ computed: {},
+ methods: {
+ videoAndImg (link) {
+ if (link) {
+ window.open(link)
+ } else {
+ this.$message({
+ message: '未上传',
+ type: 'warning'
+ })
+ }
+ },
+ deptName () {
+ console.log(this.dataForm.deptId)
+ this.$http
+ .get(`/sys/dept/${this.dataForm.deptId}`)
+ .then(({ data: res }) => {
+ console.log(res.data.name, 'res')
+ this.unit = res.data.name
+ })
+ },
+ queryPartAppByKeyIdFunction (index, indexSon, indexSonSon) {
+ if (this.dataForm.type === '组件服务') {
+ this.$http
+ .get(
+ '/dataResourceRel/queryApp4PartByKeyId' +
+ '?keyId=' +
+ this.dataForm.id
+ )
+ .then(({ data: res }) => {
+ this.dataView.children[index].children[indexSon].children[
+ indexSonSon
+ ].note1 = ''
+ res.data.map((item) => {
+ this.dataView.children[index].children[indexSon].children[
+ indexSonSon
+ ].note1 += item.name + ';'
+ })
+ })
+ } else {
+ this.$http
+ .get(
+ '/dataResourceRel/queryPart4AppByKeyId?keyId=' +
+ this.dataForm.id +
+ '&type=' +
+ '组件服务'
+ )
+ .then(({ data: res }) => {
+ this.dataView.children[index].children[indexSon].children[
+ indexSonSon
+ ].note1 = ''
+ res.data.map((item) => {
+ this.dataView.children[index].children[indexSon].children[
+ indexSonSon
+ ].note1 += item.name + ';'
+ })
+ })
+ }
+ }
+ },
created () {},
mounted () {
this.deptName()
- this.insertListFunction(this.insertList)
}
}
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 35539d3d..418be3f7 100644
--- a/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue
+++ b/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue
@@ -135,16 +135,16 @@ export default {
this.init()
console.log('fromList', this.$router.currentRoute.params.businessKey)
// this.dataForm = this.$router.currentRoute.params.params.params.resourceDTO
- // var callbacks = {
- // startProcessSuccessCallback: this.closeCurrentTab,
- // startProcessErrorCallback: this.startProcessErrorCallback,
- // taskHandleSuccessCallback: this.closeCurrentTab,
- // taskHandleErrorCallback: this.taskHandleErrorCallback,
- // formSaveSuccessCallback: null,
- // formSaveErrorCallback: null
- // }
- // // 初始化综合组件
- // this.initProcessMultiple(callbacks)
+ var callbacks = {
+ startProcessSuccessCallback: this.closeCurrentTab,
+ startProcessErrorCallback: this.startProcessErrorCallback,
+ taskHandleSuccessCallback: this.closeCurrentTab,
+ taskHandleErrorCallback: this.taskHandleErrorCallback,
+ formSaveSuccessCallback: null,
+ formSaveErrorCallback: null
+ }
+ // 初始化综合组件
+ this.initProcessMultiple(callbacks)
},
mounted () {
const businessKey = this.$router.currentRoute.params.businessKey
@@ -180,10 +180,9 @@ export default {
this.input = ''
},
methodsThree () {
- // this.$http.get('/category/getCategoryTree').then((res) => {
- // this.insertList = res.data.data
- // })
- this.insertList = JSON.parse(localStorage.getItem('getCategoryTree'))
+ this.$http.get('/category/getCategoryTree').then((res) => {
+ this.insertList = res.data.data
+ })
},
init () {
this.visible = true
diff --git a/front/src/views/personalCenter/components/addApplication.vue b/front/src/views/personalCenter/components/addApplication.vue
index 4099d01d..64221936 100644
--- a/front/src/views/personalCenter/components/addApplication.vue
+++ b/front/src/views/personalCenter/components/addApplication.vue
@@ -101,6 +101,12 @@
:rules="[{ required: true, message: '请选择应用领域' }]"
>