|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div id="filter_bar" style="margin: 10px">
|
|
|
+ <div id="sell_filter_bar" style="margin: 10px">
|
|
|
<el-row v-for="(l, rowIndex) in fields" :key="`row-${rowIndex}`">
|
|
|
<el-col :span="24">
|
|
|
<span>{{ l.label }}</span>
|
|
@@ -40,7 +40,7 @@
|
|
|
const _ = require('lodash');
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
export default {
|
|
|
- name: 'filter_bar',
|
|
|
+ name: 'sell_filter_bar',
|
|
|
props: {
|
|
|
form: {
|
|
|
type: Object,
|
|
@@ -48,6 +48,7 @@ export default {
|
|
|
return {};
|
|
|
},
|
|
|
},
|
|
|
+ type: { type: String, default: 'sell' },
|
|
|
},
|
|
|
model: {
|
|
|
prop: 'form',
|
|
@@ -58,11 +59,16 @@ export default {
|
|
|
return {
|
|
|
fields: [
|
|
|
{ label: '专利类型', type: 'radio', model: 'type', list: [{ label: '发明' }, { label: '实用新型' }] },
|
|
|
- { label: '交易类型', type: 'radio', model: 'sell_type', list: [{ label: '许可' }, { label: '转移' }, { label: '质押' }] },
|
|
|
{
|
|
|
- label: '预算价格',
|
|
|
+ label: '交易类型',
|
|
|
+ type: 'radio',
|
|
|
+ model: this.type === 'sell' ? 'sell_type' : 'purchase_type',
|
|
|
+ list: [{ label: '许可' }, { label: '转移' }, { label: '质押' }],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: this.type === 'sell' ? '预算价格' : '预算金额',
|
|
|
type: 'range',
|
|
|
- model: 'sell_money',
|
|
|
+ model: this.type === 'sell' ? 'sell_money' : 'money',
|
|
|
list: [
|
|
|
{ start: 1000, end: 2000 },
|
|
|
{ start: 2000, end: 3000 },
|