<template>
  <div style="background-color:#f7f7f7;padding:10px 10px;">
    <div class="zhuti" v-if="ggXin==false && xiang==false">
      <div style="height:58px;line-height:58px;">
        <div style="color:#0006"> <span>招商方案管理</span> <span style="padding:0 5px;">></span> <span
            style="color:#000000e6">规划编制</span></div>
      </div>
      <div>
        <!-- 搜索 -->
        <div class="formSearch">
          <div class="demo-input-suffix">
            <div style="width: 68px;height:36px;line-height:32px;">规划名称</div>
            <el-input placeholder="请输入" v-model="formSel.planningName" style="width:168px;margin-right: 15px">
            </el-input>
            <div style="width: 68px;height:36px;line-height:32px;">规划类型</div>
            <el-select v-model="formSel.planningType" placeholder="请选择"
              style="width: 168px;margin-right: 15px">
              <el-option label="招商规划" value="招商规划" />
              <el-option label="业态规划" value="业态规划" />
              <el-option label="品牌规划" value="品牌规划" />
            </el-select>
            <div style="width: 68px;height:36px;line-height:32px;">实施时间</div>
            <el-date-picker style="width:250px;" v-model="formSel.plan_Time" value-format="yyyy-MM-dd" type="daterange" prefix-icon="none"
                  range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"
            >
            </el-date-picker>
          </div>
          <div>
            <el-button @click="onSubmit" style="background-color: #3F9B6A;color: #fff">查询
            </el-button>
            <el-button @click="resetting" class="buttonHover"
              style="color: #000;border: 1px solid #DBDBDB;background-color: #fff;">重置
            </el-button>
          </div>
        </div>
        <div style="margin:20px 0;display:flex;">
          <el-button icon="el-icon-circle-plus-outline" @click="addbuss(1)"
            style="background-color: #3F9B6A;color: #fff;padding:8px 15px;">录入</el-button>
            <!-- <el-button  @click="addbuss(1)"
              style="background-color: #3F9B6A;color: #fff;padding:8px 15px;">招商规划方案参数化配置</el-button> -->
            <el-upload class="upload-demo" ref="upload"
                              :limit="1"
                              accept=".xlsx"
                              :action="upload"
                              :on-success="daoru"
                              :file-list="fileData"
                               :auto-upload="true"
                               :show-file-list="false">
                              <el-button style="background-color: #fff;color: #3F9B6A;border: 1px solid #dcdfe6;margin-left:15px;"  class="buttonHover">导入</el-button>
                            </el-upload>
        </div>

        <!-- 表格 -->
        <el-table :data="tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)"
          :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}"
         >
          <el-table-column label="序号" width="100"  prop="id">
            <template slot-scope="scope">
              {{scope.$index + 1}}
               </template>
          </el-table-column>
          <el-table-column label="规划名称" prop="planningName" min-width="350" >
          </el-table-column>
          <el-table-column label="规划类型" prop="planningType" min-width="150" >

          </el-table-column>
          <el-table-column label="实施时间"  min-width="250" >
<template slot-scope="scope">
              {{scope.row.implementationStartTime}}至{{scope.row.implementationEndTime}}
               </template>
          </el-table-column>
          <!-- <el-table-column label="编写人" prop="author" min-width="120" >
          </el-table-column> -->
          <el-table-column prop="reviewStatus" label="审核状态" min-width="150">
            <template slot-scope="scope">
              {{ scope.row.reviewStatus == "1" ? "待审核" :scope.row.reviewStatus == "2" ?'已通过' :scope.row.reviewStatus == "3" ?'已驳回' :'' }}
            </template>
          </el-table-column>
          <el-table-column label="操作" min-width="250" >
            <template slot-scope="scope">
              <div @click="handleEditForm(scope.row,1)" class="tableBtn greens">查看</div>
              <div @click="handleEditForm(scope.row,2)" class="tableBtn greens"  v-if="scope.row.reviewStatus == 1">修改</div>
              <!-- <div class="tableBtn greens">撤回</div> -->
              <div @click="handleDelete(scope.row)" class="tableBtn greens" v-if="scope.row.reviewStatus == 1">删除</div>
            </template>
          </el-table-column>
        </el-table>
        <div class="fenye">
          <el-pagination class="pagination" :hide-on-single-page="flag" background small :current-page="currentPage"
            :page-sizes="[10, 20, 50, 100]"  layout="total,prev, pager,next" :total="total "
            @size-change="handleSizeChange" @current-change="handleCurrentChange" />
        </div>
      </div>
    </div>

          <!-- 新增弹框 -->
          <div class="zhuti" v-if="ggXin">
            <div style="height:58px;line-height:58px;">
              <div style="color:#0006"> <span>招商方案管理</span> <span style="padding:0 5px;">></span> <span
                  style="color:#000000e6">录入</span></div>
            </div>
            <div style="margin-top: 30px;">
              <div class="titles">
                基础信息
              </div>
              <div style="padding: 20px 20px 20px 0;">
                <el-form ref="AddFrom" :model="form" :rules="rules" label-width="125px">
                  <el-row :gutter="20">
                    <el-col :span="12">
                      <el-form-item label="规划名称" prop="planningName">
                        <el-input v-model="form.planningName"  placeholder="请输入" maxlength="50"></el-input>
                      </el-form-item>

                    </el-col>
                    <el-col :span="12">
                      <el-form-item label="规划类型" prop="planningType">
                        <el-select v-model="form.planningType" placeholder="请选择"
                          style="width: 100%;margin-right: 15px">
                          <el-option label="招商规划" value="招商规划" />
                          <el-option label="业态规划" value="业态规划" />
                          <el-option label="品牌规划" value="品牌规划" />
                        </el-select>
                      </el-form-item>
                    </el-col>

                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="12">
                      <el-form-item label="实施时间" prop="implementationStartTime">
                        <el-date-picker  v-model="implementationStartTime" value-format="yyyy-MM-dd" type="daterange"
                          range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 100%;"
                          :picker-options="pickerOptions">
                        </el-date-picker>
                      </el-form-item>
                    </el-col>
                  </el-row>

                  <el-row :gutter="20">
                    <el-col :span="24">
                      <el-form-item label="规划目标" prop="planningObjectives">
                        <wang-editor v-model="form.planningObjectives" ref="editor" :height="200"></wang-editor>
                      </el-form-item>
                    </el-col>

                  </el-row>

                  <el-row :gutter="20">
                    <el-col :span="24">
                      <el-form-item label="规划背景" prop="planningBackground">
                        <wang-editor v-model="form.planningBackground" ref="editor" :height="200"></wang-editor>
                      </el-form-item>
                    </el-col>

                  </el-row>

                  <el-row :gutter="20">
                    <el-col :span="24">
                      <el-form-item label="规划内容" prop="planningContent" style="margin-bottom:20px;">
                        <wang-editor v-model="form.planningContent" ref="editor" :height="200"></wang-editor>
                      </el-form-item>
                    </el-col>

                  </el-row>

                  <el-row :gutter="20">
                    <el-col :span="24">
                      <el-form-item label="招商规划方案上传">
                        <el-upload class="upload-demo" ref="upload" :action="upload" :on-preview="handlePreview"
                         :on-success="handleSuccess"
                          :on-remove="handleRemove" :file-list="fileList" :auto-upload="true">
                          <el-button style="background-color: #fff;color: #3F9B6A;border: 1px solid #dcdfe6;"  class="buttonHover" v-if="fileList.length==0">+点击上传</el-button>
                        </el-upload>
                      </el-form-item>
                    </el-col>
                  </el-row>

                  <el-row :gutter="20">
                    <el-col :span="12">
                      <el-form-item>
                        <div >
                          <el-button  @click="addCheck()"
                           style="background-color: #3F9B6A;color: #fff">确定</el-button>
                          <el-button @click="closeFn(1)"  class="buttonHover"
                               style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">返回</el-button>

                        </div>

                      </el-form-item>
                    </el-col>
                  </el-row>

                </el-form>
              </div>
            </div>
          </div>

    <!-- 详情编辑页 -->
    <div class="zhuti" v-if="xiang">

      <div style="height:58px;line-height:58px;">
        <div style="color:#0006"> <span>招商方案管理</span> <span style="padding:0 5px;">></span> <span
            style="color:#000000e6">{{xiangqing==1?'查看':'编辑'}}</span></div>
      </div>
      <div style="margin-top: 30px;">
        <div class="titles">
          基础信息
        </div>
        <div style="padding: 20px 20px 20px 0;">
          <el-form ref="bianjiFrom" :model="secondData"  :rules="rules" label-width="125px">

            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="规划名称" prop="planningName">
                  <div v-if="xiangqing==1" class="duiqi">{{secondData.planningName}}</div>
                  <el-input v-model="secondData.planningName" v-else></el-input>
                </el-form-item>

              </el-col>
              <el-col :span="12">
                <el-form-item label="规划类型" prop="planningType">
                    <div v-if="xiangqing==1" class="duiqi">{{secondData.planningType}}</div>
                  <el-select v-model="secondData.planningType" placeholder="规划方案" v-else
                    style="width: 100%;">
                    <el-option label="招商规划" value="招商规划" />
                    <el-option label="业态规划" value="业态规划" />
                    <el-option label="品牌规划" value="品牌规划" />
                  </el-select>
                </el-form-item>
              </el-col>

            </el-row>
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="实施时间" prop="implementationStartTime">
                  <div v-if="xiangqing==1" class="duiqi">{{secondData.implementationStartTime}}-{{secondData.implementationEndTime}}</div>
                  <el-date-picker  v-model="implementationStartTime" value-format="yyyy-MM-dd" type="daterange" v-else
                    range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"   style="width: 100%;">
                  </el-date-picker>
                </el-form-item>
              </el-col>
            </el-row>

            <el-row :gutter="20">
              <el-col :span="24">
                <div style="display: flex;align-items: baseline;" v-if="xiangqing==1" >
                 <div style="height:20px; padding: 0 0 0 12px;color:#000000e6;">规划目标</div>
                  <div style="padding:20px 10px; width:90%" v-html="secondData.planningObjectives" ></div>
                </div>
                <el-form-item label="规划目标" prop="planningObjectives" style="margin-bottom:20px;" v-else>
                  <wang-editor v-model="secondData.planningObjectives" ref="editor" :height="200" ></wang-editor>
                </el-form-item>

              </el-col>

            </el-row>

            <el-row :gutter="20">
              <el-col :span="24">
                <div style="display: flex;align-items: baseline;" v-if="xiangqing==1" >
                 <div style="height:20px; padding: 0 0 0 12px;color:#000000e6;">规划背景</div>
                  <div style="padding:20px 10px;width:90%" v-html="secondData.planningBackground" ></div>
                </div>
                <el-form-item label="规划背景" prop="planningBackground" style="margin-bottom:20px;" v-else>
                  <wang-editor v-model="secondData.planningBackground" ref="editor" :height="200" ></wang-editor>
                </el-form-item>

              </el-col>
            </el-row>

            <el-row :gutter="20">
              <el-col :span="24">
                <div style="display: flex;align-items: baseline;" v-if="xiangqing==1" >
                 <div style="height:20px; padding: 0 0 0 12px;color:#000000e6;">规划内容</div>
                  <div style="padding:20px 10px;width:90%;" v-html="secondData.planningContent" ></div>
                </div>
                <el-form-item label="规划内容" prop="planningContent" style="margin-bottom:20px;" v-else>
                  <wang-editor v-model="secondData.planningContent" ref="editor" :height="200" ></wang-editor>
                </el-form-item>
              </el-col>
            </el-row>


            <el-row :gutter="20">
              <el-col :span="24">
                <el-form-item label="招商规划方案上传">
                  <!-- <div style="padding:10px 0;line-height:20px;color:#3F9B6A" v-if="xiangqing==1" @click="yulanFu(secondData.annex)">{{secondData.annex.name}}</div> -->
                  <a style="padding:10px 0;line-height:20px;color:#3F9B6A" class="tableBtn greens"  v-if="xiangqing==1&&secondData.annex" :href="secondData.annex.url" target="_blank" download>{{secondData.annex.name}}</a>
                  <el-upload class="upload-demo" ref="upload" :action="upload" :on-preview="handlePreview"  v-else
                   :on-success="handleSuccess"
                    :on-remove="handleRemove" :file-list="fileList" :auto-upload="true" :on-change="handleChange">
                    <el-button style="background-color: #fff;color: #3F9B6A;border: 1px solid #dcdfe6;"  class="buttonHover" v-if="fileList.length==0&& xiangqing!=1">+重新上传</el-button>
                  </el-upload>


                </el-form-item>
              </el-col>
            </el-row>

            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item>
                  <div>
                    <el-button  @click="editQue()"
                     style="background-color: #3F9B6A;color: #fff" v-if="xiangqing==2">确定</el-button>
                   <el-button @click="closexaing(xiangqing)"   class="buttonHover"
                             style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">取消</el-button>
                  </div>

                </el-form-item>
              </el-col>
            </el-row>

          </el-form>
        </div>
      </div>
    </div>

  </div>
</template>

<script>
  import {
   contractGetAll,
   contractDel,
   addList,
   updateList,
   queryById,
   excelAdd
  } from '../../api/planningBz.js'
  import wangEditor from "@/components/editor/index"
  import upimg from "@/components/ImageUpload/index"
  import {
    uploadUrl
  } from '@/utils/request'

  export default {
   components: { wangEditor ,upimg},
    data() {
      return {
       upload:uploadUrl,
       fileData:[],
        formSel: {
          planningName:'',
          planningType:'',
          plan_Time:[],
          pageNumber: 0,
          pageSize: 10,
        },
        form: {
          planningName: '',
          planningType: '',
          implementationStartTime: '',
          implementationEndTime:'',
          planningObjectives: '',
          planningBackground: '',
          annex: '',
          planningContent:'',
          reviewStatus:'1'

        },
        xin_time:this.getCurrentDateRange(),
        implementationStartTime:[],
      rules: {
        planningName: [{
          required: true,
          message: '请输入规划名称',
          trigger: 'blur'
        }, ],
        planningType: [{
          required: true,
          message: '请选择规划类型',
          trigger: 'change'
        }],


      },
      pickerOptions: {
        disabledDate(time) {
          return time.getTime() < Date.now() - 8.64e7; // 禁用当前时间之前的日期
        }
      },
        secondData: {},
        xiangqing:0,
        xiang:false,
        currentPage: 1,
        total: 0,
        flag: false,
        pageSize: 10,
        ggXin: false,
        tableData: [],
        pageindex: {
          pageNumber: 0,
          pageSize: 10,
        },
        fileList: []
      }
    },

    created() {


    },
    mounted() {
this.getAll()
    },

    methods: {
      //查询全数据
      async getAll() {
        const res = await contractGetAll(this.pageindex)
        this.tableData = res.data.content
        this.total = res.data.content.length
      },

      //删除记录按钮
       handleDelete(val) {
             const h = this.$createElement;
                     this.$msgbox({
                       title: '消息',
                       message: h('p', null, [
                         h('span', null, '是否删除 '),
                       ]),
                       showCancelButton: true,
                       showClose:false,
                       confirmButtonText: '确定',
                       cancelButtonText: '取消',
                       customClass:'oe-dialog-btn',
                       beforeClose: (action, instance, done) => {
                         if (action === 'confirm') {
                           contractDel({id: val.id}).then(res=>{
                             this.$message({
                               message: '删除成功',
                               type: 'success'
                             })
                              this.getAll()
                             done();
                           })
                         } else {
                           done();
                         }
           }
           })

      },
      //查询
      async onSubmit() {
        let forms ={
          pageNumber: 1,
          pageSize: 10,
        }
        if(this.formSel.planningName !=''){
          forms.planningName = this.formSel.planningName
        }
        if(this.formSel.planningType !=''){
          forms.planningType = this.formSel.planningType
        }
        if(this.formSel.plan_Time.length!=0){
          forms.implementationStartTime = this.formSel.plan_Time[0]
          forms.implementationEndTime = this.formSel.plan_Time[1]
        }
      const res= await contractGetAll(forms)
       this.tableData = res.data.content
this.total = res.data.content.length
      },
     handleChange(file, fileList) {
             this.fileList = fileList.slice(-3);
           },
      handleSuccess(file,fileList) {

           // const fileUrl = response.data.url;
                const fileMsg = {
                  name:fileList.name,
                   url: file.data.url,
                }
                // 将文件地址存储在 uploadedFiles 数组中
                this.fileList.push(fileMsg);

                // 或者通过事件传递给父组件
                // this.$emit('file-uploaded', fileMsg)
          },
      // 新增按钮
      addbuss() {
             this.implementationStartTime = []
             this.fileList = []
        this.form = {
          planningName: '',
          planningType: '',
          implementationStartTime: '',
          implementationEndTime:'',
          planningObjectives: '',
          planningBackground: '',
          annex: '',
          planningContent:'',
              reviewStatus:'1'

        },
          this.ggXin = true
      },
      //详情点击
      handleEditForm(item,val) {
        this.secondData = {}
        this.fileList = []
        this.implementationStartTime = []
        this.implementationStartTime.push(item.implementationStartTime)
        this.implementationStartTime.push(item.implementationEndTime)
        this.secondData  = item

        if (typeof this.secondData.annex === 'string' && this.secondData.annex!="" && this.secondData.annex!='') {
            this.secondData.annex = JSON.parse(item.annex)

        }
         if(this.secondData.annex!="" && this.secondData.annex!=''){
           this.fileList.push(this.secondData.annex)
         }

        // this.secondData.annex  = JSON.parse(this.secondData.annex)


        this.xiangqing = val
        this.xiang = true
      },
      //新增确定
       addCheck() {
        this.$refs.AddFrom.validate((valid) => {
          if (valid) {
         if(this.xin_time.length !=0 ){

         this.form.implementationStartTime = this.xin_time[0]
         this.form.implementationEndTime = this.xin_time[1]
         }else{
         this.$message({
           message: '请选择实施时间',

         })
         return
         }
         if(this.fileList.length !=0){
           this.form.annex = JSON.stringify(this.fileList[0])
         }
            addList(this.form).then(res => {
            this.$message({
              message: '保存成功',
              type: 'success'
            })
             this.getAll()
             this.ggXin = false
                this.$refs.AddFrom.resetFields()
              })
          } else {
            this.$message({
              message: '请填写完整信息',
              type: 'error'
            })
            return false;
          }
        })


      },
     editQue(){
       // console.log(this.fileList)
     this.$refs.bianjiFrom.validate((valid) => {
          if (valid) {
         if(this.implementationStartTime.length !=0 ){
         this.secondData.implementationStartTime = this.implementationStartTime[0]
         this.secondData.implementationEndTime = this.implementationStartTime[1]
         }else{
         this.$message({
           message: '请选择实施时间',

         })
         }

         if(this.fileList.length !=0){
           this.secondData.annex = JSON.stringify(this.fileList[0])
         }else{
           this.secondData.annex = ''
         }

            updateList(this.secondData).then(res => {
            this.$message({
              message: '保存成功',
              type: 'success'
            })
             this.getAll()
             this.xiang = false
                this.$refs.bianjiFrom.resetFields()
              })
          } else {
            this.$message({
              message: '请填写完整信息',
              type: 'error'
            })
            return false;
          }
        })





      },
      handleCurrentChange(val) {
        this.currentPage = val
      },
      handleSizeChange(val) {
        this.pageSize = val
      },
      closeFn() {
         this.$refs.AddFrom.resetFields()
        this.ggXin = false
      },
      closexaing(val){
        this.xiang = false
        this.getAll()
      },
      handleClick() {

      },
      //上传

      handlePreview(file) {
        console.log(file);
      },
      handleRemove(file, fileList) {

        this.fileList = []
      },
      //重置按钮
      resetting() {
        this.formSel = {
            planningName:'',
            planningType:'',
            plan_Time:[]
          },
          this.getAll()
      },
      yulanFu(item){
         window.location.href =item.url ;

      },
      getCurrentDateRange() {
        const today = new Date();
        const startOfToday = new Date(today.getFullYear(), today.getMonth(), today.getDate());
        const endOfTomorrow = new Date(today.getFullYear(), today.getMonth(), today.getDate() + 2); // 第二天

        return [
          this.formatDate(startOfToday),
          this.formatDate(endOfTomorrow)
        ]
      },


      formatDate(date) {
        const year = date.getFullYear();
        const month = ('0' + (date.getMonth() + 1)).slice(-2);
        const day = ('0' + date.getDate()).slice(-2);
        return `${year}-${month}-${day}`;
      },
      daoru(response, file, fileList){
        this.fileData.push(file.raw)
        const formDate = new FormData()
        formDate.append('file', this.fileData[0])
        excelAdd(formDate).then(res => {
           this.getAll()
        })
      },
    }
  }
</script>
<style src="@wangeditor/editor/dist/css/style.css"></style>
<style scoped>
  /deep/ .first-column-bg {
    background-color: #f4f4f5 !important;
  }

  .zhuti {
    padding: 0 20px 20px 20px;
    min-height: calc(100vh - 50px - 20px);
    background-color: #Fff;

  }

  /deep/ .el-form-item__content {
    line-height: 0;
  }

  ::v-deep .xinForm .el-form-item__content {
    line-height: 3;
  }

  .tableBtn {
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
  }



  .greens {
    color: #3F9B6A;
  }


  .fenye {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    position: relative;
  }

  /deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
    background-color: #3F9B6A;
  }

  .el-row {
    margin-bottom: 20px;
  }

  :last-child {
    margin-bottom: 0;
  }

  .el-col {
    border-radius: 4px;
  }

  .bg-purple-dark {
    background: #99a9bf;
  }

  .bg-purple {
    /* background: #d3dce6; */
  }

  .bg-purple-light {
    background: #e5e9f2;
  }

  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }

  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }

  /deep/ .bg-purple[data-v-0e3fe4ec] {
    background: #fff;
    height: 50px;
  }

  /deep/ .el-form--label-top .el-form-item__label {
    padding: 0;
  }

  .demo-input-suffix {
    display: flex;
    margin-right: 20px;
    width: 83%;
  }

  .pagination {
    text-align: right;
    line-height: 20px;
  }

  /deep/ .el-pagination__total {
    margin-top: 4px;
  }


 /deep/ .dialog_css {
   margin-top: 11vh;
   margin-left: 13%;
   padding: 0px;

   .el-dialog__title {
     font-size: 12px;
   }
 }

  /deep/.el-dialog__body {
    padding: 0px;
  }

  /deep/ .el-dialog__header {
    background-color: #fff;
  }

  /deep/.el-dialog__title {
    color: #000;
  }

  .el-row {
    margin-bottom: 20px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  /deep/ .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: 108px;
    height: 108px;
    line-height: 108px;
    /*text-align: center;*/
  }

  .avatar {
    width: 108px;
    height: 108px;
    display: block;
  }

  ::v-deep .el-tabs__item.is-active {
    color: #3F9B6A;
    opacity: 1;
  }

  /deep/ .el-tabs__nav-wrap::after {
    background-color: #fff;
  }

  ::v-deep .el-tabs__item:hover {
    color: #3F9B6A;
    cursor: pointer;
    opacity: 1;
  }

  /deep/ .el-tabs__active-bar {
    background-color: #389865;
  }

  /deep/ .el-table_2_column_13 {
    font-weight: 100;
  }

  ::v-deep .el-input__inner:focus {
    border: #3F9B6A 1px solid;
  }

  ::v-deep .el-input__inner:hover {
    border: #3F9B6A 1px solid;
  }

  ::v-deep .el-select .el-input.is-focus .el-input__inner {
    border-color: #3F9B6A
  }


  /* ::v-deep .el-steps .el-step__head.is-wait {
  background-color: red; /* 修改为你想要的颜色 */

  /* 修改未进行步骤的描述文字颜色 */
  ::v-deep .el-steps .el-step__description.is-wait {
    color: #999;
    /* 修改为你想要的颜色 */
  }

  /* 修改未进行步骤的图标颜色 */
  ::v-deep .el-steps .el-step__icon.is-text.is-wait {
    color: #999;
    /* 修改为你想要的颜色 */
  }

  /* 修改未进行步骤的边框色 */
  ::v-deep .el-steps .el-step__line.is-wait {
    border-color: #eee;
    /* 修改为你想要的颜色 */
  }

  ::v-deep .el-steps .is-process .el-step__line {
    background-color: #3F9B6A;
    /* 修改线的颜色 */
  }

  ::v-deep .el-steps .is-process .el-step__title {
    color: #fe7b6a;
    /* 修改进行中步骤的标题颜色 */
  }

  ::v-deep .el-steps .is-process .el-step__icon {
    color: #fff;
    /* 修改进行中步骤的图标颜色 */
    background: #3F9B6A;
    /* 修改进行中步骤图标的边框颜色 */
    border: 0px;
  }

  ::v-deep .el-step__icon-inner {
    line-height: 0
  }

  /* 线条长度 */
  ::v-deep .el-step.is-vertical .el-step__line {
    top: 30px;
    height: 60px;
  }


  ::v-deep .el-date-editor .el-range-separator {
    line-height: 24px;
  }

</style>
<style lang="scss" scoped>


  ::v-deep .xinFrom{
    .el-input--mini .el-input__inner{
      height:36px;
      line-height:36px;
    }
    .el-range-editor--mini.el-input__inner{
        height:36px;
        width:100%;
    }
  }
  ::v-deep .buttonHover:hover{
    color:#3f9b6a !important;
    border-color: #c5e1d2 !important;
    background-color: #ecf5f0 !important;
    outline: none;
  }
::v-deep .el-pagination__total {
    position: absolute;
    left: 10px;
  }
.formSearch {
    display: flex;
    width: 100%;
    font-size: 14px;
    justify-content: space-between;
  }
</style>
