performanceConfig.vue 23.5 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 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 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 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 130 131 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 168 169 170 171 172 173 174 175 176 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 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 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 280 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 374 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 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 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 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 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 579 580 581 582 583 584 585 586 587 588
<!-- 绩效配置 -->
<template>
  <d2-container class="performance-config" :loading="$store.state.d2admin.loading.value">
    <div class="container-content">
      <div class="title">
        <span>绩效配置</span>
        <div class="sub-title" v-if="routerQuery.partnerMerchantArr.length">服务商:
          <span v-for="(subV, subIdx) in routerQuery.partnerMerchantArr" :key="subIdx">{{ subV }}</span>
        </div>
      </div>
      <div class="content">
        <glsx-combi-form class="edit-form-container"
                         ref="editFormRef"
                         label-width="154px"
                         default-width="432px"
                         :is-block="true"
                         form-ref="editChildRef"
                         :form-obj="staffPerformanceConfig"
                         :form-data="editFormData">
          <div slot="performanceFlag">
            <el-switch v-model="staffPerformanceConfig.performanceFlag" class="switchStyle" active-color="#2a58ad"
                       active-text="开" inactive-text="关"></el-switch>
          </div>
          <div slot="sceneSelect">
            <el-tabs v-model="staffPerformanceConfig.deploymentScene">
              <el-tab-pane v-for="item in openedSceneList" :key="item.scene" :label="item.label" :name="item.scene"></el-tab-pane>
            </el-tabs>
          </div>
          <div slot="performanceConfig" class="performance-content">
            <div class="tabs-box">
              <el-tabs type="card" :before-leave="beforeLeave" v-show="staffPerformanceConfig.deploymentScene == '1'" v-model="upgradDefaultMerchant" edit @tab-remove="removeTab">
                <el-tab-pane v-for="subItem in upgradeMerchantArr" :key="subItem.shopMerchantId" :closable="upgradeMerchantArr.length > 0" :name="subItem.shopMerchantId">
                  <span slot="label"><i v-if="subItem.validateErrFlag" class="el-icon-warning car-error-txt"></i>{{ subItem.shopMerchantName }}</span>
                  <per-config-form :ref="`perConfigForm_1_${subItem.shopMerchantId}`" :page-disabled="pageDisabled" :per-config-info="subItem.configInfo"></per-config-form>
                </el-tab-pane>
                <el-tab-pane key="add" @tab-add="addSceneMerchant" name="add" :disabled="pageDisabled">
                  <!-- //这是增加的按钮 -->
                  <span slot="label" style="padding: 8px;font-size:20px;font-weight:bold;">+</span>
                </el-tab-pane>
              </el-tabs>
              <el-tabs type="card" :before-leave="beforeLeave" v-show="staffPerformanceConfig.deploymentScene == '0'" v-model="equityDefaultMerchant" @tab-remove="removeTab">
                <el-tab-pane v-for="subItem in equityMerchantArr" :key="subItem.shopMerchantId" :closable="equityMerchantArr.length > 0" :name="subItem.shopMerchantId">
                  <span slot="label"><i v-if="subItem.validateErrFlag" class="el-icon-warning car-error-txt"></i>{{ subItem.shopMerchantName }}</span>
                  <per-config-form :ref="`perConfigForm_0_${subItem.shopMerchantId}`" :page-disabled="pageDisabled" :per-config-info="subItem.configInfo"></per-config-form>
                </el-tab-pane>
                <el-tab-pane key="add" @tab-add="addSceneMerchant" name="add" :disabled="pageDisabled">
                  <!-- //这是增加的按钮 -->
                  <span slot="label" style="padding: 8px;font-size:20px;font-weight:bold;">+</span>
                </el-tab-pane>
              </el-tabs>
            </div>
          </div>
        </glsx-combi-form>

        <glsx-combi-form class="edit-form-container"
                         ref="editFormRef2"
                         label-width="154px"
                         default-width="432px"
                         :is-block="true"
                         form-ref="editChildRef"
                         :form-obj="staffPerformanceConfig"
                         :form-data="resetFormData">
          <div slot="resetPasswordBtn">
            <el-button @click="handleResetPassword">重置密码</el-button>
          </div>
        </glsx-combi-form>
      </div>
    </div>
    <div class="footer">
      <el-button @click="submit" type="primary">保存</el-button>
      <el-button @click="navBack">取消</el-button>
    </div>
    <d2-dialog title="选择门店"
               :is-visible="storeDialogVisible"
               @closeDialog="handleStoreClose"
               @confirmDialog="handleStroeConfirm">
      <el-form :model="storeForm"
               ref="store-dialog-form"
               :rules="dialogRules"
               label-width="120px">
        <el-form-item label="门店:"
                      prop="merchantId">
          <el-select v-model="storeForm.merchantId"
                     @change="handleStoreChange"
                     placeholder="请选择门店">
            <el-option v-for="(item, index) in (staffPerformanceConfig.deploymentScene == '1' ? upgradeMerchantList : equityMerchantList)" :disabled="staffPerformanceConfig.deploymentScene == 1 ? disabledUpgradeMerchantArr.includes(item.merchantId) : disabledEquityMerchantArr.includes(item.merchantId)" :key="index" :label="item.merchantName" :value="item.merchantId">{{ item.merchantName }}</el-option>
          </el-select>
        </el-form-item>
      </el-form>
    </d2-dialog>
  </d2-container>
</template>
<script>
import { setPerformanceApi, getPerformanceInfoApi, resetStaffPasswordApi, getMerchantStoreApi } from '@api/businessSchool'
import { mapActions } from 'vuex'
import { deepClone } from '@/common/util'
import perConfigForm from './perConfigForm.vue'
export default {
  name: 'PerformanceConfig',
  components: {
    perConfigForm
  },
  data() {
    return {
      staffPerformanceConfig: {
        staffName: '',
        phoneNumber: '',
        performanceFlag: false,
        deploymentScene: ''
      },
      upgradeMerchantArr: [], // 1.1精品升级场景门店]
      equityMerchantArr: [], // 2.1权益场景门店
      editFormData: [{
        label: '员工姓名',
        name: 'staffName',
        type: 'input',
        isHide: false,
        isDisabled: true
      }, {
        label: '手机号',
        name: 'phoneNumber',
        type: 'input',
        isHide: false,
        isDisabled: true
      }, {
        label: '工资绩效',
        name: 'performanceFlag',
        type: 'switch',
        isHide: false,
        tips: '注:开启后可修改配置,按月底的最终配置计算上月整月订单提成',
        addHtml: 'performanceFlag'
      }, {
        label: '所属园区店',
        name: 'merchantName',
        type: 'input',
        isHide: true,
        isDisabled: true
      }, {
        label: '选择业务',
        name: 'sceneSelect',
        isHide: true,
        addHtml: 'sceneSelect'
      }, {
        label: '设置工资绩效',
        name: 'performanceConfig',
        isHide: true,
        addHtml: 'performanceConfig'
      }],
      resetFormData: [{
        label: '重置用户查看绩效密码',
        isHide: false,
        addHtml: 'resetPasswordBtn'
      }],
      routerQuery: {
        yqMerchantObj: {},
        partnerMerchantArr: []
      },
      equityDefaultMerchant: '', // 会员权益tab默认选中项
      upgradDefaultMerchant: '', // 精品升级tab默认选中项
      upgradeMerchantList: [], // 精品升级场景可选的门店
      equityMerchantList: [], // 会员权益场景可选的门店
      storeForm: {}, // 选择门店弹窗表单
      dialogRules: {
        merchantId: [{ required: true, message: '请选择门店', trigger: 'change' }]
      },
      storeDialogVisible: false,
      disabledUpgradeMerchantArr: [], // 精品升级场景已选门店
      disabledEquityMerchantArr: [], // 权益场景已选门店
      pageDisabled: false, // 绩效是否可编辑
      openedSceneList: [], // 当前员工已开通关联的业务场景
      copyUpgradeMerchantArr: [], // 精品升级场景门店copy数据
      copyEquityMerchantArr: [] // 会员权益/升级场景门店copy数据
    }
  },
  watch: {
    'staffPerformanceConfig.performanceFlag': {
      handler(val) {
        this.pageDisabled = !val
        if (!val) {
          // 关闭工资绩效还原已配置数据 并置灰不可编辑
          this.routerQuery?.sceneTypeList.forEach(val => {
            if (val == 1) {
              this.upgradeMerchantArr = this.copyUpgradeMerchantArr
            } else if (val == 0) {
              this.equityMerchantArr = this.copyEquityMerchantArr
            }
          })
          this.$nextTick(() => {
            this.resetCommission()
          })
        }
        this.$nextTick(() => {
          this.changeFormAttr('editFormData', 'isHide', ['sceneSelect', 'performanceConfig', 'merchantName'], !val)
          if (this.upgradeMerchantArr?.length || this.equityMerchantArr?.length) { this.changeFormAttr('editFormData', 'isHide', ['sceneSelect', 'performanceConfig', 'merchantName'], false) }
        })
      },
      deep: true
    },
    'staffPerformanceConfig.deploymentScene': {
      handler(val) {
        const customerDefalutMerchant = val == '1' ? 'upgradDefaultMerchant' : 'equityDefaultMerchant'
        const customerMerchantArr = val == '1' ? 'upgradeMerchantArr' : 'equityMerchantArr'
        if (!this[customerDefalutMerchant] || this[customerDefalutMerchant] == 0) this[customerDefalutMerchant] = this[customerMerchantArr][0]?.shopMerchantId || '0'
      },
      deep: true
    }
  },
  mounted() {
    this.routerQuery = {
      ...this.$route.query,
      yqMerchantObj: JSON.parse(this.$route.query?.yqMerchantObj),
      partnerMerchantArr: JSON.parse(this.$route.query?.partnerMerchantArr),
      sceneTypeList: JSON.parse(this.$route.query?.sceneTypeList)
    }
    // 获取配置详情
    this.getConfigInfo()
  },
  methods: {
    ...mapActions({
      get: 'd2admin/base/get',
      close: 'd2admin/page/close'
    }),
    // 获取门店数据 (当前园区店下的所有4s店)
    getStoreList(scene) {
      const routerQuery = this.routerQuery
      getMerchantStoreApi({ scene, merchantId: routerQuery?.yqMerchantObj?.merchantId }).then(res => {
        scene == 1 ? this.upgradeMerchantList = res || [] : this.equityMerchantList = res || []
      })
    },
    // 重置工资绩效配置数据
    resetCommission() {
      this.upgradeMerchantArr.forEach(val => {
        const _refs = this.$refs[`perConfigForm_1_${val.shopMerchantId}`]
        _refs && _refs[0].resetCommission()
      })
      this.equityMerchantArr.forEach(val => {
        const _refs = this.$refs[`perConfigForm_0_${val.shopMerchantId}`]
        _refs && _refs[0].resetCommission()
      })
    },
    beforeLeave(currentName) { // 通过tab标签的切换事件触发增加的函数
      // 如果name是add,则调用增加tab的函数
      if (currentName == "add") {
        this.addSceneMerchant()
        return false
      }
    },
    // 根据场景新增门店配置绩效
    addSceneMerchant() {
      this.storeDialogVisible = true
      this.$refs['store-dialog-form'] && this.$refs['store-dialog-form'].resetFields()
    },
    // 选择门店弹窗
    handleStoreChange(e) {
      const dialogStoreData = this.staffPerformanceConfig?.deploymentScene == 1 ? this.upgradeMerchantList : this.equityMerchantList
      const index = dialogStoreData?.findIndex(val => val.merchantId == e)
      if (index > -1) this.storeForm.merchantName = dialogStoreData[index]?.merchantName
    },
    handleStoreClose() {
      this.storeDialogVisible = false
    },
    // 添加门店弹窗确认
    handleStroeConfirm() {
      this.$refs['store-dialog-form'].validate(valid => {
        const deploymentScene = this.staffPerformanceConfig.deploymentScene
        if (valid) {
          const tabListData = deploymentScene == 1 ? this.upgradeMerchantArr : this.equityMerchantArr
          const disabledStoreData = deploymentScene == 1 ? this.disabledUpgradeMerchantArr : this.disabledEquityMerchantArr
          const customerDefalutMerchant = deploymentScene == 1 ? 'upgradDefaultMerchant' : 'equityDefaultMerchant'
          tabListData.push({
            configInfo: {
              sceneType: deploymentScene
            },
            shopMerchantId: `${this.storeForm?.merchantId}`,
            shopMerchantName: this.storeForm?.merchantName
          })
          disabledStoreData.push(this.storeForm?.merchantId)
          this[customerDefalutMerchant] = `${this.storeForm?.merchantId}`
          this.handleStoreClose()
        }
      })
    },
    // 删除tab门店
    removeTab(targetName) {
      if (this.pageDisabled) return
      const deploymentScene = this.staffPerformanceConfig.deploymentScene
      const tabListData = deploymentScene == 1 ? this.upgradeMerchantArr : this.equityMerchantArr
      const disabledStoreData = deploymentScene == 1 ? this.disabledUpgradeMerchantArr : this.disabledEquityMerchantArr
      const index = tabListData?.findIndex(val => val.shopMerchantId == targetName)
      const idx = disabledStoreData?.findIndex(val => val == targetName)
      if (index > -1) tabListData?.splice(index, 1)
      if (idx > -1) disabledStoreData.splice(idx, 1)
    },
    // 处理表单项显示隐藏
    changeFormAttr(formName, attrName, labelList, attrValue) {
      labelList.forEach(item => {
        const idx = this[formName].findIndex(k => k.name == item)
        this[formName][idx][attrName] = attrValue
      })
    },
    // 获取员工绩效配置详情
    getConfigInfo() {
      const routerQuery = this.routerQuery
      getPerformanceInfoApi({ staffUuid: routerQuery?.staffUuid }).then(res => {
        // 处理回显员工基本信息(从列表带入)
        this.staffPerformanceConfig = {
          staffUuid: routerQuery?.staffUuid,
          staffName: routerQuery?.staffName, // 员工姓名
          phoneNumber: routerQuery?.phoneNumber, // 员工手机号
          merchantName: routerQuery?.yqMerchantObj?.merchantName, // 园区店名称
          merchantId: routerQuery?.yqMerchantObj?.merchantId, // 园区店商户号
          performanceFlag: routerQuery?.performanceFlag == 'Y', // 员工绩效开关
          deploymentScene: `${routerQuery?.sceneTypeList?.[0]}`
        }
        routerQuery?.sceneTypeList?.forEach(v => {
          this.getStoreList(v)
          this.openedSceneList.push({
            scene: `${v}`,
            label: ['2.1', '1.1'][v]
          })
        })
        // 处理员工按场景按门店配置的工资绩效
        const upgradeMerchantArr = []
        const equityMerchantArr = []
        Array.isArray(res) && res?.forEach(val => {
          if (val.shopMerchantId) { // 有门店信息
            const configList = ['outputBonusList', 'upgradeRateBonusList', 'averagePriceBonusList']
            configList?.map((subVal, index) => {
              val[subVal] = []
              val?.bonusConfigList?.map(v => {
                v.startValue == '0' ? (v.isStartEdit = true) : ''
                v.endValue == '999999.99' || v.endValue == '100' ? (v.isEndEdit = true) : ''
                if (v?.bonusType == index) { // bonusType 奖励类型 0-高产值 1-成交率 2-均客单
                  val[subVal].push(v)
                }
              })
            })
            if (val.sceneType == 1) { // 精品升级 1.1场景
              upgradeMerchantArr.push({ configInfo: val, shopMerchantId: `${val.shopMerchantId}`, shopMerchantName: val.shopMerchantName })
              this.disabledUpgradeMerchantArr.push(val.shopMerchantId)
            } else if (val.sceneType == 0) { // 会员权益 2.1场景
              equityMerchantArr.push({ configInfo: val, shopMerchantId: `${val.shopMerchantId}`, shopMerchantName: val.shopMerchantName })
              this.disabledEquityMerchantArr.push(val.shopMerchantId)
            }
            this.copyUpgradeMerchantArr = deepClone(upgradeMerchantArr)
            this.upgradeMerchantArr = upgradeMerchantArr
            this.copyEquityMerchantArr = deepClone(equityMerchantArr)
            this.equityMerchantArr = equityMerchantArr
            this.upgradDefaultMerchant = `${upgradeMerchantArr[0]?.shopMerchantId}` // 1.1场景 门店tab默认选中项
            this.equityDefaultMerchant = `${equityMerchantArr[0]?.shopMerchantId}` // 2.1场景 门店tab默认选中项
          }
        })
      })
    },
    // 校验工资绩效配置
    perConfigFormValide() {
      return new Promise(async (resolve, reject) => {
        const valideResult = [[], []]
        // 精品升级配置
        for (var j = 0; j < this.upgradeMerchantArr?.length; j++) {
          const subVal = this.upgradeMerchantArr[j]
          const node = this.$refs[`perConfigForm_1_${subVal.shopMerchantId}`] && this.$refs[`perConfigForm_1_${subVal.shopMerchantId}`][0]
          if (node?.submitValide) {
            const valideRes = await node.submitValide()
            if (valideRes == 'error') {
              this.$set(this.upgradeMerchantArr[j], 'validateErrFlag', true)
              valideResult[1].push(valideRes)
            } else {
              this.$set(this.upgradeMerchantArr[j], 'configInfo', valideRes)
              this.$set(this.upgradeMerchantArr[j], 'validateErrFlag', false)
            }
          }
        }
        // 权益配置
        for (var k = 0; k < this.equityMerchantArr?.length; k++) {
          const subVal = this.equityMerchantArr[k]
          const node = this.$refs[`perConfigForm_0_${subVal.shopMerchantId}`] && this.$refs[`perConfigForm_0_${subVal.shopMerchantId}`][0]
          if (node?.submitValide) {
            const valideRes = await node.submitValide()
            if (valideRes == 'error') {
              this.$set(this.equityMerchantArr[k], 'validateErrFlag', true)
              valideResult[0].push(valideRes)
            } else {
              this.$set(this.equityMerchantArr[k], 'configInfo', valideRes)
              this.$set(this.equityMerchantArr[k], 'validateErrFlag', false)
            }
          }
        }
        resolve(valideResult)
      })
    },
    // 提交
    async submit() {
      const staffInfo = this.staffPerformanceConfig
      const formValide = await this.perConfigFormValide()
      if (formValide[0]?.length || formValide[1]?.length) {
        if (formValide[0]?.length) this.staffPerformanceConfig.deploymentScene = '0' // 权益有检验不通过的
        if (formValide[1]?.length) this.staffPerformanceConfig.deploymentScene = '1' // 精品升级有检验不通过的
        return this.$message.error('请检查工资绩效配置是否正确')
      }
      const allMerchant = this.upgradeMerchantArr.concat(this.equityMerchantArr)
      const staffPerformanceConfig = []
      const configList = ['outputBonusList', 'upgradeRateBonusList', 'averagePriceBonusList']
      if (allMerchant?.length) {
        allMerchant?.map((val, index) => {
          staffPerformanceConfig.push({
            staffPerformanceInfo: {
              performanceFlag: staffInfo?.performanceFlag ? 'Y' : 'N', // 工资绩效开关
              staffUuid: staffInfo?.staffUuid, // 员工Id
              merchantId: staffInfo.merchantId, // 所属园区店
              staffName: staffInfo?.staffName, // 员工姓名
              phoneNumber: staffInfo?.phoneNumber // 员工手机号
            },
            staffType: 1, // 员工类型 默认1驻店
            sceneType: val?.configInfo?.sceneType, // 场景
            shopMerchantId: val.shopMerchantId,
            shopMerchantName: val.shopMerchantName,
            basicWage: val?.configInfo?.basicWage, // 基本工资
            minimumWage: val?.configInfo?.minimumWage, // 保底工资
            bonusConfigList: [] // 工资提成配置
          })
          configList.map((v, idx) => {
            val?.configInfo?.[v]?.map(subV => {
              staffPerformanceConfig[index]?.bonusConfigList?.push({
                bonusType: idx, // 奖励类型
                startValue: subV?.startValue,
                endValue: subV?.endValue,
                calculateValue: subV?.calculateValue
              })
            })
          })
        })
      } else {
        if (staffInfo?.performanceFlag) return this.$message.error('请设置工资绩效')
        else {
          staffPerformanceConfig.push({
            staffPerformanceInfo: {
              performanceFlag: staffInfo?.performanceFlag ? 'Y' : 'N', // 工资绩效开关
              staffUuid: staffInfo?.staffUuid, // 员工Id
              merchantId: staffInfo.merchantId, // 所属园区店
              staffName: staffInfo?.staffName, // 员工姓名
              phoneNumber: staffInfo?.phoneNumber // 员工手机号
            }
          })
        }
      }
      setPerformanceApi({ staffPerformanceConfig: staffPerformanceConfig }).then(res => {
        this.notice.okTips()
        this.navBack()
      })
    },
    // 重置密码
    handleResetPassword() {
      this.$confirm('重置密码后用户可在小程序重新设置新密码,是否重置密码?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        const routerQuery = this.routerQuery
        resetStaffPasswordApi({ staffUuid: routerQuery?.staffUuid }).then(res => {
          this.notice.okTips()
        })
      }).catch(() => { })
    },
    // 返回
    navBack() {
      this.close({ tagName: '/staffManage' })
      this.$router.push({ name: 'staffManage' })
      this.close({ tagName: '/performanceConfig' })
    }
  }
}
</script>
<style lang="scss" scoped>
.performance-config{
  .container-content{
    background: #fff;
    .title{
      font-size: 18px;
      color: #333333;
      font-weight: 500;
      border-bottom: 1px solid #E8E8EA;
      padding: 12px 16px 12px 24px;
      &::before{
        position: absolute;
        display: inline-block;
        content: "";
        height: 18px;
        width: 4px;
        top: 16px;
        left: 16px;
        background-color: #0947c6;
      }
      .sub-title{
        display: inline-block;
        margin-left: 8px;
        font-size: 14px;
        color: #666666;
        font-weight: 400;
      }
      .sub-title:last-child{
        max-width: 1600px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
        span{
          margin-right: 10px;
        }
      }
    }
    .content{
      padding: 16px 80px;
      .performance-content{
        margin-top: 10px;
      }
    }
  }
  .footer{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
  }
}
::v-deep .glsx-combi-form-block #sceneSelect .el-form-item__content{
  width: calc(100% - 154px);
}
::v-deep .glsx-combi-form-block #sceneSelect .el-tabs__item{
  background: transparent;
}
::v-deep .el-tabs__item{
  background: #F8F8F8;
}
::v-deep .el-tabs__item.is-active{
  background: #FFFFFF;
  font-weight: 600;
}
::v-deep .el-tabs__header{
  margin-bottom: 8px;
}
::v-deep #performanceConfig > .el-form-item__content{
  width: calc(100% - 154px);
}
.switchStyle ::v-deep .el-switch__label {
  position: absolute;
  display: none;
  color: #fff;
  font-size: 12px !important;
  line-height: 20px;
}

.el-switch__core {
  background-color: rgba(166, 166, 166, 1);
}

.switchStyle{
  ::v-deep .el-switch__label {
    position: absolute;
    display: none;
    color: #fff;
  }
  /*打开时文字位置设置*/
  ::v-deep .el-switch__label--right {
    z-index: 1;
    right: 20px;
  }
  /*关闭时文字位置设置*/
  ::v-deep .el-switch__label--left {
    z-index: 1;
    left: 20px;
  }
  ::v-deep .el-switch__label--left.is-active {
    display: block;
    span{
      font-size: 12px;
      color: #999999;
    }
  }
  ::v-deep .el-switch__label--right.is-active {
    display: block;
    span{
      font-size: 12px;
      color: #FFFFFF;
    }
  }
}
</style>