fix[litemall-wx]: 列表项删除以后重新加载
This commit is contained in:
@@ -129,6 +129,7 @@ export default {
|
||||
type: 'success',
|
||||
duration: 2000
|
||||
})
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
handleDownload() {
|
||||
|
||||
@@ -410,7 +410,8 @@ export default {
|
||||
this.goods.categoryId = value[value.length - 1]
|
||||
},
|
||||
handleCancel: function() {
|
||||
this.$router.push({ path: '/goods/goods' })
|
||||
this.$store.dispatch('tagsView/delView', this.$route)
|
||||
this.$router.push({ path: '/goods/list' })
|
||||
},
|
||||
handlePublish: function() {
|
||||
const finalGoods = {
|
||||
@@ -424,6 +425,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '创建成功'
|
||||
})
|
||||
this.$store.dispatch('tagsView/delView', this.$route)
|
||||
this.$router.push({ path: '/goods/list' })
|
||||
}).catch(response => {
|
||||
MessageBox.alert('业务错误:' + response.data.errmsg, '警告', {
|
||||
|
||||
@@ -419,6 +419,7 @@ export default {
|
||||
this.goods.categoryId = value[value.length - 1]
|
||||
},
|
||||
handleCancel: function() {
|
||||
this.$store.dispatch('tagsView/delView', this.$route)
|
||||
this.$router.push({ path: '/goods/list' })
|
||||
},
|
||||
handleEdit: function() {
|
||||
@@ -432,8 +433,9 @@ export default {
|
||||
.then(response => {
|
||||
this.$notify.success({
|
||||
title: '成功',
|
||||
message: '创建成功'
|
||||
message: '编辑成功'
|
||||
})
|
||||
this.$store.dispatch('tagsView/delView', this.$route)
|
||||
this.$router.push({ path: '/goods/list' })
|
||||
})
|
||||
.catch(response => {
|
||||
|
||||
@@ -190,8 +190,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '删除成功'
|
||||
})
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
this.getList()
|
||||
}).catch(response => {
|
||||
this.$notify.error({
|
||||
title: '失败',
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
<!-- 查询和其他操作 -->
|
||||
<div class="filter-container">
|
||||
<el-input v-model="listQuery.id" clearable class="filter-item" style="width: 200px;" placeholder="请输入品牌商ID"/>
|
||||
<el-input v-model="listQuery.name" clearable class="filter-item" style="width: 200px;" placeholder="请输入品牌商名称"/>
|
||||
<el-input v-model="listQuery.id" clearable class="filter-item" style="width: 200px;" placeholder="请输入品牌商ID" />
|
||||
<el-input v-model="listQuery.name" clearable class="filter-item" style="width: 200px;" placeholder="请输入品牌商名称" />
|
||||
<el-button v-permission="['GET /admin/brand/list']" class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">查找</el-button>
|
||||
<el-button v-permission="['POST /admin/brand/create']" class="filter-item" type="primary" icon="el-icon-edit" @click="handleCreate">添加</el-button>
|
||||
<el-button :loading="downloadLoading" class="filter-item" type="primary" icon="el-icon-download" @click="handleDownload">导出</el-button>
|
||||
@@ -13,9 +13,9 @@
|
||||
<!-- 查询结果 -->
|
||||
<el-table v-loading="listLoading" :data="list" element-loading-text="正在查询中。。。" border fit highlight-current-row>
|
||||
|
||||
<el-table-column align="center" label="品牌商ID" prop="id"/>
|
||||
<el-table-column align="center" label="品牌商ID" prop="id" />
|
||||
|
||||
<el-table-column align="center" label="品牌商名称" prop="name"/>
|
||||
<el-table-column align="center" label="品牌商名称" prop="name" />
|
||||
|
||||
<el-table-column align="center" property="picUrl" label="品牌商图片">
|
||||
<template slot-scope="scope">
|
||||
@@ -23,9 +23,9 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" min-width="400px" label="介绍" prop="desc"/>
|
||||
<el-table-column align="center" min-width="400px" label="介绍" prop="desc" />
|
||||
|
||||
<el-table-column align="center" label="底价" prop="floorPrice"/>
|
||||
<el-table-column align="center" label="底价" prop="floorPrice" />
|
||||
|
||||
<el-table-column align="center" label="操作" width="200" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
@@ -41,10 +41,10 @@
|
||||
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">
|
||||
<el-form ref="dataForm" :rules="rules" :model="dataForm" status-icon label-position="left" label-width="100px" style="width: 400px; margin-left:50px;">
|
||||
<el-form-item label="品牌商名称" prop="name">
|
||||
<el-input v-model="dataForm.name"/>
|
||||
<el-input v-model="dataForm.name" />
|
||||
</el-form-item>
|
||||
<el-form-item label="介绍" prop="simpleDesc">
|
||||
<el-input v-model="dataForm.desc"/>
|
||||
<el-input v-model="dataForm.desc" />
|
||||
</el-form-item>
|
||||
<el-form-item label="品牌商图片" prop="picUrl">
|
||||
<el-upload
|
||||
@@ -53,13 +53,14 @@
|
||||
:show-file-list="false"
|
||||
:on-success="uploadPicUrl"
|
||||
class="avatar-uploader"
|
||||
accept=".jpg,.jpeg,.png,.gif">
|
||||
accept=".jpg,.jpeg,.png,.gif"
|
||||
>
|
||||
<img v-if="dataForm.picUrl" :src="dataForm.picUrl" class="avatar">
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon"/>
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon" />
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
<el-form-item label="底价" prop="floorPrice">
|
||||
<el-input v-model="dataForm.floorPrice"/>
|
||||
<el-input v-model="dataForm.floorPrice" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@@ -254,8 +255,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '删除成功'
|
||||
})
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
this.getList()
|
||||
})
|
||||
.catch(response => {
|
||||
this.$notify.error({
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<!-- 查询和其他操作 -->
|
||||
<div class="filter-container">
|
||||
<el-input v-model="listQuery.question" clearable class="filter-item" style="width: 200px;" placeholder="请输入问题"/>
|
||||
<el-input v-model="listQuery.question" clearable class="filter-item" style="width: 200px;" placeholder="请输入问题" />
|
||||
<el-button v-permission="['GET /admin/issue/list']" class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">查找</el-button>
|
||||
<el-button v-permission="['POST /admin/issue/create']" class="filter-item" type="primary" icon="el-icon-edit" @click="handleCreate">添加</el-button>
|
||||
<el-button :loading="downloadLoading" class="filter-item" type="primary" icon="el-icon-download" @click="handleDownload">导出</el-button>
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
<!-- 查询结果 -->
|
||||
<el-table v-loading="listLoading" :data="list" element-loading-text="正在查询中。。。" border fit highlight-current-row>
|
||||
<el-table-column align="center" width="100px" label="问题ID" prop="id" sortable/>
|
||||
<el-table-column align="center" width="100px" label="问题ID" prop="id" sortable />
|
||||
|
||||
<el-table-column align="center" min-width="200px" label="问题内容" prop="question"/>
|
||||
<el-table-column align="center" min-width="200px" label="问题内容" prop="question" />
|
||||
|
||||
<el-table-column align="center" min-width="400px" label="问题回复" prop="answer"/>
|
||||
<el-table-column align="center" min-width="400px" label="问题回复" prop="answer" />
|
||||
|
||||
<el-table-column align="center" label="操作" width="250" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
@@ -31,10 +31,10 @@
|
||||
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">
|
||||
<el-form ref="dataForm" :rules="rules" :model="dataForm" status-icon label-position="left" label-width="100px" style="width: 400px; margin-left:50px;">
|
||||
<el-form-item label="问题" prop="question">
|
||||
<el-input v-model="dataForm.question"/>
|
||||
<el-input v-model="dataForm.question" />
|
||||
</el-form-item>
|
||||
<el-form-item label="回复" prop="answer">
|
||||
<el-input v-model="dataForm.answer" :rows="8" type="textarea" placeholder="请输入内容"/>
|
||||
<el-input v-model="dataForm.answer" :rows="8" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@@ -177,8 +177,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '删除成功'
|
||||
})
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
this.getList()
|
||||
}).catch(response => {
|
||||
this.$notify.error({
|
||||
title: '失败',
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
<!-- 查询和其他操作 -->
|
||||
<div class="filter-container">
|
||||
<el-input v-model="listQuery.keyword" clearable class="filter-item" style="width: 200px;" placeholder="请输入关键字"/>
|
||||
<el-input v-model="listQuery.url" clearable class="filter-item" style="width: 200px;" placeholder="请输入跳转链接"/>
|
||||
<el-input v-model="listQuery.keyword" clearable class="filter-item" style="width: 200px;" placeholder="请输入关键字" />
|
||||
<el-input v-model="listQuery.url" clearable class="filter-item" style="width: 200px;" placeholder="请输入跳转链接" />
|
||||
<el-button v-permission="['GET /admin/keyword/list']" class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">查找</el-button>
|
||||
<el-button v-permission="['POST /admin/keyword/create']" class="filter-item" type="primary" icon="el-icon-edit" @click="handleCreate">添加</el-button>
|
||||
<el-button :loading="downloadLoading" class="filter-item" type="primary" icon="el-icon-download" @click="handleDownload">导出</el-button>
|
||||
@@ -13,11 +13,11 @@
|
||||
<!-- 查询结果 -->
|
||||
<el-table v-loading="listLoading" :data="list" element-loading-text="正在查询中。。。" border fit highlight-current-row>
|
||||
|
||||
<el-table-column align="center" width="150px" label="关键词ID" prop="id" sortable/>
|
||||
<el-table-column align="center" width="150px" label="关键词ID" prop="id" sortable />
|
||||
|
||||
<el-table-column align="center" min-width="100px" label="关键词" prop="keyword"/>
|
||||
<el-table-column align="center" min-width="100px" label="关键词" prop="keyword" />
|
||||
|
||||
<el-table-column align="center" min-width="300px" label="跳转链接" prop="url"/>
|
||||
<el-table-column align="center" min-width="300px" label="跳转链接" prop="url" />
|
||||
|
||||
<el-table-column align="center" min-width="100px" label="是否推荐" prop="isHot">
|
||||
<template slot-scope="scope">
|
||||
@@ -45,21 +45,21 @@
|
||||
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">
|
||||
<el-form ref="dataForm" :rules="rules" :model="dataForm" status-icon label-position="left" label-width="100px" style="width: 400px; margin-left:50px;">
|
||||
<el-form-item label="关键词" prop="keyword">
|
||||
<el-input v-model="dataForm.keyword"/>
|
||||
<el-input v-model="dataForm.keyword" />
|
||||
</el-form-item>
|
||||
<el-form-item label="跳转链接" prop="url">
|
||||
<el-input v-model="dataForm.url"/>
|
||||
<el-input v-model="dataForm.url" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否推荐" prop="isHot">
|
||||
<el-select v-model="dataForm.isHot" placeholder="请选择">
|
||||
<el-option :value="true" label="推荐"/>
|
||||
<el-option :value="false" label="普通"/>
|
||||
<el-option :value="true" label="推荐" />
|
||||
<el-option :value="false" label="普通" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否默认" prop="isDefault">
|
||||
<el-select v-model="dataForm.isDefault" placeholder="请选择">
|
||||
<el-option :value="true" label="默认"/>
|
||||
<el-option :value="false" label="非默认"/>
|
||||
<el-option :value="true" label="默认" />
|
||||
<el-option :value="false" label="非默认" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -207,8 +207,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '删除成功'
|
||||
})
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
this.getList()
|
||||
}).catch(response => {
|
||||
this.$notify.error({
|
||||
title: '失败',
|
||||
|
||||
@@ -112,8 +112,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '删除通知成功'
|
||||
})
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
this.getList()
|
||||
})
|
||||
.catch(response => {
|
||||
this.$notify.error({
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
<!-- 查询和其他操作 -->
|
||||
<div class="filter-container">
|
||||
<el-input v-model="listQuery.name" clearable class="filter-item" style="width: 200px;" placeholder="请输入广告标题"/>
|
||||
<el-input v-model="listQuery.content" clearable class="filter-item" style="width: 200px;" placeholder="请输入广告内容"/>
|
||||
<el-input v-model="listQuery.name" clearable class="filter-item" style="width: 200px;" placeholder="请输入广告标题" />
|
||||
<el-input v-model="listQuery.content" clearable class="filter-item" style="width: 200px;" placeholder="请输入广告内容" />
|
||||
<el-button v-permission="['GET /admin/ad/list']" class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">查找</el-button>
|
||||
<el-button v-permission="['POST /admin/ad/create']" class="filter-item" type="primary" icon="el-icon-edit" @click="handleCreate">添加</el-button>
|
||||
<el-button :loading="downloadLoading" class="filter-item" type="primary" icon="el-icon-download" @click="handleDownload">导出</el-button>
|
||||
@@ -13,11 +13,11 @@
|
||||
<!-- 查询结果 -->
|
||||
<el-table v-loading="listLoading" :data="list" element-loading-text="正在查询中。。。" border fit highlight-current-row>
|
||||
|
||||
<el-table-column align="center" label="广告ID" prop="id" sortable/>
|
||||
<el-table-column align="center" label="广告ID" prop="id" sortable />
|
||||
|
||||
<el-table-column align="center" label="广告标题" prop="name"/>
|
||||
<el-table-column align="center" label="广告标题" prop="name" />
|
||||
|
||||
<el-table-column align="center" label="广告内容" prop="content"/>
|
||||
<el-table-column align="center" label="广告内容" prop="content" />
|
||||
|
||||
<el-table-column align="center" label="广告图片" prop="url">
|
||||
<template slot-scope="scope">
|
||||
@@ -25,9 +25,9 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" label="广告位置" prop="position"/>
|
||||
<el-table-column align="center" label="广告位置" prop="position" />
|
||||
|
||||
<el-table-column align="center" label="活动链接" prop="link"/>
|
||||
<el-table-column align="center" label="活动链接" prop="link" />
|
||||
|
||||
<el-table-column align="center" label="是否启用" prop="enabled">
|
||||
<template slot-scope="scope">
|
||||
@@ -49,10 +49,10 @@
|
||||
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">
|
||||
<el-form ref="dataForm" :rules="rules" :model="dataForm" status-icon label-position="left" label-width="100px" style="width: 400px; margin-left:50px;">
|
||||
<el-form-item label="广告标题" prop="name">
|
||||
<el-input v-model="dataForm.name"/>
|
||||
<el-input v-model="dataForm.name" />
|
||||
</el-form-item>
|
||||
<el-form-item label="广告内容" prop="content">
|
||||
<el-input v-model="dataForm.content"/>
|
||||
<el-input v-model="dataForm.content" />
|
||||
</el-form-item>
|
||||
<el-form-item label="广告图片" prop="url">
|
||||
<el-upload
|
||||
@@ -62,24 +62,25 @@
|
||||
:on-success="uploadUrl"
|
||||
:before-upload="checkFileSize"
|
||||
class="avatar-uploader"
|
||||
accept=".jpg,.jpeg,.png,.gif">
|
||||
accept=".jpg,.jpeg,.png,.gif"
|
||||
>
|
||||
<img v-if="dataForm.url" :src="dataForm.url" class="avatar">
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon"/>
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon" />
|
||||
<div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过1024kb</div>
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
<el-form-item label="广告位置" prop="position">
|
||||
<el-select v-model="dataForm.position" placeholder="请选择">
|
||||
<el-option :value="1" label="首页"/>
|
||||
<el-option :value="1" label="首页" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="活动链接" prop="link">
|
||||
<el-input v-model="dataForm.link"/>
|
||||
<el-input v-model="dataForm.link" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否启用" prop="enabled">
|
||||
<el-select v-model="dataForm.enabled" placeholder="请选择">
|
||||
<el-option :value="true" label="启用"/>
|
||||
<el-option :value="false" label="不启用"/>
|
||||
<el-option :value="true" label="启用" />
|
||||
<el-option :value="false" label="不启用" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -290,8 +291,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '删除成功'
|
||||
})
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
this.getList()
|
||||
})
|
||||
.catch(response => {
|
||||
this.$notify.error({
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
|
||||
<!-- 查询和其他操作 -->
|
||||
<div class="filter-container">
|
||||
<el-input v-model="listQuery.name" clearable class="filter-item" style="width: 200px;" placeholder="请输入优惠券标题"/>
|
||||
<el-input v-model="listQuery.name" clearable class="filter-item" style="width: 200px;" placeholder="请输入优惠券标题" />
|
||||
<el-select v-model="listQuery.type" clearable style="width: 200px" class="filter-item" placeholder="请选择优惠券类型">
|
||||
<el-option v-for="type in typeOptions" :key="type.value" :label="type.label" :value="type.value"/>
|
||||
<el-option v-for="type in typeOptions" :key="type.value" :label="type.label" :value="type.value" />
|
||||
</el-select>
|
||||
<el-select v-model="listQuery.status" clearable style="width: 200px" class="filter-item" placeholder="请选择优惠券状态">
|
||||
<el-option v-for="type in statusOptions" :key="type.value" :label="type.label" :value="type.value"/>
|
||||
<el-option v-for="type in statusOptions" :key="type.value" :label="type.label" :value="type.value" />
|
||||
</el-select>
|
||||
<el-button v-permission="['GET /admin/coupon/list']" class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">查找</el-button>
|
||||
<el-button v-permission="['POST /admin/coupon/create']" class="filter-item" type="primary" icon="el-icon-edit" @click="handleCreate">添加</el-button>
|
||||
@@ -18,13 +18,13 @@
|
||||
<!-- 查询结果 -->
|
||||
<el-table v-loading="listLoading" :data="list" element-loading-text="正在查询中。。。" border fit highlight-current-row>
|
||||
|
||||
<el-table-column align="center" label="优惠券ID" prop="id" sortable/>
|
||||
<el-table-column align="center" label="优惠券ID" prop="id" sortable />
|
||||
|
||||
<el-table-column align="center" label="优惠券名称" prop="name"/>
|
||||
<el-table-column align="center" label="优惠券名称" prop="name" />
|
||||
|
||||
<el-table-column align="center" label="介绍" prop="desc"/>
|
||||
<el-table-column align="center" label="介绍" prop="desc" />
|
||||
|
||||
<el-table-column align="center" label="标签" prop="tag"/>
|
||||
<el-table-column align="center" label="标签" prop="tag" />
|
||||
|
||||
<el-table-column align="center" label="最低消费" prop="min">
|
||||
<template slot-scope="scope">满{{ scope.row.min }}元可用</template>
|
||||
@@ -69,13 +69,13 @@
|
||||
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">
|
||||
<el-form ref="dataForm" :rules="rules" :model="dataForm" status-icon label-position="left" label-width="100px" style="width: 400px; margin-left:50px;">
|
||||
<el-form-item label="优惠券名称" prop="name">
|
||||
<el-input v-model="dataForm.name"/>
|
||||
<el-input v-model="dataForm.name" />
|
||||
</el-form-item>
|
||||
<el-form-item label="介绍" prop="desc">
|
||||
<el-input v-model="dataForm.desc"/>
|
||||
<el-input v-model="dataForm.desc" />
|
||||
</el-form-item>
|
||||
<el-form-item label="标签" prop="tag">
|
||||
<el-input v-model="dataForm.tag"/>
|
||||
<el-input v-model="dataForm.tag" />
|
||||
</el-form-item>
|
||||
<el-form-item label="最低消费" prop="min">
|
||||
<el-input v-model="dataForm.min">
|
||||
@@ -98,7 +98,8 @@
|
||||
v-for="type in typeOptions"
|
||||
:key="type.value"
|
||||
:label="type.label"
|
||||
:value="type.value"/>
|
||||
:value="type.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="优惠券数量" prop="total">
|
||||
@@ -119,11 +120,11 @@
|
||||
</el-form-item>
|
||||
<el-form-item v-show="dataForm.timeType === 1">
|
||||
<el-col :span="11">
|
||||
<el-date-picker v-model="dataForm.startTime" type="datetime" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss" style="width: 100%;"/>
|
||||
<el-date-picker v-model="dataForm.startTime" type="datetime" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss" style="width: 100%;" />
|
||||
</el-col>
|
||||
<el-col :span="2" class="line">至</el-col>
|
||||
<el-col :span="11">
|
||||
<el-date-picker v-model="dataForm.endTime" type="datetime" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss" style="width: 100%;"/>
|
||||
<el-date-picker v-model="dataForm.endTime" type="datetime" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss" style="width: 100%;" />
|
||||
</el-col>
|
||||
</el-form-item>
|
||||
<el-form-item label="商品限制范围">
|
||||
@@ -408,8 +409,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '删除优惠券成功'
|
||||
})
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
this.getList()
|
||||
})
|
||||
.catch(response => {
|
||||
this.$notify.error({
|
||||
|
||||
@@ -237,8 +237,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '删除团购规则成功'
|
||||
})
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
this.getList()
|
||||
}).catch(response => {
|
||||
this.$notify.error({
|
||||
title: '失败',
|
||||
|
||||
@@ -163,8 +163,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '删除专题成功'
|
||||
})
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
this.getList()
|
||||
})
|
||||
.catch(response => {
|
||||
this.$notify.error({
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<!-- 查询和其他操作 -->
|
||||
<div class="filter-container">
|
||||
<el-input v-model="listQuery.username" clearable class="filter-item" style="width: 200px;" placeholder="请输入管理员名称"/>
|
||||
<el-input v-model="listQuery.username" clearable class="filter-item" style="width: 200px;" placeholder="请输入管理员名称" />
|
||||
<el-button v-permission="['GET /admin/admin/list']" class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">查找</el-button>
|
||||
<el-button v-permission="['POST /admin/admin/create']" class="filter-item" type="primary" icon="el-icon-edit" @click="handleCreate">添加</el-button>
|
||||
<el-button :loading="downloadLoading" class="filter-item" type="primary" icon="el-icon-download" @click="handleDownload">导出</el-button>
|
||||
@@ -11,9 +11,9 @@
|
||||
|
||||
<!-- 查询结果 -->
|
||||
<el-table v-loading="listLoading" :data="list" element-loading-text="正在查询中。。。" border fit highlight-current-row>
|
||||
<el-table-column align="center" label="管理员ID" prop="id" sortable/>
|
||||
<el-table-column align="center" label="管理员ID" prop="id" sortable />
|
||||
|
||||
<el-table-column align="center" label="管理员名称" prop="username"/>
|
||||
<el-table-column align="center" label="管理员名称" prop="username" />
|
||||
|
||||
<el-table-column align="center" label="管理员头像" prop="avatar">
|
||||
<template slot-scope="scope">
|
||||
@@ -41,10 +41,10 @@
|
||||
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">
|
||||
<el-form ref="dataForm" :rules="rules" :model="dataForm" status-icon label-position="left" label-width="100px" style="width: 400px; margin-left:50px;">
|
||||
<el-form-item label="管理员名称" prop="username">
|
||||
<el-input v-model="dataForm.username"/>
|
||||
<el-input v-model="dataForm.username" />
|
||||
</el-form-item>
|
||||
<el-form-item label="管理员密码" prop="password">
|
||||
<el-input v-model="dataForm.password" type="password" auto-complete="off"/>
|
||||
<el-input v-model="dataForm.password" type="password" auto-complete="off" />
|
||||
</el-form-item>
|
||||
<el-form-item label="管理员头像" prop="avatar">
|
||||
<el-upload
|
||||
@@ -53,9 +53,10 @@
|
||||
:show-file-list="false"
|
||||
:on-success="uploadAvatar"
|
||||
class="avatar-uploader"
|
||||
accept=".jpg,.jpeg,.png,.gif">
|
||||
accept=".jpg,.jpeg,.png,.gif"
|
||||
>
|
||||
<img v-if="dataForm.avatar" :src="dataForm.avatar" class="avatar">
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon"/>
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon" />
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
<el-form-item label="管理员角色" prop="roleIds">
|
||||
@@ -64,7 +65,8 @@
|
||||
v-for="item in roleOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -275,8 +277,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '删除管理员成功'
|
||||
})
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
this.getList()
|
||||
})
|
||||
.catch(response => {
|
||||
this.$notify.error({
|
||||
|
||||
@@ -237,8 +237,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '删除通知成功'
|
||||
})
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
this.getList()
|
||||
})
|
||||
.catch(response => {
|
||||
this.$notify.error({
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
<!-- 查询和其他操作 -->
|
||||
<div class="filter-container">
|
||||
<el-input v-model="listQuery.key" clearable class="filter-item" style="width: 200px;" placeholder="请输入对象KEY"/>
|
||||
<el-input v-model="listQuery.name" clearable class="filter-item" style="width: 200px;" placeholder="请输入对象名称"/>
|
||||
<el-input v-model="listQuery.key" clearable class="filter-item" style="width: 200px;" placeholder="请输入对象KEY" />
|
||||
<el-input v-model="listQuery.name" clearable class="filter-item" style="width: 200px;" placeholder="请输入对象名称" />
|
||||
<el-button v-permission="['GET /admin/storage/list']" class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">查找</el-button>
|
||||
<el-button v-permission="['POST /admin/storage/create']" class="filter-item" type="primary" icon="el-icon-edit" @click="handleCreate">添加</el-button>
|
||||
<el-button :loading="downloadLoading" class="filter-item" type="primary" icon="el-icon-download" @click="handleDownload">导出</el-button>
|
||||
@@ -13,13 +13,13 @@
|
||||
<!-- 查询结果 -->
|
||||
<el-table v-loading="listLoading" :data="list" element-loading-text="正在查询中。。。" border fit highlight-current-row>
|
||||
|
||||
<el-table-column align="center" label="对象KEY" prop="key"/>
|
||||
<el-table-column align="center" label="对象KEY" prop="key" />
|
||||
|
||||
<el-table-column align="center" label="对象名称" prop="name"/>
|
||||
<el-table-column align="center" label="对象名称" prop="name" />
|
||||
|
||||
<el-table-column align="center" label="对象类型" prop="type"/>
|
||||
<el-table-column align="center" label="对象类型" prop="type" />
|
||||
|
||||
<el-table-column align="center" label="对象大小" prop="size"/>
|
||||
<el-table-column align="center" label="对象大小" prop="size" />
|
||||
|
||||
<el-table-column align="center" property="url" label="图片">
|
||||
<template slot-scope="scope">
|
||||
@@ -27,7 +27,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" label="图片链接" prop="url"/>
|
||||
<el-table-column align="center" label="图片链接" prop="url" />
|
||||
|
||||
<el-table-column align="center" label="操作" width="200" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
@@ -50,7 +50,7 @@
|
||||
<el-dialog :visible.sync="updateDialogVisible" title="修改对象名称">
|
||||
<el-form ref="dataForm" :rules="rules" :model="dataForm" status-icon label-position="left" label-width="100px" style="width: 400px; margin-left:50px;">
|
||||
<el-form-item label="对象名称" prop="name">
|
||||
<el-input v-model="dataForm.name"/>
|
||||
<el-input v-model="dataForm.name" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@@ -177,8 +177,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '删除成功'
|
||||
})
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
this.getList()
|
||||
}).catch(response => {
|
||||
this.$notify.error({
|
||||
title: '失败',
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
|
||||
<!-- 查询和其他操作 -->
|
||||
<div class="filter-container">
|
||||
<el-input v-model="listQuery.name" clearable class="filter-item" style="width: 200px;" placeholder="请输入角色名称"/>
|
||||
<el-input v-model="listQuery.name" clearable class="filter-item" style="width: 200px;" placeholder="请输入角色名称" />
|
||||
<el-button v-permission="['GET /admin/role/list']" class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">查找</el-button>
|
||||
<el-button v-permission="['POST /admin/role/create']" class="filter-item" type="primary" icon="el-icon-edit" @click="handleCreate">添加</el-button>
|
||||
</div>
|
||||
|
||||
<!-- 查询结果 -->
|
||||
<el-table v-loading="listLoading" :data="list" element-loading-text="正在查询中。。。" border fit highlight-current-row>
|
||||
<el-table-column align="center" label="角色名称" prop="name" sortable/>
|
||||
<el-table-column align="center" label="角色名称" prop="name" sortable />
|
||||
|
||||
<el-table-column align="center" label="说明" prop="desc"/>
|
||||
<el-table-column align="center" label="说明" prop="desc" />
|
||||
|
||||
<el-table-column align="center" label="操作" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
@@ -29,10 +29,10 @@
|
||||
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">
|
||||
<el-form ref="dataForm" :rules="rules" :model="dataForm" status-icon label-position="left" label-width="100px" style="width: 400px; margin-left:50px;">
|
||||
<el-form-item label="角色名称" prop="name">
|
||||
<el-input v-model="dataForm.name"/>
|
||||
<el-input v-model="dataForm.name" />
|
||||
</el-form-item>
|
||||
<el-form-item label="说明" prop="desc">
|
||||
<el-input v-model="dataForm.desc"/>
|
||||
<el-input v-model="dataForm.desc" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@@ -50,7 +50,8 @@
|
||||
:default-checked-keys="assignedPermissions"
|
||||
show-checkbox
|
||||
node-key="id"
|
||||
highlight-current>
|
||||
highlight-current
|
||||
>
|
||||
<span slot-scope="{ node, data }" class="custom-tree-node">
|
||||
<span>{{ data.label }}</span>
|
||||
<el-tag v-if="data.api" type="success" size="mini">{{ data.api }}</el-tag>
|
||||
@@ -208,8 +209,7 @@ export default {
|
||||
title: '成功',
|
||||
message: '删除管理员成功'
|
||||
})
|
||||
const index = this.list.indexOf(row)
|
||||
this.list.splice(index, 1)
|
||||
this.getList()
|
||||
})
|
||||
.catch(response => {
|
||||
this.$notify.error({
|
||||
|
||||
Reference in New Issue
Block a user