index.vue 21.5 KB
Newer Older
王晓倩's avatar
王晓倩 committed
1 2
<template>
  <div class="app-container">
3
    <el-form :model="queryParams" ref="queryParams" :inline="true" v-show="showSearch" label-width="80px">
王晓倩's avatar
王晓倩 committed
4 5 6 7 8 9 10 11 12 13
      <el-form-item label="隐患类型" prop="hiddenType">
        <el-select v-model="queryParams.hiddenType" placeholder="请选择隐患类型" clearable size="small">
          <el-option
            v-for="dict in typeOptions"
            :key="dict.dictValue"
            :label="dict.dictLabel"
            :value="dict.dictValue"
          ></el-option>
        </el-select>
      </el-form-item>
14 15 16 17 18 19 20 21 22 23
      <el-form-item label="整治情况" prop="remediation">
        <el-select v-model="queryParams.remediation" placeholder="请选择整治情况" clearable size="small">
          <el-option
            v-for="dict in remediationOptions"
            :key="dict.dictValue"
            :label="dict.dictLabel"
            :value="dict.dictValue"
          ></el-option>
        </el-select>
      </el-form-item>
王晓倩's avatar
王晓倩 committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
      <el-form-item label="发现时间" prop="hiddenFindDate">
        <el-date-picker clearable size="small"
                        v-model="queryParams.hiddenFindDateStart"
                        type="datetime"
                        value-format="yyyy-MM-dd HH:mm:ss"
                        placeholder="请选择起始时间">
        </el-date-picker><span style="color: #bebfc3"> - </span>
        <el-date-picker clearable size="small"
                        v-model="queryParams.hiddenFindDateEnd"
                        type="datetime"
                        value-format="yyyy-MM-dd HH:mm:ss"
                        placeholder="请选择截止时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
		  :loading="exportLoading"
          @click="handleExport"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="hiddenList" >
68
      <el-table-column label="隐患名称" align="center" prop="hiddenTitle" width="200px"/>
69
      <el-table-column label="隐患等级" align="center" prop="hiddenType">
王晓倩's avatar
王晓倩 committed
70
        <template slot-scope="scope">
71 72 73
          <span v-if="scope.row.hiddenType == '1'">一级隐患</span>
          <span v-if="scope.row.hiddenType == '2'">二级隐患</span>
          <span v-if="scope.row.hiddenType == '3'">三级隐患</span>
王晓倩's avatar
王晓倩 committed
74 75
        </template>
      </el-table-column>
76
      <el-table-column label="隐患位置" align="center" prop="hiddenLocation" width="300px"/>
77
      <el-table-column label="隐患发现人员" align="center" prop="hiddenFindPeople"/>
王晓倩's avatar
王晓倩 committed
78
      <el-table-column label="发现时间" align="center" prop="hiddenFindDate" width="150px"/>
79
      <el-table-column label="处理方案" align="center" prop="dealPlanUrl">
王晓倩's avatar
王晓倩 committed
80 81
        <template slot-scope="scope">
          <span
82 83
            class="dbtn"
            @click="checkFile(scope.row.dealPlanUrl)"
王晓倩's avatar
王晓倩 committed
84 85 86 87
            v-if="scope.row.dealPlan != ''"
          >
            <i class="el-icon el-icon-view"></i>查看/下载
          </span>
88 89 90
          <span v-else>-</span>
        </template>
      </el-table-column>
91
      <el-table-column label="整治情况" align="center" prop="remediation">
92
        <template slot-scope="scope">
93 94
          <span v-if="scope.row.remediation == '1'">已完成</span>
          <span v-if="scope.row.remediation == '2'">未完成</span>
王晓倩's avatar
王晓倩 committed
95 96
        </template>
      </el-table-column>
97
      <el-table-column label="操作" align="center" width="180px">
王晓倩's avatar
王晓倩 committed
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="showDetail(scope.row)"
          >详情</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改隐患整治台账对话框 -->
130 131
      <el-dialog :title="title1" :visible.sync="open1" width="800px" append-to-body @cancel="cancel1">
        <el-form ref="form" :model="form" :rules="rules" label-width="120px">
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
          <el-row>
            <el-col :span="11">
              <el-form-item label="隐患名称" prop="hiddenTitle">
                <el-input v-model="form.hiddenTitle" placeholder="请输入隐患名称" />
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="隐患等级" prop="hiddenType">
                <el-select v-model="form.hiddenType" placeholder="请选择隐患等级" style="width: 100%">
                  <el-option
                    v-for="dict in typeOptions"
                    :key="dict.dictValue"
                    :label="dict.dictLabel"
                    :value="dict.dictValue"
                  ></el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="23">
              <el-form-item label="隐患内容" prop="hiddenContent">
                <el-input type="textarea" v-model="form.hiddenContent" placeholder="请输入隐患内容"/>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="23">
              <el-form-item label="隐患位置" prop="hiddenLocation">
                <el-input v-model="form.hiddenLocation" placeholder="请输入隐患位置" />
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="23">
              <el-form-item label="经纬度坐标" prop="longitude">
王晓倩's avatar
王晓倩 committed
168
                <el-col :span="9">
169
                  <el-input v-model="form.longitude" placeholder="请输入经度" />
王晓倩's avatar
王晓倩 committed
170 171
                </el-col>
                <el-col :span="9" style="margin-left: 10px">
172
                  <el-input v-model="form.latitude" placeholder="请输入纬度"/>
王晓倩's avatar
王晓倩 committed
173 174 175 176
                </el-col>
                <el-col :span="3" style="margin-left: 30px">
                  <el-button type="primary" plain @click="MapdialogFun">选择经纬度</el-button>
                </el-col>
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="11">
              <el-form-item label="隐患发现人员" prop="hiddenFindPeople">
                <el-input v-model="form.hiddenFindPeople" placeholder="请输入隐患发现人员" />
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="发现时间" prop="hiddenFindDate">
                <el-date-picker clearable size="small"
                                v-model="form.hiddenFindDate"
                                type="datetime"
                                value-format="yyyy-MM-dd HH:mm:ss"
                                placeholder="请选择发现时间"
                                style="width: 100%">
                </el-date-picker>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="23">
              <el-form-item label="处理方案" prop="dealPlan">
                <FileUpload
                  listType="picture"
                  @resFun="getFileInfo"
                  @remove="listRemove"
                  :fileArr="fileList"
                />
                <el-input v-show="false" disabled v-model="form.dealPlan"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="23">
              <el-form-item label="整治情况" prop="remediation">
214 215 216 217 218 219 220 221
                <el-select v-model="form.remediation" placeholder="请选择整治情况" clearable size="small">
                  <el-option
                    v-for="dict in remediationOptions"
                    :key="dict.dictValue"
                    :label="dict.dictLabel"
                    :value="dict.dictValue"
                  ></el-option>
                </el-select>
222 223 224 225 226 227 228 229 230 231
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="23">
              <el-form-item label="备注信息" prop="remarks">
                <el-input type="textarea" v-model="form.remarks" placeholder="请输入备注信息" />
              </el-form-item>
            </el-col>
          </el-row>
232 233 234 235
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="submitForm">确 定</el-button>
          <el-button @click="cancel1">取 消</el-button>
236
        </div>
237
      </el-dialog>
238

239 240 241 242 243 244 245
      <el-dialog :title="title2" :visible.sync="open2" width="1200px" append-to-body @cancel="cancel2" @close="cancel2">
        <el-row>
          <el-col :span="14">
            <el-form ref="detailForm" :model="detailForm" label-width="120px">
              <el-row>
                <el-col :span="10">
                  <el-form-item label="隐患名称:">
246
                    <el-input v-model="detailForm.hiddenTitle" disabled/>
247 248
                  </el-form-item>
                  <el-form-item label="隐患发现人员:">
249
                    <el-input v-model="detailForm.hiddenFindPeople" disabled/>
250 251
                  </el-form-item>
                  <el-form-item label="发现时间:">
252
                    <el-input v-model="detailForm.hiddenFindDate" disabled/>
253 254 255 256
                  </el-form-item>
                </el-col>
                <el-col :span="13">
                  <el-form-item label="隐患等级:">
257 258 259
                    <el-input v-if="detailForm.hiddenType == '1'" value="一级隐患" disabled/>
                    <el-input v-if="detailForm.hiddenType == '2'" value="二级隐患" disabled/>
                    <el-input v-if="detailForm.hiddenType == '3'" value="三级隐患" disabled/>
260 261
                  </el-form-item>
                  <el-form-item label="隐患位置:">
262
                    <el-input v-model="detailForm.hiddenLocation" disabled/>
263
                  </el-form-item>
264 265 266 267 268 269 270 271
                  <el-form-item label="整治情况:">
                    <el-input v-if="detailForm.remediation == '1'" value="已完成" disabled/>
                    <el-input v-if="detailForm.remediation == '2'" value="未完成" disabled/>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="23">
272 273 274 275
                  <el-form-item label="处理方案:">
                    <span class="dbtn" @click="checkFile(detailForm.dealPlanUrl)" v-if="detailForm.dealPlan != ''">
                      <i class="el-icon el-icon-view"></i>查看/下载
                    </span>
276
                    <span v-else><el-input disabled/></span>
277 278 279 280
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row>
281 282 283 284 285
                <el-col :span="23">
                  <el-form-item label="隐患内容:">
                    <el-input type="textarea" v-model="detailForm.hiddenContent" disabled/>
                  </el-form-item>
                </el-col>
286 287
              </el-row>
              <el-row>
288 289 290 291 292
                <el-col :span="23">
                  <el-form-item label="备注信息:">
                    <el-input type="textarea" v-model="detailForm.remarks" disabled/>
                  </el-form-item>
                </el-col>
293 294 295 296 297
              </el-row>
            </el-form>
          </el-col>

          <el-col :span="9">
298
            <div style="width: 100%;height: 390px; border: 1px solid rgb(218, 213, 213);margin-bottom: 10px;">
299
              <div style="width: 100%;height: 100%" id="hiddenContainer"></div>
300 301 302 303
            </div>
          </el-col>
        </el-row>
      </el-dialog>
王晓倩's avatar
王晓倩 committed
304

305 306 307 308 309 310 311
    <GetPos
      :dialogVisible.sync="dialogTableVisible"
      device=""
      :devicePos="devicePos"
      @close="dialogcancelFun"
      @getPath="getPath"
    />
王晓倩's avatar
王晓倩 committed
312 313 314 315 316 317

  </div>
</template>

<script>
import { listHidden, getHidden, delHidden, addHidden, updateHidden, exportHidden } from "@/api/standingBook/hidden";
318
import FileUpload from '@/components/FileUpload';
319
import GetPos from '@/components/GetPos';
320
import { EditorMap } from "@/utils/mapClass/getPath.js";
王晓倩's avatar
王晓倩 committed
321

322
let uploadfile = require("@/assets/uploadfile.png");
王晓倩's avatar
王晓倩 committed
323 324 325
export default {
  name: "Hidden",
  components: {
326 327
    FileUpload,
    GetPos
王晓倩's avatar
王晓倩 committed
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347
  },
  data() {
    return {
      // 遮罩层
      loading: true,
      // 导出遮罩层
      exportLoading: false,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 隐患整治台账表格数据
      hiddenList: [],
      // 弹出层标题
348 349
      title1: "",
      title2: "",
王晓倩's avatar
王晓倩 committed
350
      // 是否显示弹出层
351 352
      open1: false,
      open2: false,
王晓倩's avatar
王晓倩 committed
353 354
      // 隐患类型字典
      typeOptions: [],
355 356
      // 整治情况字典
      remediationOptions: [],
王晓倩's avatar
王晓倩 committed
357 358 359 360
      // 上传文件列表
      fileList: [],
      // 地图
      dialogTableVisible: false,
361
      devicePos: [],
362
      map: null,
王晓倩's avatar
王晓倩 committed
363 364 365 366 367 368
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        hiddenTitle: null,
        hiddenType: null,
369
        remediation: null,
王晓倩's avatar
王晓倩 committed
370 371 372 373 374
        hiddenFindDateStart: null,
        hiddenFindDateEnd: null
      },
      // 表单参数
      form: {},
375
      detailForm: {},
王晓倩's avatar
王晓倩 committed
376 377 378 379 380
      // 表单校验
      rules: {
        hiddenTitle: [
          { required: true, message: "请输入隐患名称", trigger: "blur" },
        ],
381 382 383
        hiddenType: [
          { required: true, message: "请选择隐患等级", trigger: "blur" },
        ],
王晓倩's avatar
王晓倩 committed
384 385 386 387
        hiddenContent: [
          { required: true, message: "请输入隐患内容", trigger: "blur" },
        ],
        hiddenLocation: [
王晓倩's avatar
王晓倩 committed
388
          { required: true, message: "请输入隐患位置", trigger: "blur" },
王晓倩's avatar
王晓倩 committed
389 390
        ],
        longitude: [
391
          { required: true, message: "请输入经纬度", trigger: "blur" },
王晓倩's avatar
王晓倩 committed
392 393 394 395 396 397 398
        ],
        hiddenFindPeople: [
          { required: true, message: "请输入隐患发现人员", trigger: "blur" },
        ],
        hiddenFindDate: [
          { required: true, message: "请选择发现时间", trigger: "change" },
        ],
399 400 401
        remediation: [
          { required: true, message: "请选择整治情况", trigger: "change" },
        ],
王晓倩's avatar
王晓倩 committed
402 403 404 405 406 407 408 409 410 411 412
        dealPlan: [
          { required: true, message: "请上传文件", trigger: "change" },
        ],
      }
    };
  },
  created() {
    this.getList();
    this.getDicts("t_hidden_type").then(response => {
      this.typeOptions = response.data;
    });
413 414 415
    this.getDicts("t_remediation").then(response => {
      this.remediationOptions = response.data;
    });
王晓倩's avatar
王晓倩 committed
416 417 418 419 420 421 422 423 424 425 426 427
  },
  methods: {
    /** 查询隐患整治台账列表 */
    getList() {
      this.loading = true;
      listHidden(this.queryParams).then(response => {
        this.hiddenList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
428 429 430
    cancel1() {
      this.open1 = false;
      this.reset1();
王晓倩's avatar
王晓倩 committed
431 432
      this.fileList = [];
    },
433 434 435
    cancel2() {
      this.open2 = false;
      this.reset2();
436
      this.map.destroy();
437
    },
王晓倩's avatar
王晓倩 committed
438
    // 表单重置
439
    reset1() {
王晓倩's avatar
王晓倩 committed
440 441 442 443 444
      this.form = {
        hiddenId: null,
        hiddenTitle: null,
        hiddenContent: null,
        hiddenLocation: null,
445 446
        longitude:null,
        latitude: null,
王晓倩's avatar
王晓倩 committed
447 448 449 450 451 452 453 454 455 456 457 458 459
        hiddenType: null,
        hiddenFindPeople: null,
        hiddenFindDate: null,
        dealPlan: null,
        remediation: null,
        createBy: null,
        createTime: null,
        updateBy: null,
        updateTime: null,
        isDel: null,
        remarks: null
      };
      this.resetForm("form");
460
      this.fileList = [];
461
      this.devicePos = [];
王晓倩's avatar
王晓倩 committed
462
    },
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483
    reset2() {
      this.detailForm = {
        hiddenId: null,
        hiddenTitle: null,
        hiddenContent: null,
        hiddenLocation: null,
        longitude:null,
        latitude: null,
        hiddenType: null,
        hiddenFindPeople: null,
        hiddenFindDate: null,
        dealPlan: null,
        remediation: null,
        createBy: null,
        createTime: null,
        updateBy: null,
        updateTime: null,
        isDel: null,
        remarks: null
      };
      this.resetForm("detailForm");
484
      this.devicePos = [];
485
    },
王晓倩's avatar
王晓倩 committed
486 487 488 489 490 491 492
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
493 494 495 496 497 498 499 500 501 502
      this.queryParams = {
        pageNum: 1,
        pageSize: 10,
        hiddenTitle: null,
        hiddenType: null,
        remediation: null,
        hiddenFindDateStart: null,
        hiddenFindDateEnd: null
    },
      this.resetForm("queryParams");
王晓倩's avatar
王晓倩 committed
503 504 505 506
      this.handleQuery();
    },
    /** 新增按钮操作 */
    handleAdd() {
507 508 509
      this.reset1();
      this.open1 = true;
      this.title1 = "添加隐患整治台账";
王晓倩's avatar
王晓倩 committed
510 511 512
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
513
      this.reset1();
514
      getHidden(row.hiddenId).then(response => {
王晓倩's avatar
王晓倩 committed
515
        this.form = response.data;
516 517 518 519 520 521
        if (this.form.dealPlan) {
          this.fileList.push({
            name: this.form.dealPlan,
            url: uploadfile,
          });
        }
522
        this.devicePos = [this.form.longitude, this.form.latitude];
523 524
        this.open1 = true;
        this.title1 = "修改隐患整治台账";
王晓倩's avatar
王晓倩 committed
525 526 527 528 529 530 531 532 533
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.hiddenId != null) {
            updateHidden(this.form).then(response => {
              this.msgSuccess("修改成功");
534
              this.open1 = false;
王晓倩's avatar
王晓倩 committed
535 536 537 538 539
              this.getList();
            });
          } else {
            addHidden(this.form).then(response => {
              this.msgSuccess("新增成功");
540
              this.open1 = false;
王晓倩's avatar
王晓倩 committed
541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      // const hiddenIds = row.hiddenId || this.ids;
      row.isDel = "1";
      this.$confirm('是否确认删除"' + row.hiddenTitle + '"的台账?', "警告", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        }).then(function() {
          return updateHidden(row);
        }).then(() => {
          this.getList();
          this.msgSuccess("删除成功");
        }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      const queryParams = this.queryParams;
      this.$confirm('是否确认导出所有隐患整治台账数据项?', "警告", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        }).then(() => {
          this.exportLoading = true;
          return exportHidden(queryParams);
        }).then(response => {
          this.download(response.msg);
          this.exportLoading = false;
        }).catch(() => {});
    },
    /** 详细信息跳转 */
    showDetail(row) {
579
      this.reset2();
580
      getHidden(row.hiddenId).then(response => {
581
        this.detailForm = response.data;
582
        this.devicePos = [this.detailForm.longitude, this.detailForm.latitude];
583 584
        this.open2 = true;
        this.title2 = "隐患整治台账详情";
585 586

        this.$nextTick(() => {
587
          this.map = new EditorMap("hiddenContainer", {}, this);
588 589 590 591
          this.map.addDevice({ path: this.devicePos });
          this.map.nowMouseTarget = null;
          this.map.mousetoolClose(false);
        });
592
      });
王晓倩's avatar
王晓倩 committed
593 594
    },
    checkFile(url) {
595
      window.open(url,'_blank');
王晓倩's avatar
王晓倩 committed
596 597
    },
    getFileInfo(res){
598 599 600 601 602 603
      this.form.dealPlan = res.fileName;
      this.form.dealPlanUrl = res.url;
      this.fileList.push({
        name: res.fileName,
        url: uploadfile,
      });
王晓倩's avatar
王晓倩 committed
604 605 606 607 608 609 610
    },
    listRemove(e) {
      this.form.dealPlan = "";
      this.fileList = [];
    },
    MapdialogFun() {
      this.dialogTableVisible = true;
611 612
      // this.devicePos = [this.form.longitude, this.form.latitude];
      console.log("devicePos",this.devicePos)
王晓倩's avatar
王晓倩 committed
613 614 615 616
    },
    dialogcancelFun() {
      this.dialogTableVisible = false;
    },
617
    getPath(res){
王晓倩's avatar
王晓倩 committed
618 619
      console.log("res", res);
      console.log(this.form.longitude, this.form.latitude);
620 621 622 623
      //确认选择经纬度
      this.form.longitude = res[0];
      this.form.latitude = res[1];
    }
王晓倩's avatar
王晓倩 committed
624 625 626
  }
};
</script>
627 628 629
<style>
  .dbtn {
    display: inline-block;
630 631 632
    line-height: normal;
    padding-left: 2px;
    padding-right: 2px;
633 634 635 636 637 638 639 640 641 642 643
    cursor: pointer;
    border-radius: 3px;
    border-style: solid;
    border-width: 0;
    color: rgb(48, 180, 107);
  }
  .dbtn:hover {
    border-width: 1px;
    border-color: rgb(48, 180, 107);
  }
</style>