|
|
@@ -20,6 +20,9 @@
|
|
|
<el-dialog title="记录" :visible.sync="dialogVisiblerecord" width="30%" :before-close="handleCloserecord">
|
|
|
<templateTable ref="templateTable1" :pagination="pageDatarecord" @getList="getListrecord"
|
|
|
:tableConfig="tableConfigDetailrecord" :data="formTableDatarecord" @findPage="findPageDetailrecord">
|
|
|
+ <template slot="imageUrl" slot-scope="scope">
|
|
|
+ <img v-if="scope.row.imageUrl" :src="`${process + scope.row.imageUrl}`" class="imageclass" @click.stop="showViewer=true; ProViewImg=process + scope.row.imageUrl" />
|
|
|
+ </template>
|
|
|
</templateTable>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="dialogVisiblerecord = false">取消</el-button>
|
|
|
@@ -33,6 +36,7 @@
|
|
|
<el-button size="small" @click="dialogVisiblerecordDetail = false">取消</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-image-viewer v-if="showViewer" :on-close="closeViewer" :z-index="9999" :url-list="[ProViewImg]" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -42,7 +46,10 @@ import yearMonthYay from '../../PlatformSettlement/yearMonthYay.vue'
|
|
|
|
|
|
export default {
|
|
|
name: "baosi",
|
|
|
- components: { templateTable, yearMonthYay },
|
|
|
+ components: { templateTable, yearMonthYay,
|
|
|
+ "el-image-viewer": () =>
|
|
|
+ import("element-ui/packages/image/src/image-viewer")
|
|
|
+ },
|
|
|
created() {
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -52,7 +59,10 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ process:process.env.BASE_URL,
|
|
|
ztreeNodes:[],
|
|
|
+ showViewer:false,
|
|
|
+ ProViewImg:[],
|
|
|
recordDetailData:[],
|
|
|
pageDatarecorddetail: {
|
|
|
pageNum: 1,
|
|
|
@@ -129,6 +139,11 @@ export default {
|
|
|
label: "进帐金额",
|
|
|
type: "text"
|
|
|
},
|
|
|
+ {
|
|
|
+ name: "imageUrl",
|
|
|
+ label: "进帐截图",
|
|
|
+ type: "slot"
|
|
|
+ },
|
|
|
|
|
|
],
|
|
|
loading: true,
|
|
|
@@ -249,6 +264,9 @@ export default {
|
|
|
this.findPage();
|
|
|
},
|
|
|
methods: {
|
|
|
+ closeViewer() {
|
|
|
+ this.showViewer = false;
|
|
|
+ },
|
|
|
resetForm() {
|
|
|
this.formData={}
|
|
|
this.pageData.partnerCompaniesIdList=[]
|
|
|
@@ -376,4 +394,9 @@ export default {
|
|
|
overflow-y: auto !important;
|
|
|
height: auto !important;
|
|
|
}
|
|
|
+ .imageclass {
|
|
|
+ max-width: 100px;
|
|
|
+ max-height: 50px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
</style>
|