Commit 77c6d4c5 by 谢明辉

a

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