-
+
{
console.log('ressssssss', res)
if (res.data.data.length > 0) {
- // 存在关联应用时在导航栏加入关联应用
+ // 存在来源应用时在导航栏加入来源应用
navList.value.unshift({
- name: '关联应用',
+ name: '来源应用',
key: 'layer-service-associated-ability',
show: true,
})
- list.value.unshift('关联应用')
+ list.value.unshift('来源应用')
}
})
}
@@ -137,7 +137,7 @@
list.value.push('使用方式')
}
})
- list.value.unshift('关联应用')
+ list.value.unshift('来源应用')
navList.value.forEach((item) => {
console.log(item)
if (list.value.indexOf(item.name) > -1) {
@@ -146,7 +146,7 @@
})
if (navList.value.filter((item) => item.name === list.value[0])[0]) {
select.value = navList.value.filter(
- (item) => (item.name === '关联应用') | (item.name === list.value[0])
+ (item) => (item.name === '来源应用') | (item.name === list.value[0])
// (item) => item.name === list.value[0]
)[0].key
}
@@ -215,7 +215,7 @@
list.value.push('使用方式')
}
})
- list.value.unshift('关联应用')
+ list.value.unshift('来源应用')
navList.value.forEach((item) => {
console.log(item)
if (list.value.indexOf(item.name) > -1) {
From 8bce63cb0e2dc6b26b33632f33337048cfd0d46b Mon Sep 17 00:00:00 2001
From: gaoyuanwei <2826352639@qq.com>
Date: Wed, 3 Aug 2022 15:20:27 +0800
Subject: [PATCH 04/23] =?UTF-8?q?=E6=96=B0=E6=89=8B=E6=8C=87=E5=BC=95?=
=?UTF-8?q?=E6=8F=90=E7=A4=BAbug=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/detailsAll/components/Business/BusinessUsageMode.vue | 3 +--
.../Developer/DeveloperOwningDepartmentAndServiceProvider.vue | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue b/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue
index 4d6af1ae..7904eb19 100644
--- a/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue
+++ b/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue
@@ -210,7 +210,6 @@
let obj = props.dataList.infoList.filter(
(item) => item.attrType === '使用手册'
)[0]
- console.log('dataFrom.value.link', obj.attrValue)
if (obj) {
window.open(
window.SITE_CONFIG.previewUrl +
@@ -221,7 +220,7 @@
message.config({
top: '100px', // 距离顶部的位置
})
- message.error('暂未上传使用手册')
+ message.error('暂未开放新手指引')
}
}
diff --git a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue
index 400d6595..74c3d887 100644
--- a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue
+++ b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue
@@ -173,7 +173,7 @@
message.config({
top: '100px', // 距离顶部的位置
})
- message.error('暂未上传使用手册')
+ message.error('暂未开放新手指引')
}
}
watch(
From cb25668fb4b76606e0817a184f3e8fa098de849d Mon Sep 17 00:00:00 2001
From: "851673013@qq.com" <851673013@qq.com>
Date: Wed, 3 Aug 2022 15:26:06 +0800
Subject: [PATCH 05/23] bug792
---
front/src/views/capacityOnTheShelf/Application.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/front/src/views/capacityOnTheShelf/Application.vue b/front/src/views/capacityOnTheShelf/Application.vue
index 5655a8af..deb80f31 100644
--- a/front/src/views/capacityOnTheShelf/Application.vue
+++ b/front/src/views/capacityOnTheShelf/Application.vue
@@ -67,7 +67,7 @@
v-else-if="showView === '部署与应用'"
:refData="refData"
:dataFrom="dataFrom"
- :externalField="['共享类型']"
+ :externalField="['共享类型', '访问地址']"
:configure="bs"
@submit="submit()"
@back="back()"
From c7b15fbe5b2192a9eb776a3818961909de3b241c Mon Sep 17 00:00:00 2001
From: "851673013@qq.com" <851673013@qq.com>
Date: Wed, 3 Aug 2022 16:42:40 +0800
Subject: [PATCH 06/23] bug804
---
.../components/ComponentServices.vue | 4 +++-
.../components/Developer/DeveloperTrial.vue | 18 +++++++++++++++---
front/src/views/home/algorithmCompare.vue | 4 +++-
3 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/front/src/views/capabilityCloud/components/ComponentServices.vue b/front/src/views/capabilityCloud/components/ComponentServices.vue
index fc2dbd45..f43a0dd9 100644
--- a/front/src/views/capabilityCloud/components/ComponentServices.vue
+++ b/front/src/views/capabilityCloud/components/ComponentServices.vue
@@ -413,7 +413,9 @@
snum.value[1].num = res.data.data.result[0].value[1]
totalCallsSnum2(end).then((resSon) => {
snum.value[2].num =
- (resSon.data.data.result[0].value[1] / snum.value[1].num) * 100 + '%'
+ parseInt(
+ (resSon.data.data.result[0].value[1] / snum.value[1].num) * 100
+ ) + '%'
})
})
}
diff --git a/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue b/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue
index edf44111..fe614238 100644
--- a/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue
+++ b/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue
@@ -17,7 +17,12 @@
{{ dataFrom.numberName }}
-
{{ dataFrom.number }}
+
+ {{ dataFrom.number }}
+
+ {{ dataFrom.number }}
+
+
复制账号
@@ -40,9 +45,9 @@
})
const dataFrom = ref({
linkName: '试用地址',
- link: 'http://localhost:8080/#/detailsfdddffffffffffffffdfgdfgdfdgdfgdfg',
+ link: '',
numberName: '试用账号',
- number: 'zhangfeihu',
+ number: '',
passwordName: '试用密码',
password: '**************************',
password2: '',
@@ -144,6 +149,13 @@
.main-center {
padding-left: 1rem;
padding-right: 1rem;
+ .main-center-number {
+ display: inline-block;
+ width: 2.4rem;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
}
.main-right {
padding-right: 0.7rem;
diff --git a/front/src/views/home/algorithmCompare.vue b/front/src/views/home/algorithmCompare.vue
index ff86eff6..550eed45 100644
--- a/front/src/views/home/algorithmCompare.vue
+++ b/front/src/views/home/algorithmCompare.vue
@@ -37,7 +37,9 @@
{{ `共选取${selectedRowKeys.length}个算法` }}
- {{ item.name || '--' }}
+
+ {{ item.name || '--' }}
+
Date: Thu, 4 Aug 2022 13:58:14 +0800
Subject: [PATCH 07/23] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E7=BB=9F=E8=AE=A1bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/CapabilityRequirements.vue | 22 +++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/front/src/views/abilityStatistics/components/CapabilityRequirements.vue b/front/src/views/abilityStatistics/components/CapabilityRequirements.vue
index 6fef3668..b2d4c45c 100644
--- a/front/src/views/abilityStatistics/components/CapabilityRequirements.vue
+++ b/front/src/views/abilityStatistics/components/CapabilityRequirements.vue
@@ -13,10 +13,16 @@
backgroundImage: `url(${item.photo}) `,
}"
>
-
{{ item.demandSubject }}
-
- {{ item.demandDetails }}
-
+
+ {{ item.demandSubject }}
+ {{ item.demandSubject }}
+
+
+ {{ item.demandDetails }}
+
+ {{ item.demandDetails }}
+
+
回复量:{{ item.commentCount }}
查看详情
@@ -165,6 +171,10 @@
font-size: 16px;
color: #212121;
margin-bottom: 24px;
+ width: 226px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
.text {
width: 100%;
@@ -175,6 +185,10 @@
font-size: 14px;
color: #666;
text-align: center;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 3;
+ -webkit-box-orient: vertical;
}
.view-details {
width: 75px;
From 6d79448ebeedf42b2630bf9516ca1f0b85ca6394 Mon Sep 17 00:00:00 2001
From: a0049873 <79py69t9wb@privaterelay.appleid.com>
Date: Thu, 4 Aug 2022 15:07:58 +0800
Subject: [PATCH 08/23] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E7=94=B3=E8=AF=B7?=
=?UTF-8?q?=E9=A9=B3=E5=9B=9E=E5=BC=80=E5=8F=91=20=20=20=20=E8=A7=86?=
=?UTF-8?q?=E9=A2=91=E8=B0=83=E6=95=B4=E6=88=90100=E4=B8=AA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../myAgent/demo/competency-application.vue | 3 +-
front/src/views/home/apply.vue | 213 ++++++++++++++----
front/src/views/home/infrastructurePage.vue | 11 +-
.../components/AbilityApplication.vue | 88 +++++++-
4 files changed, 254 insertions(+), 61 deletions(-)
diff --git a/back/src/views/modules/myAgent/demo/competency-application.vue b/back/src/views/modules/myAgent/demo/competency-application.vue
index 3fb7d661..fdbd870c 100644
--- a/back/src/views/modules/myAgent/demo/competency-application.vue
+++ b/back/src/views/modules/myAgent/demo/competency-application.vue
@@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-29 15:59:51
* @LastEditors: hisense.liangjunhua
- * @LastEditTime: 2022-08-02 16:06:20
+ * @LastEditTime: 2022-08-04 14:34:45
* @Description: 告诉大家这是什么
-->
@@ -291,6 +291,7 @@ export default {
if (val.cameraList) {
flag = true
obj.describe += val.system
+ obj.describe += ';'
} else {
this.$http.get('/resource/' + val.resourceId).then((res1) => {
// console.log(res1.data.data, '1111111111111111111111111111111111')
diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue
index 57291cce..24431ac0 100644
--- a/front/src/views/home/apply.vue
+++ b/front/src/views/home/apply.vue
@@ -249,7 +249,7 @@
relaunch,
selectOne,
} from '@/api/home'
- import { getCategoryTreePage } from '@/api/personalCenter'
+ import { getCategoryTreePage, endProcess } from '@/api/personalCenter'
import mybus from '@/myplugins/mybus'
import { sgcDel, getApplyForm } from '@/api/personalCenter'
import { pageWithAttrs } from '@/api/home'
@@ -327,6 +327,30 @@
enclosureName: '', //附件
})
const dataList = ref([])
+ const id = router.currentRoute.value.query.id
+ const taskId = router.currentRoute.value.query.taskId
+ const businessKey = ref(router.currentRoute.value.query.id)
+ if (id) {
+ getApplyForm(id).then((res) => {
+ console.log('修改==============>', res.data.data)
+ // formName.id = res.data.data.id || ''
+ formName.applicationSystem = res.data.data.applicationSystem || ''
+ formName.applicationScene = res.data.data.applicationScene || []
+ formName.applicationBackground =
+ res.data.data.applicationBackground || ''
+ formName.effectWish = res.data.data.effectWish || ''
+ formName.phone = res.data.data.phone || ''
+ // formName.system = res.data.data.system || []
+ formName.enclosure = res.data.data.enclosure || ''
+ formName.enclosureName = res.data.data.enclosureName || ''
+ if (res.data.data.enclosure) {
+ fileList.value.push({
+ name: res.data.data.enclosureName,
+ url: res.data.data.enclosure,
+ })
+ }
+ })
+ }
getUser().then((res) => {
formName.user = res.data.data.realName
formName.userId = res.data.data.id
@@ -338,18 +362,6 @@
})
})
// console.log('本地存储====================》', list.value)
- const businessKey = ref(router.currentRoute.value.query.id)
- const taskId = ref(router.currentRoute.value.query.taskId)
- if (businessKey.value) {
- getApplyForm(businessKey.value).then((res) => {
- formName.id = res.data.data.id
- formName.phone = res.data.data.phone
- formName.scene = res.data.data.scene
- formName.basis = res.data.data.basis
- formName.enclosure = res.data.data.enclosure
- // console.log('回填数据================>', res, formName.phone)
- })
- }
const applicationSceneOpthion = ref([])
getCategoryTreePage({
page: 1,
@@ -385,41 +397,146 @@
window.history.go(-1)
}
const processStartHandle = () => {
- if (businessKey.value) {
- const obj = ref({})
- for (const key in formName) {
- if (key !== 'formNameSystem') {
- obj.value[key] = formName[key]
- }
+ formRef.value.validate().then(() => {
+ if (!formUrl) {
+ return message.error('请设置保存表单的URL')
}
- obj.value.system = formName.system[0].resourceName
- tabilityapplication(obj.value).then((upres) => {
- if (upres.data.code == 0) {
- relaunch({ data: obj.value, taskId: taskId.value }).then(
- (res) => {
- // console.log('驳回================>', res)
- if (res.data.code == 0) {
- message.success('重新发起流程成功!')
- window.setTimeout(() => {
- window.history.go(-1)
- }, 1000)
- } else {
- message.error('重新发起流程失败!')
+ if (!formName) {
+ return message.error('请设置表单名称')
+ }
+ if (id) {
+ endProcess({ instanceId: taskId }).then((end) => {
+ if (end.data.code == 0) {
+ let ids = []
+ let falgNum = 0
+ let sxt = true
+ formName.system = []
+ console.log('list==================', list.value)
+ list.value.map((val) => {
+ val.arr.map((item) => {
+ if (item.type !== '基础设施') {
+ falgNum++
+ }
+ })
+ })
+ list.value.map((val) => {
+ val.arr.map((item) => {
+ if (item.type !== '基础设施') {
+ formName.system.push({
+ resourceId: item.resourceId,
+ resourceName: item.resourceName,
+ })
+ falgNum++
+ console.log(item.id)
+ if (item.id) {
+ ids.push(item.id)
+ }
+ } else {
+ let obj = {}
+ Object.assign(obj, formName)
+ console.log('摄像头===============>', obj, item)
+ obj.system = []
+ item.note1 = JSON.parse(item.note1)
+ item.note1.map((sxt) => {
+ obj.system.push({
+ resourceId: sxt.idtCameraChannel + '',
+ resourceName: sxt.channelName,
+ cameraId: sxt.channelId, // 改接口后删除
+ channelCode: sxt.channelCode,
+ channelId: sxt.channelId,
+ channelName: sxt.channelName,
+ checkStatus: sxt.checkStatus + '',
+ gpsX: sxt.gpsX,
+ gpsY: sxt.gpsY,
+ idtCameraChannel: sxt.idtCameraChannel + '',
+ nodeName: sxt.nodeName,
+ parentId: sxt.parentId,
+ status: sxt.status + '',
+ })
+ })
+ submitApply(obj).then((res) => {
+ // applySuccess.value = false
+ console.log('摄像头申请================>', res)
+ if (item.id) {
+ sgcDel({ ids: [item.id] }).then((res1) => {
+ if (res1.data.msg === 'success') {
+ if (falgNum == 0 && sxt) {
+ message.success(
+ '申请提交成功,请到消息中心查看!'
+ )
+ sxt = false
+ }
+ mybus.emit('getSgcNum')
+ router.push({
+ path: '/DetailsPageconetent',
+ query: {
+ select: '组件服务',
+ },
+ })
+ }
+ })
+ } else {
+ if (
+ res.data.msg === 'success' &&
+ falgNum == 0 &&
+ sxt
+ ) {
+ message.success('申请提交成功,请到消息中心查看!')
+ sxt = false
+ }
+ router.push({
+ path: '/DetailsPageconetent',
+ query: {
+ select: '组件服务',
+ },
+ })
+ }
+ })
+ }
+ })
+ })
+ console.log(
+ '提交数据==========================>',
+ formName,
+ ids
+ )
+ if (formName.system.length !== 0) {
+ if (formName.applicationSystem.length == 0) {
+ formName.applicationSystem = ''
}
+ submitApply(formName).then((res) => {
+ // applySuccess.value = false
+ message.success('申请提交成功,请到消息中心查看!')
+ console.log('能力申请================>', res)
+ if (res.data.code == 0) {
+ if (ids && ids.length > 0) {
+ sgcDel({ ids: ids }).then((res) => {
+ if (res.data.msg === 'success') {
+ mybus.emit('getSgcNum')
+ router.push({
+ path: '/DetailsPageconetent',
+ query: {
+ select: '组件服务',
+ },
+ })
+ }
+ })
+ } else {
+ router.push({
+ path: '/DetailsPageconetent',
+ query: {
+ select: '组件服务',
+ },
+ })
+ }
+ } else {
+ message.error('申请失败!')
+ }
+ })
}
- )
- } else {
- message.error('数据更新失败!')
- }
- })
- } else {
- formRef.value.validate().then(() => {
- if (!formUrl) {
- return message.error('请设置保存表单的URL')
- }
- if (!formName) {
- return message.error('请设置表单名称')
- }
+ }
+ })
+ } else {
if (!applyAll) {
console.log(list.value[0].arr[0])
// 单兵设备为了演示 添加 不做处理
@@ -576,8 +693,8 @@
}
})
}
- })
- }
+ }
+ })
}
// 启动流程
const startProcess = (processDefinitionKey, businessKey, formData) => {
@@ -841,4 +958,4 @@
justify-content: center;
// position: fixed;
}
-
\ No newline at end of file
+
diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue
index 88adb112..8b593e72 100644
--- a/front/src/views/home/infrastructurePage.vue
+++ b/front/src/views/home/infrastructurePage.vue
@@ -264,9 +264,8 @@
const pagination = ref({
total: 0,
current: 1,
- pageSize: 10, //每页中显示10条数据
+ pageSize: 300, //每页中显示10条数据
showSizeChanger: true,
- pageSizeOptions: ['5', '10', '15', '20'], //每页中显示的数据
})
const mapSearchParam = ref({
// 地图搜索初始化数据
@@ -709,8 +708,8 @@
const onSelectChange = (record, selected, selectedRows, nativeEvent) => {
console.log('hahhahah', record, selected, selectedRows, nativeEvent)
if (selected) {
- if (selectedRowKeys.value.length == 10) {
- message.warning('最多只能添加10个摄像头!')
+ if (selectedRowKeys.value.length == 300) {
+ message.warning('最多只能添加300个摄像头!')
} else {
selectedList.value.push(record)
selectedRowKeys.value.push(record.channelCode || record.channelId)
@@ -734,8 +733,8 @@
selectedList.value.push(val)
selectedRowKeys.value.push(val.channelCode || val.channelId)
})
- if (selectedRowKeys.value.length > 10) {
- message.warning('最多只能添加10个摄像头!')
+ if (selectedRowKeys.value.length > 300) {
+ message.warning('最多只能添加300个摄像头!')
changeRows.map((val) => {
selectedList.value = selectedList.value.filter(
(item) => item.idtCameraChannel !== val.idtCameraChannel
diff --git a/front/src/views/personalCenter/components/AbilityApplication.vue b/front/src/views/personalCenter/components/AbilityApplication.vue
index d879ff27..709bab2f 100644
--- a/front/src/views/personalCenter/components/AbilityApplication.vue
+++ b/front/src/views/personalCenter/components/AbilityApplication.vue
@@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-07-12 09:42:44
* @LastEditors: hisense.liangjunhua
- * @LastEditTime: 2022-08-02 16:34:42
+ * @LastEditTime: 2022-08-04 10:41:06
* @Description:我的申请 能力申请 查看详情
-->