index.vue 22 KB
Newer Older
lxyang committed
1 2 3 4 5
<template>
  <div class="app-container">
    <!--    功能项-->
    <div class="seachData" ref="seachDatas">
        <div class="seachData-left">
lxyang committed
6 7 8
          跟踪文档列表
        </div>
        <div class="seachData-right">
lxyang committed
9
         <el-input v-model="queryParams.name"
lxyang committed
10
                      placeholder="请输入任务名称"
lxyang committed
11
                      suffix-icon="el-icon-search"
lxyang committed
12 13 14 15 16 17 18
                      clearable
                      size="small"
                      @keyup.enter.native="handleQuery" />
          <div class="seachData-next-div left-div">
            <el-button type="primary"
                      icon="el-icon-plus"
                      size="mini"
lxyang committed
19
                      @click="handleAdd">创建任务
lxyang committed
20 21 22 23
            </el-button>
          </div>
        </div>
    </div>
lxyang committed
24 25 26 27 28 29 30 31 32
    <div class="table-center">
      <el-table class="seachTable" v-loading="loading"
                :data="customerList"
                :height="tableHeightCount"
                ref="customerListHeight"
                border>
        <el-table-column label="订阅状态"
                       fixed="left"
                       width="90"
33
                       align="subscription">
lxyang committed
34
          <template slot-scope="scope">
35
            <el-switch v-model="scope.row.subscription"
lxyang committed
36 37 38 39 40 41 42 43
                      active-value="0"
                      inactive-value="1"
                      @change="handleStatusChange(scope.row)"></el-switch>
          </template>
        </el-table-column>
        <el-table-column fixed="left"
                        min-width="240" 
                        label="任务名称"
44
                        prop="name"
lxyang committed
45 46 47
                        :show-overflow-tooltip="true"
                        >
          <template slot-scope="scope">
48
            <div class="ellipsis-hidden"><span class="blue" @click="routerTaskListDetails(scope.row)">{{ isEmpty(scope.row, 'name') }}</span></div>
lxyang committed
49 50 51 52 53 54 55 56 57 58 59 60 61
          </template>
        </el-table-column>
        <el-table-column min-width="160" 
                        fixed="left" 
                        label="任务ID"
                        prop="id"
                        >
          <template slot-scope="scope">
            <span>{{ isEmpty(scope.row, 'id') }}</span>
          </template>
        </el-table-column>
        <el-table-column label="任务说明"
                        min-width="280"
62
                        prop="docDesc"
lxyang committed
63 64 65
                        :show-overflow-tooltip="true"
                        >
          <template slot-scope="scope">
66
            <div class="ellipsis-hidden">{{ isEmpty(scope.row, 'docDesc') }}</div>
lxyang committed
67 68
          </template>
        </el-table-column>
lxyang committed
69

lxyang committed
70 71 72 73
        <el-table-column label="最后修改时间"
                        prop="createTime"
                        width="200">
          <template slot-scope="scope">
74
            <span>{{ dateFilter(scope.row.createTime)  }}</span>
lxyang committed
75 76
          </template>
        </el-table-column>
lxyang committed
77

lxyang committed
78 79 80 81 82 83 84
        <el-table-column label="状态"
                        prop="status"
                        width="120">
          <template slot-scope="scope">
            <span :class="statusTable(scope.row).class">{{ statusTable(scope.row).text }}</span>
          </template>
        </el-table-column>
lxyang committed
85

lxyang committed
86 87 88 89 90 91 92 93 94 95 96 97 98
        <el-table-column fixed="right"
                        label="操作"
                        width="160">
          <template slot-scope="scope">
            <el-button @click="handleUpdate(scope.row)"
                      type="text"
                      size="small">修改订阅</el-button>
            <el-button @click="handleDelete(scope.row)"
                      type="text"
                      size="small">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
lxyang committed
99

lxyang committed
100 101
      <pagination v-show="total>0"
                  :total="total"
lxyang committed
102 103
                  :page.sync="queryParams.pageindex"
                  :limit.sync="queryParams.pagesize"
lxyang committed
104 105 106 107 108 109 110 111 112 113
                  layout="total, prev, pager, next"
                  @pagination="searchCustomer" />
    </div>
    <el-drawer
      class="from-pop-up"
      :title="title"
      :visible.sync="open"
      :direction="'rtl'"
      :wrapperClosable="false"
      :before-close="cancel">
lxyang committed
114 115
      <el-form ref="form"
               :model="form"
lxyang committed
116
               :rules="rules">
lxyang committed
117
        <el-form-item label="任务名称"
118 119
                      prop="name">
          <el-input v-model.trim="form.name"
lxyang committed
120 121 122 123
                    placeholder="请输入任务名称"
                    :disabled="editFlag" />
        </el-form-item>
        <el-form-item label="选择文档"
124 125
                      prop="docDocumentId">
          <el-select v-model="form.docDocumentId"
lxyang committed
126 127 128 129 130 131 132 133
                     clearable
                     placeholder="请选择文档">
            <el-option v-for="item in documentOptions"
                       :key="item.value"
                       :label="item.label"
                       :value="item.value">
            </el-option>
          </el-select>
lxyang committed
134 135 136 137 138
        </el-form-item>
        <el-form-item class="second-level" v-if="form.docDocumentId === 10000" label="文档链接名称"
                      prop="linkName">
          <el-input v-model.trim="form.linkName"
                    placeholder="请输入文档名称" />
lxyang committed
139
        </el-form-item>
140
         <el-form-item class="second-level" v-if="form.docDocumentId === 10000" label="文档链接"
lxyang committed
141 142 143
                      prop="link">
          <el-input v-model.trim="form.link"
                    placeholder="请输入文档链接" />
lxyang committed
144 145
        </el-form-item>
        <el-form-item label="邮箱通知"
146 147
                      prop="emails">
          <el-input v-model.trim="form.emails"
lxyang committed
148 149 150 151
                    placeholder="请输入要订阅和通知的邮箱"
                    :disabled="editFlag" />
        </el-form-item>
        <el-form-item label="任务说明">
152
          <el-input v-model.trim="form.docDesc"
lxyang committed
153 154 155 156
                    type="textarea"
                    placeholder="请输入任务说明" />
        </el-form-item>
      </el-form>
lxyang committed
157 158 159 160 161 162 163 164 165 166 167 168
      <div class="dialog-footer">
        <el-button type="primary"
                   @click="submitForm"
                   :loading="submitLoading">确 定</el-button>
        <el-button class="cancel" @click="cancel">取 消</el-button>
      </div>
    </el-drawer>
    <!-- 添加或修改角色配置对话框 -->
    <!-- <el-dialog class="from-pop-up" 
               :title="title"
               :visible.sync="open"
               width="640px">
lxyang committed
169 170 171 172 173 174 175
      <div slot="footer"
           class="dialog-footer">
        <el-button @click="cancel">取 消</el-button>
        <el-button type="primary"
                   @click="submitForm"
                   :loading="submitLoading">确 定</el-button>
      </div>
lxyang committed
176
    </el-dialog> -->
lxyang committed
177 178 179 180 181
  </div>
</template>

<script>
import {
lxyang committed
182
  doctaskList,
183 184 185
  doctaskUpsert,
  doctaskDocuments,
  doctaskSubscription,
lxyang committed
186 187
  doctaskDelete,
  documentUpsert
lxyang committed
188
} from "@/api/system/customer";
189 190 191
import {
  deepClone
} from "@/utils/index";
lxyang committed
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221
export default {
  data() {
    return {
      // 遮罩层
      loading: true,
      submitLoading: false,
      // 总条数
      total: 0,
      // 角色表格数据
      customerList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 是否显示弹出层(数据权限)
      openDataScope: false,
      // 日期范围
      searchDateRange: [],
      customerStatusOptions: [
        {
          dictValue: "ENABLE",
          dictLabel: "正常"
        },
        {
          dictValue: "DISABLE",
          dictLabel: "失效"
        }
      ],
      // 查询参数
      queryParams: {
lxyang committed
222 223 224
        pageindex: 1,
        pagesize: 10,
        name: ""
lxyang committed
225 226 227 228 229
      },
      queryParamsStatus: true,
      // 表单参数
      form: {
        id: undefined,
230 231
        name: "",
        docDocumentId: "",
lxyang committed
232
        link: "",
233 234
        emails: "",
        docDesc: ""
lxyang committed
235 236
      },
      // 选择文档
237
      documentOptions: [],
lxyang committed
238 239 240 241 242 243 244
      editFlag: false,
      defaultProps: {
        children: "children",
        label: "label"
      },
      // 表单校验
      rules: {
245
        name: [
lxyang committed
246 247
          { required: true, message: "任务名称不能为空", trigger: "blur" }
        ],
248
        emails: [
lxyang committed
249 250 251
          { required: true, message: "邮箱不能为空", trigger: "blur" },
          {
            validator: function (rule, value, callback) {
lxyang committed
252
              let verificationLink = /^((([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6}\,))*(([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})))$/
lxyang committed
253 254 255 256 257 258 259 260 261
              if (verificationLink.test(value) === false) {
                callback(new Error('请输入正确的邮箱地址'))
              } else {
                callback()
              }
            },
            trigger: 'blur'
          }
        ],
262
        docDocumentId: [
lxyang committed
263 264
          { required: true, message: "请选择文档", trigger: "blur" }
        ],
lxyang committed
265 266 267
        linkName: [
          { required: true, message: "文档链接名称不能为空", trigger: "blur" }
        ],
lxyang committed
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295
        link: [
          { required: true, message: "文档链接不能为空", trigger: "blur" },
          {
            validator: function (rule, value, callback) {
              let verificationLink = /(http|https):\/\/([\w.]+\/?)\S*/
              if (verificationLink.test(value) === false) {
                callback(new Error('请输入正确的url'))
              } else {
                callback()
              }
            },
            trigger: 'blur'
          }
        ]
      },
      tableHeights: 0, // table高度
      customerListHeights: 0 // table真实高度
    };
  },
  created() {
    this.searchCustomer();
    this.$nextTick(() => {
      this.tableHeight();
    })
  },
  computed: {
    // 计算过的height
    tableHeightCount() {
lxyang committed
296
      return this.tableHeights - 112
lxyang committed
297 298 299
    }
  },
  methods: {
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317
    dateFilter(time) {    
      if (!time) { 
        // 当时间是null或者无效格式时我们返回空        
        return '-'    
      } else {        
        const date = new Date(time) // 时间戳为10位需*1000,时间戳为13位的话不需乘1000        
        const dateNumFun = (num) => num < 10 ? `0${num}` : num // 使用箭头函数和三目运算以及es6字符串的简单操作。因为只有一个操作不需要{} ,目的就是数字小于10,例如9那么就加上一个0,变成09,否则就返回本身。        // 这是es6的解构赋值。        
        const [Y, M, D, h, m, s] = [            
            date.getFullYear(),            
            dateNumFun(date.getMonth() + 1),            
            dateNumFun(date.getDate()),            
            dateNumFun(date.getHours()),            
            dateNumFun(date.getMinutes()),            
            dateNumFun(date.getSeconds())        
        ]        
        return `${Y}-${M}-${D} ${h}:${m}:${s}` // 一定要注意是反引号,否则无效。    
      }
    },
lxyang committed
318
    tableHeight() {
lxyang committed
319
      let height = document.documentElement.clientHeight - 128
lxyang committed
320 321
      this.tableHeights = height < 580 ? 580 : height
    },
lxyang committed
322 323
    // 跳转跟踪文档详情界面
    routerTaskListDetails(row) {
lxyang committed
324 325
      try {
        this.$router.push({
lxyang committed
326
          path: 'taskListIndex',
lxyang committed
327
          query: {
lxyang committed
328 329 330 331 332 333 334
            id: row.docDocumentId,
            name: row.name
          }
        })
      } catch (err) {
        console.log(err)
      }
lxyang committed
335
    },
lxyang committed
336 337 338 339 340 341 342
    // table显示内容
    isEmpty(row, name) {
      return !row[name] ? '-' : row[name]
    },
    // table显示状态
    statusTable(row) {
      let status = {
343 344 345 346 347
        '-1': {
          text: "暂停中",
          class: "span-table span-gray"
        },
        '0': {
lxyang committed
348 349 350
          text: "已失效",
          class: "span-table span-red"
        },
351
        '1': {
lxyang committed
352 353 354
          text: "运行中",
          class: "span-table span-blue"
        },
355
        '2': {
lxyang committed
356 357 358
          text: "已完成",
          class: "span-table span-green"
        }
lxyang committed
359
      }
360
      return status[row.status.toString()] ? status[row.status.toString()] : {
lxyang committed
361 362 363 364 365
        text: "",
        class: ""
      }
    },
    handleStatusChange(row) {
366 367 368 369 370 371 372 373 374
      let isTrue = row.subscription === '0' ? true : false
      doctaskSubscription({id: row.id, sub: isTrue})
        .then((response) => {
          if (response.code === 200) {
            this.searchCustomer();
            this.msgSuccess("修改状态成功");
          }
        })
        .catch(() => this.msgError("修改状态失败"));
lxyang committed
375 376 377
    },
    searchCustomer() {
      this.loading = true;
378
      this.customerList = []
lxyang committed
379 380
      doctaskList(this.queryParams)
        .then(response => {
381 382 383 384
          if (response.code === 200) {
            let content = response.content
            if (this.total !== content.totalSize) {
              this.total = content.totalSize
lxyang committed
385
            }
386 387 388 389 390 391 392 393 394 395 396 397 398
            let values = content.value
            values.forEach(item => {
              if (item.subscription) {
                item.subscription = '0'
              } else {
                item.subscription = '1'
              }
            });
            this.$set(this, 'customerList', values)
          } else {
            this.customerList = []
          }
          this.loading = false;
lxyang committed
399 400 401
          this.$nextTick(() => {
            this.customerListHeights = this.$refs.customerListHeight.offsetHeight
          })
lxyang committed
402 403 404 405
        })
        .catch(error => {
          this.loading = false;
        });
lxyang committed
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423
        this.$nextTick(() => {
          this.customerListHeights = this.$refs.customerListHeight.offsetHeight
        })
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 取消按钮(数据权限)
    cancelDataScope() {
      this.openDataScope = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: undefined,
424 425
        name: "",
        docDocumentId: "",
lxyang committed
426
        link: "",
427 428
        emails: "",
        docDesc: ""
lxyang committed
429 430 431 432 433 434 435 436 437 438 439 440 441
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.current = 1;
      this.searchCustomer();
    },
    /** 重置筛选 */
    resetHandleQuery() {
      this.queryParams = {
        current: 1,
        size: 10,
442
        name: ""
lxyang committed
443 444 445
      };
      this.searchCustomer();
    },
lxyang committed
446
    addDoctaskDocuments(isChange) {
447 448 449 450 451 452 453 454 455 456 457
      this.documentOptions = []
      doctaskDocuments()
        .then(response => {
          if (response.code === 200) {
            this.documentOptions = response.content.map(item => {
              return  {
                'label': item.name,
                'value': item.id
              }
            })
          }
lxyang committed
458 459 460 461 462 463
          if (isChange === 0) {
            this.documentOptions.push({
              label: "其他",
              value: 10000
            })
          }
464 465
        })
        .catch(() => {
lxyang committed
466 467 468 469 470 471
          if (isChange === 0) {
            this.documentOptions.push({
              label: "其他",
              value: 10000
            })
          }
472 473
        });
    },
lxyang committed
474 475 476
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
lxyang committed
477
      this.addDoctaskDocuments(0);
lxyang committed
478 479 480 481 482 483 484
      this.open = true;
      // this.editFlag = false;
      this.title = "创建跟踪任务";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
lxyang committed
485
      this.addDoctaskDocuments(1);
486 487 488
      this.handleUpdateFrom(row)
      this.open = true;
      this.title = "修改跟踪任务";
lxyang committed
489 490 491 492
    },
    // 修改from赋值
    handleUpdateFrom(row) {
      this.form.id = row.id ? row.id : undefined
493 494
      this.form.name = row.name ? row.name : ""
      this.form.docDocumentId = row.docDocumentId ? row.docDocumentId : ""
lxyang committed
495
      this.form.link = row.link ? row.link : ""
496 497
      this.form.emails = row.emails ? row.emails : ""
      this.form.docDesc = row.docDesc ? row.docDesc : ""
lxyang committed
498 499 500 501 502
    },
    /** 提交按钮 */
    submitForm: function() {
      this.$refs["form"].validate(valid => {
        if (valid) {
503 504 505 506 507 508 509
          let form = deepClone(this.form)
          let fromNew = {
            name: form.name,
            emails: form.emails,
            docDesc: form.docDesc
          }
          if (form.id) {
lxyang committed
510
            this.submitLoading = true;
511 512 513 514 515 516 517 518 519 520 521 522 523 524
            fromNew.id = form.id
            let doctaskUpserts = doctaskUpsert(fromNew)
            Promise.all([doctaskUpserts]).then((result) => {
              if (result[0].code === 200) {
                this.msgSuccess("修改成功");
                this.open = false;
                this.queryParams.pageindex = 1
                this.searchCustomer();
              }
              this.submitLoading = false;
            }).catch((error) => {
              this.msgError(error);  
              this.submitLoading = false;
            })
lxyang committed
525 526 527 528
          }
          // 否则新建
          else {
            this.submitLoading = true;
lxyang committed
529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547
            if (form.docDocumentId !== 10000) {
              fromNew.docDocumentId = Number(form.docDocumentId)
              let doctaskUpserts = doctaskUpsert(fromNew)
              Promise.all([doctaskUpserts]).then((result) => {
                if (result[0].code === 200) {
                  this.msgSuccess("新建成功");
                  this.open = false;
                  this.queryParams.pageindex = 1
                  this.searchCustomer();
                }
                this.submitLoading = false;
              }).catch((error) => {
                this.msgError(error);  
                this.submitLoading = false;
              })
            } else {
              let documentUpsertData = {
                name: form.linkName,
                docUrl: form.link
548
              }
lxyang committed
549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571
              let documentUpserts = documentUpsert(documentUpsertData)
              Promise.all([documentUpserts]).then((result) => {
                if (result[0].code === 200) {
                  fromNew.docDocumentId = result[0].content.id
                  doctaskUpsert(fromNew).then(response => {
                      if (response.code === 200) {
                        this.msgSuccess("新建成功");
                        this.open = false;
                        this.queryParams.pageindex = 1
                        this.searchCustomer();
                      }
                      this.submitLoading = false;
                    })
                    .catch((error) => {
                      this.msgError(error);  
                      this.submitLoading = false;
                    })
                }
              }).catch((error) => {
                this.msgError(error);  
                this.submitLoading = false;
              })
            }
lxyang committed
572 573 574 575 576 577 578
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      this.$confirm(
579
        '是否确认删除名称为"' + row.name + '"的跟踪任务?',
lxyang committed
580 581 582 583 584 585 586 587
        "警告",
        {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        }
      )
        .then(() => {
588 589 590 591 592 593 594 595
          doctaskDelete(row.id).then(response => {
            if (response.code === 200) {
              this.msgSuccess("删除成功");
              this.queryParams.pageindex = 1
              this.searchCustomer();
            }
          })
          .catch((error) => this.msgError(error))
lxyang committed
596
        })
597
        .catch((error) => this.msgError(error));
lxyang committed
598 599 600 601 602 603
    }
  }
};
</script>
<style scoped lang="scss">
@import '@/views/main.scss';
lxyang committed
604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647
.table-center {
  width: calc(100% - 32px);
  height: calc(100% - 96px);
  display: inline-block;
  margin: 16px;
  background: #fff;
}
/deep/.seachTable {
  margin: 16px;
  width: calc(100% - 32px);
  &.el-table {
    th {
      background: #fff;
      color: #a8a8a8;
    }
    .el-table__header-wrapper th {
      color: #a8a8a8;
    }
    .el-button--small {
      font-size: 14px;
      color: #0052d9;
    }
    .el-button + .el-button {
      margin-left: 16px;
    }
    .span-table {
      padding-left: 16px;
      position: relative;
      &::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translate(0, -50%);
        width: 8px;
        height: 8px;
        border-radius: 50%;
      }
    }
    .span-red {
      &::before {
        background: rgba(227, 77, 89, 1);
      }
    }
648 649 650 651 652
    .span-gray {
      &::before {
        background: rgb(139, 139, 139);
      }
    }
lxyang committed
653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745
    .span-blue {
      &::before {
        background: rgba(0, 82, 217, 1);
      }
    }
    .span-green {
      &::before {
        background: rgba(5, 168, 112, 1);
      }
    }
  }
}
/deep/.pagination-container {
  height: 32px;
  margin: 0 16px 16px 16px;
  padding: 0 !important;
  width: calc(100% - 32px);
}
/deep/.el-pagination.is-background {
      .el-pager li {
          background-color: #fff;
          border-radius: 3px;
          color: rgba(0, 0, 0, 0.6000);
          border: 1px solid rgba(220, 220, 220, 1);
          border-radius: 3px;
          &:not(.disabled).active {
              color: #fff;
              background: rgba(0, 82, 217, 1);
          }
      }
      .btn-prev, .btn-next {
          border: 0;
          background: #fff;
          color: rgba(0, 0, 0, 0.6000);
      }
  }
  /deep/.el-drawer__header {
    height: 64px;
    font-size: 16px;
    padding: 0;
    line-height: 64px;
    color: rgba(0, 0, 0, 0.9000);
    font-weight: 500;
    margin-bottom: 26px;
    padding: 0 24px;
    box-shadow: inset 0px -1px 0px 0px #dcdcdc;
  }
  .el-form {
    padding: 0 24px;
    /deep/.el-form-item__label {
      width: 100% !important;
      text-align: left;
    }
    /deep/.el-form-item__content {
      margin-left: 0 !important;
    }
    /deep/.el-select, /deep/.el-select > .el-input {
      width: 100%;
    }
  }
  .dialog-footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    line-height: 64px;
    height: 64px;
    padding: 0 24px;
    border-top: 1px solid rgba(231, 231, 231, 1);
    /deep/.el-button--medium {
      width: 60px;
      height: 32px;
      border-radius: 3px;
      padding: 0;
      text-align: center;
      line-height: 32px;
      font-size: 14px;
    }
    /deep/.el-button--primary {
      background: #0052D9;
      border-color: #0052D9;
    }
    .el-button--medium {
      &.cancel {
        background: #E7E7E7;
        border-color: #E7E7E7;
        color: rgba(0, 0, 0, 0.9000);
      }
    }
    .el-button + .el-button {
      margin-left: 8px;
    }
  }
lxyang committed
746 747 748
  .second-level {
    margin-left: 20px;
  }
lxyang committed
749
</style>