Commit 0df384e9 authored by huangjie's avatar huangjie

*

parent ae61f83c
...@@ -459,10 +459,10 @@ ...@@ -459,10 +459,10 @@
opacity: 0.8; opacity: 0.8;
padding: 0; padding: 0;
} }
.el-input{ .el-input,.el-textarea{
display: inline-block; display: inline-block;
width: 240px; width: 240px;
.el-input__inner{ .el-input__inner,.el-textarea__inner{
width: 100%; width: 100%;
height: 32px; height: 32px;
border-radius: 0px; border-radius: 0px;
...@@ -471,6 +471,11 @@ ...@@ -471,6 +471,11 @@
border-color: #0081FF; border-color: #0081FF;
} }
} }
.el-textarea__inner{
height: 90px;
font-family: inherit;
color: #000;
}
.el-input__suffix{ .el-input__suffix{
height: 32px; height: 32px;
} }
...@@ -508,7 +513,7 @@ ...@@ -508,7 +513,7 @@
} }
} }
.popform.i{ .popform.i{
.el-input{ .el-input,.el-textarea{
width: 335px; width: 335px;
} }
} }
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
mode="vertical" mode="vertical"
> >
<sidebar-item <sidebar-item
v-for="(route, index) in sidebarRouters" v-for="(route, index) in hidechildren"
:key="route.path + index" :key="route.path + index"
:is-collapse="isCollapse" :is-collapse="isCollapse"
:active-menu="activeMenu" :active-menu="activeMenu"
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
:base-path="route.path" :base-path="route.path"
:class="route.fixed&&route.fixed.isFixed?'sideFoot':''" :class="route.fixed&&route.fixed.isFixed?'sideFoot':''"
:style="route.fixed&&route.fixed.isFixed?{'bottom': route.fixed.number*50+'px'}: bottomMenu&&index==routes.length-bottomMenu-2?{'padding-bottom': bottomMenu*50+'px'}:''" :style="route.fixed&&route.fixed.isFixed?{'bottom': route.fixed.number*50+'px'}: bottomMenu&&index==routes.length-bottomMenu-2?{'padding-bottom': bottomMenu*50+'px'}:''"
/> />
</el-menu> </el-menu>
</el-scrollbar> </el-scrollbar>
...@@ -39,7 +39,7 @@ import SidebarItem from "./SidebarItem"; ...@@ -39,7 +39,7 @@ import SidebarItem from "./SidebarItem";
import variables from "@/assets/styles/variables.scss"; import variables from "@/assets/styles/variables.scss";
export default { export default {
components: { SidebarItem, Logo }, components: { SidebarItem, Logo },
data() { data() {
return { return {
...@@ -49,6 +49,18 @@ export default { ...@@ -49,6 +49,18 @@ export default {
computed: { computed: {
...mapState(["settings"]), ...mapState(["settings"]),
...mapGetters(["sidebarRouters", "sidebar"]), ...mapGetters(["sidebarRouters", "sidebar"]),
hidechildren(){
return this.sidebarRouters.map(item=>{
if(item.children?.length){
item.children = item.children.filter(i=>{
if (typeof (i.hidden) == 'boolean' && i.hidden == false || i.path == "index"){
return i
}
})
}
return item
})
},
activeMenu() { activeMenu() {
const route = this.$route; const route = this.$route;
const { meta, path } = route; const { meta, path } = route;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<img class="icon_img" src="@/assets/images/project/icon_3.png"> <img class="icon_img" src="@/assets/images/project/icon_3.png">
</div> </div>
<div class="icons"> <div class="icons">
<div class="name">今日进客户</div> <div class="name">今日进客户</div>
<div class="count">30</div> <div class="count">30</div>
<img class="icon_img" src="@/assets/images/project/icon_4.png"> <img class="icon_img" src="@/assets/images/project/icon_4.png">
</div> </div>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="业主单位:" class="row" prop="ownerCompany"> <el-form-item label="业主单位:" class="row" prop="ownerCompany">
<el-input type="text" placeholder="请输入" v-model="queryParam.ownerCompany" @input="getCompany"></el-input> <el-input type="text" placeholder="请输入" v-model="queryParam.ownerCompany" @input="getCompany" :οnkeyup="queryParam.ownerCompany=queryParam.ownerCompany.replace(/^\s+|\s+$/g,'')"></el-input>
<div class="resultlist" v-if="showlist" id="box"> <div class="resultlist" v-if="showlist" id="box">
<div v-for="(item,index) in companData" @click="selCompany(item)"><span v-html="item.name"></span></div> <div v-for="(item,index) in companData" @click="selCompany(item)"><span v-html="item.name"></span></div>
</div> </div>
...@@ -115,6 +115,7 @@ ...@@ -115,6 +115,7 @@
}, },
methods:{ methods:{
toradar(){ toradar(){
this.resetForm()
this.$router.push({path:'/radar'}) this.$router.push({path:'/radar'})
}, },
handleALL(event){ handleALL(event){
...@@ -178,11 +179,12 @@ ...@@ -178,11 +179,12 @@
//添加客户 //添加客户
submitForm(formName) { submitForm(formName) {
this.queryParam.userId = this.$store.state.user.userId this.queryParam.userId = this.$store.state.user.userId
if(this.queryParam.investmentAmount!="")
this.queryParam.investmentAmount = parseFloat(this.queryParam.investmentAmount)
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
addProject(this.queryParam).then(result=>{ let param = JSON.parse(JSON.stringify(this.queryParam))
if(param.investmentAmount!="")
param.investmentAmount = parseFloat(param.investmentAmount)
addProject(param).then(result=>{
if(result.code == 200){ if(result.code == 200){
this.$message.success('添加成功!') this.$message.success('添加成功!')
this.resetForm('ruleForm') this.resetForm('ruleForm')
......
...@@ -106,8 +106,8 @@ ...@@ -106,8 +106,8 @@
<img src="@/assets/images/economies/icon.png"> <img src="@/assets/images/economies/icon.png">
<span>{{projectname}}</span> <span>{{projectname}}</span>
</div> </div>
<el-form class="popform" label-width="137px"> <el-form class="popform" :model="queryParam" ref="ruleForm" label-width="137px" :rules="rules" >
<el-form-item label="联系人姓名:" class="row"> <el-form-item label="联系人姓名:" class="row" prop="name">
<el-input type="text" v-model="queryParam.name" placeholder="请输入"></el-input> <el-input type="text" v-model="queryParam.name" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="联系人性别:" class="row"> <el-form-item label="联系人性别:" class="row">
...@@ -157,6 +157,9 @@ ...@@ -157,6 +157,9 @@
}, },
data(){ data(){
return{ return{
rules:{
name:[{ required: true, message: '请输入非空格字符!', trigger: 'blur' },],
},
dialogVisible:false, dialogVisible:false,
isnew:true,//是否新增 isnew:true,//是否新增
textarea:"", textarea:"",
...@@ -200,36 +203,40 @@ ...@@ -200,36 +203,40 @@
}) })
}, },
save(){ save(){
let param = JSON.parse(JSON.stringify(this.queryParam)) this.$refs['ruleForm'].validate((valid) => {
param.sex = parseInt(param.sex) if (valid) {
if(!this.queryParam.phone){ let param = JSON.parse(JSON.stringify(this.queryParam))
this.$message.error('请输入电话号码') param.sex = parseInt(param.sex)
return false if (!this.queryParam.phone) {
} this.$message.error('请输入电话号码')
var regPartton = /1[3-9]+\d{9}/; return false
var regPartton1 = /0\d{2,3}-\d{7,8}|\(?0\d{2,3}[)-]?\d{7,8}|\(?0\d{2,3}[)-]*\d{7,8}/;
if (!regPartton.test(this.queryParam.phone) && !regPartton1.test(this.queryParam.phone)) {
this.$message.error("请输入正确的电话");
return false
}
if(this.isnew == false){
editLXR(param).then(result=>{
if(result.code == 200){
this.$message.success('保存成功!')
this.getList()
this.dialogVisible = false
} }
}) var regPartton = /1[3-9]+\d{9}/;
} var regPartton1 = /0\d{2,3}-\d{7,8}|\(?0\d{2,3}[)-]?\d{7,8}|\(?0\d{2,3}[)-]*\d{7,8}/;
if(this.isnew == true){ if (!regPartton.test(this.queryParam.phone) && !regPartton1.test(this.queryParam.phone)) {
addLXR(param).then(result=>{ this.$message.error("请输入正确的电话");
if(result.code == 200){ return false
this.$message.success('新增成功!')
this.getList()
this.dialogVisible = false
} }
}) if (this.isnew == false) {
} editLXR(param).then(result => {
if (result.code == 200) {
this.$message.success('保存成功!')
this.getList()
this.dialogVisible = false
}
})
}
if (this.isnew == true) {
addLXR(param).then(result => {
if (result.code == 200) {
this.$message.success('新增成功!')
this.getList()
this.dialogVisible = false
}
})
}
}
})
}, },
//翻页 //翻页
handleCurrentChange(val) { handleCurrentChange(val) {
......
...@@ -73,8 +73,8 @@ ...@@ -73,8 +73,8 @@
label="备注" label="备注"
width=""> width="">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip v-if="scope.row.responsiblePerson" class="item" effect="dark" :content="scope.row.responsiblePerson" placement="top"> <el-tooltip v-if="scope.row.remark" class="item" effect="dark" :content="scope.row.remark" placement="top">
<div class="showremark">{{scope.row.responsiblePerson}}</div> <div class="showremark">{{scope.row.remark}}</div>
</el-tooltip> </el-tooltip>
<div v-else>--</div> <div v-else>--</div>
</template> </template>
...@@ -162,7 +162,14 @@ ...@@ -162,7 +162,14 @@
<el-input type="text" v-model="queryParam.phonenumber" placeholder="请输入"></el-input> <el-input type="text" v-model="queryParam.phonenumber" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="备注说明:" class="row"> <el-form-item label="备注说明:" class="row">
<el-input type="text" v-model="queryParam.responsiblePerson" placeholder="请输入"></el-input> <el-input
type="textarea"
placeholder="请输入"
v-model="queryParam.remark"
maxlength="200"
show-word-limit
>
</el-input>
</el-form-item> </el-form-item>
<div class="popbot"> <div class="popbot">
<div class="btn btn_cancel h32" @click="cancel()">返回</div> <div class="btn btn_cancel h32" @click="cancel()">返回</div>
...@@ -218,6 +225,7 @@ ...@@ -218,6 +225,7 @@
companyType:'', companyType:'',
responsiblePerson:'', responsiblePerson:'',
depth:'', depth:'',
remark:'',
}, },
searchParam:{ searchParam:{
pageSize:20, pageSize:20,
...@@ -339,6 +347,7 @@ ...@@ -339,6 +347,7 @@
companyType:'', companyType:'',
responsiblePerson:'', responsiblePerson:'',
depth:'', depth:'',
remark:'',
} }
}, },
} }
......
...@@ -191,6 +191,7 @@ export default { ...@@ -191,6 +191,7 @@ export default {
components:{addproject,batchimport,skeleton}, components:{addproject,batchimport,skeleton},
data() { data() {
return { return {
encodeStr,
types:'project', types:'project',
props:{multiple: true}, props:{multiple: true},
activeName:'first', activeName:'first',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment