Commit 629149c9 authored by 赵伟庚's avatar 赵伟庚

修改能力封面图片取值,删除部分console

parent a8ebd64a
......@@ -62,9 +62,6 @@ export default {
},
nowParent(){
if(this.pageShow&&this.$store.state.userInfo){
// console.log(2222222)
// console.log(this.navMenu)
// console.log(this.rowPath)
return this.rowPath?this.navMenu[this.rowPath.slice(1,2)]:''
}else{
......@@ -140,7 +137,7 @@ export default {
return pathArr.includes(this.$route.path)
},
ada(){
console.log(12312);
}
}
}
......
......@@ -85,7 +85,6 @@ const codeChange = () => {
onMounted(() => {
let obj = "";
// console.log(typeof JSON.parse(this.datas));
try {
if (typeof JSON.parse(props.modelValue) == "object") {
obj = JSON.stringify(JSON.parse(props.modelValue), null, "\t");
......
......@@ -43,7 +43,6 @@
<script setup>
import { reactive, ref, onBeforeMount, toRefs, watch } from "vue";
import helper from "./utils/index.js";
console.log(helper);
const props = defineProps({
data: {
type: Array,
......@@ -82,7 +81,6 @@ watch(
const down_file = (url) => {
if (url) {
console.log(url);
const a = document.createElement("a"); // 创建a标签
a.setAttribute("download", ""); // download属性
a.setAttribute("href", url); // href链接
......
......@@ -65,9 +65,6 @@ const calcTabs = () => {
if (tabSlots) {
tabSlots.forEach((e, idx) => {
if (idx + 2 > props.limit && tabSlots.length > props.limit && e.props) {
// console.log(e);
// console.log(e.props);
state.lastChildren.push(e.props);
}
});
......
......@@ -213,8 +213,6 @@ const updateFileList = (fileList) => {
state.fileList = fileList;
console.log(values);
emit("update:modelValue", values);
emit("change", values);
};
......
......@@ -12,7 +12,7 @@
v-model="props.item.checked"
@change="change_check"></el-checkbox>
<div class="logo">
<img v-if="props.item.ability_logo" :src="props.item.ability_logo" alt="" />
<img v-if="props.item.ability_logo" :src="JSON.parse(props.item.ability_logo)[0].url" alt="" />
<img v-else src="../assets/imgs/img_cover_ability.png" alt="" />
</div>
<div class="info">
......
......@@ -234,7 +234,6 @@ export default {
},
created() {
console.log(this.userInfo);
this.getLogo()
if (this.userInfo) {
// this.getUserDetail(this.userInfo.user_id)
......@@ -243,7 +242,6 @@ export default {
}
},
mounted() {
console.log(this.currentMenuIndex);
this.$nextTick(this.scrollAction);
window.addEventListener("scroll", this.scrollAction, true);
......
......@@ -79,7 +79,6 @@ function getMenuObj(menu,parentRowPath,menuObj){
Promise.all([getUser(),getMenu('dadb2d3f-e263-48d1-9389-42acb9ea49f8')]).then(res => {
console.log(res);
if (res[0].data.code == 200&&res[1].data.code == 200) {
//已登录则记录菜单和用户信息
let data = res[1].data.data&&res[1].data.data[0].children||[]
......@@ -88,14 +87,12 @@ Promise.all([getUser(),getMenu('dadb2d3f-e263-48d1-9389-42acb9ea49f8')]).then(re
// if (res[0].data.data.userType == 1) {//超管
store.commit('setMenu', data)
menu.menuToRouter(data)
console.log(menu);
store.commit('setRoute',data)
//存储菜单对象信息
let menuObj = {}
getMenuObj(data,'',menuObj)
store.commit('setMenuObj',menuObj)
console.log(menuObj);
// }
}
......
......@@ -68,7 +68,6 @@ const transitionOptions = (_options, options) => {
}
const install = (Vue, options = {}) => {
console.log("执行以下")
init(options);
if (Vue.prototype) {
Vue.prototype.$trace = { ...methods,option };
......
......@@ -86,7 +86,6 @@ import detailTable2 from "./detail-table2.vue";
import MarkdownIt from "markdown-it";
import axios from "axios";
import { h } from 'vue'
console.log(h);
var md = new MarkdownIt();
export default {
// model: {
......@@ -152,7 +151,6 @@ export default {
},
watch: {
modelValue(n,o){
console.log(n)
if(n==true){
this.getUnreadNum();
this.changeRead(0)
......@@ -226,8 +224,6 @@ export default {
getDetail(id) {
this.dialogVisible = true;
//刷新未读数量
console.log(id);
axios
.get(`${this.$trace.option.requestUrl}/msg/api/my/msg/detail`, {
params: {
......
......@@ -56,7 +56,6 @@ const emit = defineEmits(["action"]);
const submitForm = async () => {
if (!form) return;
console.log(form.value);
await form.value.validate((valid, fields) => {
if (valid) {
emit("action", state.formData);
......
......@@ -166,7 +166,6 @@ const getDetail = () => {
};
const getSystemInfo = () => {
console.log(11111111);
const params = { ...filter, organization_id: route.query.id };
axios.get(`/apaas/system/v5/org/business/msg`, { params }).then((res) => {
if (res.data.code == 200) {
......
......@@ -248,7 +248,6 @@ const showAction = (e, data, node) => {
height = parseInt(height);
//判断弹窗位置是否超过屏幕,超过则吸底展示
if (height + rect.y - 17 > allHeight - bottomGap.value) {
console.log(123);
acBottom.value = bottomGap.value + "px";
acLeft.value = rect.x + 35 + "px";
} else {
......
......@@ -342,12 +342,10 @@ const clearRoleSelection = () => {
};
const register = () => {
console.log("新增角色");
router.push("/system/role/add");
}; // 新增角色
const edit_row = (row) => {
console.log(row, "编辑角色");
router.push({
path: "/system/role/edit",
query: {
......@@ -365,7 +363,6 @@ const distribute_user = (row) => {
const getUserList = () => {
nextTick(() => {
console.log(userTable);
clearUserSelection();
});
let params = {
......
......@@ -271,7 +271,6 @@ function getViews(path) {
break;
}
// 然后动态路由的时候这样来取
console.log(modules["../page/main" + path + "/index.vue"]);
return modules["../page/main" + path + "/index.vue"];
}
......@@ -287,15 +286,12 @@ var menuToRouter = (menu) => {
//叶子层级需要加载到对应文件
//对首页做兼容
if(e.source){
console.log(`@/page/main${e.source}/index.vue`);
e.component = getViews(e.source);
}else{
console.log(`@/page/main${e.path}/index.vue`);
e.component = getViews(e.path);
}
menuToRouter(e.children);
} else {
console.log(`@/page/main${e.path}/index.vue`);
//叶子层级需要加载到对应文件
//对首页做兼容
if (e.path == "/") {
......
......@@ -49,7 +49,6 @@ function inWhiteList(toPath) {
router.beforeEach((to, from, next) => {
const userInfo = store.state.userInfo
console.log(store.state.route);
//已登录不可跳转登陆页
if(userInfo&&(to.path=='/login'||to.path=='/')){
......@@ -113,9 +112,6 @@ export function generateRoutes() {
redirect: '/404'
}
)
console.log(router.getRoutes());
}
//新创建一个router替代之前的router,并把matcher方法替换成新的router的matcher
......
......@@ -2,7 +2,6 @@ import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
const path = require('path')
console.log(__dirname);
function resolve_path (dir) {
return path.join(__dirname, './', dir)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment