| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <template>
- <div class="content">
- <button @click="showRightForm">from test</button>
- <div></div>
- <List
- :listData="bugData"
- :total="300"
- :is-show-checkbox="isShowCheckbox" @current-change="handleCurrentChange">
- </List>
- <RightForm ref="rightForm">
- </RightForm>
- </div>
- </template>
- <script>
- import RightForm from '../../components/RightForm.vue';
- import List from '../../components/List.vue';
- export default {
- components: { RightForm, List },
- data() {
- return {
- bugData: [
- {
- projectCode: 'EXAMPLE-123',
- title: 'bug1',
- assignment: '经办人1',
- status: '进行中',
- },
- {
- projectCode: 'EXAMPLE-124',
- title: 'bug2',
- assignment: '经办人2',
- status: '进行中',
- },
- {
- projectCode: 'EXAMPLE-123',
- title: 'bug1',
- assignment: '经办人1',
- status: '进行中',
- },
- {
- projectCode: 'EXAMPLE-124',
- title: 'bug2',
- assignment: '经办人2',
- status: '进行中',
- },
- {
- projectCode: 'EXAMPLE-123',
- title: 'bug1',
- assignment: '经办人1',
- status: '进行中',
- },
- {
- projectCode: 'EXAMPLE-124',
- title: 'bug2',
- assignment: '经办人2',
- status: '进行中',
- },
- {
- projectCode: 'EXAMPLE-123',
- title: 'bug1',
- assignment: '经办人1',
- status: '进行中',
- },
- {
- projectCode: 'EXAMPLE-124',
- title: 'bug2',
- assignment: '经办人2',
- status: '进行中',
- }],
- isShowCheckbox: true,
- };
- },
- methods: {
- /**
- * @param filterObject 用于数据获取请求的参数对象
- * @param currentPage 当前页数
- */
- getBugData(filterObject, currentPage) {
- console.log('getBugData');
- },
- showRightForm() {
- console.log(this.$refs.rightForm);
- this.$refs.rightForm.showForm();
- },
- handleCurrentChange(currentPage) {
- this.getBugData({}, currentPage);
- },
- },
- };
- </script>
- <style scoped>
- </style>
|