|
@@ -111,6 +111,17 @@
|
|
|
<el-dialog :visible.sync="previewVisible" title="服务内容预览" width="600px">
|
|
<el-dialog :visible.sync="previewVisible" title="服务内容预览" width="600px">
|
|
|
<div class="preview-content" v-html="previewContent"></div>
|
|
<div class="preview-content" v-html="previewContent"></div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+
|
|
|
|
|
+ <el-dialog title="操作成功" :visible.sync="successDialogVisible" width="400px" :close-on-click-modal="false">
|
|
|
|
|
+ <div style="text-align:center;padding:10px 0">
|
|
|
|
|
+ <i class="el-icon-success" style="color:#67C23A;font-size:32px"></i>
|
|
|
|
|
+ <p style="margin:12px 0 0;font-size:16px;color:#303133">保存成功</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div slot="footer">
|
|
|
|
|
+ <el-button type="primary" @click="handleContinue">继续添加</el-button>
|
|
|
|
|
+ <el-button @click="handleClose">关闭</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -130,6 +141,7 @@ export default {
|
|
|
status: null
|
|
status: null
|
|
|
},
|
|
},
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
|
|
|
+ successDialogVisible: false,
|
|
|
previewVisible: false,
|
|
previewVisible: false,
|
|
|
previewContent: '',
|
|
previewContent: '',
|
|
|
isEdit: false,
|
|
isEdit: false,
|
|
@@ -271,6 +283,17 @@ export default {
|
|
|
this.toggleStatus(row)
|
|
this.toggleStatus(row)
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ handleContinue() {
|
|
|
|
|
+ this.successDialogVisible = false
|
|
|
|
|
+ this.isEdit = false
|
|
|
|
|
+ this.form = { id: null, typeId: null, title: '', content: '', duration: 0, ageRange: '', price: null, status: 'ACTIVE' }
|
|
|
|
|
+ this.dialogVisible = true
|
|
|
|
|
+ },
|
|
|
|
|
+ handleClose() {
|
|
|
|
|
+ this.successDialogVisible = false
|
|
|
|
|
+ this.dialogVisible = false
|
|
|
|
|
+ this.loadData()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|