瀏覽代碼

task 44941 资产详情

dev
庞东旭 4 天之前
父節點
當前提交
fa530b1d6c
共有 9 個檔案被更改,包括 15 行新增10 行删除
  1. +4
    -1
      src/views/property/asset-details/index.js
  2. +1
    -1
      src/views/property/comps/left/bottom/3/index.js
  3. +1
    -1
      src/views/property/comps/left/middle/3/index.js
  4. +1
    -1
      src/views/property/comps/left/top/3/index.js
  5. +1
    -1
      src/views/property/comps/right/bottom/3/index.js
  6. +1
    -1
      src/views/property/comps/right/middle/3/index.js
  7. +1
    -1
      src/views/property/comps/right/top/3/index.js
  8. +1
    -1
      src/views/property/index.html
  9. +4
    -2
      src/views/property/index.js

+ 4
- 1
src/views/property/asset-details/index.js 查看文件

@@ -3,7 +3,10 @@ import { attachmentList } from "@/api/common/uploadAttachment.js";
export default { export default {
props: { props: {
data: {}, data: {},
type: '1'
type: {
type: String,
default: '1'
}
}, },
data () { data () {
return { return {


+ 1
- 1
src/views/property/comps/left/bottom/3/index.js 查看文件

@@ -37,7 +37,7 @@ export default {
methods: { methods: {
lineClick1 (val) { lineClick1 (val) {
console.log(val + 222222222222) console.log(val + 222222222222)
this.$emit('clickDetail', val)
this.$emit('clickDetail', val, '3')
}, },
getData () { getData () {
if (this.year, this.deptId) { if (this.year, this.deptId) {


+ 1
- 1
src/views/property/comps/left/middle/3/index.js 查看文件

@@ -35,7 +35,7 @@ export default {
methods: { methods: {
lineClick1 (val) { lineClick1 (val) {
console.log(val + 222222222222) console.log(val + 222222222222)
this.$emit('clickDetail', val)
this.$emit('clickDetail', val, '2')
}, },
getData () { getData () {
if (this.year, this.deptId) { if (this.year, this.deptId) {


+ 1
- 1
src/views/property/comps/left/top/3/index.js 查看文件

@@ -37,7 +37,7 @@ export default {
methods: { methods: {
lineClick1 (val) { lineClick1 (val) {
console.log(val) console.log(val)
this.$emit('clickDetail', val)
this.$emit('clickDetail', val, '1')
}, },
getData () { getData () {
if (this.year, this.deptId) { if (this.year, this.deptId) {


+ 1
- 1
src/views/property/comps/right/bottom/3/index.js 查看文件

@@ -39,7 +39,7 @@ export default {
methods: { methods: {
lineClick1 (val) { lineClick1 (val) {
console.log(val + 222222222222) console.log(val + 222222222222)
this.$emit('clickDetail', val)
this.$emit('clickDetail', val, '6')
}, },
getData () { getData () {
if (this.year, this.deptId) { if (this.year, this.deptId) {


+ 1
- 1
src/views/property/comps/right/middle/3/index.js 查看文件

@@ -39,7 +39,7 @@ export default {
methods: { methods: {
lineClick1 (val) { lineClick1 (val) {
console.log(val + 222222222222) console.log(val + 222222222222)
this.$emit('clickDetail', val)
this.$emit('clickDetail', val, '5')
}, },
getData () { getData () {
if (this.year, this.deptId) { if (this.year, this.deptId) {


+ 1
- 1
src/views/property/comps/right/top/3/index.js 查看文件

@@ -39,7 +39,7 @@ export default {
methods: { methods: {
lineClick1 (val) { lineClick1 (val) {
console.log(val + 222222222222) console.log(val + 222222222222)
this.$emit('clickDetail', val)
this.$emit('clickDetail', val, '4')
}, },
getData () { getData () {
if (this.year, this.deptId) { if (this.year, this.deptId) {


+ 1
- 1
src/views/property/index.html 查看文件

@@ -17,7 +17,7 @@
<component :is="item" v-for="(item, index) in currentComp.buttom" :key="index" @clickDetail="clickDetail"></component> <component :is="item" v-for="(item, index) in currentComp.buttom" :key="index" @clickDetail="clickDetail"></component>
</div> </div>


<AssetDetails @close="showDetail = false" @openImage="openImage" v-if="showDetail" :data="permanentDetail"></AssetDetails>
<AssetDetails @close="showDetail = false" @openImage="openImage" v-if="showDetail" :data="permanentDetail" :type="permanentType"></AssetDetails>


<div class="imgBox" v-if="dialogVisible"> <div class="imgBox" v-if="dialogVisible">
<div class="box_bg" @click="dialogVisible = false"></div> <div class="box_bg" @click="dialogVisible = false"></div>


+ 4
- 2
src/views/property/index.js 查看文件

@@ -97,7 +97,8 @@ export default {
dialogImageUrl: '', dialogImageUrl: '',
dialogVisible: false, dialogVisible: false,
showDetail: false, showDetail: false,
permanentDetail: {}
permanentDetail: {},
permanentType: '1'
}; };
}, },
computed: { computed: {
@@ -114,9 +115,10 @@ export default {
this.dialogImageUrl = url; this.dialogImageUrl = url;
this.dialogVisible = true; this.dialogVisible = true;
}, },
clickDetail (val) {
clickDetail (val, type) {
console.log(val + 111111111) console.log(val + 111111111)
this.permanentDetail = val; this.permanentDetail = val;
this.permanentType = type;
this.showDetail = true; this.showDetail = true;
} }
} }


Loading…
取消
儲存