Merge branch 'portal_zxj_yunxiao' into 20251117-new-employee

This commit is contained in:
joshen
2025-11-17 15:42:18 +08:00
20 changed files with 21791 additions and 2819 deletions

View File

@@ -36,8 +36,8 @@ import '@/assets/styles/uc.scss' // global css
import Pagination from "@/components/Pagination";
import Remark from "@/components/Remark";
import './security'; //security control
import VueAwesomeSwiper from 'vue-awesome-swiper';
import 'swiper/dist/css/swiper.css';
import VueAwesomeSwiper from 'vue-awesome-swiper';
import 'swiper/dist/css/swiper.css';
Vue.use(VueAwesomeSwiper)
import watermark from './utils/warterMark.js'
import Bus from './utils/bus.js'
@@ -51,44 +51,44 @@ Vue.config.productionTip = false
Vue.prototype.$xpage = xpage;
Vue.prototype.msgSuccess = function(msg) {
this.$message({ showClose: true, message: msg, type: "success", offset: 50 });
Vue.prototype.msgSuccess = function (msg) {
this.$message({ showClose: true, message: msg, type: "success", offset: 50 });
}
//用来筛选图标是否显示的方法,字符串和数组都支持,如果传入其他值或者不传值图标全显示
Vue.prototype.$iconFilter = function(hideArray) {
let iconOpinion = {
isRemark: false,
isShare: false,
isCollect: false,
isPraise: false,
isBrowse: false
}
if (typeof hideArray == 'string') {
iconOpinion[hideArray] = true
}
if (hideArray instanceof Array) {
hideArray.forEach(item => {
iconOpinion[item] = true;
})
}
return iconOpinion
Vue.prototype.$iconFilter = function (hideArray) {
let iconOpinion = {
isRemark: false,
isShare: false,
isCollect: false,
isPraise: false,
isBrowse: false
}
if (typeof hideArray == 'string') {
iconOpinion[hideArray] = true
}
if (hideArray instanceof Array) {
hideArray.forEach(item => {
iconOpinion[item] = true;
})
}
return iconOpinion
}
Vue.prototype.msgError = function(msg) {
this.$message({ showClose: true, message: msg, type: "error" });
Vue.prototype.msgError = function (msg) {
this.$message({ showClose: true, message: msg, type: "error" });
}
Vue.prototype.msgInfo = function(msg) {
this.$message.info(msg);
Vue.prototype.msgInfo = function (msg) {
this.$message.info(msg);
}
//高亮显示
Vue.prototype.$keywordActiveShow=function(str,keyword){
Vue.prototype.$keywordActiveShow = function (str, keyword) {
//color:#588afc暂时用老系统颜色ui给的颜色是这个值
if(!str||str.indexOf(keyword)===-1||keyword==''){
if (!str || str.indexOf(keyword) === -1 || keyword == '') {
return str
}
return str.replace(keyword,`<span style="color:#FF0000">${keyword}</span>`)
return str.replace(keyword, `<span style="color:#FF0000">${keyword}</span>`)
}
Vue.prototype.webBaseUrl = process.env.VUE_APP_PUBLIC_PATH;
@@ -99,9 +99,10 @@ Vue.component('Remark', Remark)
Vue.use(Element, {
size: VueCookies.get('size') || 'medium' // set element-ui default size
size: VueCookies.get('size') || 'medium' // set element-ui default size
})
// VueCookies.set('token', "eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJjb21wYW55Q29kZSI6IkMwMDEiLCJ1SWQiOiI5NjUzNDIwMjc0OTc2MDcxNjgiLCJjb21wYW55SWQiOiIxMDQxNjczOTc3Mzc5OTQ2NDk2IiwibG9naW5JZCI6IjE5MzgwNTQ2NDY2OTAxNzcwMjYiLCJpc3MiOiJodHRwOi8vdS5ib2UuY29tIiwiR2l2ZW5OYW1lIjoiYm9ldSIsImV4cCI6MTc1MDkxMDQwOTc0NiwidXNlck5hbWUiOiLmnY7njonlhrAiLCJ1c2VySWQiOiI2QjA0OUZBRi1DMzE0LTdDQ0YtMEQyOC0wRDIzRjRDNDI1MzEifQ==.7f03d1ce991253197f0e733ba554496e8de715595b169b505bed8831ede565a9", 1)
// 加入百度统计
router.beforeEach((to, from, next) => {
if (to.path) {
@@ -113,7 +114,7 @@ router.beforeEach((to, from, next) => {
})
new Vue({
router,
store,
render: h => h(App)
router,
store,
render: h => h(App)
}).$mount('#app')