Commit 496a8ae1 authored by 罗林杰's avatar 罗林杰

Merge remote-tracking branch 'origin/master'

parents 21ccd7a9 b3a39632
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
style="width: 300px"
@change="handleChangeTime" @change="handleChangeTime"
/> />
</el-form-item> </el-form-item>
...@@ -81,7 +82,6 @@ ...@@ -81,7 +82,6 @@
<div style="padding:5px 10px"> <div style="padding:5px 10px">
<div class="tableTitle">活动列表</div> <div class="tableTitle">活动列表</div>
<el-table v-loading="fullscreenLoading" :data="tableData" border sortable="true" style="text-align: left;"> <el-table v-loading="fullscreenLoading" :data="tableData" border sortable="true" style="text-align: left;">
<span slot="empty">{{ tableDataTips }}</span>
<el-table-column align="center" prop="id" label="序号" min-width="55px"> <el-table-column align="center" prop="id" label="序号" min-width="55px">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span> <span>{{ scope.$index + 1 }}</span>
...@@ -403,8 +403,7 @@ export default { ...@@ -403,8 +403,7 @@ export default {
fullscreenLoading: false, fullscreenLoading: false,
curCatForm: { curCatForm: {
}, }
tableDataTips: '加载中'
} }
}, },
computed: { computed: {
......
...@@ -397,24 +397,6 @@ export default { ...@@ -397,24 +397,6 @@ export default {
// 先验证表单 // 先验证表单
this.$refs['form'].validate(valid => { this.$refs['form'].validate(valid => {
if (valid) { if (valid) {
// 获取表单中的权重值
const weight = this.form.weight
const pictureId = this.form.pictureId
// 如果权重为 0,提示用户选择有效权重
if (weight === 0) {
this.$message.error('请选择有效的权重值')
return
}
// 检查当前 weight 是否与已获取的列表中的 weight 重复
const isWeightExists = this.cmsBannerList.some(banner => banner.weight === weight)
const isPictureIdExists = this.cmsBannerList.some(banner => banner.pictureId === pictureId)
if (isPictureIdExists && isWeightExists) {
// 如果重复,提醒用户并阻止继续提交
this.$message.error('该权重值已经存在,请选择其他权重')
return // 停止提交
}
// 权重不重复,继续新增或修改 // 权重不重复,继续新增或修改
if (this.form.businessId !== null) { if (this.form.businessId !== null) {
// 修改操作 // 修改操作
......
...@@ -80,7 +80,6 @@ ...@@ -80,7 +80,6 @@
</div><div style="padding:5px 10px"> </div><div style="padding:5px 10px">
<div class="tableTitle">公告列表</div> <div class="tableTitle">公告列表</div>
<el-table v-loading="fullscreenLoading" :data="tableData" border sortable="true" style="text-align: left;"> <el-table v-loading="fullscreenLoading" :data="tableData" border sortable="true" style="text-align: left;">
<span slot="empty">{{ tableDataTips }}</span>
<el-table-column align="center" prop="id" label="序号" min-width="55px"> <el-table-column align="center" prop="id" label="序号" min-width="55px">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span> <span>{{ scope.$index + 1 }}</span>
...@@ -262,8 +261,7 @@ export default { ...@@ -262,8 +261,7 @@ export default {
}, },
total: 0, total: 0,
filelist: [], filelist: [],
fullscreenLoading: false, fullscreenLoading: false
tableDataTips: '加载中'
} }
}, },
computed: { computed: {
......
...@@ -69,7 +69,6 @@ ...@@ -69,7 +69,6 @@
</div><div style="padding:5px 10px"> </div><div style="padding:5px 10px">
<div class="tableTitle">话题列表</div> <div class="tableTitle">话题列表</div>
<el-table v-loading="fullscreenLoading" :data="tableData" border sortable="true" style="text-align: left;"> <el-table v-loading="fullscreenLoading" :data="tableData" border sortable="true" style="text-align: left;">
<span slot="empty">{{ tableDataTips }}</span>
<el-table-column align="center" prop="id" label="序号" min-width="55px"> <el-table-column align="center" prop="id" label="序号" min-width="55px">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span> <span>{{ scope.$index + 1 }}</span>
...@@ -320,7 +319,6 @@ export default { ...@@ -320,7 +319,6 @@ export default {
curCatForm: { curCatForm: {
}, },
tableDataTips: '加载中',
rules: { rules: {
topicName: [ topicName: [
{ required: true, message: '请输入话题名称', trigger: 'blur' } { required: true, message: '请输入话题名称', trigger: 'blur' }
......
...@@ -87,7 +87,6 @@ ...@@ -87,7 +87,6 @@
</div><div style="padding:5px 10px"> </div><div style="padding:5px 10px">
<div class="tableTitle">动态列表</div> <div class="tableTitle">动态列表</div>
<el-table v-loading="fullscreenLoading" :data="tableData" border sortable="true" style="text-align: left;"> <el-table v-loading="fullscreenLoading" :data="tableData" border sortable="true" style="text-align: left;">
<span slot="empty">{{ tableDataTips }}</span>
<el-table-column align="center" prop="id" label="序号" min-width="55px"> <el-table-column align="center" prop="id" label="序号" min-width="55px">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span> <span>{{ scope.$index + 1 }}</span>
...@@ -345,7 +344,6 @@ export default { ...@@ -345,7 +344,6 @@ export default {
// pagination // pagination
total: 0, total: 0,
fullscreenLoading: false, fullscreenLoading: false,
tableDataTips: '加载中',
rules: {} rules: {}
} }
}, },
......
...@@ -214,7 +214,6 @@ ...@@ -214,7 +214,6 @@
<div style="padding:5px 10px"> <div style="padding:5px 10px">
<div class="tableTitle">会员列表</div> <div class="tableTitle">会员列表</div>
<el-table v-loading="fullscreenLoading" :data="tableData" border sortable="true" style="text-align: left;"> <el-table v-loading="fullscreenLoading" :data="tableData" border sortable="true" style="text-align: left;">
<span slot="empty">{{ tableDataTips }}</span>
<el-table-column align="center" prop="id" label="序号" min-width="55px"> <el-table-column align="center" prop="id" label="序号" min-width="55px">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span> <span>{{ scope.$index + 1 }}</span>
...@@ -459,7 +458,6 @@ export default { ...@@ -459,7 +458,6 @@ export default {
}, },
total: 0, total: 0,
fullscreenLoading: false, fullscreenLoading: false,
tableDataTips: '加载中',
sexOptions: getOptions('sex'), sexOptions: getOptions('sex'),
nationOptions: getOptions('nation'), nationOptions: getOptions('nation'),
maxEducationOptions: getOptions('education'), maxEducationOptions: getOptions('education'),
......
...@@ -56,7 +56,6 @@ ...@@ -56,7 +56,6 @@
<div style="padding:5px 10px"> <div style="padding:5px 10px">
<div class="tableTitle">会员列表</div> <div class="tableTitle">会员列表</div>
<el-table v-loading="fullscreenLoading" :data="tableData" border sortable="true" style="text-align: left;"> <el-table v-loading="fullscreenLoading" :data="tableData" border sortable="true" style="text-align: left;">
<span slot="empty">{{ tableDataTips }}</span>
<el-table-column align="center" prop="id" label="序号" min-width="55px"> <el-table-column align="center" prop="id" label="序号" min-width="55px">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span> <span>{{ scope.$index + 1 }}</span>
...@@ -146,7 +145,6 @@ export default { ...@@ -146,7 +145,6 @@ export default {
}, },
total: 0, total: 0,
fullscreenLoading: false, fullscreenLoading: false,
tableDataTips: '加载中',
sexOptions: getOptions('sex') sexOptions: getOptions('sex')
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment