|
@@ -108,6 +108,10 @@ const handleSearch = () => {
|
|
getProtocolData();
|
|
getProtocolData();
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+const handleReset = () => {
|
|
|
|
+ return;
|
|
|
|
+};
|
|
|
|
+
|
|
const handleAdd = () => {
|
|
const handleAdd = () => {
|
|
modalGuidanceRef.value?.showView();
|
|
modalGuidanceRef.value?.showView();
|
|
};
|
|
};
|
|
@@ -163,10 +167,17 @@ const handleOk = () => {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|
|
|
|
+ <AFlex justify="space-between">
|
|
|
|
+ <div class="hvac-layout-main-title">{{ $t('navigation.protocolManage') }}</div>
|
|
|
|
+ <AButton class="icon-button add-button" type="primary" @click="handleAdd">
|
|
|
|
+ <SvgIcon name="plus" />
|
|
|
|
+ {{ $t('common.addNew') }}
|
|
|
|
+ </AButton>
|
|
|
|
+ </AFlex>
|
|
<div class="protocol-list-container">
|
|
<div class="protocol-list-container">
|
|
<div class="protocol-search">
|
|
<div class="protocol-search">
|
|
<div>
|
|
<div>
|
|
- <span class="protocol-search-label">{{ $t('common.search') }}:</span>
|
|
|
|
|
|
+ <span class="protocol-search-label">{{ $t('common.search') }}</span>
|
|
<AInput
|
|
<AInput
|
|
v-model:value="searchContent"
|
|
v-model:value="searchContent"
|
|
class="protocol-search-input"
|
|
class="protocol-search-input"
|
|
@@ -174,13 +185,10 @@ const handleOk = () => {
|
|
allow-clear
|
|
allow-clear
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
- <AButton type="primary" @click="handleSearch">{{ $t('common.query') }}</AButton>
|
|
|
|
- </div>
|
|
|
|
- <div class="protocol-add-container">
|
|
|
|
- <AButton class="icon-button add-button" type="primary" @click="handleAdd">
|
|
|
|
- <SvgIcon name="plus" />
|
|
|
|
- {{ $t('common.addNew') }}
|
|
|
|
- </AButton>
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <AButton type="primary" @click="handleSearch">{{ $t('common.query') }}</AButton>
|
|
|
|
+ <AButton @click="handleReset">{{ $t('common.reset') }}</AButton>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<ATable
|
|
<ATable
|
|
class="protocol-table"
|
|
class="protocol-table"
|
|
@@ -192,16 +200,17 @@ const handleOk = () => {
|
|
current: pageParams.pageIndex,
|
|
current: pageParams.pageIndex,
|
|
pageSize: pageParams.pageSize,
|
|
pageSize: pageParams.pageSize,
|
|
total: protocolTotal,
|
|
total: protocolTotal,
|
|
- showSizeChanger: false,
|
|
|
|
|
|
+ showSizeChanger: true,
|
|
|
|
+ showQuickJumper: true,
|
|
hideOnSinglePage: false,
|
|
hideOnSinglePage: false,
|
|
onChange: handlePageChange,
|
|
onChange: handlePageChange,
|
|
|
|
+ showTotal: (total) => $t('common.pageTotal', { total }),
|
|
}"
|
|
}"
|
|
>
|
|
>
|
|
<template #bodyCell="{ column, record }">
|
|
<template #bodyCell="{ column, record }">
|
|
<span v-if="column.key === 'action'">
|
|
<span v-if="column.key === 'action'">
|
|
- <a @click="handleEdit(record as ProtocolBaseInfo)">{{ $t('common.revise') }}</a>
|
|
|
|
- <ADivider type="vertical" />
|
|
|
|
- <a @click="handleDelete(record as ProtocolBaseInfo)">{{ $t('common.delete') }}</a>
|
|
|
|
|
|
+ <SvgIcon class="action-icon" name="edit-o" @click="handleEdit(record as ProtocolBaseInfo)" />
|
|
|
|
+ <SvgIcon class="action-icon" name="delete" @click="handleDelete(record as ProtocolBaseInfo)" />
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
</ATable>
|
|
</ATable>
|
|
@@ -240,45 +249,46 @@ const handleOk = () => {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.protocol-list-container {
|
|
.protocol-list-container {
|
|
- height: 100%;
|
|
|
|
- padding: 32px;
|
|
|
|
|
|
+ padding: 24px;
|
|
|
|
+ margin-top: 16px;
|
|
background: var(--antd-color-bg-base);
|
|
background: var(--antd-color-bg-base);
|
|
- border-radius: 18px;
|
|
|
|
|
|
+ border-radius: 16px;
|
|
}
|
|
}
|
|
|
|
|
|
.protocol-search {
|
|
.protocol-search {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
- margin-bottom: 24px;
|
|
|
|
|
|
+
|
|
|
|
+ button + button {
|
|
|
|
+ margin-left: 12px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
.protocol-search-label {
|
|
.protocol-search-label {
|
|
- margin-right: 10px;
|
|
|
|
|
|
+ margin-right: 12px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
line-height: 22px;
|
|
color: var(--antd-color-text);
|
|
color: var(--antd-color-text);
|
|
}
|
|
}
|
|
|
|
|
|
.protocol-search-input {
|
|
.protocol-search-input {
|
|
- width: 272px;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.protocol-add-container {
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
|
|
+ width: 256px;
|
|
}
|
|
}
|
|
|
|
|
|
.add-button {
|
|
.add-button {
|
|
- margin-right: 8px;
|
|
|
|
|
|
+ width: 84px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
|
|
.protocol-table {
|
|
.protocol-table {
|
|
- margin-top: 72px;
|
|
|
|
|
|
+ margin-top: 16px;
|
|
|
|
+}
|
|
|
|
|
|
- a {
|
|
|
|
- color: var(--antd-color-primary);
|
|
|
|
- }
|
|
|
|
|
|
+.action-icon {
|
|
|
|
+ margin-right: 16px;
|
|
|
|
+ font-size: 24px;
|
|
|
|
+ color: var(--antd-color-primary);
|
|
|
|
+ cursor: pointer;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|