Compare commits
2 Commits
26ea6dbdcf
...
a7cbc782fa
| Author | SHA1 | Date | |
|---|---|---|---|
| a7cbc782fa | |||
| ee5e534052 |
@ -3,6 +3,6 @@ ENV='development'
|
||||
|
||||
# base api
|
||||
# VUE_APP_BASE_API = '/api'
|
||||
VUE_APP_GATEWAY_API = '/bagl/mosty-base'
|
||||
VUE_APP_GATEWAY_API = '/mosty-base'
|
||||
VUE_APP_GATEWAY_BASE_URL = 'http://123.60.110.230'
|
||||
VUE_APP_GATEWAY_HOST = '123.60.110.230'
|
||||
@ -3,6 +3,6 @@ ENV = 'production'
|
||||
|
||||
# base api
|
||||
# VUE_APP_BASE_API = '/api'
|
||||
VUE_APP_GATEWAY_API = '/bagl/mosty-base'
|
||||
VUE_APP_GATEWAY_API = '/mosty-base'
|
||||
VUE_APP_GATEWAY_BASE_URL = 'http://123.60.67.142'
|
||||
VUE_APP_GATEWAY_HOST = '123.60.67.142'
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1143165c"],{"0918":function(e,t,c){"use strict";c.r(t);var o=c("7a23"),n=c("6605"),a=c("5d2d");const d=e=>(Object(o["pushScopeId"])("data-v-a3e803fa"),e=e(),Object(o["popScopeId"])(),e),s={class:"sso-redirect-container"},r=d(()=>Object(o["createElementVNode"])("div",{class:"loading-wrapper"},[Object(o["createElementVNode"])("div",{class:"loading-text"},"正在跳转...")],-1)),b=[r];var i={__name:"sso_redirect",setup(e){const t=Object(n["c"])(),c=Object(n["d"])(),d=()=>t.query.url||"",r=()=>{const e=d(),t=Object(a["a"])("SSOTOKEN")||Object(a["a"])("token");t?e?c.push(e):c.push("/"):(Object(a["c"])("FounderUrl",e),window.location.href="http://localhost:8006/bagl/mosty-base/fzSsoLogin")};return Object(o["onMounted"])(()=>{r()}),(e,t)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",s,b))}},p=(c("5dbe"),c("d959")),l=c.n(p);const u=l()(i,[["__scopeId","data-v-a3e803fa"]]);t["default"]=u},"5dbe":function(e,t,c){"use strict";c("8ddc")},"8ddc":function(e,t,c){}}]);
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-1143165c"], { "0918": function (e, t, c) { "use strict"; c.r(t); var o = c("7a23"), n = c("6605"), a = c("5d2d"); const d = e => (Object(o["pushScopeId"])("data-v-a3e803fa"), e = e(), Object(o["popScopeId"])(), e), s = { class: "sso-redirect-container" }, r = d(() => Object(o["createElementVNode"])("div", { class: "loading-wrapper" }, [Object(o["createElementVNode"])("div", { class: "loading-text" }, "正在跳转...")], -1)), b = [r]; var i = { __name: "sso_redirect", setup(e) { const t = Object(n["c"])(), c = Object(n["d"])(), d = () => t.query.url || "", r = () => { const e = d(), t = Object(a["a"])("SSOTOKEN") || Object(a["a"])("token"); t ? e ? c.push(e) : c.push("/") : (Object(a["c"])("FounderUrl", e), window.location.href = "http://localhost:8006/mosty-base/fzSsoLogin") }; return Object(o["onMounted"])(() => { r() }), (e, t) => (Object(o["openBlock"])(), Object(o["createElementBlock"])("div", s, b)) } }, p = (c("5dbe"), c("d959")), l = c.n(p); const u = l()(i, [["__scopeId", "data-v-a3e803fa"]]); t["default"] = u }, "5dbe": function (e, t, c) { "use strict"; c("8ddc") }, "8ddc": function (e, t, c) { } }]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -7,7 +7,7 @@ import request from "@/utils/request";
|
||||
//获取用户所属区域数据
|
||||
export function getUserArea(params = {}) {
|
||||
return request({
|
||||
url: "/bagl/mosty-base/other/getGajg",
|
||||
url: "/mosty-base/other/getGajg",
|
||||
method: "post",
|
||||
params
|
||||
});
|
||||
@ -21,7 +21,7 @@ export function getUserArea(params = {}) {
|
||||
// 获取方正cokie
|
||||
export function getCokie(params) {
|
||||
return request({
|
||||
url: `/bagl/mosty-base/fzmsg/getCokie`,
|
||||
url: `/mosty-base/fzmsg/getCokie`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import request from "@/utils/request";
|
||||
const api = "/bagl/mosty-base";
|
||||
const api = "/mosty-base";
|
||||
|
||||
/**
|
||||
* 消息列表
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import request from "@/utils/request";
|
||||
const api = "/bagl/mosty-base";
|
||||
const api = "/mosty-base";
|
||||
/*
|
||||
* 登录
|
||||
* return promise 实例对象
|
||||
|
||||
@ -11,7 +11,7 @@ export const cyryPage = (data) => {
|
||||
};
|
||||
// 查询公司下的年检人员
|
||||
|
||||
// /bagl/mosty-base/baxx / njry / list
|
||||
// /mosty-base/baxx / njry / list
|
||||
export const njryList = (data) => {
|
||||
return request({
|
||||
url: api + "/baxx/njry/list",
|
||||
|
||||
@ -4,17 +4,17 @@ const api = "/bagl";
|
||||
const egisSpace = "/egis-space";
|
||||
|
||||
// 选择站口名称
|
||||
export function egisSpaceGet(fun,coords){
|
||||
export function egisSpaceGet(fun, coords) {
|
||||
let params = {
|
||||
pageNum: 1,
|
||||
pageSize: 1000,
|
||||
keyword: "",
|
||||
geometry: `{"type":"Polygon","coordinates":${JSON.stringify(coords)}}`,
|
||||
};
|
||||
params.geometry = encodeURIComponent(params.geometry)
|
||||
params.geometry = encodeURIComponent(params.geometry)
|
||||
|
||||
let url = egisSpace + '/space/search/custom/ms-dy-intersections'
|
||||
axios.get(url,{params}).then((res) => {
|
||||
axios.get(url, { params }).then((res) => {
|
||||
fun(res.data)
|
||||
});
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
//不巡防申请
|
||||
import request from "@/utils/request";
|
||||
const api = "/mosty-api/mosty-jmxf";
|
||||
const api2 = "/bagl/mosty-base";
|
||||
const api2 = "/mosty-base";
|
||||
//新增
|
||||
export function addRw(data) {
|
||||
return request({
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import request from "@/utils/request";
|
||||
const api = "/bagl/mosty-base";
|
||||
const api = "/mosty-base";
|
||||
/*
|
||||
* 登录
|
||||
* return promise 实例对象
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import request from "@/utils/request";
|
||||
const api = "/bagl/mosty-base";
|
||||
const api = "/mosty-base";
|
||||
// 查询生成表数据
|
||||
export function listTable(params) {
|
||||
return request({
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import request from "@/utils/request";
|
||||
const api = "/bagl/mosty-base";
|
||||
const api = "/mosty-base";
|
||||
/*
|
||||
* 登录
|
||||
* return promise 实例对象
|
||||
|
||||
@ -127,7 +127,7 @@ function delFile(index) {
|
||||
}
|
||||
// 文件下载
|
||||
function downloadFile(url) {
|
||||
window.open('/bagl/mosty-base/minio/image/download/'+url, "_blank");
|
||||
window.open('/mosty-base/minio/image/download/'+url, "_blank");
|
||||
}
|
||||
// 选择文件
|
||||
function fileChange(e) {
|
||||
@ -136,7 +136,7 @@ function fileChange(e) {
|
||||
let formData = new FormData();
|
||||
formData.append("file", file);
|
||||
axios
|
||||
.post("/bagl/mosty-base/minio/image/upload/id", formData, {
|
||||
.post("/mosty-base/minio/image/upload/id", formData, {
|
||||
"Content-type": "multipart/form-data"
|
||||
})
|
||||
.then((res) => {
|
||||
|
||||
@ -98,18 +98,18 @@ watch(() => props.modelValue,(val) => {
|
||||
if(arr.length == 0 ) return fileList.value = [];
|
||||
fileList.value = arr.map((el) => {
|
||||
if (Object.prototype.toString.call(el) === "[object Object]") {
|
||||
return props.isAll ? { url: `/bagl/mosty-base/minio/image/download/` + el.id, name: el.name } : { url:el,name:el.name};
|
||||
return props.isAll ? { url: `/mosty-base/minio/image/download/` + el.id, name: el.name } : { url:el,name:el.name};
|
||||
} else {
|
||||
return { url: `/bagl/mosty-base/minio/image/download/` + el };
|
||||
return { url: `/mosty-base/minio/image/download/` + el };
|
||||
}
|
||||
});
|
||||
},{ immediate: true,deep:true });
|
||||
|
||||
const actionUrl = computed(() => {
|
||||
if (props.isAll) {
|
||||
return "/bagl/mosty-base/minio/image/upload/id";
|
||||
return "/mosty-base/minio/image/upload/id";
|
||||
} else {
|
||||
return props.isImg ? "/bagl/mosty-base/minio/image/upload/id": "/bagl/mosty-base/minio/file/upload";
|
||||
return props.isImg ? "/mosty-base/minio/image/upload/id": "/mosty-base/minio/file/upload";
|
||||
}
|
||||
});
|
||||
|
||||
@ -156,7 +156,7 @@ const getSuffix = (fileName) => {
|
||||
};
|
||||
|
||||
const handlerSuccess = (res, file) => {
|
||||
// file.url = `/bagl/mosty-base/minio/image/download/` + res.data;
|
||||
// file.url = `/mosty-base/minio/image/download/` + res.data;
|
||||
file.id = res.data;
|
||||
fileList.value.push(file);
|
||||
let arr = []
|
||||
|
||||
@ -106,7 +106,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("保存成功");
|
||||
|
||||
@ -83,7 +83,7 @@ const pageData = reactive({
|
||||
// 初始化数据
|
||||
const init = async (type, id) => {
|
||||
dialogForm.value = true;
|
||||
const res = await qcckGet({},`/bagl/mosty-base/baxx/njpx/getInfo/${id}`)
|
||||
const res = await qcckGet({},`/mosty-base/baxx/njpx/getInfo/${id}`)
|
||||
console.log(res,'=========');
|
||||
listQuery.value.pxkcList = res.pxkcList || []
|
||||
pageData.tableData = res.pxryList || []
|
||||
|
||||
@ -93,7 +93,7 @@ const changeSize = (val) => {
|
||||
const getList = () => {
|
||||
pageData.tableConfiger.loading = true;
|
||||
let data = { ...pageData.pageConfiger, ...queryFrom.value };
|
||||
qcckPost(data, "/bagl/mosty-base/baxx/njpx/page").then((res) => {
|
||||
qcckPost(data, "/mosty-base/baxx/njpx/page").then((res) => {
|
||||
pageData.tableData = res.records || [];
|
||||
pageData.total = res.total;
|
||||
pageData.tableConfiger.loading = false;
|
||||
|
||||
@ -124,7 +124,7 @@ const init = (type, row) => {
|
||||
console.log(row);
|
||||
|
||||
changeType(row.type);
|
||||
qcckPost({},`/bagl/mosty-base/baxx/tkgl/getInfo/${row.id}`).then(res=>{
|
||||
qcckPost({},`/mosty-base/baxx/tkgl/getInfo/${row.id}`).then(res=>{
|
||||
res.correctAnswer = res.type == '02'? res.correctAnswer.split(','):res.correctAnswer;
|
||||
multiple.value = res.type == '02' ? true:false;
|
||||
listQuery.value = res
|
||||
@ -154,7 +154,7 @@ const save = () => {
|
||||
FormRef.value.validate((valid)=>{
|
||||
if (!valid) return;
|
||||
loading.value = true;
|
||||
let url = title.value == '新增' ? `/bagl/mosty-base/baxx/tkgl/add` : `/bagl/mosty-base/baxx/tkgl/edit`;
|
||||
let url = title.value == '新增' ? `/mosty-base/baxx/tkgl/add` : `/mosty-base/baxx/tkgl/edit`;
|
||||
let params = { ...listQuery.value }
|
||||
params.correctAnswer = Array.isArray(params.correctAnswer) ? params.correctAnswer.join(','):params.correctAnswer;
|
||||
qcckPost(params, url).then(() => {
|
||||
|
||||
@ -130,7 +130,7 @@ const changeSize = (val) => {
|
||||
const getList = () => {
|
||||
pageData.tableConfiger.loading = true;
|
||||
let data = { ...pageData.pageConfiger, ...queryFrom.value };
|
||||
qcckPost(data, "/bagl/mosty-base/baxx/tkgl/page").then((res) => {
|
||||
qcckPost(data, "/mosty-base/baxx/tkgl/page").then((res) => {
|
||||
console.log(res);
|
||||
|
||||
let arr = res.records || []
|
||||
@ -149,7 +149,7 @@ const getList = () => {
|
||||
// 删除
|
||||
const handleDelete = (ids) => {
|
||||
proxy.$modal.confirm("是否确认删除该题目?").then(() => {
|
||||
qcckPost({idList:ids}, "/bagl/mosty-base/baxx/tkgl/remove").then(() => {
|
||||
qcckPost({idList:ids}, "/mosty-base/baxx/tkgl/remove").then(() => {
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
getList();
|
||||
});
|
||||
|
||||
@ -72,7 +72,7 @@ function getDateById (id) {
|
||||
const save = () => {
|
||||
FormRef.value.submit((val)=>{
|
||||
loading.value = true;
|
||||
let url = title.value == '新增' ? `/bagl/mosty-base/baxx/jxda/add` : `/bagl/mosty-base/baxx/jxda/edit`;
|
||||
let url = title.value == '新增' ? `/mosty-base/baxx/jxda/add` : `/mosty-base/baxx/jxda/edit`;
|
||||
let params = { ...val }
|
||||
params.fj = params.fj ? JSON.stringify(params.fj):''
|
||||
|
||||
|
||||
@ -108,7 +108,7 @@ const changeSize = (val) => {
|
||||
const getList = () => {
|
||||
pageData.tableConfiger.loading = true;
|
||||
let data = { ...pageData.pageConfiger, ...queryFrom.value };
|
||||
qcckPost(data, "/bagl/mosty-base/baxx/jxda/page").then((res) => {
|
||||
qcckPost(data, "/mosty-base/baxx/jxda/page").then((res) => {
|
||||
pageData.tableData = res.records || [];
|
||||
pageData.total = res.total;
|
||||
pageData.tableConfiger.loading = false;
|
||||
@ -121,7 +121,7 @@ const getList = () => {
|
||||
// 删除
|
||||
const handleDelete = (ids) => {
|
||||
proxy.$modal.confirm("是否确认删除?").then(() => {
|
||||
qcckPost(ids, "/bagl/mosty-base/baxx/jxda/remove").then(() => {
|
||||
qcckPost(ids, "/mosty-base/baxx/jxda/remove").then(() => {
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
getList();
|
||||
});
|
||||
|
||||
@ -49,7 +49,7 @@ const init = (type, row = {}) => {
|
||||
};
|
||||
|
||||
const getDateById = (id) =>{
|
||||
qcckPost({},'/bagl/mosty-base/baxx/sok/getInfo/'+id).then(res=>{
|
||||
qcckPost({},'/mosty-base/baxx/sok/getInfo/'+id).then(res=>{
|
||||
res.fjid = res.fjid ? JSON.parse(res.fjid):[];
|
||||
listQuery.value = res || {}
|
||||
})
|
||||
@ -58,7 +58,7 @@ const getDateById = (id) =>{
|
||||
const save = () => {
|
||||
FormRef.value.submit((val)=>{
|
||||
loading.value = true;
|
||||
let url = title.value == '新增' ? `/bagl/mosty-base/baxx/sok/add` : `/bagl/mosty-base/baxx/sok/edit`;
|
||||
let url = title.value == '新增' ? `/mosty-base/baxx/sok/add` : `/mosty-base/baxx/sok/edit`;
|
||||
let params = {...val }
|
||||
params.fjid = params.fjid ? JSON.stringify(params.fjid):''
|
||||
qcckPost(params, url).then(() => {
|
||||
|
||||
@ -102,7 +102,7 @@ const changeSize = (val) => {
|
||||
const getList = () => {
|
||||
pageData.tableConfiger.loading = true;
|
||||
let data = { ...pageData.pageConfiger, ...queryFrom.value };
|
||||
qcckPost(data, "/bagl/mosty-base/baxx/sok/page").then((res) => {
|
||||
qcckPost(data, "/mosty-base/baxx/sok/page").then((res) => {
|
||||
pageData.tableData = res.records || [];
|
||||
pageData.total = res.total;
|
||||
pageData.tableConfiger.loading = false;
|
||||
@ -115,7 +115,7 @@ const getList = () => {
|
||||
// 删除
|
||||
const handleDelete = (ids) => {
|
||||
proxy.$modal.confirm("是否确认删除该视频?").then(() => {
|
||||
qcckPost(ids, "/bagl/mosty-base/baxx/sok/remove").then(() => {
|
||||
qcckPost(ids, "/mosty-base/baxx/sok/remove").then(() => {
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
getList();
|
||||
});
|
||||
|
||||
@ -52,12 +52,12 @@
|
||||
<template #default="{ row }">
|
||||
<el-image
|
||||
style="width=80px;height:90px"
|
||||
:preview-src-list="[`/bagl/mosty-base/minio/image/download/${row.fjdz}`]"
|
||||
:preview-src-list="[`/mosty-base/minio/image/download/${row.fjdz}`]"
|
||||
v-if="row.fjdz"
|
||||
hide-on-click-modal
|
||||
preview-teleported
|
||||
fit="cover"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${row.fjdz}`"/>
|
||||
:src="`/mosty-base/minio/image/download/${row.fjdz}`"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
||||
@ -189,7 +189,7 @@
|
||||
<div style=" width: 25%; display: flex; justify-content: center;margin-bottom: 10px;">
|
||||
<div style="position: relative; width: 90px; height: 100px">
|
||||
<el-upload
|
||||
action="/bagl/mosty-base/minio/image/upload/id"
|
||||
action="/mosty-base/minio/image/upload/id"
|
||||
:on-change="upImgFile"
|
||||
:on-success="upImg"
|
||||
:show-file-list="false"
|
||||
@ -538,7 +538,7 @@ import {
|
||||
defineExpose,
|
||||
defineEmits
|
||||
} from "vue";
|
||||
const urlImg = ref("/bagl/mosty-base/minio/image/download/");
|
||||
const urlImg = ref("/mosty-base/minio/image/download/");
|
||||
const searchBox = ref(null); // 搜索盒子
|
||||
const tableHeight = ref(); // 表格高度
|
||||
const tableHeight1 = ref(); // 表格高度
|
||||
|
||||
@ -109,7 +109,7 @@
|
||||
margin-bottom: 10px;
|
||||
">
|
||||
<div style="position: relative; width: 90px; height: 100px">
|
||||
<el-upload action="/bagl/mosty-base/minio/image/upload/id" :on-change="upImgFile" :on-success="upImg"
|
||||
<el-upload action="/mosty-base/minio/image/upload/id" :on-change="upImgFile" :on-success="upImg"
|
||||
:show-file-list="false">
|
||||
<el-image v-if="imgUrl" :src="imgUrl" fit="cover" />
|
||||
<el-icon v-else>
|
||||
@ -350,7 +350,7 @@ const tableLeftData = ref([]);
|
||||
const leftdata = ref([]);
|
||||
//右边选中数据
|
||||
const rightData = ref([]);
|
||||
const urlImg = ref("/bagl/mosty-base/minio/image/download/");
|
||||
const urlImg = ref("/mosty-base/minio/image/download/");
|
||||
const zqjlData = ref([
|
||||
{
|
||||
zqbm: "xxx部门",
|
||||
|
||||
@ -228,7 +228,7 @@
|
||||
>
|
||||
<div style="position: relative; width: 90px; height: 100px">
|
||||
<el-upload
|
||||
action="/bagl/mosty-base/minio/image/upload/id"
|
||||
action="/mosty-base/minio/image/upload/id"
|
||||
:on-change="upImgFile"
|
||||
:on-success="upImg"
|
||||
:show-file-list="false"
|
||||
@ -568,7 +568,7 @@ import {
|
||||
RellBackZnzb,
|
||||
ReportLossZnzb
|
||||
} from "@/api/basicsmanage/intelligence";
|
||||
const urlImg = ref("/bagl/mosty-base/minio/image/download/");
|
||||
const urlImg = ref("/mosty-base/minio/image/download/");
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { D_BZ_ZNZBFL, D_ZDY_SBZT, D_BZ_SF, D_BZ_ZBLX_LZ } = proxy.$dict(
|
||||
"D_BZ_ZNZBFL",
|
||||
|
||||
@ -266,7 +266,7 @@
|
||||
>
|
||||
<div style="position: relative; width: 90px; height: 100px">
|
||||
<el-upload
|
||||
action="/bagl/mosty-base/minio/image/upload/id"
|
||||
action="/mosty-base/minio/image/upload/id"
|
||||
:on-change="upImgFile"
|
||||
:on-success="upImg"
|
||||
:show-file-list="false"
|
||||
@ -639,7 +639,7 @@ import {
|
||||
} from "@/api/basicsmanage/equipment";
|
||||
import Person from "@/assets/images/default_male.png";
|
||||
import { ref, reactive, onMounted, getCurrentInstance, onUnmounted } from "vue";
|
||||
const urlImg = ref("/bagl/mosty-base/minio/image/download/");
|
||||
const urlImg = ref("/mosty-base/minio/image/download/");
|
||||
const multipleSelection = ref([]); //批量数据
|
||||
const { proxy } = getCurrentInstance();
|
||||
const isImport = ref(false);
|
||||
|
||||
@ -209,7 +209,7 @@ import {
|
||||
const { proxy } = getCurrentInstance();
|
||||
const emits = defineEmits(["updateChange"]);
|
||||
const imgList = ref([]);
|
||||
const urlImg = ref("/bagl/mosty-base/minio/image/download/");
|
||||
const urlImg = ref("/mosty-base/minio/image/download/");
|
||||
const props = defineProps({
|
||||
dic: { type: Object, default: {} }
|
||||
});
|
||||
|
||||
@ -137,7 +137,7 @@ const ams = async (pramas) => {
|
||||
closed();
|
||||
}
|
||||
};
|
||||
const urlImg = ref("/bagl/mosty-base/minio/image/download/");
|
||||
const urlImg = ref("/mosty-base/minio/image/download/");
|
||||
const showMc = (val, vale) => {
|
||||
const stack = [...val];
|
||||
while (stack.length) {
|
||||
|
||||
@ -328,7 +328,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="巡访照片" style="width: 100%">
|
||||
<el-upload
|
||||
action="/bagl/mosty-base/minio/image/upload/id"
|
||||
action="/mosty-base/minio/image/upload/id"
|
||||
v-model:file-list="fileList"
|
||||
list-type="picture-card"
|
||||
:on-remove="handleRemove"
|
||||
@ -435,7 +435,7 @@ const rules = reactive({
|
||||
const roleIdsPeo = ref([]);
|
||||
|
||||
const imgList = ref([]);
|
||||
const urlImg = ref("/bagl/mosty-base/minio/image/download/");
|
||||
const urlImg = ref("/mosty-base/minio/image/download/");
|
||||
const fileList = ref([]);
|
||||
|
||||
// 初始化数据
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="附件上传" style="width: 100%" prop="fjmc">
|
||||
<el-input v-model="aggrenSubmt.fjmc" placeholder="请选择上传文件" style="width: 80%"/>
|
||||
<el-upload action="/bagl/mosty-base/minio/image/upload/id" :on-change="upImgFile" :on-success="upImg" :show-file-list="false">
|
||||
<el-upload action="/mosty-base/minio/image/upload/id" :on-change="upImgFile" :on-success="upImg" :show-file-list="false">
|
||||
<el-button type="primary" style="padding: 0 14px">上传</el-button>
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
|
||||
@ -59,8 +59,8 @@
|
||||
<template #default="{ row }">
|
||||
<div v-if="row.tpList?.[0]">
|
||||
<el-image :append-to-body="true" :preview-src-list="[
|
||||
`/bagl/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`
|
||||
]" style="width: 75px" :src="`/bagl/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`"
|
||||
`/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`
|
||||
]" style="width: 75px" :src="`/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`"
|
||||
fit="cover" lazy />
|
||||
</div>
|
||||
<el-image style="width: 75px" :append-to-body="true" v-else :src="Person" :preview-src-list="[Person]"
|
||||
@ -201,7 +201,7 @@
|
||||
<div v-if="detailList.tpList && detailList.tpList.length > 0">
|
||||
<el-form ref="elform" :model="detailList" :rules="rules" :inline="true" label-position="top">
|
||||
<el-image v-for="(item, index) in detailList.tpList" :key="index"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${item.fjid}`" style="
|
||||
:src="`/mosty-base/minio/image/download/${item.fjid}`" style="
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin: 10px 0 10px 20px;
|
||||
@ -218,7 +218,7 @@
|
||||
<el-form-item label="物品图片" prop="name">
|
||||
<div style="height: 120px; display: inline-block">
|
||||
<el-image v-for="(item, index) in detailList.wpVoList[0]?.wpTpIdList" :key="index"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${item}`" style="
|
||||
:src="`/mosty-base/minio/image/download/${item}`" style="
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin: 10px 0 10px 20px;
|
||||
|
||||
@ -70,10 +70,10 @@
|
||||
<el-image
|
||||
:append-to-body="true"
|
||||
:preview-src-list="[
|
||||
`/bagl/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`
|
||||
`/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`
|
||||
]"
|
||||
style="width: 75px"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`"
|
||||
:src="`/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`"
|
||||
fit="cover"
|
||||
lazy
|
||||
/>
|
||||
@ -320,7 +320,7 @@
|
||||
<el-image
|
||||
v-for="(item, index) in form.tpList"
|
||||
:key="index"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${item.fjid}`"
|
||||
:src="`/mosty-base/minio/image/download/${item.fjid}`"
|
||||
style="
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
@ -346,7 +346,7 @@
|
||||
<el-image
|
||||
v-for="(item, index) in form.wpVoList[0]?.wpTpIdList"
|
||||
:key="index"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${item}`"
|
||||
:src="`/mosty-base/minio/image/download/${item}`"
|
||||
style="
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
|
||||
@ -92,10 +92,10 @@
|
||||
<el-image
|
||||
:append-to-body="true"
|
||||
:preview-src-list="[
|
||||
`/bagl/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`
|
||||
`/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`
|
||||
]"
|
||||
style="width: 75px"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`"
|
||||
:src="`/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`"
|
||||
fit="cover"
|
||||
lazy
|
||||
/>
|
||||
@ -343,7 +343,7 @@
|
||||
<el-image
|
||||
v-for="(item, index) in detailList.tpList"
|
||||
:key="index"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${item.fjid}`"
|
||||
:src="`/mosty-base/minio/image/download/${item.fjid}`"
|
||||
style="
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
@ -370,7 +370,7 @@
|
||||
<el-image
|
||||
v-for="(item, index) in detailList.wpVoList[0]?.wpTpIdList"
|
||||
:key="index"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${item}`"
|
||||
:src="`/mosty-base/minio/image/download/${item}`"
|
||||
style="
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
|
||||
@ -104,10 +104,10 @@
|
||||
<el-image
|
||||
:append-to-body="true"
|
||||
:preview-src-list="[
|
||||
`/bagl/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`
|
||||
`/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`
|
||||
]"
|
||||
style="width: 75px"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`"
|
||||
:src="`/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`"
|
||||
fit="cover"
|
||||
lazy
|
||||
/>
|
||||
@ -282,11 +282,11 @@
|
||||
<div v-if="form.tpList?.[0]">
|
||||
<el-image
|
||||
:preview-src-list="[
|
||||
`/bagl/mosty-base/minio/image/download/${form.tpList?.[0].fjid}`
|
||||
`/mosty-base/minio/image/download/${form.tpList?.[0].fjid}`
|
||||
]"
|
||||
style="width: 100px"
|
||||
:append-to-body="true"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${form.tpList?.[0].fjid}`"
|
||||
:src="`/mosty-base/minio/image/download/${form.tpList?.[0].fjid}`"
|
||||
fit="cover"
|
||||
lazy
|
||||
/>
|
||||
@ -373,9 +373,9 @@
|
||||
:key="index"
|
||||
:append-to-body="true"
|
||||
:preview-src-list="[
|
||||
`/bagl/mosty-base/minio/image/download/${item.fjid}`
|
||||
`/mosty-base/minio/image/download/${item.fjid}`
|
||||
]"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${item.fjid}`"
|
||||
:src="`/mosty-base/minio/image/download/${item.fjid}`"
|
||||
style="
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
@ -406,9 +406,9 @@
|
||||
:key="index"
|
||||
:append-to-body="true"
|
||||
:preview-src-list="[
|
||||
`/bagl/mosty-base/minio/image/download/${item}`
|
||||
`/mosty-base/minio/image/download/${item}`
|
||||
]"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${item}`"
|
||||
:src="`/mosty-base/minio/image/download/${item}`"
|
||||
style="
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
|
||||
@ -74,10 +74,10 @@
|
||||
<el-image
|
||||
:append-to-body="true"
|
||||
:preview-src-list="[
|
||||
`/bagl/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`
|
||||
`/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`
|
||||
]"
|
||||
style="width: 75px"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`"
|
||||
:src="`/mosty-base/minio/image/download/${row.tpList?.[0].fjid}`"
|
||||
fit="cover"
|
||||
lazy
|
||||
/>
|
||||
@ -262,11 +262,11 @@
|
||||
<div v-if="form.tpList && form.tpList.length > 0">
|
||||
<el-image
|
||||
:preview-src-list="[
|
||||
`/bagl/mosty-base/minio/image/download/${form.tpList?.[0].fjid}`
|
||||
`/mosty-base/minio/image/download/${form.tpList?.[0].fjid}`
|
||||
]"
|
||||
style="width: 100px"
|
||||
:append-to-body="true"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${form.tpList?.[0].fjid}`"
|
||||
:src="`/mosty-base/minio/image/download/${form.tpList?.[0].fjid}`"
|
||||
fit="cover"
|
||||
lazy
|
||||
/>
|
||||
@ -343,9 +343,9 @@
|
||||
:key="index"
|
||||
:append-to-body="true"
|
||||
:preview-src-list="[
|
||||
`/bagl/mosty-base/minio/image/download/${item.fjid}`
|
||||
`/mosty-base/minio/image/download/${item.fjid}`
|
||||
]"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${item.fjid}`"
|
||||
:src="`/mosty-base/minio/image/download/${item.fjid}`"
|
||||
style="
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
@ -379,9 +379,9 @@
|
||||
:key="index"
|
||||
:append-to-body="true"
|
||||
:preview-src-list="[
|
||||
`/bagl/mosty-base/minio/image/download/${item}`
|
||||
`/mosty-base/minio/image/download/${item}`
|
||||
]"
|
||||
:src="`/bagl/mosty-base/minio/image/download/${item}`"
|
||||
:src="`/mosty-base/minio/image/download/${item}`"
|
||||
style="
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
|
||||
@ -225,7 +225,7 @@ const handleSelectionChange = (val) => {
|
||||
//批量删除数据
|
||||
const batchDelete = () => {
|
||||
proxy.$confirm("确定要删除", "警告", { type: "warning" }).then(() => {
|
||||
qcckPost(ids.value,'/bagl/mosty-base/sys-dict-item/deleteSysDictItemBatch').then(res=>{
|
||||
qcckPost(ids.value,'/mosty-base/sys-dict-item/deleteSysDictItemBatch').then(res=>{
|
||||
proxy.$message({ message: "删除成功",type: "success"});
|
||||
getListData();
|
||||
})
|
||||
|
||||
@ -307,7 +307,7 @@ const onSave = () => {
|
||||
// 导出
|
||||
function exportExcel() {
|
||||
proxy.$confirm(`当前数据${total.value}条,确定是否导出全部数据?`, "警告", {type: "warning"}).then(() => {
|
||||
download('/bagl/mosty-base/other/exportLoginLog',listQuery.value , `人员核查日志_${new Date().getTime()}.xlsx`)
|
||||
download('/mosty-base/other/exportLoginLog',listQuery.value , `人员核查日志_${new Date().getTime()}.xlsx`)
|
||||
}).catch(() => {
|
||||
proxy.$message.info("已取消");
|
||||
});
|
||||
|
||||
@ -407,7 +407,7 @@ const tabHeightFn = () => {
|
||||
// 导出
|
||||
function exportExcel() {
|
||||
proxy.$confirm(`当前数据${total.value}条,确定是否导出全部数据?`, "警告", {type: "warning"}).then(() => {
|
||||
download('/bagl/mosty-base/other/exportOperlog',listQuery.value , `人员核查日志_${new Date().getTime()}.xlsx`)
|
||||
download('/mosty-base/other/exportOperlog',listQuery.value , `人员核查日志_${new Date().getTime()}.xlsx`)
|
||||
}).catch(() => {
|
||||
proxy.$message.info("已取消");
|
||||
});
|
||||
|
||||
@ -151,7 +151,7 @@
|
||||
<el-upload
|
||||
v-model:file-list="fileList"
|
||||
:limit="1"
|
||||
action="/bagl/mosty-base/minio/image/upload/id"
|
||||
action="/mosty-base/minio/image/upload/id"
|
||||
:on-change="upImgFile"
|
||||
:on-success="upImg"
|
||||
:show-file-list="false">
|
||||
@ -197,7 +197,7 @@ const visible = ref(false);
|
||||
const visibleJz = ref(false);
|
||||
const zxrDtoList = ref([])
|
||||
|
||||
const baseUrl = '/bagl/mosty-base/minio/image/download/'
|
||||
const baseUrl = '/mosty-base/minio/image/download/'
|
||||
const fileList = ref([]);
|
||||
const imgLx = ["png", "jpg", "jpeg", "bmp", "gif"];//图片格式
|
||||
//音频格式
|
||||
@ -364,7 +364,7 @@ function getZxjl() {
|
||||
//获取视频音频地址
|
||||
function _getAudioAndVideoUrl(fjid) {
|
||||
return new Promise((ok) => {
|
||||
axios.get(`/bagl/mosty-base/minio/file/download/${fjid}`, {params: {}}).then((res) => {
|
||||
axios.get(`/mosty-base/minio/file/download/${fjid}`, {params: {}}).then((res) => {
|
||||
if (res) ok(res.data.data.url);
|
||||
});
|
||||
});
|
||||
|
||||
@ -38,10 +38,10 @@
|
||||
<el-carousel-item v-for="itChild in item.fjid" :key="itChild">
|
||||
<el-image
|
||||
preview-teleported
|
||||
:preview-src-list="[`/bagl/mosty-base/obs/download?id=${itChild}`]"
|
||||
:preview-src-list="[`/mosty-base/obs/download?id=${itChild}`]"
|
||||
:initial-index="0"
|
||||
fit="cover"
|
||||
:src="`/bagl/mosty-base/obs/download?id=${itChild}`"
|
||||
:src="`/mosty-base/obs/download?id=${itChild}`"
|
||||
/>
|
||||
</el-carousel-item>
|
||||
</el-carousel>
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
|
||||
<el-form-item label="附件上传" style="width: 100%" prop="fjmc">
|
||||
<el-input v-model="formInfo.fjmc" placeholder="请选择上传文件" style="width: 80%"/>
|
||||
<el-upload :limit="1" action="/bagl/mosty-base/minio/image/upload/id" :on-change="upImgFile" :on-success="upImg" :show-file-list="false">
|
||||
<el-upload :limit="1" action="/mosty-base/minio/image/upload/id" :on-change="upImgFile" :on-success="upImg" :show-file-list="false">
|
||||
<el-button type="primary" style="padding: 0 14px">上传</el-button>
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
|
||||
@ -461,7 +461,7 @@ onMounted(() => {
|
||||
</div>
|
||||
<div class="text">图片:`;
|
||||
val.tp.forEach((it) => {
|
||||
html += `<img style="width:60px; height:60px; margin-left:2px;" src="/bagl/mosty-base/minio/image/download/${it}" />`;
|
||||
html += `<img style="width:60px; height:60px; margin-left:2px;" src="/mosty-base/minio/image/download/${it}" />`;
|
||||
});
|
||||
html += ` </div></div>`;
|
||||
ElNotification({
|
||||
|
||||
@ -566,7 +566,7 @@ function _yjRltList() {
|
||||
|
||||
// 获取范围中心的
|
||||
function getCenterPoint(dm, text, id) {
|
||||
qcckPost(dm, '/bagl/mosty-base/other/getZxd').then(res => {
|
||||
qcckPost(dm, '/mosty-base/other/getZxd').then(res => {
|
||||
let points = [res.x, res.y]
|
||||
emitter.emit("addTEXT", { points, text, id });
|
||||
})
|
||||
|
||||
@ -312,7 +312,7 @@ function getXfqData() {
|
||||
|
||||
// 获取范围中心的
|
||||
function getCenterPoint(dm, text) {
|
||||
qcckPost(dm, "/bagl/mosty-base/other/getZxd").then((res) => {
|
||||
qcckPost(dm, "/mosty-base/other/getZxd").then((res) => {
|
||||
let points = [res.x, res.y];
|
||||
emitter.emit("addTEXT", { points, text });
|
||||
});
|
||||
|
||||
@ -154,7 +154,7 @@ const getSfzhByGsid = (sfzh) => {
|
||||
|
||||
onMounted(() => { });
|
||||
const getKaptchaImg = () => {
|
||||
const res = `${process.env.VUE_APP_GATEWAY_BASE_URL}/bagl/mosty-base/kaptcha?date=` + new Date();
|
||||
const res = `${process.env.VUE_APP_GATEWAY_BASE_URL}/mosty-base/kaptcha?date=` + new Date();
|
||||
kaptchaUrl.value = res;
|
||||
};
|
||||
</script>
|
||||
|
||||
@ -39,7 +39,7 @@ const checkTokenAndRedirect = () => {
|
||||
} else {
|
||||
setItem("FounderUrl", redirectUrl);
|
||||
// 如果不存在token,跳转到SSO登录地址
|
||||
window.location.href = "http://localhost:8006/bagl/mosty-base/fzSsoLogin";
|
||||
window.location.href = "http://localhost:8006/mosty-base/fzSsoLogin";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -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(','):''
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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 || [];
|
||||
|
||||
@ -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("保存成功");
|
||||
|
||||
@ -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 || [];
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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("保存成功");
|
||||
|
||||
@ -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 || []
|
||||
|
||||
@ -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 || [];
|
||||
|
||||
@ -39,8 +39,8 @@ module.exports = {
|
||||
proxyReq.setHeader("Connection", "Keep-Alive"); //设置长连接
|
||||
}
|
||||
},
|
||||
'/bagl/mosty-base': {
|
||||
target: 'http://192.168.1.32:8066', // 后端服务器地址
|
||||
'/mosty-base': {
|
||||
target: serverHost, // 后端服务器地址
|
||||
changeOrigin: true, // 允许跨域
|
||||
secure: false, // 如果是https,需要设置为false
|
||||
pathRewrite: {
|
||||
|
||||
Reference in New Issue
Block a user