|
@@ -13,6 +13,7 @@
|
|
|
:dataSource="state.dataSource"
|
|
:dataSource="state.dataSource"
|
|
|
:loading="state.loading"
|
|
:loading="state.loading"
|
|
|
:pagination="state.queryParams"
|
|
:pagination="state.queryParams"
|
|
|
|
|
+ @change="changeAttrPage"
|
|
|
>
|
|
>
|
|
|
<template #bodyCell="{column, record}">
|
|
<template #bodyCell="{column, record}">
|
|
|
<template v-if="column.key === 'action'">
|
|
<template v-if="column.key === 'action'">
|
|
@@ -45,6 +46,7 @@
|
|
|
:dataSource="state.dataSourceCmd"
|
|
:dataSource="state.dataSourceCmd"
|
|
|
:loading="state.loadingCmd"
|
|
:loading="state.loadingCmd"
|
|
|
:pagination="state.queryParamsCmd"
|
|
:pagination="state.queryParamsCmd"
|
|
|
|
|
+ @change="changeCmdPage"
|
|
|
>
|
|
>
|
|
|
<template #bodyCell="{column, record}">
|
|
<template #bodyCell="{column, record}">
|
|
|
<template v-if="column.key === 'cmdParams'">
|
|
<template v-if="column.key === 'cmdParams'">
|
|
@@ -374,6 +376,16 @@ const { resetFields: resetFieldsCmdP, validate: validateCmdP, validateInfos: val
|
|
|
dataType: [{ require: true, message: '请选择数据类型' }]
|
|
dataType: [{ require: true, message: '请选择数据类型' }]
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+const changeAttrPage = ({ current }) => {
|
|
|
|
|
+ state.queryParams.page = current
|
|
|
|
|
+ getModelAttr()
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const changeCmdPage = ({ current }) => {
|
|
|
|
|
+ state.queryParamsCmd.page = current
|
|
|
|
|
+ getModelCmd()
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
const delCmdParams = (type: 'request' | 'response', id: string) => {
|
|
const delCmdParams = (type: 'request' | 'response', id: string) => {
|
|
|
const key = type === 'request' ? 'requestData' : 'responseData'
|
|
const key = type === 'request' ? 'requestData' : 'responseData'
|
|
|
const index = state.dataCmdParams[key].indexOf(id)
|
|
const index = state.dataCmdParams[key].indexOf(id)
|