diff --git a/src/components/scroll-table-details/index.html b/src/components/scroll-table-details/index.html index 5718889..8ddc0f2 100644 --- a/src/components/scroll-table-details/index.html +++ b/src/components/scroll-table-details/index.html @@ -6,11 +6,8 @@
-
-
{{line.voucherSummary}}
-
{{line.bookDate}}
-
{{line.jieAmount}}
-
{{line.daiAmount}}
+
+
{{line[item]}}
查看详情
diff --git a/src/components/scroll-table-details/index.js b/src/components/scroll-table-details/index.js index baf6f92..8745951 100644 --- a/src/components/scroll-table-details/index.js +++ b/src/components/scroll-table-details/index.js @@ -44,6 +44,12 @@ export default { ['表头11', '表头22', '表头33'] ] } + }, + dataName: { + type: Array, + default: function () { + return ['voucherSummary', 'bookDate', 'jieAmount', 'daiAmount'] + } } }, computed: { @@ -77,10 +83,6 @@ export default { created () { }, methods: { - lineClick (line) { - console.log(11111111111) - this.$emit('lineClick', line) - }, handleClick(e) { // 获取最近携带 data-item 属性的元素 const target = e.target.closest('[data-item]'); diff --git a/src/components/scroll-table/index.html b/src/components/scroll-table/index.html index 316f614..ff15951 100644 --- a/src/components/scroll-table/index.html +++ b/src/components/scroll-table/index.html @@ -4,11 +4,11 @@
{{header}}
操作
-
+
{{item }}
-
查看详情
+
查看
diff --git a/src/components/scroll-table/index.js b/src/components/scroll-table/index.js index 8ca9f26..46ff8e3 100644 --- a/src/components/scroll-table/index.js +++ b/src/components/scroll-table/index.js @@ -79,6 +79,16 @@ export default { methods: { lineClick (line) { this.$emit('lineClick', line) + }, + handleClick(e) { + // 获取最近携带 data-item 属性的元素 + const target = e.target.closest('[data-item]'); + if (!target) return; + + // 解析存储的数据 + const item = JSON.parse(target.dataset.item); + console.log("点击项数据:", item); + this.$emit('lineClick', item) } } }; diff --git a/src/views/capital/comps/left/bottom/1/index.js b/src/views/capital/comps/left/bottom/1/index.js index a9351e5..d88146d 100644 --- a/src/views/capital/comps/left/bottom/1/index.js +++ b/src/views/capital/comps/left/bottom/1/index.js @@ -50,8 +50,8 @@ export default { // 获取数据 getData () { if (this.year || this.deptId) { - this.isLoad = false; + this.titleNum = 0; // 如果是趋势 if (this.tabIndex == 1) { analysisOfCapitalExpenditureRend(this.deptId, this.year).then(res => { @@ -67,9 +67,8 @@ export default { } else if (this.tabIndex == 2) { // 获取类型 analysisOfCapitalExpenditureType(this.deptId, this.year).then(res => { - + this.titleNum = res.data.total; let data = res.data.list.map(item => { - this.titleNum += item.value; return { name: item.name, value: item.value, diff --git a/src/views/capital/comps/left/middle/1/index.js b/src/views/capital/comps/left/middle/1/index.js index 032a319..6c7ff2e 100644 --- a/src/views/capital/comps/left/middle/1/index.js +++ b/src/views/capital/comps/left/middle/1/index.js @@ -64,13 +64,14 @@ export default { } else if (this.tabIndex == 2) { // 获取类型 leftbottomcapitalgainstype(this.deptId, this.year).then(res => { + this.titleNum = res.data.total; let data = res.data.list.map(item => { - this.titleNum += item.value; return { name: item.name, value: item.value, unit: this.unitMaker(item.name) } + }) this.data = data this.isLoad = true; diff --git a/src/views/property/asset-details/close.png b/src/views/property/asset-details/close.png new file mode 100644 index 0000000..6f536c6 Binary files /dev/null and b/src/views/property/asset-details/close.png differ diff --git a/src/views/property/asset-details/index.html b/src/views/property/asset-details/index.html new file mode 100644 index 0000000..414dd40 --- /dev/null +++ b/src/views/property/asset-details/index.html @@ -0,0 +1,69 @@ + +
+
+
{{data.name}}
+
+
+
+
+

资产编码

+

{{data.code}}

+
+
+

资产名称

+

{{data.name}}

+
+
+

资产类型

+

{{data.assetType}}

+
+
+

经营属性

+

{{data.operationType}}

+
+
+

增加方式

+

{{data.addType}}

+
+
+

购建时间

+

{{data.buildTime}}

+
+
+

使用情况

+

{{data.useType}}

+
+
+

资产状态

+

{{data.assetStatus}}

+
+
+

数量/面积

+

{{data.quantity}}

+
+
+

计量单位

+

{{data.unit}}

+
+
+

原值(元)

+

{{data.originalValue}}

+
+
+

折旧方式

+

{{data.depreciationType}}

+
+
+

附件

+

+ +

+
+
+ +
diff --git a/src/views/property/asset-details/index.js b/src/views/property/asset-details/index.js new file mode 100644 index 0000000..32b534f --- /dev/null +++ b/src/views/property/asset-details/index.js @@ -0,0 +1,30 @@ + +import { attachmentList } from "@/api/common/uploadAttachment.js"; +export default { + props: { + data: {} + }, + data () { + return { + isLoad: false, + permanentDetail: {} + }; + }, + computed: { + }, + created () { + this.isLoad = false + }, + mounted () { + }, + methods: { + openImage (url) { + this.$emit('openImage',url) + // this.dialogImageUrl = url; + // this.dialogVisible = true; + }, + close () { + this.$emit('close') + } + } +}; diff --git a/src/views/property/asset-details/index.scss b/src/views/property/asset-details/index.scss new file mode 100644 index 0000000..41c72ae --- /dev/null +++ b/src/views/property/asset-details/index.scss @@ -0,0 +1,183 @@ +.gl_pop_cash { + background: rgba(10, 25, 47, 0.8); + position: absolute; + border: 2px solid #3181f6; + box-shadow: 0 0 5px #3181f6; + border-radius: 0 0 100px 0; + // border-left: 0.15vw solid #357dfa; + z-index: 11; + + .head_main { + height: 60px; + display: flex; + align-items: center; + position: relative; + justify-content: space-between; + padding: 0 20px; + background: linear-gradient(to right, rgba(49, 129, 246, .8), rgba(49, 129, 246, 0)); + .title { + color: #ffad00; + font-size: 20px !important; + display: flex; + align-items: center; + line-height: 1; + text-shadow: 0 0 15px #3181f6; + i{ + display: block; + width: 20px; + height: 20px; + background: url("tt_icon.png") no-repeat center; + background-size: 100% 100%; + margin-right: 10px; + } + } + + .close { + background: url('./close.png') no-repeat; + background-size: 100% 100%; + width: 20px; + height: 20px; + cursor: pointer; + } + + .xs_main { + height: 30px; + position: absolute; + width: 100%; + display: flex; + align-items: center; + + .block { + width: 20px; + display: flex; + + .point { + width: .55vh; + height: .55vh; + margin-right: 0.36vw; + + &.p1 { + background: rgba(53, 125, 250, 1) + } + + &.p2 { + background: rgba(53, 125, 250, .7) + } + + &.p3 { + background: rgba(53, 125, 250, .4) + } + } + + } + + .xs_x { + height: 1px; + flex: 1; + background: #214284; + } + } + } + + .echarts_main { + height: 600px; + overflow-y: auto; + + div { + font-size: 10px; + // height: 40px; + line-height: 20px; + + p { + // white-space: nowrap; + } + } + + .headers { + height: 30px; + font-size: 14px; + color: #0befca; + text-align: center; + display: flex; + justify-content: center; + align-items: center; + margin-right: 0.53vw; + background: rgba(11, 239, 202, .2); + margin-bottom: 0.9vh + } + + .desc_main { + overflow-y: scroll; + padding-right: 0.33vw; + + .analysisTable_list { + margin: 0; + padding: 0; + flex: 1; + display: flex; + flex-direction: column; + + .flex_item { + cursor: pointer; + list-style: none; + margin: 0; + display: flex; + justify-content: center; + align-items: center; + text-align: center; + color: #fff; + font-size: 12px; + position: relative; + height: 30px; + + &:nth-child(2n) { + background: rgba(53, 125, 250, .1); + } + } + } + } + } + +} + +.pop_statistical_desc { + width: 600px; + margin: 0; + left: 480px; + top: 180px; + padding-bottom: 1.04vw !important; + + .head_main { + + .title { + color: #fff; + } + } + + .echarts_main { + margin-top: 16px; + + div { + display: flex; + align-items: center; + + &:nth-child(even) { + //background: rgba(32, 89, 188, 0.2); + } + + p { + font-size: 16px; + &:nth-child(1) { + width: 8vw; + padding-right: 1vw; + text-align: right; + flex-shrink: 0; + color: #b0cfec; + } + margin: 0; + color: #ffffff; + line-height: 3.92vh; + } + } + } +} diff --git a/src/views/property/asset-details/index.vue b/src/views/property/asset-details/index.vue new file mode 100644 index 0000000..b0a7bb3 --- /dev/null +++ b/src/views/property/asset-details/index.vue @@ -0,0 +1,4 @@ +