From b79c78fedb367570ca2f17a87fbc244a8dadb793 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期三, 27 三月 2024 17:29:04 +0800
Subject: [PATCH] 替换保存在数据库的模型中的图片的url前缀和token值,页面回显模型时,再替换回去。(因为url前缀和token是随环境变换的值,不能存在数据库中)
---
web/src/views/modules/sysPictureBase/SysPictureBase.vue | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/web/src/views/modules/sysPictureBase/SysPictureBase.vue b/web/src/views/modules/sysPictureBase/SysPictureBase.vue
index 03fd11b..c4c67c9 100644
--- a/web/src/views/modules/sysPictureBase/SysPictureBase.vue
+++ b/web/src/views/modules/sysPictureBase/SysPictureBase.vue
@@ -10,7 +10,7 @@
</el-form-item>
<el-form-item>
- <zt-dict v-model="dataForm.systemMark" dict="product" placeholder="璇烽�夋嫨绯荤粺鏍囪瘑" clearable></zt-dict>
+ <zt-dict v-model="dataForm.productType" dict="product" placeholder="璇烽�夋嫨浜у搧绫诲瀷" clearable></zt-dict>
</el-form-item>
<el-form-item>
<zt-button type="query" @click="table.query()"/>
@@ -21,15 +21,15 @@
<el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:70}"
border @selection-change="table.selectionChangeHandle">
<el-table-column type="selection" width="40" align="center"/>
- <el-table-column prop="sortNo" label="鎺掑簭"/>
<el-table-column prop="name" label="鍥剧墖鍚嶇О"/>
+ <zt-table-column-dict prop="isDefault" label="鏄惁榛樿" dict="is_or_not"/>
<el-table-column label="鍥剧墖" align="center">
<template v-slot="{ row }">
<el-image v-if="row.id" :src="url+row.id" style="height: 50px;width: 50px"></el-image>
</template>
</el-table-column>
<el-table-column prop="contentType" label="妫�绱㈠叧閿瓧"/>
- <zt-table-column-dict prop="systemMark" label="绯荤粺鏍囪瘑" dict="product"/>
+ <zt-table-column-dict prop="productType" label="浜у搧绫诲瀷" dict="product"/>
<zt-table-column-handle :table="table"
delete-perm="sysPictureBase::delete"/>
</el-table>
@@ -50,8 +50,7 @@
url: `${window.SITE_CONFIG['apiURL']}/sysPictureBase/getProductImg?token=${Cookies.get('token')}&id=`,
dataForm: {
contentType: '',
- systemMark: '',
- sortNo: ''
+ productType: '',
},
}
},
--
Gitblit v1.9.1