|
|
@@ -14,6 +14,8 @@ import {
|
|
|
Menu,
|
|
|
message,
|
|
|
Modal,
|
|
|
+ Radio,
|
|
|
+ RadioGroup,
|
|
|
Select,
|
|
|
Switch,
|
|
|
Table,
|
|
|
@@ -75,6 +77,7 @@ const formData = ref({
|
|
|
address: '',
|
|
|
description: '',
|
|
|
isEnabled: true,
|
|
|
+ type: 'application',
|
|
|
processCount: 0,
|
|
|
pageCount: 0,
|
|
|
tableCount: 0,
|
|
|
@@ -199,6 +202,7 @@ async function fetchApplicationDetail() {
|
|
|
formData.value.address = data.address;
|
|
|
formData.value.description = data.memo;
|
|
|
formData.value.isEnabled = data.isEnable;
|
|
|
+ formData.value.type = data.type || 'application';
|
|
|
formData.value.processCount = data.number0fWorkFlow;
|
|
|
formData.value.pageCount = data.number0fPages;
|
|
|
formData.value.tableCount = data.number0fTables;
|
|
|
@@ -359,6 +363,7 @@ async function handleSave() {
|
|
|
address: formData.value.address,
|
|
|
memo: formData.value.description,
|
|
|
isEnable: formData.value.isEnabled,
|
|
|
+ type: formData.value.type,
|
|
|
number0fWorkFlow: formData.value.processCount,
|
|
|
number0fPages: formData.value.pageCount,
|
|
|
number0fTables: formData.value.tableCount,
|
|
|
@@ -506,6 +511,7 @@ function resetFormData() {
|
|
|
designerCount: 0,
|
|
|
scenarioCount: 0,
|
|
|
userCount: 0,
|
|
|
+ type: 'application',
|
|
|
};
|
|
|
|
|
|
keyData.value = {
|
|
|
@@ -688,6 +694,17 @@ function resetFormData() {
|
|
|
}}</label>
|
|
|
<Switch v-model:checked="formData.isEnabled" class="w-[40px]" />
|
|
|
</div>
|
|
|
+ <div class="flex flex-col gap-2">
|
|
|
+ <label class="text-sm font-medium">{{
|
|
|
+ $t('applicationManagement.type')
|
|
|
+ }}</label>
|
|
|
+ <RadioGroup v-model:value="formData.type">
|
|
|
+ <Radio value="application">
|
|
|
+ {{ $t('auth.application') }}
|
|
|
+ </Radio>
|
|
|
+ <Radio value="product">{{ $t('auth.product') }}</Radio>
|
|
|
+ </RadioGroup>
|
|
|
+ </div>
|
|
|
<div class="flex flex-col gap-2">
|
|
|
<label class="text-sm font-medium">{{
|
|
|
$t('applicationManagement.modal.description')
|