|
@@ -22,6 +22,10 @@ interface Props {
|
|
|
|
|
|
const props = defineProps<Props>();
|
|
const props = defineProps<Props>();
|
|
|
|
|
|
|
|
+const emit = defineEmits<{
|
|
|
|
+ refreshList: [];
|
|
|
|
+}>();
|
|
|
|
+
|
|
const { visible, showView, hideView } = useViewVisible();
|
|
const { visible, showView, hideView } = useViewVisible();
|
|
const { handleRequest } = useRequest();
|
|
const { handleRequest } = useRequest();
|
|
const { dictData: readWriteTypes, getDictData: getReadWriteTypes } = useDictData(DictCode.ReadWriteType);
|
|
const { dictData: readWriteTypes, getDictData: getReadWriteTypes } = useDictData(DictCode.ReadWriteType);
|
|
@@ -134,6 +138,7 @@ const handleOk = () => {
|
|
|
|
|
|
message.success(t('setupProtocol.addCustomParamsSuccessful'));
|
|
message.success(t('setupProtocol.addCustomParamsSuccessful'));
|
|
hideView();
|
|
hideView();
|
|
|
|
+ emit('refreshList');
|
|
});
|
|
});
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
@@ -155,7 +160,7 @@ defineExpose({
|
|
<AModal
|
|
<AModal
|
|
v-model:open="visible"
|
|
v-model:open="visible"
|
|
:title="$t('setupProtocol.addCustomParams')"
|
|
:title="$t('setupProtocol.addCustomParams')"
|
|
- :width="720"
|
|
|
|
|
|
+ :width="920"
|
|
centered
|
|
centered
|
|
:after-close="handleClose"
|
|
:after-close="handleClose"
|
|
@ok="handleOk"
|
|
@ok="handleOk"
|