|
@@ -9,8 +9,10 @@
|
|
|
<el-option v-for="(item, index) in lists" :key="index" :value="item.label"></el-option>
|
|
|
</template>
|
|
|
</template>
|
|
|
- <data-table :fields="fields" :data="index" :opera="opera"> </data-table>
|
|
|
- <!-- <data-table :fields="field" :data="index" :opera="opera"> </data-table> -->
|
|
|
+ <!-- {{ info.name || 'none' }}
|
|
|
+ {{ info.name === undefined }} -->
|
|
|
+ <data-table :fields="field" :data="index" :opera="opera" v-if="info.name === undefined"> </data-table>
|
|
|
+ <data-table v-else :fields="fields" :data="index" :opera="opera"> </data-table>
|
|
|
</list-frame>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -29,6 +31,7 @@ export default {
|
|
|
dataTable,
|
|
|
},
|
|
|
data: () => ({
|
|
|
+ info: [],
|
|
|
lists: [
|
|
|
{ label: '第一批次', value: 0 },
|
|
|
{ label: '第二批次', value: 1 },
|
|
@@ -152,9 +155,9 @@ export default {
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
- console.log(info.name);
|
|
|
- if (info.name == '') this.$set(this, 'fields', this.index);
|
|
|
- console.log(this.fields);
|
|
|
+ // this.info.name = info.name;
|
|
|
+ this.$set(this.info, `name`, info.name);
|
|
|
+ console.log(this.info.name);
|
|
|
},
|
|
|
},
|
|
|
};
|