Commit 4b8aff65 by crushh

update: ui

parent a3155710
...@@ -84,7 +84,7 @@ module.exports = { ...@@ -84,7 +84,7 @@ module.exports = {
'vue-router': 'VueRouter', 'vue-router': 'VueRouter',
vuex: 'Vuex', vuex: 'Vuex',
axios: 'axios', axios: 'axios',
// 'element-ui': 'ELEMENT', 'element-ui': 'ELEMENT',
}, },
plugins: [ plugins: [
new VueLoaderPlugin(), new VueLoaderPlugin(),
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
"@tinymce/tinymce-vue": "^1.0.8", "@tinymce/tinymce-vue": "^1.0.8",
"axios": "^0.18.0", "axios": "^0.18.0",
"babel-polyfill": "^6.26.0", "babel-polyfill": "^6.26.0",
"element-ui": "^2.15.6", "element-ui": "^2.4.0",
"es6-promise": "^4.2.6", "es6-promise": "^4.2.6",
"less": "^3.0.4", "less": "^3.0.4",
"less-loader": "^4.1.0", "less-loader": "^4.1.0",
......
...@@ -33,9 +33,12 @@ ...@@ -33,9 +33,12 @@
class="w-140" class="w-140"
@change="getList" @change="getList"
> >
<el-option label="全部顾客" :value="1" /> <el-option
<el-option label="人群筛选" :value="3" /> v-for="item in selectOption"
<el-option label="门店筛选" :value="4" /> :label="item.label"
:value="item.value"
:key="item.label"
/>
</el-select> </el-select>
<el-checkbox <el-checkbox
v-model="form.showSelfFlag" v-model="form.showSelfFlag"
...@@ -174,12 +177,11 @@ ...@@ -174,12 +177,11 @@
<div class="pagination-conteiner" style="padding:10px 0 0 0;"> <div class="pagination-conteiner" style="padding:10px 0 0 0;">
<div class="pagination"> <div class="pagination">
<el-pagination <el-pagination
layout="total, sizes, prev, pager, next" layout="prev, pager, next"
:current-page.sync="form.currentPage" :current-page.sync="form.currentPage"
:page-size.sync="form.pageSize" :page-size.sync="form.pageSize"
@current-change="getList" @current-change="getList"
:total="totalCount" :total="totalCount"
@size-change="handleSizeChange"
/> />
</div> </div>
</div> </div>
...@@ -258,7 +260,7 @@ ...@@ -258,7 +260,7 @@
</div> </div>
<el-table <el-table
:data="relatingGoodsTable" :data="relatingGoodsTable"
v-loading="dialogTableLoading" v-loading="loading"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
ref="relatingGoodsTable" ref="relatingGoodsTable"
@row-click="onRowClick" @row-click="onRowClick"
...@@ -374,7 +376,6 @@ export default { ...@@ -374,7 +376,6 @@ export default {
], ],
multipleSelection: [], multipleSelection: [],
dialogTableVisible: false, dialogTableVisible: false,
dialogTableLoading: false,
type: '选择', type: '选择',
relateForm: { relateForm: {
search: '', search: '',
...@@ -396,14 +397,23 @@ export default { ...@@ -396,14 +397,23 @@ export default {
defaultImg: '../../../../static/img/pic_default.png', defaultImg: '../../../../static/img/pic_default.png',
}; };
}, },
computed: {
selectOption () {
let option = [
{ label: '全部顾客', value: 1 },
{ label: '人群筛选', value: 3 },
{ label: '门店筛选', value: 4 },
];
if (this.$store.state.product.ruleMemberFilterClose == 1) {
option = option.filter(item => item.label != '人群筛选');
}
return option;
},
},
mounted () { mounted () {
this.getList(); this.getList();
}, },
methods: { methods: {
handleSizeChange () {
this.form.currentPage = 1;
this.getList();
},
handleCommand (command, row) { handleCommand (command, row) {
if (command == 1) { if (command == 1) {
this.delRelating(row); this.delRelating(row);
...@@ -414,7 +424,6 @@ export default { ...@@ -414,7 +424,6 @@ export default {
request.get('/api-integral-mall/page-rule', { params: this.form }).then(res => { request.get('/api-integral-mall/page-rule', { params: this.form }).then(res => {
console.log(res); console.log(res);
this.tableDate = res.data.result.result || []; this.tableDate = res.data.result.result || [];
console.log(this.tableDate);
this.totalCount = res.data.result.totalCount; this.totalCount = res.data.result.totalCount;
}).finally(_ => { }).finally(_ => {
this.loading = false; this.loading = false;
...@@ -486,13 +495,13 @@ export default { ...@@ -486,13 +495,13 @@ export default {
this.getList(); this.getList();
}, },
getRelatingGoodsTable () { getRelatingGoodsTable () {
this.dialogTableLoading = true; this.loading = true;
const params = this.relateForm; const params = this.relateForm;
request.get('/api-integral-mall/page-rule-pro', { params }).then(res => { request.get('/api-integral-mall/page-rule-pro', { params }).then(res => {
this.relatingGoodsTable = res.data.result.result || []; this.relatingGoodsTable = res.data.result.result || [];
this.relateCount = res.data.result.totalCount; this.relateCount = res.data.result.totalCount;
}).finally(_ => { }).finally(_ => {
this.dialogTableLoading = false; this.loading = false;
}); });
}, },
submit () { submit () {
......
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