hookehuyr

fix: 修复启用流程按钮的确认逻辑和拼写错误

- 将启用流程按钮的确认逻辑从`el-popconfirm`改为`ElMessageBox.confirm`,以提供更清晰的提示信息
- 修复`.gitignore`文件中的拼写错误,将`.histroy`改为`.history`
1 node_modules 1 node_modules
2 -.histroy 2 +.history
3 docs 3 docs
4 .vscode 4 .vscode
......
...@@ -486,17 +486,7 @@ ...@@ -486,17 +486,7 @@
486 </el-form> 486 </el-form>
487 <template #footer> 487 <template #footer>
488 <span class="dialog-footer"> 488 <span class="dialog-footer">
489 - <el-popconfirm 489 + <el-button @click="setFLowVersionEnable" type="success">启用流程</el-button>
490 - v-if="state.current_enable_version !== state.versionForm.code"
491 - title="是否确认启用该版本流程?"
492 - width="220px"
493 - confirm-button-text="确认"
494 - cancel-button-text="取消"
495 - @confirm="setFLowVersionEnable">
496 - <template #reference>
497 - <el-button type="success">启用流程</el-button>
498 - </template>
499 - </el-popconfirm>
500 <el-popconfirm 490 <el-popconfirm
501 title="是否确认复制该版本流程?" 491 title="是否确认复制该版本流程?"
502 width="220px" 492 width="220px"
...@@ -1281,6 +1271,12 @@ export default { ...@@ -1281,6 +1271,12 @@ export default {
1281 * 启用版本 1271 * 启用版本
1282 */ 1272 */
1283 const setFLowVersionEnable = async () => { 1273 const setFLowVersionEnable = async () => {
1274 + ElMessageBox.confirm('流程启用之后新增的数据,才会按新版本流程执行;已经存在的数据,仍将按原流程执行后续步骤, 是否确认启用该版本流程?', '温馨提示', {
1275 + confirmButtonText: '确定',
1276 + cancelButtonText: '取消',
1277 + showClose: false,
1278 + callback: async action => {
1279 + if (action === 'confirm') {
1284 // 启动前,自动保存操作 1280 // 启动前,自动保存操作
1285 let is_pass = await saveData('auto'); 1281 let is_pass = await saveData('auto');
1286 if (is_pass !== false) { // 不通过后会返回false,不返回false就是通过了 1282 if (is_pass !== false) { // 不通过后会返回false,不返回false就是通过了
...@@ -1303,6 +1299,9 @@ export default { ...@@ -1303,6 +1299,9 @@ export default {
1303 } 1299 }
1304 } 1300 }
1305 } 1301 }
1302 + }
1303 + });
1304 + }
1306 1305
1307 const copyFLowVersion = async () => { // 复制版本流程 1306 const copyFLowVersion = async () => { // 复制版本流程
1308 state.dialogVersionFormVisible = false; // 关闭弹框 1307 state.dialogVersionFormVisible = false; // 关闭弹框
......