shouyedaibanyangshitioazheng
This commit is contained in:
parent
61f533ef9b
commit
723e2db9c5
|
@ -15,7 +15,7 @@ let requests = [];
|
||||||
// HTTP request 拦截器
|
// HTTP request 拦截器
|
||||||
axios.interceptors.request.use(
|
axios.interceptors.request.use(
|
||||||
(config) => {
|
(config) => {
|
||||||
let token = tool.cookie.get("TOKEN");
|
let token = tool.cookie.get("TOKEN")?tool.cookie.get("TOKEN"):tool.data.get("TOKEN");
|
||||||
if(token){
|
if(token){
|
||||||
config.headers[sysConfig.TOKEN_NAME] = sysConfig.TOKEN_PREFIX + token
|
config.headers[sysConfig.TOKEN_NAME] = sysConfig.TOKEN_PREFIX + token
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div v-for="item in dutyAgg" :key="item.workflow">
|
<div v-for="item in dutyAgg" :key="item.workflow" style=" margin-bottom: 10px;">
|
||||||
<el-badge :value="item.count" class="item">
|
<el-badge :value="item.count" class="item workItemImg">
|
||||||
<el-button icon="el-icon-promotion" type="primary" size="small" @click="toTicket"></el-button>
|
<el-button icon="el-icon-promotion" type="primary" size="small" @click="toTicket"></el-button>
|
||||||
</el-badge>
|
</el-badge>
|
||||||
<div style="font-size:12px">{{ item.workflow__name }}</div>
|
<div class="workItemText">{{ item.workflow__name }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -243,5 +243,20 @@ export default {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
height: 340px;
|
height: 340px;
|
||||||
|
overflow-y: scroll;
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.workItemImg{
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.workItemText{
|
||||||
|
width: 70px;
|
||||||
|
font-size: 12px;
|
||||||
|
word-wrap: break-word;
|
||||||
|
word-break: break-all;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -157,6 +157,8 @@ export default {
|
||||||
that.$TOOL.cookie.set("TOKEN", res.access, {
|
that.$TOOL.cookie.set("TOKEN", res.access, {
|
||||||
expires: that.form.autologin ? 24 * 60 * 60 : 0,
|
expires: that.form.autologin ? 24 * 60 * 60 : 0,
|
||||||
});
|
});
|
||||||
|
that.$TOOL.data.set("TOKEN", res.access);
|
||||||
|
that.$TOOL.data.set("TOKEN_REFRESH", res.refresh);
|
||||||
that.$TOOL.cookie.set("TOKEN_REFRESH", res.refresh);
|
that.$TOOL.cookie.set("TOKEN_REFRESH", res.refresh);
|
||||||
that.$TOOL.data.set("TOKEN_TIME", new Date().getTime());
|
that.$TOOL.data.set("TOKEN_TIME", new Date().getTime());
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue