update code
parent
3e026402b3
commit
bca6a3aafd
|
@ -26,3 +26,31 @@ export default {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<style lang="scss">
|
||||||
|
.nest-menu,.el-submenu__title{
|
||||||
|
position: relative;
|
||||||
|
.todo_num_tips{
|
||||||
|
position: absolute;
|
||||||
|
right: 36px;
|
||||||
|
background-color: #f56c6c;
|
||||||
|
border-radius: 10px;
|
||||||
|
color: #fff;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 12px;
|
||||||
|
height: 18px;
|
||||||
|
line-height: 18px;
|
||||||
|
padding: 0 6px;
|
||||||
|
text-align: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
border: 1px solid #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
top: 16px;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.el-submenu__title{
|
||||||
|
.todo_num_tips{
|
||||||
|
top:20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -26,6 +26,20 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
vnodes.push(<span slot='title'>{(title)}</span>)
|
vnodes.push(<span slot='title'>{(title)}</span>)
|
||||||
}
|
}
|
||||||
|
let name=context?.parent?.item?.name;
|
||||||
|
if(['Todo','Task'].includes(name)){
|
||||||
|
vnodes.push(h('span',{
|
||||||
|
class:"todo_num_tips tips_"+name,
|
||||||
|
on:{
|
||||||
|
click:function(e){
|
||||||
|
context?.parent.$bus.$emit("todo_tips_click",name)
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},1
|
||||||
|
))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return vnodes
|
return vnodes
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,8 +49,8 @@ filters(Vue);
|
||||||
BorderBox(Vue)
|
BorderBox(Vue)
|
||||||
|
|
||||||
Vue.prototype.$api=Api;
|
Vue.prototype.$api=Api;
|
||||||
|
Vue.prototype.$bus=new Vue();
|
||||||
// 全局方法挂载
|
// 全局方法挂
|
||||||
Vue.prototype.getDicts = getDicts
|
Vue.prototype.getDicts = getDicts
|
||||||
Vue.prototype.getConfigKey = getConfigKey
|
Vue.prototype.getConfigKey = getConfigKey
|
||||||
Vue.prototype.parseTime = parseTime
|
Vue.prototype.parseTime = parseTime
|
||||||
|
|
|
@ -140,3 +140,4 @@ input, textarea{
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -150,6 +150,8 @@
|
||||||
icon="el-icon-s-check">今日出勤</el-button>
|
icon="el-icon-s-check">今日出勤</el-button>
|
||||||
<el-button type="primary" @click="doPrjCostOutput" v-hasPermi="['project:costOutput:edit']"
|
<el-button type="primary" @click="doPrjCostOutput" v-hasPermi="['project:costOutput:edit']"
|
||||||
icon="el-icon-money">项目成本产值管理</el-button>
|
icon="el-icon-money">项目成本产值管理</el-button>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<ProjectScheduleDlg ref="prjSchDlg"></ProjectScheduleDlg>
|
<ProjectScheduleDlg ref="prjSchDlg"></ProjectScheduleDlg>
|
||||||
<assess-drawer ref="assessDrawer"></assess-drawer>
|
<assess-drawer ref="assessDrawer"></assess-drawer>
|
||||||
|
@ -198,9 +200,24 @@ export default {
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.loadData();
|
this.loadData();
|
||||||
|
this.$bus.$on("todo_tips_click",name=>{
|
||||||
|
console.log("----todo点击----",name)
|
||||||
|
});
|
||||||
|
//this.test();
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
test(){
|
||||||
|
setInterval(() => {
|
||||||
|
let els=document.querySelectorAll(".todo_num_tips");
|
||||||
|
if(els.length>0){
|
||||||
|
els.forEach(el=>{
|
||||||
|
el.innerHTML=Math.random().toString().substring(4,6);
|
||||||
|
el.style.display="inline";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
},
|
||||||
doPrjCostOutput(){
|
doPrjCostOutput(){
|
||||||
this.$refs.costOutput.show(this.prj);
|
this.$refs.costOutput.show(this.prj);
|
||||||
},
|
},
|
||||||
|
|
|
@ -41,8 +41,8 @@ module.exports = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'/jhapi':{
|
'/jhapi':{
|
||||||
//target: `http://62.234.3.186/jhapi/`,
|
target: `http://62.234.3.186/jhapi/`,
|
||||||
target: `http://127.0.0.1:8090/jhapi/`,
|
//target: `http://127.0.0.1:8090/jhapi/`,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/jhapi':'/'
|
'^/jhapi':'/'
|
||||||
|
|
Loading…
Reference in New Issue