基础管理-密码修改

This commit is contained in:
cwchen 2024-09-20 13:30:03 +08:00
parent bdd86d8101
commit 8e26ac07cf
6 changed files with 60 additions and 12 deletions

View File

@ -146,6 +146,7 @@ export default {
components: { GtSelect, ProjectSelect, Pagination,modulDialog },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -204,7 +205,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -259,6 +260,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
this.temp = Object.assign({}, row)
this.temp.areaType = Number(this.temp.areaType)
this.dialogStatus = 'update'
@ -267,7 +274,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -279,6 +286,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.getList()
this.dialogFormVisible = false
}).finally(() => {

View File

@ -145,6 +145,7 @@ export default {
components: { BuildSelect, Pagination, modulDialog },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -211,7 +212,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -272,6 +273,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
getPMItemDetail({ id: row.id }).then(res => {
this.temp = Object.assign({}, res.data)
})
@ -281,7 +288,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -293,6 +300,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.getList()
this.dialogFormVisible = false
})

View File

@ -129,6 +129,7 @@ export default {
directives: { waves },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -196,7 +197,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -225,6 +226,12 @@ export default {
},
async handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
async isOpenEditDialog(){
let row = this.checkRow;
await getProcessItemDetail({ planId: row.planId, bidCode: row.bidCode }).then((res) => {
// this.$set(this.processType,res.data.proType)
// this.$set(this.bidCode,res.data.bidCode)
@ -255,7 +262,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -267,6 +274,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.getList()
this.dialogFormVisible = false
}).finally(() => {

View File

@ -421,6 +421,7 @@ export default {
directives: { waves },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -514,7 +515,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -615,6 +616,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
getProjectItemDetail({ proId: row.proId }).then((res) => {
this.temp = Object.assign({}, res.data)
const { fileData } = res.data
@ -648,7 +655,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -715,6 +722,7 @@ export default {
duration: 2000
})
this.dialogFormVisible = false
this.checkRow = {};
this.getList()
}).finally(() => {
// this.dialogFormVisible = false

View File

@ -149,6 +149,7 @@ export default {
components: { Pagination,modulDialog },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -221,7 +222,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -284,6 +285,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
getQualityItemDetail({ evalId: row.evalId }).then((res) => {
const { score } = res.data
this.temp = Object.assign({}, res.data)
@ -301,7 +308,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -313,6 +320,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.getList()
this.dialogFormVisible = false
}).finally(() => {

View File

@ -205,6 +205,7 @@ export default {
components: { ProjectNoSelect, BuildSelect, Pagination,modulDialog },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -302,7 +303,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -365,6 +366,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
getSingleItemDetail({ id: row.id }).then(res => {
this.temp = Object.assign({}, res.data)
this.temp.proType = parseInt(res.data.proType)
@ -376,7 +383,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -388,6 +395,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.getList()
this.dialogFormVisible = false
}).finally(() => {