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) {

View File

@ -113,7 +113,7 @@ const close = () => {
const getList = async ({ id = "" }, type = '') => {
const res = await qcckPost({
pxxmid: id
}, `/bagl/mosty-base/baxx/ksry/list`)
}, `/mosty-base/baxx/ksry/list`)
if (res) {
pageData.tableData = res || [];
if (!type) emits("refresh");
@ -141,7 +141,7 @@ const addEdit = (type, row) => {
// 申请保安证
const handleCertificate = async ({ pxryid = ''}) => {
try {
await qcckPost({ id: pxryid }, `/bagl/mosty-base/baxx/pxry/sqzj`)
await qcckPost({ id: pxryid }, `/mosty-base/baxx/pxry/sqzj`)
proxy.$message.success("申请证件成功")
emits("refresh");
close();

View File

@ -111,7 +111,7 @@ const getList = async () => {
const res = await qcckPost({
...pageData.pageConfiger,
...queryFrom.value
}, `/bagl/mosty-base/baxx/ksgl/page`)
}, `/mosty-base/baxx/ksgl/page`)
if(res) {
pageData.tableData = res.records || [];

View File

@ -67,7 +67,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`;
qcckPost(formData.value, url).then(() => {
loading.value = false;
proxy.$message.success("保存成功");

View File

@ -125,7 +125,7 @@ const handleDelete = async (ids) => {
await proxy.$modal.confirm("是否确认删除该培训人员?")
try {
await qcckPost({ idList: ids }, "/bagl/mosty-base/baxx/pxry/remove")
await qcckPost({ idList: ids }, "/mosty-base/baxx/pxry/remove")
proxy.$modal.msgSuccess("删除成功");
await getList();
} catch (error) {
@ -140,7 +140,7 @@ const getList = async () => {
const res = await qcckPost({
...pageData.pageConfiger,
...queryFrom.value
}, `/bagl/mosty-base/baxx/pxry/page`)
}, `/mosty-base/baxx/pxry/page`)
if(res) {
pageData.tableData = res.records || [];

View File

@ -217,10 +217,10 @@ const save = () => {
FormRef.value.validate( async (valid) => {
if (!valid) return
// 新增项目、修改项目
const url = !formData.value?.id ? `/bagl/mosty-base/baxx/pxxm/add` : `/bagl/mosty-base/baxx/pxxm/edit`
const url = !formData.value?.id ? `/mosty-base/baxx/pxxm/add` : `/mosty-base/baxx/pxxm/edit`
const res = await qcckPost({ ...rest }, url)
// 新增课程、修改课程
await qcckPost({ pxkcList: formData.value.pxkcList, pxxmid: res?.id, ryidList }, !formData.value?.id ? `/bagl/mosty-base/baxx/pxkc/saveList` : `/bagl/mosty-base/baxx/pxkc/updateList`)
await qcckPost({ pxkcList: formData.value.pxkcList, pxxmid: res?.id, ryidList }, !formData.value?.id ? `/mosty-base/baxx/pxkc/saveList` : `/mosty-base/baxx/pxkc/updateList`)
proxy.$message.success('新增培训项目成功')
emits("refresh");
close()

View File

@ -116,7 +116,7 @@ const close = () => {
// 根据项目id获取培训课程
const getPxkcList = async ({ id }) => {
const res = await qcckPost({ pxxmid: id }, `/bagl/mosty-base/baxx/pxkc/list`)
const res = await qcckPost({ pxxmid: id }, `/mosty-base/baxx/pxkc/list`)
if (res) {
pageData.pxkcList = res
}
@ -124,7 +124,7 @@ const getPxkcList = async ({ id }) => {
// 获取保安信息培训课程管理详情
const getbaInfo = async ({ id = '' }) => {
const res = await qcckPost({ id }, `/bagl/mosty-base/baxx/pxkc/getInfo/${id}`)
const res = await qcckPost({ id }, `/mosty-base/baxx/pxkc/getInfo/${id}`)
if (res) {
courseInfo.value = res
}
@ -134,7 +134,7 @@ const getbaInfo = async ({ id = '' }) => {
const getList = async ({ id = "" }) => {
const res = await qcckPost({
pxxmid: id
}, `/bagl/mosty-base/baxx/pxkc/pxryList`)
}, `/mosty-base/baxx/pxkc/pxryList`)
if (res) {
pageData.tableData = res || [];
}
@ -156,7 +156,7 @@ const open = (row = {}, type = 'view') => {
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`;
qcckPost(formData.value, url).then(() => {
loading.value = false;
proxy.$message.success("保存成功");

View File

@ -96,7 +96,7 @@ const getList = async () => {
try {
const res = await qcckPost({
...pageData.pageConfiger,
}, `/bagl/mosty-base/baxx/pxry/page`)
}, `/mosty-base/baxx/pxry/page`)
if (res) {
pageData.tableData = res.records || []

View File

@ -124,7 +124,7 @@ const getList = async () => {
const res = await qcckPost({
...pageData.pageConfiger,
...queryFrom.value
}, `/bagl/mosty-base/baxx/pxxm/page`)
}, `/mosty-base/baxx/pxxm/page`)
if(res) {
pageData.tableData = res.records || [];