licp
2024-07-01 e0a71526e0138a89f2dae838c36eaf9e99994a51
修改密码验证
已修改4个文件
70 ■■■■ 文件已修改
src/components/do/b1-ins-order/add.vue 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b3-work-time-management/work-time-management.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/tool/value-table.vue 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-ins-order/add.vue
@@ -712,6 +712,28 @@
        </el-row>
      </span>
    </el-dialog>
    <el-dialog title="温度循环要求填写" :visible.sync="circulateShow" width="800px" :show-close="false">
      <div class="search" style="display: flex;background: transparent;">
        <div class="search_thing">
          <div class="search_label">保温时间:</div>
          <div class="search_input">
            <el-input v-model="circulateForm.entrustCode" size="small" placeholder=""></el-input>
          </div>
        </div>
        <div class="search_thing">
          <div class="search_label">循环次数:</div>
          <div class="search_input">
            <el-input v-model="circulateForm.entrustCode" size="small" placeholder=""></el-input>
          </div>
        </div>
        <div class="search_thing">
          <div class="search_label">温度点:</div>
          <div class="search_input">
            <el-input v-model="circulateForm.entrustCode" size="small" placeholder=""></el-input>
          </div>
        </div>
      </div>
    </el-dialog>
  </div>
</template>
@@ -877,6 +899,8 @@
        symbolList:[
        'RTS','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'],
        inspectionItem:null,
        circulateShow:false,
        circulateForm:{}
      }
    },
    watch: {
@@ -1565,7 +1589,6 @@
        this.$refs.productTable.toggleRowSelection(row, true);
      },
      upProductSelect(selection, row) {
        console.log('danxuan', row)
        this.bsm1DiaList = []
        row.state = row.state == 1 ? 0 : 1
        if (row.bsm === '1' && row.section !== '' && row.section !== null && row.state === 1) {
@@ -1579,12 +1602,12 @@
          row.bsm1 = false
        }
        if (row.bsm === '1' && row.inspectionItem === '熔接损耗' && this.sampleList.length > 1 && row.state === 1) {
          this.bsm2 = true
          this.bsm1Dia = true
          if (this.bsm2Val2.length === 0) {
            this.bsm2Val = (this.sampleList.length - 1) * this.sampleList.length / 2
            this.computationalPairing(this.sampleList.length)
            this.bsm2Val2 = this.HaveJson(this.bsm2Val3)
            this.bsm2 = true
            this.bsm1Dia = true
          }
        } else if (row.bsm === '1' && row.inspectionItem === '熔接损耗' && row.state === 1 && this.sampleList.length > 1) {
          this.bsm2 = false
@@ -1614,6 +1637,10 @@
          }
          return item
        })
        if (row.inspectionItem === '温度循环') {
          this.circulateShow = true;
          return
        }
        this.getProNum()
      },
      permute(nums) {
src/components/do/b3-work-time-management/work-time-management.vue
@@ -463,6 +463,7 @@
    this.entityCopy1 = this.HaveJson(this.componentData1.entity);
    this.componentData.tagField.weekDay.select = this.weekList
    this.componentData.selectField.weekDay.select = this.weekList
    this.getPower()
  },
  methods:{
    getPower(){
@@ -483,6 +484,7 @@
          if (power[i].menuMethod == 'insertAuxiliaryWorkingHoursDay') {
                        add = true
                    }
          console.log(add)
          if (power[i].menuMethod == 'updateAuxiliaryWorkingHoursDay') {
                        up = true
                    }
@@ -493,7 +495,7 @@
                        ratify = true
                    }
                }
        if (!approve) {
        if (!ratify) {
                    this.componentData.do.splice(3, 1)
                }
        if (!check) {
src/components/tool/value-table.vue
@@ -793,21 +793,30 @@
            return
          }
        }
        this.upLoad = true
        for (var a in this.data.selectField) {
          if (this.data.selectField[a].choose == true) {
            this.upData[a] = JSON.stringify(this.upData[a])
          }
        }
        this.upHead.forEach((item, index) => {
          if (this.data.cascaderField && this.data.cascaderField[item.label]) {
            if (this.upData[item.label]) {
              this.upData[item.label] = JSON.stringify(this.upData[item.label])
            } else {
              this.upData[item.label] = ''
        for (var i = 0; i < this.upHead.length; i++) {
          if(this.upHead[i].label == 'password'){
            if(this.upData[this.upHead[i].label]){
              const reg2 =/^(?=.*?[a-z])(?=.*?[A-Z])(?=.*?\d)(?=.*?[~!#@$%^*&()_+{}\[\]|\\;:'",<.>\/?])[a-zA-Z\d~!#@$%^*&()_+{}\[\]|\\;:'",<.>\/?]*$/;
              if (!reg2.test(this.upData[this.upHead[i].label])) {
                this.$message.error('密码必须包括数字、大小写字母以及特殊字符')
                return
              }
            }
          }
        })
          if (this.data.cascaderField && this.data.cascaderField[this.upHead[i].label]) {
            if (this.upData[this.upHead[i].label]) {
              this.upData[this.upHead[i].label] = JSON.stringify(this.upData[this.upHead[i].label])
            } else {
              this.upData[this.upHead[i].label] = ''
            }
          }
        }
        this.upLoad = true
        this.$axios.post(this.upUrl, this.upData, {
          headers: {
            'Content-Type': 'application/json'
src/view/index.vue
@@ -600,13 +600,21 @@
        this.editVisible = true;
      },
      handleEdit(){
        const reg2 =
          /^(?=.*?[a-z])(?=.*?[A-Z])(?=.*?\d)(?=.*?[~!#@$%^*&()_+{}\[\]|\\;:'",<.>\/?])[a-zA-Z\d~!#@$%^*&()_+{}\[\]|\\;:'",<.>\/?]*$/;
        if (!this.query.oldPassword) {
          this.$message.error('请填写旧密码')
          return
        }else if (!reg2.test(this.query.oldPassword)) {
          this.$message.error('密码必须包括数字、大小写字母以及特殊字符')
            return
        }
        if (!this.query.newPassWord) {
          this.$message.error('请填写旧密码')
          return
        }else if (!reg2.test(this.query.newPassWord)) {
          this.$message.error('密码必须包括数字、大小写字母以及特殊字符')
            return
        }
        this.$axios.post(this.$api.user.upUserPassword, {...this.query}).then(res => {
            if (res.code == 201) {