index.vue 22.5 KB
Newer Older
yaqizhang's avatar
yaqizhang committed
1 2 3 4
<template>
    <div class="app-container detail" style="background-color: rgb(238, 241, 245);">
      <!-- 工单信息 -->
      <div style="padding-top: 10px;background: #fff;height: 100%;">
yaqizhang's avatar
yaqizhang committed
5
        <el-row>
yaqizhang's avatar
yaqizhang committed
6
          <el-col :span="24" style="padding-left: 15px;margin-bottom: -10px;">
yaqizhang's avatar
yaqizhang committed
7 8 9 10 11 12
            <div style="height: 45px;" @click="$router.go(-1)">
              <el-button size="medium" type="text" style="font-size: 18px; color: rgb(7, 63, 112);float: left;">返回
              </el-button>
              <div style="float: left;margin-top: 8px;margin-left: 5px;"><img src="../../../assets/logo/fanhui.png" style="width: 25px;" alt=""></div>
            </div>
          </el-col>
yaqizhang's avatar
yaqizhang committed
13
        </el-row>
yaqizhang's avatar
yaqizhang committed
14
        <el-row style="width: 100%;height: 40px;">
yaqizhang's avatar
yaqizhang committed
15 16 17 18 19
          <el-col :span="24">
            <div style="">
              <ul><li style="list-style: none;font-weight: 900;font-size: 20px;color: #053b6a;">工单反馈详情</li></ul>
            </div>
          </el-col>
yaqizhang's avatar
yaqizhang committed
20
        </el-row>
yaqizhang's avatar
yaqizhang committed
21 22 23 24 25 26 27 28 29
          <el-steps :active="active" finish-status="success" simple prop="orderStatus" style="margin-top: 5px">
              <el-step title="未接收" ></el-step>
              <el-step title="已接收" ></el-step>
          <!--  <el-step title="进行中" ></el-step>-->
              <el-step title="已反馈" ></el-step>
              <el-step title="已归档" ></el-step>
          </el-steps>

          <el-divider></el-divider>
yaqizhang's avatar
yaqizhang committed
30
          <el-row style="width: 100%;margin-top: -15px;">
yaqizhang's avatar
yaqizhang committed
31 32 33 34
            <el-col :span="24">
              <div style="color: #31EAEA;height: 25px;">
                <ul><li>详细信息</li></ul>
              </div>
35
            </el-col>
yaqizhang's avatar
yaqizhang committed
36
          </el-row>
yaqizhang's avatar
yaqizhang committed
37
          <el-row style="width: 100%;padding: 10px;padding-left: 40px;margin-bottom: -10px;">
yaqizhang's avatar
yaqizhang committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
            <el-col :span="6">
              <el-form ref="form" v-model="form" :rules="rules" label-width="100px" style="width: 100%;">
                <el-form-item label="工单类型:" prop="orderType">
                  <font v-if="form.orderType == 1">巡检信息</font>
                  <font v-if="form.orderType == 2">隐患信息</font>
                  <font v-if="form.orderType == 3">报警信息</font>
                </el-form-item>
                <el-form-item label="工单编号:" prop="orderId">
                  <font>{{form.orderId}}</font>
                </el-form-item>
                <el-form-item label="工单名称:" prop="orderName">
                  <font>{{form.orderName}}</font>
                </el-form-item>
                <el-form-item label="工单状态:" prop="orderStatus">
                  <font v-if="form.orderStatus == 0">未接收</font>
                  <font v-if="form.orderStatus == 1">已接收</font>
                  <font v-if="form.orderStatus == 2">已反馈</font>
                  <font v-if="form.orderStatus == 3">已归档</font>
                </el-form-item>
                <el-form-item label="指定执行人员:" prop="appointInspectorName">
                  <font>{{form.appointInspectorName}}</font>
                </el-form-item>
yaqizhang's avatar
yaqizhang committed
60
                <el-form-item label="工单描述:" prop="remarks" style="width: 170%;">
yaqizhang's avatar
yaqizhang committed
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
                  <font>{{form.remarks}}</font>
                </el-form-item>
            </el-form>
            </el-col>
            <el-col :span="6">
              <el-form ref="form" v-model="form" :rules="rules" label-width="100px" style="width: 100%;">
                <el-form-item label="设备类型:" prop="deviceType" v-if="form.orderType != 1">
                  <font v-if="form.deviceType == 0">管道</font>
                  <font v-if="form.deviceType == 1">调压阀</font>
                  <font v-if="form.deviceType == 2">阀门井</font>
                  <font v-if="form.deviceType == 3">流量计</font>
                  <font v-if="form.deviceType == 4">压力表</font>
                </el-form-item>
                <el-form-item label="设备名称:" prop="deviceName">
                  <font v-if="form.orderType != 1">{{form.deviceName}}</font>
                  <el-tree
                    :data="deviceOptions"
                    :props="defaultProps"
                    :expand-on-click-node="false"
                    ref="tree"
                    @node-click="handleNodeClick"
                    v-if="form.orderType == 1"
                  />
                </el-form-item>
                <el-form-item label="设备位置:" v-if="form.orderType != 1">
                  <font>{{form.address}}</font>
                </el-form-item>
                <el-form-item label="工单进度:" v-if="form.orderType == 1">
                  <font>{{form.finishNum}}/{{form.deviceNum}}</font>
                </el-form-item>
                <el-form-item label="下发时间:" prop="allotTime">
                  <font>{{form.allotTime}}</font>
                </el-form-item>
              </el-form>
            </el-col>
            <el-col :span="12">
              <div id="marbox" style="width: 100%;height: 250px;margin-top: -35px; border: 1px solid rgb(218, 213, 213);">
                <div style="width: 100%;height: 100%" id="container"></div>
              </div>
            </el-col>
          </el-row>
        <!-- <div style="width: 100%;height: 265px;">
103 104 105 106




yaqizhang's avatar
yaqizhang committed
107
        </div> -->
yaqizhang's avatar
yaqizhang committed
108 109 110
        <!-- 接单信息 -->
        <div v-if="form.actualTime != '' && form.actualTime != null">
          <el-divider></el-divider>
yaqizhang's avatar
yaqizhang committed
111
          <el-row style="margin-top: -15px;">
yaqizhang's avatar
yaqizhang committed
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
            <el-col :span="24">
              <div style="color: #31EAEA;width: 100%;height: 40px;">
                <ul><li>接单信息</li></ul>
              </div>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="6">
              <el-form ref="form" v-model="form" :rules="rules" label-width="100px" style="height: 30px;width: 100%;">
                <el-form-item label="接单人:" prop="actualInspectorName">
                  <font>{{form.actualInspectorName}}</font>
                </el-form-item>
              </el-form>
            </el-col>
            <el-col :span="6">
              <el-form ref="form" v-model="form" :rules="rules" label-width="100px" style="height: 30px;width: 100%;">
                <el-form-item label="接单时间:" prop="actualTime">
                  <font>{{form.actualTime}}</font>
                </el-form-item>
              </el-form>
            </el-col>
          </el-row>
yaqizhang's avatar
yaqizhang committed
134 135 136
        </div>
        <!-- 反馈信息 -->
        <div style="width: 100%;font-weight: 600;" v-if="form.feedbackList != null">
yaqizhang's avatar
yaqizhang committed
137
          <el-divider></el-divider>
yaqizhang's avatar
yaqizhang committed
138 139 140
          <div style="color: #31EAEA;width: 100%;height: 40px;">
            <ul><li>反馈信息</li></ul>
          </div>
yaqizhang's avatar
yaqizhang committed
141
              <div class="block" style="width: 95%;">
yaqizhang's avatar
yaqizhang committed
142 143 144
                <el-timeline ref="timeline">
                  <el-timeline-item v-for="(activity, index) in form.feedbackList"  v-show='index>1?false:true' :key="index" :timestamp="activity.feedbackTime">
                    <el-card>
yaqizhang's avatar
yaqizhang committed
145 146
                      <el-row>
                        <el-col :span="6">
yaqizhang's avatar
yaqizhang committed
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
                          <p>设备类型:
                            <span v-if="activity.deviceType == 0">管道</span>
                            <span v-if="activity.deviceType == 1">调压箱</span>
                            <span v-if="activity.deviceType == 2">阀门井</span>
                            <span v-if="activity.deviceType == 3">流量计</span>
                            <span v-if="activity.deviceType == 4">压力表</span>
                          </p>

                          <p>是否有隐患:
                            <span v-if="activity.isHiddenDanger == 1"></span>
                            <span v-if="activity.isHiddenDanger == 2"></span>
                          </p>
                          <p v-if="activity.isHiddenDanger == 1">处理状态:
                            <span v-if="activity.dealStatus == 1">不需要处理</span>
                            <span v-if="activity.dealStatus == 2">已处理完成</span>
                            <span v-if="activity.dealStatus == 3">未处理完成</span>
                          </p>
                          <div style="width: 600px;">
                            <p>反馈信息:
                              <span>{{activity.contents}}</span>
                            </p>
                          </div>
yaqizhang's avatar
yaqizhang committed
169 170
                        </el-col>
                        <el-col :span="6">
yaqizhang's avatar
yaqizhang committed
171
                          <p>设备名称:{{activity.deviceName}}</p>
yaqizhang's avatar
yaqizhang committed
172 173 174 175 176
                            <p>反馈时间:{{activity.feedbackTime}}</p>
                        </el-col>
                        <el-col :span="12">
                          <div class="feedbackTime-div">
                            <div class="feedbackTime">
yaqizhang's avatar
yaqizhang committed
177
                              <el-image :src="activity.pictureUrl1" :preview-src-list="[activity.pictureUrl1]" v-if="activity.pictureUrl1 != null && activity.pictureUrl1 != ''" style="width: 100%;"></el-image>
yaqizhang's avatar
yaqizhang committed
178 179
                            </div>
                            <div class="feedbackTime">
yaqizhang's avatar
yaqizhang committed
180
                              <el-image :src="activity.pictureUrl2" :preview-src-list="[activity.pictureUrl2]"  v-if="activity.pictureUrl2 != null && activity.pictureUrl2 != ''" style="width: 100%;"></el-image>
yaqizhang's avatar
yaqizhang committed
181 182
                            </div>
                            <div class="feedbackTime">
yaqizhang's avatar
yaqizhang committed
183
                              <el-image :src="activity.pictureUrl3" :preview-src-list="[activity.pictureUrl3]"  v-if="activity.pictureUrl3 != null && activity.pictureUrl3 != ''" style="width: 100%;"></el-image>
yaqizhang's avatar
yaqizhang committed
184 185 186 187
                            </div>
                          </div>
                        </el-col>
                      </el-row>
yaqizhang's avatar
yaqizhang committed
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
                    </el-card>
                  </el-timeline-item>
                </el-timeline>
              </div>
              <div style="width: 95%;position: relative;" @click="changeDisplay(scope)">
                  <i class="el-icon-arrow-down" v-if="isDisplay==false" style="margin-left: 100px;color: #909399;font-size: 14px;">
                    <span style="text-decoration:underline">显示全部</span>
                  </i>
                  <i class="el-icon-arrow-up" v-else style="color: #909399;font-size: 14px;margin-left: 100px;">
                    <span style="text-decoration:underline">收起</span>
                  </i>
              </div>
        </div>

        <!-- 归档 -->

yaqizhang's avatar
yaqizhang committed
204
        <div class="" style="width: 95%;margin-left: 50px;text-align: center;margin-top: 10px;">
yaqizhang's avatar
yaqizhang committed
205 206 207 208
          <el-button
            type="primary"
            size="normal"
            icon="el-icon-edit"
yaqizhang's avatar
yaqizhang committed
209
            style="margin-bottom: 15px;"
yaqizhang's avatar
yaqizhang committed
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
            @click="handleFeedback(form.orderId)"
            v-hasPermi="['workOrder:basicsInfo:editStatus']"
            v-if="form.orderStatus == 1 || form.orderStatus == 2"
          >反馈</el-button>
          <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body @close="cancel">
            <el-form ref="form" :model="form" :rules="rules" label-width="100px">
              <el-form-item label="工单名称" prop="orderName">
                <font>{{form.orderName}}</font>
              </el-form-item>
              <el-form-item label="工单类型" prop="orderType">
                <span type="primary" v-if="form.orderType == 1">巡检信息</span>
                <span type="primary" v-if="form.orderType == 2">隐患信息</span>
                <span type="primary" v-if="form.orderType == 3">报警信息</span>
              </el-form-item>
              <el-form-item label="工单编号" prop="orderId">
                <font>{{form.orderId}}</font>
              </el-form-item>
              <el-form-item label="设备列表" prop="deviceCode" v-if="form.orderType == '1'">
王晓倩's avatar
王晓倩 committed
228
                <el-select v-model="form.deviceId" placeholder="请选择设备" filterable clearable size="small" filterable >
yaqizhang's avatar
yaqizhang committed
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279
                  <el-option
                    v-for="device in form.deviceInfoList"
                    :key="device.deviceId"
                    :label="device.deviceName"
                    :value="device.deviceId"
                  ></el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="反馈图片" prop="pictureUrl1">
                <FileUpload
                  listType="picture-card"
                  @resFun="getFileInfo"
                  @remove="listRemove"
                  :fileArr="fileList"
                />
              </el-form-item>
              <el-form-item label="是否存在隐患" prop="isHiddenDanger">
                <el-switch
                  v-model="isHiddenDanger"
                  active-text="是"
                  inactive-text="否">
                </el-switch>
              </el-form-item>
              <el-form-item label="处理结果" prop="dealStatus" v-if="isHiddenDanger == true">
                <el-radio-group v-model="form.dealStatus">
                  <el-radio :label="2">已处理完成</el-radio>
                  <el-radio :label="3">未处理完成</el-radio>
                  <el-radio :label="1">不需处理</el-radio>
                </el-radio-group>
              </el-form-item>
              <el-form-item label="反馈信息" prop="contents">
                <el-input v-model="form.contents" type="textarea" placeholder="请输入反馈信息" />
              </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
              <el-button type="primary" @click="submitForm">确 定</el-button>
              <el-button @click="cancel">取 消</el-button>
            </div>
          </el-dialog>
        </div>
      </div>
    </div>
  </template>

  <script>

  import { listBasicsInfo, getBasicsInfo, delBasicsInfo, addBasicsInfo, updateBasicsInfo, updateOrderStatus, exportBasicsInfo } from "@/api/workOrder/basicsInfo";
  import { addFeedback } from "@/api/workOrder/feedback";
  import FileUpload from '@/components/FileUpload';
  import Cookie from 'js-cookie';
  import { deviceTree } from "@/api/device/deviceInfo";
yaqizhang's avatar
yaqizhang committed
280
  import c from "utils/gaodeMap.js";
yaqizhang's avatar
yaqizhang committed
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373
  import {map, DEVICE_TYPE} from "utils/gaodeMap.js";
  import { inspectorList } from "@/api/system/user";

export default {
    name: "Feedback",
    components: {
      FileUpload,
    },
    data() {
      return {
        fileList: [],
        isHiddenDanger: false,
        inspector: [],
        isDisplay:false,
        dialogImageUrl: '',
        dialogVisible: false,
        disabled: false,
        imageUrl: '',
        // 遮罩层
        loading: true,
        // 导出遮罩层
        exportLoading: false,
        // 选中数组
        ids: [],
        // 非单个禁用
        single: true,
        // 非多个禁用
        multiple: true,
        // 显示搜索条件
        showSearch: true,
        // 总条数
        total: 0,
        // 工单基础信息表格数据
        basicsInfoList: [],
        // feedbackList: [],
        // 弹出层标题
        title: "",
        // 是否显示弹出层
        open: false,
        // 工单状态字典
        typeOptions: [],
        pickerOptions:[],
        // 工单类型字典
        ordertypeOptions: [],
        // 设备树选项
        deviceOptions: [
          {
            label: "设备列表",
            childList: []
          }
        ],
        defaultProps: {
          children: "childList",
          label: "label"
        },
        // 查询参数
        queryParams: {
          pageNum: 1,
          pageSize: 10,
          orderType: null,
          orderName: null,
          orderStatus: null,
          appointInspector: null,
          allotTime: null,
          actualInspector: null,
          actualTime: null,
          remarks: null
        },
        // 表单参数
        form: {},
        activity: {},
        // 表单校验
        rules: {
        },
        active : 0,
        orderId : "",
        showAndHide : false
      };
    },
    created() {
      // 如果是跳转来的,则接受初始化参数
      // this.user_id = this.$route.query.id; //详细信息页接收参数
      this.orderId = this.$route.query.orderId;
      this.getList();
      this.getDicts("t_order_status").then(response => {
        this.typeOptions = response.data;
      });
      this.getDicts("t_order_type").then(response => {
        this.ordertypeOptions = response.data;
      });
      this.getBasicsInfo();
    },
    mounted(){
374
      let gaoMap =  new gaodeMap(process.env.VUE_APP_MAP_CENTER);
yaqizhang's avatar
yaqizhang committed
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452
      this.gaoMap = gaoMap;
      this.getBasicsInfo();
    },
    methods: {
      getInspectorList(){
        this.loading = true;
        inspectorList().then(response => {
          this.inspector = response.data;
          this.loading = false;
        });
      },
      // 点击按钮显示隐藏
      changeDisplay(e){
        this.isDisplay = !this.isDisplay
        let $timeline = this.$refs.timeline;
        if(!this.showAndHide){
          for(let i = 0; i< $timeline.$children.length; i++){
            if(i>1){
              $timeline.$children[i].$el.style.display = "block";
            }
          }
          this.showAndHide = true;
        }else{
          for(let i = 0; i< $timeline.$children.length; i++){
            if(i>1){
              $timeline.$children[i].$el.style.display = "none";
            }
          }
          this.showAndHide = false;
        }


        //$timeline.toggleRowExpansion(row,true)
      },


      handleRemove(file) {
        console.log(file);
      },
      handlePictureCardPreview(file) {
        this.dialogImageUrl = file.url;
        this.dialogVisible = true;
      },
      handleDownload(file) {
        console.log(file);
      },
      /** 查询工单基础信息列表 */
      getList() {
        this.loading = true;
        this.queryParams.userName = Cookie.get('username');
        listBasicsInfo(this.queryParams).then(response => {
          this.basicsInfoList = response.rows;
          this.total = response.total;
          this.loading = false;
        });
      },
      getFileInfo(res){
        this.fileIndex++;
        console.log(this.fileIndex,"index");
        console.log(res,"res.url");
        if(this.fileIndex == 1){
          this.form.pictureUrl1 = res.url;
        } else if(this.fileIndex == 2){
          this.form.pictureUrl2 = res.url;
        } else if(this.fileIndex == 3){
          this.form.pictureUrl3 = res.url;
        }
      },
      listRemove(e) {
        this.form.pictureUrl1 = "";
        this.form.pictureUrl2 = "";
        this.form.pictureUrl3 = "";
        this.fileList = [];
        this.fileIndex = 0;
      },
      getBasicsInfo (){
        getBasicsInfo(this.orderId).then(response =>{
          this.form = response.data;
453
          console.log(this.form)
yaqizhang's avatar
yaqizhang committed
454
          this.active = parseInt(response.data.orderStatus) + 1;
455

yaqizhang's avatar
yaqizhang committed
456 457
          if(this.form.deviceInfoList.length>0){
            this.gaoMap.resetMapCenter([this.form.deviceInfoList[0].longitude,this.form.deviceInfoList[0].latitude]);
458 459 460 461 462

            for(var i = 0; i < this.form.deviceInfoList.length; i++){
              let obj = this.form.deviceInfoList[i];
              this.gaoMap.addMarker(DEVICE_TYPE.WORKORDER, obj);
            }
yaqizhang's avatar
yaqizhang committed
463
          }
464 465 466 467 468 469

          if(this.form.pipeList.length>0) {
            for (var i = 0; i < this.form.pipeList.length; i++) {
              let obj = this.form.pipeList[i];
              this.gaoMap.onlyLine(obj);
            }
yaqizhang's avatar
yaqizhang committed
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515
          }

          if(this.form.orderType == '1') {
            // 获取设备列表树
            let data = {
              key1:this.form.deviceInfoList,
              key2:this.form.pipeList
            };
            deviceTree(data).then(response => {
              this.deviceOptions[0].childList = response.data;
            });
          }
        });
      },
      // 节点单击事件
      handleNodeClick(data) {

      },
      setUserId(val){
        this.form.appointInspector = val;
      },
      // 取消按钮
      cancel() {
        this.open = false;
        // this.reset();
        this.fileList = [];
        this.fileIndex = 0;
      },
      // 表单重置
      reset() {
        this.form = {
          orderId: null,
          orderType: null,
          orderName: null,
          orderStatus: "0",
          createTime: null,
          appointInspector: null,
          allotTime: null,
          actualInspector: null,
          actualTime: null,
          isHiddenDanger: null,
          remarks: null
        };
        this.resetForm("form");
      },
      /** 反馈按钮操作 */
yaqizhang's avatar
yaqizhang committed
516
      handleFeedback(orderId) {
yaqizhang's avatar
yaqizhang committed
517
        this.open = true;
yaqizhang's avatar
yaqizhang committed
518
        //const orderId = row.orderId || this.ids
yaqizhang's avatar
yaqizhang committed
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537
        getBasicsInfo(orderId).then(response => {
          this.form = response.data;
          this.open = true;
          this.title = "工单反馈";
        });
      },
       /** 提交按钮 */
       submitForm() {
        if(this.isHiddenDanger == false){
          this.form.isHiddenDanger = "2";
        } else {
          this.form.isHiddenDanger = "1";
        }
        this.$refs["form"].validate(valid => {
          if (valid) {
            if(this.form.orderStatus == '1' || this.form.orderStatus == '2'){
              addFeedback(this.form).then(response => {
                this.msgSuccess("反馈成功");
                this.open = false;
yaqizhang's avatar
yaqizhang committed
538
                location.reload();
yaqizhang's avatar
yaqizhang committed
539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557
              });
            }
          }
        });
      },
    }
  }
  </script>
  <style>
    .el-tree-node__content{
      width: 150px;
    }
    .el-divider--horizontal {
      display: block;
      height: 1px;
      width: 100%;
      margin: 20px 0;
    }
    .feedbackTime-div{
yaqizhang's avatar
yaqizhang committed
558 559 560 561
      width: 100%;
      float: left;
      margin-left: 150px;
      margin-top: 10px;
yaqizhang's avatar
yaqizhang committed
562 563
    }
    .feedbackTime{
yaqizhang's avatar
yaqizhang committed
564
      width: 15%;
yaqizhang's avatar
yaqizhang committed
565 566 567
      float: left;
      margin-left: 15px;
      margin-top: 5px;
yaqizhang's avatar
yaqizhang committed
568
      margin-bottom: 5px;
yaqizhang's avatar
yaqizhang committed
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .el-card__body {
      padding: 5px 20px 20px 20px;
    }
    .detail .el-form{
        width: 20%;
    }
    .detail .el-form-item{
        margin-bottom: 0px;
    }
    .el-tree{
      margin-top: 5px;
    }
    .avatar-uploader{
        width: 25%;
        float: left;
    }
    .avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .avatar-uploader .el-upload:hover {
    border-color: #409EFF;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
  }
  .avatar {
    width: 178px;
    height: 178px;
    display: block;
  }
  li{
    font-size: 15px;
    font-weight: 900;
  }
  </style>