flx:提交企业密码超期

This commit is contained in:
X_Rian 2024-08-10 19:06:00 +08:00
parent 4048017a81
commit 805996f577

View File

@ -155,6 +155,20 @@
{{ form.showFileCenter == 1 ? '是' : '否' }} {{ form.showFileCenter == 1 ? '是' : '否' }}
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-form-item :label="'是否开启用户密码超期重置'" prop="enablePasswordReset">
<el-switch
v-model="enablePasswordReset"
active-color="#13ce66"
inactive-color="#ff4949"
:active-value="1"
:inactive-value="0"
@change='switchChangePassword'
>
</el-switch>
{{ enablePasswordReset == 1 ? '是' : '否' }}
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row :gutter="12"> <el-row :gutter="12">
<el-col :span="6"> <el-col :span="6">
@ -319,10 +333,12 @@ export default {
isShowProjectFront: 0, // isShowProjectFront: 0, //
isOpenCertificateExpireWarn: 0, // isOpenCertificateExpireWarn: 0, //
certificateExpireWarnAheadDay: 0, // certificateExpireWarnAheadDay: 0, //
enablePasswordReset: 0, //
}, },
zoomType: '0', zoomType: '0',
iconType: '1', iconType: '1',
areaType: '1', areaType: '1',
enablePasswordReset: 0, //
rules: { rules: {
platformName: [ platformName: [
{ {
@ -371,6 +387,7 @@ export default {
this.upload_btn4 = true; this.upload_btn4 = true;
} }
this.zoomType = res.result.zoomType this.zoomType = res.result.zoomType
this.enablePasswordReset = res.result.enablePasswordReset
console.log(res.result.iconType) console.log(res.result.iconType)
this.iconType = res.result.iconType ? res.result.iconType : '1' this.iconType = res.result.iconType ? res.result.iconType : '1'
this.areaType = res.result.areaType ? res.result.areaType : '1' this.areaType = res.result.areaType ? res.result.areaType : '1'
@ -395,6 +412,7 @@ export default {
this.form.zoomType = this.zoomType this.form.zoomType = this.zoomType
this.form.iconType = this.iconType this.form.iconType = this.iconType
this.form.areaType = this.areaType this.form.areaType = this.areaType
this.form.enablePasswordReset = this.enablePasswordReset
this.form.headquartersSn = this.$store.state.userInfo.headquartersSn this.form.headquartersSn = this.$store.state.userInfo.headquartersSn
// console.log('',this.form) // console.log('',this.form)
editSystemLogoConfigApi(this.form).then((res) => { editSystemLogoConfigApi(this.form).then((res) => {
@ -525,7 +543,11 @@ export default {
handlePictureCardPreview(file) { handlePictureCardPreview(file) {
this.dialogImageUrl = file.url this.dialogImageUrl = file.url
this.dialogVisible = true this.dialogVisible = true
} },
//
switchChangePassword(val){
this.form.enablePasswordReset=val
},
} }
} }
</script> </script>