|
|
@@ -0,0 +1,85 @@
|
|
|
+<template>
|
|
|
+ <div class="message-panel">
|
|
|
+ <div class="row" v-for="row in rows">
|
|
|
+ <div class="message-label">
|
|
|
+ <div class="message-label-wrapper">
|
|
|
+ <span>{{row.label}}</span>
|
|
|
+ <span v-if="row.status === 0" style="color: #E68717;">未开通</span>
|
|
|
+ <span v-if="row.status === 1" style="color: #E68717;">开通失败</span>
|
|
|
+ <span v-if="row.status === 2" style="color: #646464;">已开通</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="message-value">
|
|
|
+ <button class="btn btn-primary btn-open" v-if="row.status === 0" @click="() => { $message.info('开通') }">开通</button>
|
|
|
+ <button class="btn btn-primary btn-reopen" v-if="row.status === 1" @click="() => { $message.info('重新开通') }">重新开通</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ export default {
|
|
|
+ name: 'app-list',
|
|
|
+ props: {
|
|
|
+ rows: Array
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+ .message-panel {
|
|
|
+ padding-top: 16px;
|
|
|
+ }
|
|
|
+ .message-panel .row {
|
|
|
+ margin: 10px 0;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ padding-left: 26px;
|
|
|
+ }
|
|
|
+ .message-panel .row div {
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
+ .message-panel .row .message-label {
|
|
|
+ padding: 0 20px;
|
|
|
+ width: 330px;
|
|
|
+ height: 40px;
|
|
|
+ border: 1px #D2D2D2 solid;
|
|
|
+
|
|
|
+ color: #000000;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: normal;
|
|
|
+ font-family: "Microsoft YaHei", sans-serif;
|
|
|
+ }
|
|
|
+ .message-panel .row .message-label .message-label-wrapper {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ }
|
|
|
+ .message-panel .row .message-value {
|
|
|
+ margin-left: 20px;
|
|
|
+ width: 100px;
|
|
|
+
|
|
|
+ color: #000000;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: normal;
|
|
|
+ font-family: "Microsoft YaHei", sans-serif;
|
|
|
+ }
|
|
|
+ .message-panel .row .message-value button {
|
|
|
+ height: 26px;
|
|
|
+ outline: none;
|
|
|
+ border-radius: 0;
|
|
|
+
|
|
|
+ color: #FFFFFF;
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: normal;
|
|
|
+ font-family: "Microsoft YaHei", sans-serif;
|
|
|
+ }
|
|
|
+ .message-panel .row .message-value btn-open {
|
|
|
+ width: 50px;
|
|
|
+ line-height: 12px;
|
|
|
+ }
|
|
|
+ .message-panel .row .message-value .btn-reopen {
|
|
|
+ width: 64px;
|
|
|
+ line-height: 12px;
|
|
|
+ padding: 6px 0;
|
|
|
+ }
|
|
|
+</style>
|