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

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

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