Commit 26cd4fcc authored by zhangyanni's avatar zhangyanni

Merge remote-tracking branch 'origin/master'

parents 5d17700a 965a60e3
...@@ -768,6 +768,12 @@ export default new Router({ ...@@ -768,6 +768,12 @@ export default new Router({
meta: {title: '计划实施'}, meta: {title: '计划实施'},
name:'planmentation', name:'planmentation',
}, },
{
path: '/addplanmentation',
component: resolve => require(['./views/mobile/servicerecord/addplanmentation.vue'], resolve),
meta: {title: '新增记录'},
name:'addplanmentation',
},
{ {
path: '/fielddisplaydetails', path: '/fielddisplaydetails',
component: resolve => require(['./views/mobile/servicerecord/fielddisplaydetails.vue'], resolve), component: resolve => require(['./views/mobile/servicerecord/fielddisplaydetails.vue'], resolve),
......
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
<div style="margin-top: 20px"> <div style="margin-top: 20px">
<el-form :inline="true" :label-width="diven_zh?'160px':'300px'" :model="addData" :class="diven_zh?'contnetform':'contnetform300'"> <el-form :inline="true" :label-width="diven_zh?'160px':'300px'" :model="addData" :class="diven_zh?'contnetform':'contnetform300'">
<el-form-item label="公司主体是否为关联" style="width: 100%;"> <el-form-item label="公司主体是否为关联" style="width: 100%;">
<span>{{addData.isRelevance==0?'是':'否'}}</span> <span>{{addData.isRelevance==1?'是':'否'}}</span>
</el-form-item> </el-form-item>
<el-form-item :label="$t('personalAuth.name')+':'" style="width: 100%;"> <el-form-item :label="$t('personalAuth.name')+':'" style="width: 100%;">
<span>{{addData.requirementContacts.empName}}</span> <span>{{addData.requirementContacts.empName}}</span>
......
<template>
<div>
<div class="breadWrap_top" style="border-bottom: 1px solid #E6E6E6">
<i class="iconfont icon-fanhui" @click="gotoed"></i>
<p>{{$route.query.response?'编辑记录':'新增记录'}}</p>
</div>
<div :class="isedit?'':'hide'" class="content_data">
<div>
<p style="font-weight: bold">选择发布阶段:</p>
<el-cascader style="width: 100%" @change="cascader_lit" v-model="cascadermodel" :options="options" :props="propsd" :show-all-levels="false"></el-cascader>
</div>
<div>
<p style="font-weight: bold">选择编辑内容:</p>
<div v-if="statechange=='SRT01'" class="contentScreen" v-for="(item,index) in screenchildList" :key="item.fieldId">
<p class="screenTitle">{{item.fieldName}}</p>
<div class="firstLine lineWrap">
<ul>
<li v-for="(items,index) in item.subFieldList" :key="items.fieldId" :class="items.checked?'activeLi':''" @click="checkClik(items)">{{items.fieldName}}</li>
</ul>
</div>
</div>
<div v-if="statechange=='SRT02'" class="contentScreen">
<div class="firstLine lineWrap">
<ul>
<li v-for="(item,index) in screenchildList" :key="item.fieldId" :class="item.checked?'activeLi':''" @click="checkClik(item)">{{item.fieldName}}</li>
</ul>
</div>
</div>
</div>
</div>
<div v-if="!isedit" class="content_data">
<editplanmentaion ref="child" :response="$route.query.response" :labName="labName" :serviceId="this.$route.query.serviceId" :ServicephasesId="ServicephasesId" :screenchildList="screenchildList"></editplanmentaion>
</div>
<div class="service_bottom">
<p v-if="isedit" @click="goto">下一步</p>
<p v-if="!isedit" @click="submitplan">保存</p>
<p v-if="!isedit" @click="isedit = !isedit">返回</p>
</div>
</div>
</template>
<script>
import api from './api/api'
import editplanmentaion from './editplanmentaion';
import {Toast} from 'mint-ui';
export default {
name : "addplanmentation",
components:{
editplanmentaion
},
data(){
return{
data:[],
propsd: {
children: 'subList',
label: 'phaseName',
value: 'phaseId',
},
options:[],
isedit:true,
ServicephasesId:'',
screenchildList:[],
statechange:window.sessionStorage.getItem("statechange"),
labName:'',
subnum:false,
cascadermodel:[],
}
},
methods:{
gotoed(){
this.$router.push({path:"/personalcenter",query:{serviceId:this.$route.query.response.serviceId}});
},
submitplan(){
this.$refs.child.addedit();
},
checkClik(items){
items.checked = !items.checked;
},
goto(){
if(this.subnum){
this.isedit = !this.isedit
}else{
this.$toast("请选择发布阶段");
}
},
cascader_lit(val){
if(val){
this.subnum = true;
for(let i in this.options){
if(this.options[i].phaseId == val[0]){
this.labName = this.options[i].phaseName;
for(let t in this.options[i].subList){
if(this.options[i].subList[t].phaseId == val[1]){
this.labName = this.labName+'-'+this.options[i].subList[t].phaseName;
}
}
}
}
this.ServicephasesId = val[val.length - 1];
api.getServicePhaseFields(this.ServicephasesId,this.statechange).then(response => {
if(response.code == 0) {
if(this.statechange == 'SRT01'){
for(let i in response.result){
if(response.result[i].subFieldList){
for(let t in response.result[i].subFieldList){
response.result[i].subFieldList[t].checked = false;
}
}
}
}else{
for(let i in response.result){
if(response.result[i]){
response.result[i].checked = false;
}
}
}
this.screenchildList = response.result;
} else {
this.$message.error(response.msg);
}
})
.catch(error => {
console.log("提交出错");
return false;
});
}
}
},
mounted(){
// if(this.$route.query.response){
//
// }
api.getServicePhases(window.sessionStorage.getItem("statechange")).then(response => {
if(response.code == 0) {
this.options = response.result;
} else {
this.$message.error(response.msg);
}
})
.catch(error => {
console.log("提交出错");
return false;
});
}
}
</script>
<style scoped lang="scss">
.hide{
display: none;
}
.content_data{
width: 85%;
height: calc(100vh - 3.8rem);
overflow: auto;
margin: 0 auto;
>div{
margin-top: 0.3rem;
font-size: 0.28rem;
color: #69697A;
>p{
margin-bottom: 0.2rem;
}
}
}
.contentScreen{
margin-top: 0.3rem;
.screenTitle{
color: #69697A;
font-size: .24rem;
padding-bottom: .1rem;
}
.lineWrap{
padding-bottom: .1rem;
}
.secondLine{
padding-top: .2rem;
}
ul{
display: flex;
flex-wrap: wrap;
align-items: center;
margin-left: -0.07rem;
li{
min-width: 30%;
text-align: center;
height: .6rem;
font-size: 0.24rem;
background: #F2F2F2;
border-radius: .06rem;
color: #3F3F53;
margin: .1rem;
line-height: .6rem;
padding: 0 .20rem;
}
li.activeLi{
color: #5d78ff;
background:url("../../../assets/img/mobile/checked.png") no-repeat;
background-position: bottom right;
background-size: .4rem .3rem;
background-color: #E2E7FF;
}
}
}
</style>
\ No newline at end of file
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
let _this = this; let _this = this;
setTimeout(function(){ setTimeout(function(){
_this.$router.replace({path:"/personalcenter",query:{serviceId:_this.$route.query.serviceId}}); _this.$router.replace({path:"/personalcenter",query:{serviceId:_this.$route.query.serviceId}});
},2000) },200)
}else{ }else{
let params = { let params = {
serviceId:this.$route.query.serviceId, serviceId:this.$route.query.serviceId,
...@@ -63,12 +63,12 @@ ...@@ -63,12 +63,12 @@
this.$toast({ this.$toast({
message: '更改成功', message: '更改成功',
// iconClass: 'iconfont icon-success', // iconClass: 'iconfont icon-success',
duration: 2000 // duration: 2000
}); });
let _this = this; let _this = this;
setTimeout(function(){ setTimeout(function(){
_this.$router.replace({path:"/personalcenter",query:{serviceId:_this.$route.query.serviceId}}); _this.$router.replace({path:"/personalcenter",query:{serviceId:_this.$route.query.serviceId}});
},2000) },200)
} else { } else {
this.$message.error(response.msg); this.$message.error(response.msg);
} }
...@@ -93,12 +93,12 @@ ...@@ -93,12 +93,12 @@
this.$toast({ this.$toast({
message: '添加成功', message: '添加成功',
// iconClass: 'iconfont icon-success', // iconClass: 'iconfont icon-success',
duration: 2000 // duration: 2000
}); });
let _this = this; let _this = this;
setTimeout(function(){ setTimeout(function(){
_this.$router.replace('/serviceenterprise') _this.$router.replace('/serviceenterprise')
},2000) },200)
} else { } else {
this.$message.error(response.msg); this.$message.error(response.msg);
} }
......
...@@ -26,6 +26,12 @@ export default { ...@@ -26,6 +26,12 @@ export default {
fillDetail( params ) { fillDetail( params ) {
return api.fetchLoadingPost( '/business/service/fillDetail', params ); return api.fetchLoadingPost( '/business/service/fillDetail', params );
}, },
addPlanData( params ) {
return api.fetchLoadingPost( '/business/service/addPlanData', params );
},
updatePlanRecord( params ) {
return api.fetchLoadingPost( '/business/service/updatePlanRecord', params );
},
getDetailFields(params) { getDetailFields(params) {
return api.fetchGet( '/business/service/getDetailFields?serviceId='+params ); return api.fetchGet( '/business/service/getDetailFields?serviceId='+params );
}, },
...@@ -44,4 +50,25 @@ export default { ...@@ -44,4 +50,25 @@ export default {
changeServiceType( params ) { changeServiceType( params ) {
return api.fetchLoadingPost( '/business/service/changeServiceType', Qs.stringify(params)); return api.fetchLoadingPost( '/business/service/changeServiceType', Qs.stringify(params));
}, },
getServicePhases(params) {
return api.fetchGet( '/business/service/getServicePhases?serviceType='+params );
},
getPlanFieldRecord(params) {
return api.fetchGet( '/business/service/getPlanFieldRecord?serviceId='+params );
},
getPhaseRecordDetail(params) {
return api.fetchGet( '/business/service/getPhaseRecordDetail?recordId='+params );
},
removeRecord(params) {
return api.fetchGet( '/business/service/removeRecord?serviceRecordId='+params );
},
getPhasePlanRecord(params) {
return api.fetchGet( '/business/service/getPhasePlanRecord?serviceId='+params );
},
getServicePhaseFields(params,params2) {
return api.fetchGet( '/business/service/getServicePhaseFields?phaseId='+params+'&serviceType='+ params2);
},
getRecordFieldDetail( params ) {
return api.fetchLoadingPost( '/business/service/getRecordFieldDetail', Qs.stringify(params));
},
} }
\ No newline at end of file
This diff is collapsed.
...@@ -324,13 +324,11 @@ ...@@ -324,13 +324,11 @@
} }
}, },
fieldscode:[], fieldscode:[],
fieldscode1:[],
} }
}, },
methods:{ methods:{
addedit(){ addedit(){
console.log(this.projectjson)
for(let i in this.financingList){ for(let i in this.financingList){
if(this.financingList[i].financingTime!=''&&this.financingList[i].financingTurn!=''&&this.financingList[i].financingMoney!=''&&this.financingList[i].financingInvestor!=''){ if(this.financingList[i].financingTime!=''&&this.financingList[i].financingTurn!=''&&this.financingList[i].financingMoney!=''&&this.financingList[i].financingInvestor!=''){
if(this.projectjson.financingList==null){ if(this.projectjson.financingList==null){
...@@ -373,7 +371,7 @@ ...@@ -373,7 +371,7 @@
} }
api.fillDetail(this.projectjson).then(response => { api.fillDetail(this.projectjson).then(response => {
if(response.code == 0) { if(response.code == 0) {
this.$router.go(-1)
} else { } else {
this.$message.error(response.msg); this.$message.error(response.msg);
} }
......
<template> <template>
<div class="fieldiv"> <div class="fieldiv">
<ul> <ul>
<li @click="fieldetails"> <li @click="fieldetails(item)" v-for="(item,index) in fieldDisplaydata">
<span>一句话描述公司主要产品</span> <span>{{item.fieldName}}</span>
<span>2次更新记录</span> <span>{{item.recordCount}}次更新记录</span>
<i class="iconfont icon-you"></i>
</li>
<li>
<span>一句话描述公司主要产品</span>
<span>12次更新记录</span>
<i class="iconfont icon-you"></i>
</li>
<li>
<span>一句话描述公司主要产品</span>
<span>22次更新记录</span>
<i class="iconfont icon-you"></i>
</li>
<li>
<span>一句话描述公司主要产品</span>
<span>32次更新记录</span>
<i class="iconfont icon-you"></i> <i class="iconfont icon-you"></i>
</li> </li>
</ul> </ul>
...@@ -28,18 +13,15 @@ ...@@ -28,18 +13,15 @@
<script> <script>
export default { export default {
name : "fielddisplay", name : "fielddisplay",
props: ['fieldDisplaydata'],
data(){ data(){
return{ return{
recordjson:{
problem:'怎样认识《诗经》的文学解读与精血解读试以其中的诗歌为例进行文学解读',
answer:'所谓经学解读即以儒家的所谓经学解读即以儒家的所谓经学解读即以儒家的所谓经学解读即以儒家的所谓经学解读即以儒家的所谓经学解读即以儒家的所谓经学解读即以儒家的所谓经学解读即以儒家的所谓经学解读即以儒家的所谓经学解读即以儒家的所谓经学解读即以儒家的所谓经学解读即以儒家的所谓经学解读即以儒家的所谓经学解读即以儒家的所谓经学解读即以儒家的',
analysis:[require('../../../assets/img/index/cosmo.png'),require('../../../assets/img/index/cosmo.png'),require('../../../assets/img/index/cosmo.png'),require('../../../assets/img/index/cosmo.png'),require('../../../assets/img/index/cosmo.png')],
}
} }
}, },
methods:{ methods:{
fieldetails(){ fieldetails(val){
this.$router.push({path:"/fielddisplaydetails"}); this.$router.push({path:"/fielddisplaydetails",query:{fieldjson:val,state:true}});
}, },
}, },
mounted(){ mounted(){
...@@ -65,7 +47,8 @@ ...@@ -65,7 +47,8 @@
} }
>span:nth-child(2){ >span:nth-child(2){
color: #9197B4; color: #9197B4;
margin-right: 0.4rem; position: absolute;
right: 1.2rem;
} }
>i{ >i{
color: #9197B4; color: #9197B4;
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
<li v-for="(item,index) in data" :key="index" @click="recordcli(item)"> <li v-for="(item,index) in data" :key="index" @click="recordcli(item)">
<p> <p>
{{item.createdTime}} {{item.createdTime}}
<span>{{item.recordType=='SRM01'?'发布了一条分析记录':'发布了一条工作规划'}}</span> <span>{{item.recordType=='SRM01'?'发布了一条分析记录':item.recordType=='SRM02'?'发布了一条工作规划':item.recordType=='SRM03'?'发布了一条实施记录':''}}</span>
</p> </p>
<p>{{item.recordType=='SRM01'?'问题:':'标题:'}}{{item.title}}</p> <p>{{item.recordType=='SRM01'?'问题:':item.recordType=='SRM02'?'标题:':item.recordType=='SRM03'?'更新内容:':''}}{{item.recordType=='SRM03'?item.content:item.title}}</p>
<p>{{item.companyName}}</p> <p>{{item.companyName}}</p>
</li> </li>
</ul> </ul>
...@@ -49,6 +49,10 @@ ...@@ -49,6 +49,10 @@
}else{ }else{
this.$router.push({path:"/workplandetails",query:{editstate:true,recordId:val.recordId}}); this.$router.push({path:"/workplandetails",query:{editstate:true,recordId:val.recordId}});
} }
if(val.recordType=='SRM03'){
this.$router.push({path:"/fielddisplaydetails",query:{fieldjson:{recordId:val.recordId}}});
}
}, },
getsearchServiceRecords(size){ getsearchServiceRecords(size){
let params = { let params = {
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
</ul> </ul>
</div> </div>
<div class="historical_div"> <div class="historical_div">
<fieldDisplay v-if="addprojecttype==2"></fieldDisplay> <fieldDisplay :fieldDisplaydata="fieldDisplaydata" v-if="addprojecttype==2"></fieldDisplay>
<stageDisplay v-if="addprojecttype==1"></stageDisplay> <stageDisplay :stageDisplaydata="stageDisplaydata" v-if="addprojecttype==1"></stageDisplay>
</div> </div>
</div> </div>
</div> </div>
...@@ -29,24 +29,18 @@ ...@@ -29,24 +29,18 @@
<script> <script>
import stageDisplay from './stagedisplay'; import stageDisplay from './stagedisplay';
import fieldDisplay from './fielddisplay'; import fieldDisplay from './fielddisplay';
import api from './api/api'
export default { export default {
name : "workplan", name : "planmentation",
components:{ components:{
fieldDisplay,stageDisplay fieldDisplay,stageDisplay
}, },
data(){ data(){
return{ return{
addprojecttype:1, addprojecttype:1,
data:[ fieldDisplaydata:[],
{span1:'2015-10-20 14:00:23',span2:'拜访记录',p1:'TechBook是太库(Techcode)旗下科创项目与大企业需求即时对接合作平台,以平台为信息中…',p2:'中国南方航空集团有限公司'}, stageDisplaydata:[],
{span1:'2015-10-20 14:00:23',span2:'月度计划信息',p1:'TechBook主要收录来自全球的科创型企业和以中国为核心的大中型企业,科创企业主…',p2:'中国南方航空集团有限公司'}, data:[]
{span1:'2015-10-20 14:00:23',span2:'工作规划',p1:'目前TechBook正在测试推广阶段,现在注册认证即可获得一定期限…',p2:'中国南方航空集团有限公司'},
{span1:'2015-10-20 14:00:23',span2:'TechBook是一个什么样的平台',p1:'问题:怎样认识《诗经》的文学解读与精血解读?',p2:'中国南方航空集团有限公司'},
{span1:'2015-10-20 14:00:23',span2:'TechBook是一个什么样的平台',p1:'问题:怎样认识《诗经》的文学解读与精血解读?',p2:'中国南方航空集团有限公司'},
{span1:'2015-10-20 14:00:23',span2:'TechBook是一个什么样的平台',p1:'问题:怎样认识《诗经》的文学解读与精血解读?',p2:'中国南方航空集团有限公司'},
{span1:'2015-10-20 14:00:23',span2:'TechBook是一个什么样的平台',p1:'问题:怎样认识《诗经》的文学解读与精血解读?',p2:'中国南方航空集团有限公司'},
{span1:'2015-10-20 14:00:23',span2:'TechBook是一个什么样的平台',p1:'问题:怎样认识《诗经》的文学解读与精血解读?',p2:'中国南方航空集团有限公司'},
]
} }
}, },
methods:{ methods:{
...@@ -57,15 +51,42 @@ ...@@ -57,15 +51,42 @@
this.addprojecttype = 2; this.addprojecttype = 2;
} }
}, },
getPhasePlanRecorded(){
api.getPhasePlanRecord(this.$route.query.serviceId).then(response => {
if(response.code == 0) {
this.stageDisplaydata = response.result;
} else {
this.$message.error(response.msg);
}
})
.catch(error => {
console.log("提交出错");
return false;
})
},
getPlanFieldRecorded(){
api.getPlanFieldRecord(this.$route.query.serviceId).then(response => {
if(response.code == 0) {
this.fieldDisplaydata = response.result;
} else {
this.$message.error(response.msg);
}
})
.catch(error => {
console.log("提交出错");
return false;
})
},
editlist(){ editlist(){
this.$router.push({path:"/workplandetails",query:{editstate:false}}); this.$router.push({path:"/addplanmentation",query:{serviceId:this.$route.query.serviceId}});
}, },
recordcli(){ recordcli(){
this.$router.push({path:"/workplandetails",query:{editstate:true}}); this.$router.push({path:"/workplandetails",query:{editstate:true}});
} }
}, },
mounted(){ mounted(){
this.getPhasePlanRecorded();
this.getPlanFieldRecorded();
} }
} }
</script> </script>
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
api.updateBSSsrviceById(params).then(response => { api.updateBSSsrviceById(params).then(response => {
if(response.code == 0) { if(response.code == 0) {
this.$toast("修改分析记录成功"); this.$toast("修改分析记录成功");
this.topage(); this.$router.go(-1)
} else { } else {
this.$message.error(response.msg); this.$message.error(response.msg);
} }
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
api.insertBSSsrvice(params).then(response => { api.insertBSSsrvice(params).then(response => {
if(response.code == 0) { if(response.code == 0) {
this.$toast("创建分析记录成功"); this.$toast("创建分析记录成功");
this.topage(); this.$router.go(-1)
} else { } else {
this.$message.error(response.msg); this.$message.error(response.msg);
} }
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
api.updateBSSsrviceById(this.recordjson).then(response => { api.updateBSSsrviceById(this.recordjson).then(response => {
if(response.code == 0) { if(response.code == 0) {
this.$toast("删除分析记录成功"); this.$toast("删除分析记录成功");
this.topage(); this.$router.go(-1)
} else { } else {
this.$message.error(response.msg); this.$message.error(response.msg);
} }
......
...@@ -2,44 +2,16 @@ ...@@ -2,44 +2,16 @@
<div> <div>
<div> <div>
<div style="margin-top: 0.3rem"> <div style="margin-top: 0.3rem">
<div class="stage_top"><i></i><p><span>融资准备</span>(融资战略咨询)</p></div> <div v-for="(item,index) in stageDisplaydata">
<div class="stage_tent"> <div class="stage_top"><p><span>{{item.phaseName}}</span></p></div>
<span>记录1</span> <div v-for="(items,index) in item.nextPhase">
<span>2019-10-20 13:00:00</span> <div class="stage_topchild"><i></i><p><span>{{items.phaseName}}</span></p></div>
<p>更新内容:团队核心成员、一句话描述、主要竞争对手、主要产品、产品形态等</p> <div v-for="(itemed,index) in items.recordList" @click="fieldetails(itemed)" class="stage_tent">
<span>记录{{index+1}}</span>
<span>{{itemed.createdTime}}</span>
<p>更新内容:{{itemed.content}}</p>
</div> </div>
<div class="stage_tent">
<span>记录1</span>
<span>2019-10-20 13:00:00</span>
<p>更新内容:团队核心成员、一句话描述、主要竞争对手、主要产品、产品形态等</p>
<div style="padding-bottom: 0.5rem"> </div>
</div> </div>
<div class="stage_topchild"><i></i><p><span>融资材料准备</span></p></div>
<div class="stage_tent">
<span>记录1</span>
<span>2019-10-20 13:00:00</span>
<p>更新内容:团队核心成员、一句话描述、主要竞争对手、主要产品、产品形态等</p>
</div>
<div class="stage_tent">
<span>记录1</span>
<span>2019-10-20 13:00:00</span>
<p>更新内容:团队核心成员、一句话描述、主要竞争对手、主要产品、产品形态等</p>
</div>
<div class="stage_tent">
<span>记录1</span>
<span>2019-10-20 13:00:00</span>
<p>更新内容:团队核心成员、一句话描述、主要竞争对手、主要产品、产品形态等</p>
</div>
<div class="stage_tent">
<span>记录1</span>
<span>2019-10-20 13:00:00</span>
<p>更新内容:团队核心成员、一句话描述、主要竞争对手、主要产品、产品形态等</p>
</div>
<div class="stage_top"><i></i><p><span>融资准备</span>(融资战略咨询)</p></div>
<div class="stage_tent">
<span>记录1</span>
<span>2019-10-20 13:00:00</span>
<p>更新内容:团队核心成员、一句话描述、主要竞争对手、主要产品、产品形态等</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -47,8 +19,18 @@ ...@@ -47,8 +19,18 @@
</template> </template>
<script> <script>
import api from './api/api'
export default { export default {
name : "stagedisplay" name : "stagedisplay",
props: ['stageDisplaydata'],
methods:{
fieldetails(val){
this.$router.push({path:"/fielddisplaydetails",query:{fieldjson:val,state:false,}});
},
},
mounted(){
}
} }
</script> </script>
...@@ -90,7 +72,7 @@ ...@@ -90,7 +72,7 @@
left: 0px; left: 0px;
} }
>p{ >p{
margin-left: 1rem; margin-left: 0rem;
font-size: 0.32rem; font-size: 0.32rem;
>span{ >span{
font-weight: bold; font-weight: bold;
......
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
api.updateBSSsrviceById(params).then(response => { api.updateBSSsrviceById(params).then(response => {
if(response.code == 0) { if(response.code == 0) {
this.$toast("修改工作规划成功"); this.$toast("修改工作规划成功");
this.topage(); this.$router.go(-1)
} else { } else {
this.$message.error(response.msg); this.$message.error(response.msg);
} }
...@@ -168,13 +168,13 @@ ...@@ -168,13 +168,13 @@
recordType:'SRM02', recordType:'SRM02',
title:this.recordjson.title, title:this.recordjson.title,
content:this.recordjson.content, content:this.recordjson.content,
explication:this.recordjson.explication, attachments:this.recordjson.attachments,
created_by:this.empinfo.empId, created_by:this.empinfo.empId,
}; };
api.insertBSSsrvice(params).then(response => { api.insertBSSsrvice(params).then(response => {
if(response.code == 0) { if(response.code == 0) {
this.$toast("创建工作规划成功"); this.$toast("创建工作规划成功");
this.topage(); this.$router.go(-1)
} else { } else {
this.$message.error(response.msg); this.$message.error(response.msg);
} }
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
api.updateBSSsrviceById(this.recordjson).then(response => { api.updateBSSsrviceById(this.recordjson).then(response => {
if(response.code == 0) { if(response.code == 0) {
this.$toast("删除工作规划成功"); this.$toast("删除工作规划成功");
this.topage(); this.$router.go(-1)
} else { } else {
this.$message.error(response.msg); this.$message.error(response.msg);
} }
......
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