提交 e794938f 编写于 作者: bo.dang's avatar bo.dang

创建圈子下一步取消

上级 d4ce7695
......@@ -87,6 +87,10 @@
<!--<span class="el-icon-info"></span>-->
<i class="el-icon-info" style="color: #449284;"></i>
</el-tooltip>
<div style="margin-top: 60px;margin-left: 250px;">
<el-button type="primary" @click="save()" center>保存</el-button>
<el-button @click="cancle()">取 消</el-button>
</div>
</el-form-item>
<el-dialog
......@@ -325,6 +329,16 @@
});
},
save(){
this.submitForm();
},
cancle(){
const _this = this;
setTimeout(function () {
_this.$router.go(-1)
}, 100);
}
}
}
</script>
......
......@@ -305,7 +305,7 @@ const vueFilter = {
} else if (value == 2) {
return '取消屏蔽';
}
},
},
roleAdminStatus: (value) => {
if(value == 1) {
return '普通成员';
......@@ -496,7 +496,7 @@ const vueFilter = {
if (value == 0) {
return '暂存'
}else if (value == 10) {
return '下线'
return '待发布'
}else if (value == 20) {
return ''
}else if (value == 30) {
......
......@@ -4,26 +4,27 @@
<div class="yqrange-index-content screenSet" id="screenSet">
<el-row class="step-content">
<el-col :span="14">
<el-steps :active="active" simple class>
<span class="step-num" v-bind:class="{ 'on-step': stepData[0] }">1</span>
<el-step title="基础信息"></el-step>
<span class="step-num" v-bind:class="{ 'on-step': stepData[1] }">2</span>
<el-step title="选择成员">2</el-step>
</el-steps>
</el-col>
<el-col :span="5" :offset="5">
<el-button v-if="active<1" size="small" type="primary" @click="nextStep">下一步</el-button>
<el-button v-if="active>=1" size="small" type="primary" @click="complete">完成</el-button>
<p class="p-title">新建/编辑小圈</p>
<!--<el-steps :active="active" simple class>-->
<!--<span class="step-num" v-bind:class="{ 'on-step': stepData[0] }">1</span>-->
<!--<el-step title="基础信息"></el-step>-->
<!--<span class="step-num" v-bind:class="{ 'on-step': stepData[1] }">2</span>-->
<!--<el-step title="选择成员">2</el-step>-->
<!--</el-steps>-->
</el-col>
<!--<el-col :span="5" :offset="5">-->
<!--<el-button v-if="active<1" size="small" type="primary" @click="nextStep">下一步</el-button>-->
<!--<el-button v-if="active>=1" size="small" type="primary" @click="complete">完成</el-button>-->
<!--</el-col>-->
</el-row>
<div class="first-step" v-if="active === 0">
<p class="p-title">基础信息</p>
<base-info :formData="formData" @returnTypeData="returnTypeData" @returnIsNext="returnIsNext" ref="child">
</base-info>
</div>
<div class="second-step" v-else-if="active === 1">
<organzation :formData="formData" ref="org"></organzation>
</div>
<!--<div class="second-step" v-else-if="active === 1">-->
<!--<organzation :formData="formData" ref="org"></organzation>-->
<!--</div>-->
</div>
</div>
</template>
......@@ -163,10 +164,15 @@
vm.POST("circle/circle/save", req).then(res => {
if (res.code == "000000") {
// console.log(res);
console.log(this.$refs);
vm.formData.id = res.data;
this.active = 1;
this.stepData = [false, true];
// console.log(this.$refs);
// vm.formData.id = res.data;
// // this.active = 1;
// this.stepData = [false, true];
this.$message.success('保存成功');
const _this = this;
setTimeout(function () {
_this.$router.go(-1)
}, 100);
} else {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册