Commit 77c6d4c5 by 谢明辉

a

1 parent ac9941fe
...@@ -6,6 +6,13 @@ ...@@ -6,6 +6,13 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>finance_serv</title> <title>finance_serv</title>
<style>
input:focus,
textarea:focus {
background-color: papayawhip;
}
</style>
</head> </head>
<body style="height: 100%;margin: 0"> <body style="height: 100%;margin: 0">
......
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
<div slot="header" style="text-align:center" class="clearfix"> <div slot="header" style="text-align:center" class="clearfix">
<span style="font-size:24px">合同管理系统</span> <span style="font-size:24px">合同管理系统</span>
</div> </div>
<div>
<p id="fankui">使用中出现任何问题请及时反馈</p>
</div>
<el-form id="aa" ref="login_form" :model="form" :rules="rules" label-width="60px" label-position="top"> <el-form id="aa" ref="login_form" :model="form" :rules="rules" label-width="60px" label-position="top">
<el-form-item prop="username"> <el-form-item prop="username">
<el-input v-model="form.username"> <el-input v-model="form.username">
...@@ -18,8 +21,10 @@ ...@@ -18,8 +21,10 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button-group>
<el-button type="primary" @click="submitForm('login_form')">提交</el-button> <el-button type="primary" @click="submitForm('login_form')">提交</el-button>
<el-button @click="resetForm('login_form')">重置</el-button> <el-button @click="resetForm('login_form')">重置</el-button>
</el-button-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
...@@ -93,10 +98,6 @@ export default { ...@@ -93,10 +98,6 @@ export default {
this.get_mainten_start_point_data(); this.get_mainten_start_point_data();
this.get_product_line_type_data(); this.get_product_line_type_data();
this.get_payment_type_data(); this.get_payment_type_data();
// this.get_salesperson(),
// this.get_contract_unid(),
// this.get_projects(),
// this.get_customers();
this.$router.push({ path: "/nav/main" }); this.$router.push({ path: "/nav/main" });
} }
}) })
...@@ -350,4 +351,8 @@ export default { ...@@ -350,4 +351,8 @@ export default {
#login_box { #login_box {
height: 100%; height: 100%;
} }
#fankui{
text-align: center;
margin-top: 0;
}
</style> </style>
...@@ -23,7 +23,9 @@ ...@@ -23,7 +23,9 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-button class="add_button" type="text" @click="login_user_dialog_show = true">添加登录用户</el-button> <el-col :span="6">
<el-button class="add_button" type="primary" @click="login_user_dialog_show = true">添加登录用户</el-button>
</el-col>
</el-row> </el-row>
<el-dialog id="login_user_dialog" title="添加登录户" :visible.sync="login_user_dialog_show" width="30%" :show-close="false"> <el-dialog id="login_user_dialog" title="添加登录户" :visible.sync="login_user_dialog_show" width="30%" :show-close="false">
...@@ -161,7 +163,7 @@ export default { ...@@ -161,7 +163,7 @@ export default {
headers: { "Content-Type": "application/json" } headers: { "Content-Type": "application/json" }
}) })
.then(response => { .then(response => {
if (response.data.ecode) { if (response.data.name) {
this.salesperson = null; this.salesperson = null;
this.show_message("添加成功", "success"); this.show_message("添加成功", "success");
} }
...@@ -206,7 +208,7 @@ export default { ...@@ -206,7 +208,7 @@ export default {
type: type, type: type,
center: true, center: true,
showClose: true, showClose: true,
duration: 1500 duration: 3000
}); });
}, },
get_roles() { get_roles() {
...@@ -251,7 +253,7 @@ export default { ...@@ -251,7 +253,7 @@ export default {
} }
}) })
.then(res => { .then(res => {
this.show_message("添加成功", "success"); this.show_message("添加成功,默认密码: 0000", "success");
this.$refs["login_user_form"].resetFields(); this.$refs["login_user_form"].resetFields();
this.login_user_dialog_show = false; this.login_user_dialog_show = false;
}) })
...@@ -278,17 +280,22 @@ export default { ...@@ -278,17 +280,22 @@ export default {
</script> </script>
<style scoped> <style scoped>
.el-col {
text-align: center;
}
.input { .input {
width: 200px; width: 200px;
} }
.add_button { .add_button {
font-size: 20px; display: inline-block;
padding-top: 18px; font-size: 18px;
color: black; width: 80%;
margin-top: 20px;
} }
#manage >>> .el-button--primary { #manage >>> .el-button--primary {
border-color: #34352c; border-color: #34352c;
background-color: #34352c background-color: #34352c;
} }
#manage >>> label { #manage >>> label {
color: black; color: black;
...@@ -298,7 +305,7 @@ export default { ...@@ -298,7 +305,7 @@ export default {
} }
#manage >>> input { #manage >>> input {
border-color: black; border-color: black;
color: black color: black;
} }
#manage >>> .el-card__header { #manage >>> .el-card__header {
background-color: #34352c; background-color: #34352c;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<i class="icon i-search"></i> <i class="icon i-search"></i>
<span slot="title">检索合同</span> <span slot="title">检索合同</span>
</el-menu-item> </el-menu-item>
<el-menu-item index="/nav/contract/0" @click="contract" v-show="contract_show"> <el-menu-item index="/nav/contract/0" @click="contract" v-if="contract_show">
<i class="icon i-file"></i> <i class="icon i-file"></i>
<span slot="title">合同信息</span> <span slot="title">合同信息</span>
</el-menu-item> </el-menu-item>
...@@ -77,7 +77,7 @@ export default { ...@@ -77,7 +77,7 @@ export default {
} }
}, },
created() { created() {
if (sessionStorage.getItem("user_roles") != "null") { if (sessionStorage.getItem("user_roles") != "null" && sessionStorage.getItem("user_roles")) {
var roles = JSON.parse(sessionStorage.getItem("user_roles")); var roles = JSON.parse(sessionStorage.getItem("user_roles"));
for (let i = 0; i < roles.length; i++) { for (let i = 0; i < roles.length; i++) {
const e = roles[i]; const e = roles[i];
...@@ -90,6 +90,7 @@ export default { ...@@ -90,6 +90,7 @@ export default {
} }
if (sessionStorage.getItem("manager")) { if (sessionStorage.getItem("manager")) {
this.management = true; this.management = true;
this.contract_show = true;
} }
} }
}; };
...@@ -100,6 +101,8 @@ export default { ...@@ -100,6 +101,8 @@ export default {
text-align: center; text-align: center;
padding-top: 0; padding-top: 0;
padding-left: 0; padding-left: 0;
padding-right: 0px;
overflow-y: scroll;
} }
.el-container, .el-container,
.el-aside { .el-aside {
...@@ -108,4 +111,5 @@ export default { ...@@ -108,4 +111,5 @@ export default {
.el-aside > .el-menu { .el-aside > .el-menu {
height: 100%; height: 100%;
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!