记录:git、表单for循环校验.${index}. 滚动条

解决问题:
从底层找,从最开始的位置打日志,一步步节点去找问题发生的位置

记录、统计:各环境账号。。。
上线:需要准备的资源、账号、人员
去掉debugger
1、提交代码;
2、dev,fat,本地各种自测;
3、new tag,改动后需要重打tag;
4、如果发布欧洲环境(涉及到服务)。

 

git config --global user.name 'happy.yin'
git config --global user.email 'happy.yin@quectel.com'

git stash
git stash pop 恢复最近的缓存到当前文件中,同时删除恢复的缓存条目。

git fetch --all && git reset --hard origin/master && git pull
回退:强制推送 https://chat.deepseek.com/a/chat/s/603c6bed-1f50-421e-9021-33254cb2451b
git reset --hard c927f9ca 第一步
HEAD is now at c927f9cad feat: 获取数据:传对应平台的supplier(需要的记录:c927f9cad)
# 警告:这会重写远程仓库的历史
git push --force-with-lease 第二步
# 或者更强制的
# git push --force

创建分支: $ git branch mybranch
切换分支: $ git checkout mybranch
创建并切换分支: $ git checkout -b mybranch
https://blog.csdn.net/carolzhang8406/article/details/49757101

 

append-to-body
this.$refs.form.validateField('checkList')
// 循环prop(一层for)
v-for="(itemTemp, index) in form.emailContentAndSubjects"
:prop="`emailContentAndSubjects.${index}.emailSubject`"
this.$refs.form.validateField(`emailContentAndSubjects.${index}.emailContent`)
<el-form-item
v-for="(item, index) in form.textData"
:key="index"
class="pacify-text-list"
:label="''"
:prop="`textData.${index}.text`"
:rules="{
validator: (rule, val, cb) => valid(item, val, cb),
trigger: 'blur'
}"
>

valid(row, value, callback) {
if (!value) {
callback(new Error(this.$t('tip.aiAgent.detail.pacify.input')))
} else {
callback()
}
},

 

// 循环prop(多层for)

<div v-for="(ele, idx) in form.resaleConfigList" :key="idx">
            <div v-for="(llmItem, llmIndex) in ele.resaleConfigList" :key="llmIndex" class="llm-source-item">
              <i
                :class="isDropdownOpenNum === llmIndex ? 'el-icon-arrow-down' : 'el-icon-arrow-right'"
                class="icon"
                @click="toggleDropdown(llmIndex)"
              />
              <!-- <span>{{ $t('tip.aiSetting.resale.douBao') }}</span> -->
              <span>{{ llmItem.subConfigType || $t('tip.aiSetting.resale.douBao') }}</span>

              <div v-show="isDropdownOpenNum === llmIndex" class="row-contain">
                <!-- :prop="`resaleConfigSpecList.${llmIndex}.price`" -->
                <el-form-item
                  v-for="(item, index) in llmItem.resaleConfigSpecList"
                  :key="index"
                  :label="getTitle(item, llmItem)"
                  :prop="`resaleConfigList.${idx}.resaleConfigList.${llmIndex}.resaleConfigSpecList.${index}`"
                  :rules="{
                    required: true,
                    validator: (rule, val, cb) => validPrice(item, val, cb),
                    trigger: 'blur'
                  }"
                >
                  <el-input
                    v-model="item.price"
                    :placeholder="$t('tip.global.enter')"
                    maxlength="200"
                    class="custom-input"
                    number
                  >
                    <template #suffix>{{ getUnit(item) }}</template>
                  </el-input>
                </el-form-item>
              </div>
            </div>
          </div>
// 校验方法
    validForm() {
      // 表单多层嵌套,校验
      this.form.resaleConfigList.forEach((ele, idx) => {
        ele.resaleConfigList.forEach((llmItem, llmIndex) => {
          llmItem.resaleConfigSpecList.forEach((item, index) => {
            this.$refs.form.validateField(
              `resaleConfigList.${idx}.resaleConfigList.${llmIndex}.resaleConfigSpecList.${index}`
            )
          })
        })
      })
    },

 

//滚动条样式
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track-piece {
background-color: transparent; //滚动槽
border-radius: 6px;
}
::-webkit-scrollbar-thumb:vertical {
height: 8px;
background-color: #BDBDBD;
border-radius: 6px;
}
::-webkit-scrollbar-thumb:horizontal {
width: 8px;
background-color: #BDBDBD;
border-radius: 6px;
}
//滚动条鼠标移上去的样式
::-webkit-scrollbar-thumb:vertical:hover,::-webkit-scrollbar-thumb:horizontal:hover
{
background-color: #808080;
}
html, body, div, section, span, ul, ol {
scrollbar-color: #c2c2c2 #e7e7e7;
scrollbar-width: thin;
}

 

posted @ 2025-09-25 14:47  我是前端QQ942031558  阅读(4)  评论(0)    收藏  举报