修复流程配置的表单字段配置项在点击更新表单按钮后保存无效的问题(用watch保持响应)
表单选择翻页无效修复 回滚错误提交
This commit is contained in:
@ -7,16 +7,12 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" />
|
||||
<title></title>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<!-- <link rel="stylesheet" href="./public/static/WSPlayer/player.css" />
|
||||
<link rel="stylesheet" href="./public/static/WSPlayer/window.division.css" /> -->
|
||||
</head>
|
||||
<body>
|
||||
<!-- <div id="GLOB_API_URL" style="display: none">%VITE_GLOB_API_URL%</div>-->
|
||||
<script src="/iconfont.js"></script>
|
||||
<script src="/desktopIconfont.js"></script>
|
||||
<!-- <script type="text/javascript" src="./public/static/WSPlayer/PlaySDKInterface.js"></script>
|
||||
<script type="text/javascript" src="./public/static/WSPlayer/WSPlayer.js"></script>
|
||||
<script type="text/javascript" src="/public/static/jquery-3.6.0.min.js"></script> -->
|
||||
|
||||
<script type="module">
|
||||
import {getAppEnvConfig} from "./src/utils/env";
|
||||
|
||||
|
||||
@ -105,7 +105,7 @@
|
||||
import { FormType } from '/@/enums/workflowEnum';
|
||||
import { FormConfigItem } from '/@/model/workflow/formSetting';
|
||||
|
||||
import { onMounted, reactive } from 'vue';
|
||||
import { watch,onMounted, reactive } from 'vue';
|
||||
import { formPermissionList, hiddenComponentType, requiredDisabled, doNotShowControl } from '/@bpmn/config/formPermission';
|
||||
import { updateFormDataInfo } from '/@bpmn/config/useUpdateAllFormInfo';
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
@ -119,7 +119,14 @@
|
||||
formTypeOptions[FormType.SYSTEM] = t('系统表单');
|
||||
let formSetting: { list: Array<FormConfigItem> } = reactive({ list: [] });
|
||||
|
||||
onMounted(() => {
|
||||
/*onMounted(() => {
|
||||
if (formInfo.value.formConfigs) formSetting.list = formInfo.value.formConfigs;
|
||||
formSetting.list.forEach((val) => {
|
||||
addTableRowCtrl();
|
||||
checkIsAll(val);
|
||||
});
|
||||
});*/
|
||||
watch(()=>formInfo.value?.formConfigs,()=>{
|
||||
if (formInfo.value.formConfigs) formSetting.list = formInfo.value.formConfigs;
|
||||
formSetting.list.forEach((val) => {
|
||||
addTableRowCtrl();
|
||||
@ -445,6 +452,7 @@
|
||||
|
||||
.icon {
|
||||
color: #ccc;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -88,7 +88,7 @@
|
||||
<div class="page-box">
|
||||
<a-pagination
|
||||
v-model:current="setting.page.current"
|
||||
:pageSize="setting.page.pageSize"
|
||||
v-model:pageSize="setting.page.pageSize"
|
||||
:total="setting.page.total"
|
||||
show-less-items
|
||||
@change="getList"
|
||||
|
||||
Reference in New Issue
Block a user