关闭git图标和导航,完善首页标签页面的上传图片的url
parent
e93e7f4bcd
commit
99708d9743
|
|
@ -23,13 +23,13 @@
|
|||
|
||||
<search id="header-search" class="right-menu-item" />
|
||||
|
||||
<el-tooltip content="源码地址" effect="dark" placement="bottom">
|
||||
<!-- <el-tooltip content="源码地址" effect="dark" placement="bottom">
|
||||
<ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" />
|
||||
</el-tooltip>
|
||||
|
||||
<el-tooltip content="文档地址" effect="dark" placement="bottom">
|
||||
<ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" />
|
||||
</el-tooltip>
|
||||
</el-tooltip> -->
|
||||
|
||||
<screenfull id="screenfull" class="right-menu-item hover-effect" />
|
||||
|
||||
|
|
|
|||
|
|
@ -238,6 +238,7 @@ export default {
|
|||
segchk_providerList: [],
|
||||
lableStatus: [],
|
||||
baseUrl: '',
|
||||
keyword: 'keyword',
|
||||
// baseUrl: process.env.VUE_APP_BASE_API,
|
||||
// 表单参数
|
||||
form: {},
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@
|
|||
<el-tooltip content="会员充值卡、关键字、优惠" placement="top">
|
||||
<i class="el-icon-question"></i>
|
||||
</el-tooltip>
|
||||
<el-select v-model="form.lableFlag" placeholder="标签来源" >
|
||||
<el-select v-model="form.lableFlag" placeholder="标签来源">
|
||||
<el-option
|
||||
v-for="dict in this.typeSelectOptions"
|
||||
:key="parseInt(dict.typeId)"
|
||||
|
|
@ -279,13 +279,16 @@
|
|||
<el-input-number v-model="form.sortId" controls-position="right" :min="0" placeholder="展示序号" :value="lableSort"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="标签图标路径">
|
||||
<ImageUpload v-model="form.iconUrl" :limit=1 :file-size=1 />
|
||||
<ImageUpload v-model="form.iconUrl" :limit=1 :file-size=1 :uploadUrl="getLableUrl(form.lableFlag)"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
<!-- <div>
|
||||
{{lableurl}}
|
||||
</div> -->
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -305,6 +308,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
baseUrl: '',
|
||||
lableurl: 'card_lable',
|
||||
// baseUrl: process.env.VUE_APP_BASE_API,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
|
|
@ -397,6 +401,13 @@ export default {
|
|||
},
|
||||
|
||||
computed:{
|
||||
getLableUrl() {
|
||||
return function (fromLableId) {
|
||||
let uploadurl = (fromLableId === 0 ? 'card_lable' : (fromLableId === 1 ? 'keyword' : (fromLableId === 2 ? 'preference' : 'card_lable')))
|
||||
this.lableurl = uploadurl
|
||||
return uploadurl
|
||||
}
|
||||
},
|
||||
lableSort(row) {
|
||||
// console.log("lableSort --- " + row.providerId)
|
||||
if(row.providerId == null){
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
|
||||
publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
|
||||
// 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
|
||||
outputDir: 'dist',
|
||||
outputDir: 'segchk_vue',
|
||||
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
|
||||
assetsDir: 'static',
|
||||
// 是否开启eslint保存检测,有效值:ture | false | 'error'
|
||||
|
|
|
|||
Loading…
Reference in New Issue