From a8230f1ab02069431738bd72f36ab95a0ace01ae Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期二, 06 八月 2024 15:22:22 +0800
Subject: [PATCH] 修改仿真后台
---
web/src/views/modules/basicInfo/SelectPicture.vue | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/web/src/views/modules/basicInfo/SelectPicture.vue b/web/src/views/modules/basicInfo/SelectPicture.vue
index 29203ab..b865137 100644
--- a/web/src/views/modules/basicInfo/SelectPicture.vue
+++ b/web/src/views/modules/basicInfo/SelectPicture.vue
@@ -5,6 +5,8 @@
<zt-table-wraper query-url="/sysPictureBase/page"
:paging='false'
v-slot="{ table }">
+ <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()">
+ </el-form>
<el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:70}"
border
@row-dblclick="selectedPicture"
@@ -12,7 +14,7 @@
<el-table-column prop="name" label="鍥剧墖鍚嶇О"/>
<el-table-column label="鍥剧墖" align="center">
<template v-slot="{ row }">
- <el-image v-if="row.accessoryMap" :src="getPath(row)" style="height: 50px;width: 50px"></el-image>
+ <el-image v-if="row.id" :src="url+row.id" style="height: 50px;width: 50px"></el-image>
</template>
</el-table-column>
</el-table>
@@ -23,15 +25,19 @@
</template>
<script>
+ import Cookies from 'js-cookie'
export default {
data() {
return {
+ url: `${window.SITE_CONFIG['apiURL']}/sysPictureBase/getSvgImage?token=${Cookies.get('token')}&id=`,
name: 'SelectPicture',
type: '',
dataForm: {
+ id:'',
contentType: '',
systemMark: '',
+ productType:'',
sortNo: ''
},
}
@@ -39,19 +45,13 @@
components: {},
methods: {
init(type) {
- this.type = type
- },
- getPath(row) {
- if (row.accessoryMap) {
- for (let key in row.accessoryMap) {
- return key
- }
- }
+ this.dataForm.productType = type
+ console.log(this.dataForm.productType)
},
async selectedPicture(row) {
await this.$tip.success()
this.$refs.dialog.close()
- this.$emit('setPicture', row, this.type)
+ this.$emit('setPicture', row)
}
}
}
--
Gitblit v1.9.1