From bec8226d8a3b56045fee688ae31c1e7c242a4e33 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Tue, 21 Jun 2022 16:59:31 +0800 Subject: [PATCH] bug --- .../bsabilityservice-add-or-update.vue | 980 ++++++++++++++++++ .../src/views/modules/canassigncase/index.vue | 322 ++++++ .../views/modules/canassigncase/upload.vue | 104 ++ front/src/api/personalCenter.js | 17 +- .../components/ComponentServices.vue | 8 +- .../components/Developer/DeveloperTrial.vue | 1 - .../personalCenter/components/Collection.vue | 7 + .../personalCenter/components/MyBrowse.vue | 447 ++++++++ .../personalCenter/components/asideMenu.vue | 12 +- front/src/views/personalCenter/index.vue | 3 +- 10 files changed, 1891 insertions(+), 10 deletions(-) create mode 100644 back/src/views/modules/canassigncase/bsabilityservice-add-or-update.vue create mode 100644 back/src/views/modules/canassigncase/index.vue create mode 100644 back/src/views/modules/canassigncase/upload.vue create mode 100644 front/src/views/personalCenter/components/MyBrowse.vue diff --git a/back/src/views/modules/canassigncase/bsabilityservice-add-or-update.vue b/back/src/views/modules/canassigncase/bsabilityservice-add-or-update.vue new file mode 100644 index 00000000..81b7d5ed --- /dev/null +++ b/back/src/views/modules/canassigncase/bsabilityservice-add-or-update.vue @@ -0,0 +1,980 @@ + + + + + + + 填写字段 + + {{item.name}} + + + + 必填信息 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{item.name}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ dataFormShowDetails.name || "--" }} + + + {{ dataFormShowDetails.description || "--" }} + + + {{ dataFormShowDetails.link || "--" }} + + + {{ dataFormShowDetails.deptContacts || "--" }} + + + {{ dataFormShowDetails.deptPhone || "--" }} + + + {{ dataFormShowDetails.shareType || "--" }} + + + {{ dataFormShowDetails.shareCondition || "--" }} + + + {{ dataFormShowDetails.shareMode || "--" }} + + + {{ dataFormShowDetails.apiUrl || "--" }} + + + {{ dataFormShowDetails.apiMethodType || "--" }} + + + {{ item.attrValue || "--" }} + + + + {{ $t("cancel") }} + {{ + $t("confirm") + }} + + + + + + + + + + + + + + + diff --git a/back/src/views/modules/canassigncase/index.vue b/back/src/views/modules/canassigncase/index.vue new file mode 100644 index 00000000..328d803a --- /dev/null +++ b/back/src/views/modules/canassigncase/index.vue @@ -0,0 +1,322 @@ + + + + + + + + + {{ + $t("query") + }} + + + {{ + $t("export") + }} + + + 挂接 + + + {{ $t("deleteBatch") }} + + + 重置 + + + + + + + + + {{ findValue(scope.row.infoList, item.attrType) }} + + + + + {{ $t("update") }} + {{ $t("delete") }} + 展示 + 开发文档 + + + + + + + + + + + + + diff --git a/back/src/views/modules/canassigncase/upload.vue b/back/src/views/modules/canassigncase/upload.vue new file mode 100644 index 00000000..432f08cb --- /dev/null +++ b/back/src/views/modules/canassigncase/upload.vue @@ -0,0 +1,104 @@ + + + + 点击上传 + + 只能上传{{accept}}文件,最多上传{{limit}}个附件! + + + + + + diff --git a/front/src/api/personalCenter.js b/front/src/api/personalCenter.js index db9b6a2e..8e825bd7 100644 --- a/front/src/api/personalCenter.js +++ b/front/src/api/personalCenter.js @@ -78,6 +78,14 @@ export function scInsert(data) { }) } +// 查询浏览列表 +export function getBsList(params) { + return request({ + url: '/resourceBrowse/page', + method: 'get', + params, + }) +} // 查询收藏列表 export function getScList(params) { return request({ @@ -86,7 +94,6 @@ export function getScList(params) { params, }) } - // 批量取消收藏 export function scDel(data) { return request({ @@ -95,6 +102,14 @@ export function scDel(data) { data, }) } +// 批量取消浏览 +export function BsDel(data) { + return request({ + url: '/resourceBrowse/delete', + method: 'delete', + data, + }) +} // 查询我的发布列表 export function wodepage(params) { return request({ diff --git a/front/src/views/capabilityCloud/components/ComponentServices.vue b/front/src/views/capabilityCloud/components/ComponentServices.vue index ead571ae..7fe4d749 100644 --- a/front/src/views/capabilityCloud/components/ComponentServices.vue +++ b/front/src/views/capabilityCloud/components/ComponentServices.vue @@ -277,7 +277,6 @@ let params = { type: name, } - debugger componentServiceRank(params).then((res) => { dataList.value = res.data.data console.log('res', dataList.value) @@ -530,12 +529,19 @@ border: 0.01rem rgba(0, 108, 188, 0.7) solid; color: rgba(255, 255, 255, 0.8); & > div { + height: 0.32rem; & > span { display: inline-block; height: 0.32rem; line-height: 0.32rem; border-right: 0.01rem rgba(0, 108, 188, 0.7) solid; border-bottom: 0.01rem rgba(0, 108, 188, 0.7) solid; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + word-break: break-all; } & > span:first-child { width: 0.47rem; diff --git a/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue b/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue index 35b4286d..464a42d3 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue @@ -63,7 +63,6 @@ }) } } - const onTrial = ref('http://localhost:8080/#/details?id=1522550194535735298') //复制方法 const copyFunction = (data, name) => { let url = data diff --git a/front/src/views/personalCenter/components/Collection.vue b/front/src/views/personalCenter/components/Collection.vue index b8f89db6..e7041a24 100644 --- a/front/src/views/personalCenter/components/Collection.vue +++ b/front/src/views/personalCenter/components/Collection.vue @@ -372,6 +372,13 @@ } } } + :deep(.ant-list-item-meta-title) { + display: flex; + justify-content: space-between; + span { + margin-right: 0.3rem; + } + } .ant-list::-webkit-scrollbar { width: 0 !important; } diff --git a/front/src/views/personalCenter/components/MyBrowse.vue b/front/src/views/personalCenter/components/MyBrowse.vue new file mode 100644 index 00000000..7cc980a6 --- /dev/null +++ b/front/src/views/personalCenter/components/MyBrowse.vue @@ -0,0 +1,447 @@ + + 我的浏览 + + + + 重置 + + + + 筛选 + + {{ item }} + + + + + + + + + + {{ item.name }} + + 浏览时间:{{ item.createDate }} + + + + + + + + + + + + + + + + + + {{ props.value }}条/页 + + + + + + 全选 + + + + 删除 + + + + + + + diff --git a/front/src/views/personalCenter/components/asideMenu.vue b/front/src/views/personalCenter/components/asideMenu.vue index 781e2c6e..63351538 100644 --- a/front/src/views/personalCenter/components/asideMenu.vue +++ b/front/src/views/personalCenter/components/asideMenu.vue @@ -58,6 +58,12 @@ imgActive: require('@/assets/personalCenter/collectactive.png'), key: 'collect', }, + { + title: '我的浏览', + img: require('@/assets/personalCenter/recent.png'), + imgActive: require('@/assets/personalCenter/recentactive.png'), + key: 'recent', + }, { title: '我的需求', img: require('@/assets/personalCenter/demand.png'), @@ -70,12 +76,6 @@ imgActive: require('@/assets/personalCenter/remarkactive.png'), key: 'remark', }, - // { - // title: '最近浏览', - // img: require('@/assets/personalCenter/recent.png'), - // imgActive: require('@/assets/personalCenter/recentactive.png'), - // key: 'recent', - // }, ] const selectedKeys = ref(['PurchaseVehicle']) const type = JSON.parse(window.sessionStorage.getItem('type')) diff --git a/front/src/views/personalCenter/index.vue b/front/src/views/personalCenter/index.vue index ffe377d0..aa16b9ab 100644 --- a/front/src/views/personalCenter/index.vue +++ b/front/src/views/personalCenter/index.vue @@ -18,6 +18,7 @@ + @@ -32,7 +33,7 @@ import MyApplication from '@/views/personalCenter/components/MyApplication' import MyComments from '@/views/personalCenter/components/MyComments' import MyPublish from '@/views/personalCenter/components/MyPublish' - // MyPublish.vue + import MyBrowse from '@/views/personalCenter/components/MyBrowse' import PurchaseVehicle from '@/views/personalCenter/components/PurchaseVehicle' import Collection from '@/views/personalCenter/components/Collection' import mybus from '@/myplugins/mybus'