|
@@ -0,0 +1,146 @@
|
|
|
+<template>
|
|
|
+ <div class="issues-feedback flex flex-col h-full">
|
|
|
+ <SearchForm :fields="fields" :params="params"></SearchForm>
|
|
|
+ <div class="flex-1 page-wrap">
|
|
|
+ <t-table
|
|
|
+ size="small"
|
|
|
+ row-key="id"
|
|
|
+ :columns="columns"
|
|
|
+ :data="tableData"
|
|
|
+ bordered
|
|
|
+ :pagination="{
|
|
|
+ defaultCurrent: 1,
|
|
|
+ defaultPageSize: 10,
|
|
|
+ onChange,
|
|
|
+ total: pagination.total,
|
|
|
+ }"
|
|
|
+ :selected-row-keys="selectedRowKeys"
|
|
|
+ select-on-row-click
|
|
|
+ @select-change="selectChange"
|
|
|
+ >
|
|
|
+ </t-table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup lang="jsx" name="IssuesQuery">
|
|
|
+import { reactive, ref } from 'vue';
|
|
|
+import { useRequest } from 'vue-request';
|
|
|
+import { getTableData } from '@/api/test';
|
|
|
+import useFetchTable from '@/hooks/useFetchTable';
|
|
|
+
|
|
|
+const selectedRowKeys = ref([]);
|
|
|
+const selectChange = (value, { selectedRowData }) => {
|
|
|
+ selectedRowKeys.value = value;
|
|
|
+};
|
|
|
+
|
|
|
+const columns = [
|
|
|
+ {
|
|
|
+ colKey: 'row-select',
|
|
|
+ type: 'multiple',
|
|
|
+ width: 50,
|
|
|
+ fixed: 'left',
|
|
|
+ },
|
|
|
+ { colKey: 'a', title: '质量问题编号' },
|
|
|
+ { colKey: 'b', title: '项目单号' },
|
|
|
+ { colKey: 'c', title: '客户类型' },
|
|
|
+ { colKey: 'd', title: '客户名称' },
|
|
|
+ { colKey: 'e', title: '实施产品' },
|
|
|
+ { colKey: 'f', title: '问题简要' },
|
|
|
+ { colKey: 'g', title: '责任人' },
|
|
|
+ { colKey: 'h', title: '问题类型' },
|
|
|
+ { colKey: 'i', title: '问题归因' },
|
|
|
+ { colKey: 'j', title: '影响度' },
|
|
|
+ { colKey: 'k', title: '提交人' },
|
|
|
+ { colKey: 'l', title: '提交时间' },
|
|
|
+];
|
|
|
+
|
|
|
+const fields = ref([
|
|
|
+ {
|
|
|
+ prop: 'a',
|
|
|
+ label: '服务单元',
|
|
|
+ type: 'select',
|
|
|
+ labelWidth: 100,
|
|
|
+ colSpan: 5,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'b',
|
|
|
+ label: '责任人',
|
|
|
+ type: 'select',
|
|
|
+ labelWidth: 100,
|
|
|
+ colSpan: 5,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'c',
|
|
|
+ label: '问题类型',
|
|
|
+ type: 'select',
|
|
|
+ labelWidth: 100,
|
|
|
+ colSpan: 5,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'd',
|
|
|
+ label: '问题归因',
|
|
|
+ type: 'select',
|
|
|
+ labelWidth: 100,
|
|
|
+ colSpan: 5,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'buttons',
|
|
|
+ colSpan: 3,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ type: 'button',
|
|
|
+ text: '查询',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'e',
|
|
|
+ label: '影响度',
|
|
|
+ type: 'select',
|
|
|
+ labelWidth: 100,
|
|
|
+ colSpan: 5,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'f',
|
|
|
+ label: '客户名称',
|
|
|
+ labelWidth: 100,
|
|
|
+ colSpan: 5,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'g',
|
|
|
+ label: '质量问题编号',
|
|
|
+ labelWidth: 100,
|
|
|
+ colSpan: 5,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'h',
|
|
|
+ label: '提交时间',
|
|
|
+ type: 'daterange',
|
|
|
+ labelWidth: 100,
|
|
|
+ colSpan: 9,
|
|
|
+ },
|
|
|
+]);
|
|
|
+const params = reactive({
|
|
|
+ a: '',
|
|
|
+ b: '',
|
|
|
+ c: '',
|
|
|
+ d: '',
|
|
|
+ e: '',
|
|
|
+ f: '',
|
|
|
+ g: '',
|
|
|
+ h: [],
|
|
|
+});
|
|
|
+
|
|
|
+const {
|
|
|
+ loading: tableLoading,
|
|
|
+ pagination,
|
|
|
+ tableData,
|
|
|
+ fetchData,
|
|
|
+ onChange,
|
|
|
+} = useFetchTable(getTableData);
|
|
|
+
|
|
|
+const refresh = async () => {};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style></style>
|