|
|
|
|
@ -16,23 +16,23 @@
|
|
|
|
|
:columns="table"
|
|
|
|
|
></Table>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
ref="todo-page"
|
|
|
|
|
style="display: flex; justify-content: center; margin: 10px 0"
|
|
|
|
|
>
|
|
|
|
|
<Page
|
|
|
|
|
:total="/^\/system/.test(this.$route.path) ? example.length : total"
|
|
|
|
|
size="small"
|
|
|
|
|
show-elevator
|
|
|
|
|
show-total
|
|
|
|
|
@on-change="
|
|
|
|
|
(e) => {
|
|
|
|
|
select.page = e;
|
|
|
|
|
getNotices();
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div-->
|
|
|
|
|
<!-- ref="todo-page"-->
|
|
|
|
|
<!-- style="display: flex; justify-content: center; margin: 10px 0"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <Page-->
|
|
|
|
|
<!-- :total="/^\/system/.test(this.$route.path) ? example.length : total"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- show-elevator-->
|
|
|
|
|
<!-- show-total-->
|
|
|
|
|
<!-- @on-change="-->
|
|
|
|
|
<!-- (e) => {-->
|
|
|
|
|
<!-- select.page = e;-->
|
|
|
|
|
<!-- getNotices();-->
|
|
|
|
|
<!-- }-->
|
|
|
|
|
<!-- "-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
</div>
|
|
|
|
|
</el-card>
|
|
|
|
|
</template>
|
|
|
|
|
@ -117,21 +117,19 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
on: {
|
|
|
|
|
["click"]: (_) => {
|
|
|
|
|
if (row.from_type === "szemcold") {
|
|
|
|
|
window.open(
|
|
|
|
|
`${process.env.VUE_APP_OUT_OLD}/index.php?s=/flow/edit/id/${row.id}&username=${this.$store.state.user.username}`,
|
|
|
|
|
"edit",
|
|
|
|
|
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
|
|
|
|
|
);
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if(row.from_type === 'contract') {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: '/contract/contract/contractList',
|
|
|
|
|
query: {
|
|
|
|
|
keyword:/\[(.*?)\]/.exec(row.content) ? /\[(.*?)\]/.exec(row.content)[1] : ''
|
|
|
|
|
keyword:/\[(.*?)\]/.exec(row.title) ? /\[(.*?)\]/.exec(row.title)[1] : ''
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
window.open(
|
|
|
|
|
`${process.env.VUE_APP_OUT_OLD}/flow/view/${row.id}?auth_token=${this.$store.getters.oa_token}`,
|
|
|
|
|
"edit",
|
|
|
|
|
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
@ -204,7 +202,6 @@ export default {
|
|
|
|
|
init() {
|
|
|
|
|
let cardDom = document.getElementById("todo-card");
|
|
|
|
|
let cardTitleH = 58;
|
|
|
|
|
let page = this.$refs["todo-page"];
|
|
|
|
|
const elementResize = ElementResize({
|
|
|
|
|
strategy: "scroll",
|
|
|
|
|
});
|
|
|
|
|
@ -212,8 +209,7 @@ export default {
|
|
|
|
|
this.tableHeight =
|
|
|
|
|
cardDom.getBoundingClientRect().height -
|
|
|
|
|
40 -
|
|
|
|
|
cardTitleH -
|
|
|
|
|
page.getBoundingClientRect().height;
|
|
|
|
|
cardTitleH
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|