|
|
@@ -5,13 +5,16 @@
|
|
|
<el-input placeholder="关键字" size="small" v-model="filter1" clearable class="filter-item"></el-input>
|
|
|
<el-button @click="searchData" type="primary" size="small" icon="el-icon-search" class="filter-item">搜索
|
|
|
</el-button>
|
|
|
+ <el-select v-model="typeFlag" size="small" clearable filterable placeholder="类型" @change="searchData" style="width:120px">
|
|
|
+ <el-option v-for="item in typeFlagOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
|
|
+ </el-select>
|
|
|
<el-button @click="showAdvancedQueryDialog = !showAdvancedQueryDialog" type="primary" size="small"
|
|
|
icon="el-icon-search" class="filter-item">高级查询
|
|
|
</el-button>
|
|
|
<el-button @click="showTableSortDialog = !showTableSortDialog" type="primary" size="small"
|
|
|
icon="el-icon-sort" class="filter-item">排序
|
|
|
</el-button>
|
|
|
- <el-button @click="$router.push({path:'/productInfo',query:{column:$route.query.column}})" type="primary"
|
|
|
+ <el-button @click="addRow" type="primary"
|
|
|
size="small" icon="el-icon-edit"
|
|
|
class="filter-item">添加
|
|
|
</el-button>
|
|
|
@@ -372,12 +375,12 @@ export default {
|
|
|
{
|
|
|
label: '图片',
|
|
|
value: 'image',
|
|
|
- show: true,
|
|
|
+ show: false,
|
|
|
},
|
|
|
{
|
|
|
label: '详情',
|
|
|
value: 'productContent',
|
|
|
- show: true,
|
|
|
+ show: false,
|
|
|
},
|
|
|
{
|
|
|
label: '数量',
|
|
|
@@ -550,6 +553,29 @@ export default {
|
|
|
orderByStr: '',
|
|
|
imgSrc: '',
|
|
|
imageDialogVisible: false,
|
|
|
+ typeFlag: 0,
|
|
|
+ typeFlagOptions: [
|
|
|
+ {
|
|
|
+ value: 0,
|
|
|
+ label: '门票',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 1,
|
|
|
+ label: '导航包',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 2,
|
|
|
+ label: '实物券',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 3,
|
|
|
+ label: '优惠券',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 4,
|
|
|
+ label: '组合商品',
|
|
|
+ },
|
|
|
+ ],
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -575,6 +601,7 @@ export default {
|
|
|
searchKey: this.filter1,
|
|
|
advancedQuery: this.advancedQuerySearchKey,
|
|
|
orderByStr: this.orderByStr,
|
|
|
+ typeFlag: this.typeFlag,
|
|
|
};
|
|
|
|
|
|
if (this.$route.query.column) {
|
|
|
@@ -604,6 +631,23 @@ export default {
|
|
|
this.$refs.table.clearSelection();
|
|
|
}
|
|
|
},
|
|
|
+ addRow() {
|
|
|
+ if (this.typeFlag == 0) {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/productInfoTicket',
|
|
|
+ query: {
|
|
|
+ column: this.$route.query.column,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/productInfo',
|
|
|
+ query: {
|
|
|
+ column: this.$route.query.column,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
editRow(row) {
|
|
|
console.log(row);
|
|
|
console.log(row.typeFlag);
|