From 0dc6bb2012295e099738e6b6539c322ca6f4d133 Mon Sep 17 00:00:00 2001 From: guoyue Date: Tue, 1 Nov 2022 15:21:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E5=BE=85=E5=8A=9E-=E8=83=BD?= =?UTF-8?q?=E5=8A=9B=E8=B5=84=E6=BA=90=E4=B8=8A=E6=9E=B6=EF=BC=8C=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4=E4=B8=BA=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../myAgent/demo/ResourcesAndServices.vue | 272 ++++++++---------- 1 file changed, 114 insertions(+), 158 deletions(-) diff --git a/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue b/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue index 3287c978..c32b8653 100644 --- a/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue +++ b/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue @@ -7,84 +7,62 @@
{{ itemson.name }}
-
- -
+
+ +
浏览
-
+
下载
-
-
+
+
{{ - multipleAdditionsItem.question || - multipleAdditionsItem.type || - multipleAdditionsItem.name + multipleAdditionsItem.question || + multipleAdditionsItem.type || + multipleAdditionsItem.name }}
{{ - multipleAdditionsItem.question || - multipleAdditionsItem.type || - multipleAdditionsItem.name + multipleAdditionsItem.question || + multipleAdditionsItem.type || + multipleAdditionsItem.name }}
{{ - multipleAdditionsItem.answer || - multipleAdditionsItem.price || - multipleAdditionsItem.img + multipleAdditionsItem.answer || + multipleAdditionsItem.price || + multipleAdditionsItem.img }}
{{ - multipleAdditionsItem.answer || - multipleAdditionsItem.price || - multipleAdditionsItem.img + multipleAdditionsItem.answer || + multipleAdditionsItem.price || + multipleAdditionsItem.img }}
@@ -95,54 +73,31 @@
- + - + - - - - + + + +
-
-
-
-
+
+
+
+
{{ itemDataFormValue.name }}
{{ itemDataFormValue.desc }}
@@ -152,24 +107,11 @@
-
-
-
-
+
+
+
+
{{ itemDataFormValue.name }}
{{ itemDataFormValue.desc }}
@@ -180,24 +122,11 @@
-
-
-
-
+
+
+
+
{{ itemDataFormValue.name }}
{{ itemDataFormValue.desc }}
@@ -227,7 +156,7 @@ export default { type: Array } }, - data () { + data() { return { dataList: [], dataView: [], @@ -242,12 +171,12 @@ export default { } }, watch: { - dataList (item) { + dataList(item) { if (item) { this.dataList = item } }, - insertList (val) { + insertList(val) { if (val) { if (this.dataForm.type === '应用资源') { this.dataView = val.filter( @@ -437,7 +366,7 @@ export default { }, computed: {}, methods: { - videoAndImg (link) { + videoAndImg(link) { if (link) { window.open(link) } else { @@ -447,7 +376,7 @@ export default { }) } }, - deptName () { + deptName() { console.log(this.dataForm.deptId) this.$http .get(`/sys/dept/${this.dataForm.deptId}`) @@ -456,13 +385,13 @@ export default { this.unit = res.data.name }) }, - queryPartAppByKeyIdFunction (index, indexSon, indexSonSon) { + queryPartAppByKeyIdFunction(index, indexSon, indexSonSon) { if (this.dataForm.type === '组件服务') { this.$http .get( '/dataResourceRel/queryApp4PartByKeyId' + - '?keyId=' + - this.dataForm.id + '?keyId=' + + this.dataForm.id ) .then(({ data: res }) => { this.dataView.children[index].children[indexSon].children[ @@ -478,9 +407,9 @@ export default { this.$http .get( '/dataResourceRel/queryPart4AppByKeyId?keyId=' + - this.dataForm.id + - '&type=' + - '组件服务' + this.dataForm.id + + '&type=' + + '组件服务' ) .then(({ data: res }) => { this.dataView.children[index].children[indexSon].children[ @@ -495,8 +424,8 @@ export default { } } }, - created () {}, - mounted () { + created() { }, + mounted() { this.deptName() } } @@ -514,6 +443,7 @@ export default { font-size: 22px; margin-bottom: 25px; } + .dataTitleSon { padding-left: 30px; color: #333333; @@ -522,9 +452,11 @@ export default { background: url("~@/assets/img/sj-jx.png") no-repeat; background-position-x: 15px; } + .multipleAdditionsClass { display: flex; - & > div { + + &>div { margin-right: 30px; border: 1px solid #3c9bcd; width: 212px; @@ -534,7 +466,8 @@ export default { align-items: center; padding: 10px; overflow: hidden; - & > div:first-child { + + &>div:first-child { margin-bottom: 10px; font-weight: bold; line-height: 14px; @@ -544,7 +477,8 @@ export default { -webkit-box-orient: vertical; -webkit-line-clamp: 2; } - & > div:nth-child(2) { + + &>div:nth-child(2) { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; @@ -552,7 +486,8 @@ export default { -webkit-line-clamp: 6; line-height: initial; } - & > div:nth-child(3) { + + &>div:nth-child(3) { width: 90%; overflow: hidden; text-overflow: ellipsis; @@ -563,6 +498,7 @@ export default { } } } + .videoAndImgCss { cursor: pointer; font-size: 12px; @@ -571,10 +507,13 @@ export default { padding: 5px; margin-top: 10px; background: rgba(60, 155, 205, 0.1); + display: inline-block; } + .textAndImg { display: flex; padding-left: 30px; + .textAndImgSon { width: 212px; height: 182px; @@ -584,7 +523,8 @@ export default { align-items: center; padding: 10px; position: relative; - & > div { + + &>div { -webkit-line-clamp: 5; overflow: hidden; text-overflow: ellipsis; @@ -592,11 +532,13 @@ export default { -webkit-box-orient: vertical; word-break: break-all; } - & > div:first-child { + + &>div:first-child { margin-bottom: 10px; font-weight: bold; } - & > div:nth-child(3) { + + &>div:nth-child(3) { margin-top: 10px; position: absolute; bottom: 8px; @@ -610,13 +552,27 @@ export default { } } } + .dataContent { - display: grid; - grid-template-columns: repeat(3, 33%); - padding-left: 30px; + display: flex; + align-items: center; + flex-wrap: wrap; + } + + ::v-deep .el-form-item { + flex: 1; + display: flex; + justify-content: flex-start; + } + + ::v-deep .el-form-item__label { + width: 112px; + } + ::v-deep .el-form-item__content { display: inline-block; + input { width: 400px; }