This commit is contained in:
lcw
2025-09-26 17:22:28 +08:00
parent 7f6783108b
commit ee5e534052
77 changed files with 185 additions and 158 deletions

View File

@ -109,7 +109,7 @@ const open = (row = {}, type = 'add') => {
dialogVisible.value = true
disabled.value = false
const fieldsToSplit = ['tp', 'bazzp'];
fieldsToSplit.forEach(field => {
fieldsToSplit.forEach(field => {
row[field] = typeof row[field] === 'string' ? row[field].split(',') : row[field];
});
formData.value = { ...row }
@ -126,7 +126,7 @@ const open = (row = {}, type = 'add') => {
const save = () => {
FormRef.value.submit(() => {
loading.value = true;
const url = !formData.value?.id ? `/bagl/mosty-base/baxx/cyry/add` : `/bagl/mosty-base/baxx/cyry/edit`;
const url = !formData.value?.id ? `/mosty-base/baxx/cyry/add` : `/mosty-base/baxx/cyry/edit`;
let params = { ...formData.value }
params.tp = params.tp ? params.tp.join(','):''
params.bazzp =params.bazzp ? params.bazzp.join(','):''

View File

@ -127,7 +127,7 @@ const handleResignation = async ({ xm = '', id = "" }) => {
await proxy.$modal.confirm(`是否确认处理${xm}离职吗?`)
try {
await qcckPost({ id, sflz: 1 }, "/bagl/mosty-base/baxx/cyry/szlzzt")
await qcckPost({ id, sflz: 1 }, "/mosty-base/baxx/cyry/szlzzt")
proxy.$modal.msgSuccess("离职成功");
await getList();
} catch (error) {
@ -140,7 +140,7 @@ const handleDelete = async (ids) => {
await proxy.$modal.confirm("是否确认删除该从业人员?")
try {
await qcckPost({ idList: ids }, "/bagl/mosty-base/baxx/cyry/remove")
await qcckPost({ idList: ids }, "/mosty-base/baxx/cyry/remove")
proxy.$modal.msgSuccess("删除成功");
getList();
} catch (error) {