diff --git a/templates/front-project/src/api/api.js b/templates/front-project/src/api/api.js index 00eb275b9827f69065f531a270ce41037b59b1d2..3c4a9b41f7bc0bee84380be63077c49b8964cd3c 100644 --- a/templates/front-project/src/api/api.js +++ b/templates/front-project/src/api/api.js @@ -46,11 +46,11 @@ export function do_test_case(data) { }) } -//发起测试 -export function save_config(data) { +//用户配置文件接口 +export function user_config(type, data) { return service({ - method: 'post', - url: '/save_config/', + method: type, + url: '/user_config/', data }) } diff --git a/templates/front-project/src/router/index.js b/templates/front-project/src/router/index.js index 857adf4bba9b43ec8ba5929ab7b2f1ecfd68aae8..44cd5366adf977f4cf25f05116b970db00acb2c9 100644 --- a/templates/front-project/src/router/index.js +++ b/templates/front-project/src/router/index.js @@ -45,7 +45,7 @@ const routes = [ { path: '/test/config', name: '配置管理', - component: () => import('@/views/testViews/DoTest') + component: () => import('@/views/testViews/ConfigList') }, ] }, diff --git a/templates/front-project/src/views/testViews/ConfigList.vue b/templates/front-project/src/views/testViews/ConfigList.vue new file mode 100644 index 0000000000000000000000000000000000000000..8da29acac296387c6220eda51bc46eeb6364d15d --- /dev/null +++ b/templates/front-project/src/views/testViews/ConfigList.vue @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 修改 + 删除 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/front-project/src/views/testViews/TestList.vue b/templates/front-project/src/views/testViews/TestList.vue index 4581d2c2f7c4c62717f3e8a63e9ae886c2765971..b5e10aea0c7f5f1ab8335597685789c61592eeea 100644 --- a/templates/front-project/src/views/testViews/TestList.vue +++ b/templates/front-project/src/views/testViews/TestList.vue @@ -23,65 +23,29 @@ :header-cell-style="{fontSize:'5px'}" class="tableHead" > - - - {{ scope.row.project_name }} - + - - {{ scope.row.user_name }} - - - {{ scope.row.ip }} - - - {{ scope.row.stream }} - - - {{ scope.row.lmbench }} - - - {{ scope.row.unixbench }} - - - {{ scope.row.fio }} - - - {{ scope.row.iozone }} - - - {{ scope.row.jvm2008 }} - - - {{ scope.row.cpu2006 }} - - - {{ scope.row.cpu2017 }} - - - {{ scope.row.test_result }} - @@ -96,7 +60,7 @@ @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" - :page-sizes="[5, 10, 20, 30, 50, total]" + :page-sizes="[5, 10, 20, 30, 50]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total" @@ -153,9 +117,6 @@ export default { }); }, methods: { - projectData() { - this.$router.push('/project') - }, // 分页 handleSizeChange(val) { this.pageSize = val;