首页处理前往

master
xy 2 years ago
parent 60661ec01f
commit 14a2729c64

@ -39,6 +39,18 @@
required: true, required: true,
message: '请输入密码', message: '请输入密码',
trigger: 'blur', trigger: 'blur',
},{
validator: (rule, value, callback) => {
let exg = /^(?=.*\d)(?=.*[a-zA-Z])(?=.*[~!@#$%^&*])[\da-zA-Z~!@#$%^&*]{8,}$/
if (value === '') {
callback(new Error('请输入密码'));
} else if (!exg.test(value)) {
callback(new Error('需8位以上并且包含字母、数字和特殊符号'));
} else {
callback();
}
},
trigger: 'blur'
}] }]
}, },
} }

@ -7,7 +7,7 @@
<i class="el-icon-more" style="float: right; font-size: 20px"></i> <i class="el-icon-more" style="float: right; font-size: 20px"></i>
</div> </div>
<div style="position: relative"> <div style="position: relative;height: 100%;width: 100%;">
<div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;"> <div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
<Table :height="tableHeight" size="small" :data="departmentList" :columns="table"></Table> <Table :height="tableHeight" size="small" :data="departmentList" :columns="table"></Table>
</div> </div>
@ -161,4 +161,8 @@ export default {
::v-deep .el-progress__text { ::v-deep .el-progress__text {
word-break: keep-all; word-break: keep-all;
} }
::v-deep .el-card__body {
width: 100%;
height: calc(100% - 58px);
}
</style> </style>

@ -7,7 +7,7 @@
<i class="el-icon-more" style="float: right; font-size: 20px"></i> <i class="el-icon-more" style="float: right; font-size: 20px"></i>
</div> </div>
<div style="position: relative"> <div style="position: relative;height: 100%;width: 100%;">
<div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;"> <div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
<Table <Table
:height="tableHeight" :height="tableHeight"
@ -89,37 +89,71 @@ export default {
{ {
title: "查看", title: "查看",
key: "show", key: "show",
width: 120, width: 180,
render: (h, { row }) => { render: (h, { row }) => {
return h( return h('div',[
"Button", h(
{ "Button",
props: { {
type: "primary", props: {
size: "small", type: "primary",
ghost: true, size: "small",
ghost: true,
},
on: {
["click"]: (_) => {
if(row.from_type === 'contract') {
this.$router.push({
path: '/contract/contract/contractList',
query: {
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`
);
}
},
},
}, },
on: { "查看"
["click"]: (_) => { ),
if(row.from_type === 'contract') { h(
this.$router.push({ "Button",
path: '/contract/contract/contractList', {
query: { props: {
keyword:/\[(.*?)\]/.exec(row.title) ? /\[(.*?)\]/.exec(row.title)[1] : '' type: "primary",
} size: "small",
}) ghost: true,
} else { },
window.open( style: {
`${process.env.VUE_APP_OUT_OLD}/flow/view/${row.id}?auth_token=${this.$store.getters.oa_token}`, "margin-left": "6px"
"edit", },
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0` on: {
); ["click"]: (_) => {
} if(row.from_type === 'contract') {
this.$router.push({
path: '/contract/contract/contractList',
query: {
keyword:/\[(.*?)\]/.exec(row.title) ? /\[(.*?)\]/.exec(row.title)[1] : ''
}
})
} else {
window.open(
`${process.env.VUE_APP_OUT_OLD}/flow/deal/${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`
);
}
},
}, },
}, },
}, "办理"
"查看" )
); ]);
}, },
}, },
// { // {
@ -211,4 +245,9 @@ export default {
}; };
</script> </script>
<style scoped lang="scss"></style> <style scoped lang="scss">
::v-deep .el-card__body {
width: 100%;
height: calc(100% - 58px);
}
</style>

@ -7,7 +7,7 @@
<i class="el-icon-more" style="float: right; font-size: 20px"></i> <i class="el-icon-more" style="float: right; font-size: 20px"></i>
</div> </div>
<div id="type-card-body" style="position: relative"> <div id="type-card-body" style="position: relative;height: 100%;width: 100%;">
<div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;"> <div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
<Table style="width: 100%;" :height="tableHeight" size="small" :data="departmentList" :columns="table"></Table> <Table style="width: 100%;" :height="tableHeight" size="small" :data="departmentList" :columns="table"></Table>
</div> </div>
@ -278,4 +278,9 @@ export default {
}; };
</script> </script>
<style scoped lang="scss"></style> <style scoped lang="scss">
::v-deep .el-card__body {
width: 100%;
height: calc(100% - 58px);
}
</style>

Loading…
Cancel
Save