添加数据自动解密

This commit is contained in:
haozq 2025-04-07 16:01:43 +08:00
parent 3b07a9fc13
commit fc60289c32
24 changed files with 140 additions and 94 deletions

View File

@ -37,7 +37,7 @@ service.interceptors.request.use(config => {
let iscUserId=getIscId(); let iscUserId=getIscId();
console.log("iscUserId==="+iscUserId); console.log("iscUserId==="+iscUserId);
// 是否需要加密 // 是否需要加密
let aqEnnable = true; let aqEnnable = false;
// 是否需要设置 token // 是否需要设置 token
const isToken = (config.headers || {}).isToken === false const isToken = (config.headers || {}).isToken === false
// 是否需要防止数据重复提交 // 是否需要防止数据重复提交

View File

@ -287,7 +287,9 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -300,7 +300,9 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -253,7 +253,9 @@ export default {
async handleUpdate(row) { async handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
async isOpenEditDialog(){ async isOpenEditDialog(){

View File

@ -59,9 +59,9 @@
</el-table-column> </el-table-column>
<el-table-column key="org" label="建管单位" align="center" prop="org" /> <el-table-column key="org" label="建管单位" align="center" prop="org" />
<el-table-column key="proName" label="工程名称" prop="proName" align="center" :show-overflow-tooltip="true" /> <el-table-column key="proName" label="工程名称" prop="proName" align="center" :show-overflow-tooltip="true" />
<el-table-column key="bidCode" label="标段编码" prop="bidCode" align="center" /> <el-table-column key="bidCode" label="工程编码" prop="bidCode" align="center" />
<el-table-column key="proCode" label="工程编码" prop="proCode" align="center" /> <!-- <el-table-column key="proCode" label="工程编码" prop="proCode" align="center" />-->
<el-table-column key="signCode" label="单项编码" prop="signCode" align="center" /> <!-- <el-table-column key="signCode" label="工程编码" prop="signCode" align="center" />-->
<el-table-column key="proType" label="工程类型" align="center" prop="proType" /> <el-table-column key="proType" label="工程类型" align="center" prop="proType" />
<el-table-column prop="proScale" label="规模" align="center" /> <el-table-column prop="proScale" label="规模" align="center" />
<el-table-column prop="jlUnit" label="监理单位" align="center" :show-overflow-tooltip="true" /> <el-table-column prop="jlUnit" label="监理单位" align="center" :show-overflow-tooltip="true" />
@ -71,7 +71,7 @@
<el-table-column prop="startTime" label="实际开始时间" align="center" /> <el-table-column prop="startTime" label="实际开始时间" align="center" />
<el-table-column prop="planEndTime" label="计划结束时间" align="center" /> <el-table-column prop="planEndTime" label="计划结束时间" align="center" />
<el-table-column prop="endTime" label="实际结束时间" align="center" /> <el-table-column prop="endTime" label="实际结束时间" align="center" />
<el-table-column prop="proCost" label="项目总成本" align="center" /> <!-- <el-table-column prop="proCost" label="项目总成本" align="center" />-->
<!-- <el-table-column prop="bidType" label="标段类型" align="center" /> --> <!-- <el-table-column prop="bidType" label="标段类型" align="center" /> -->
<el-table-column prop="sgManage" label="施工项目经理" align="center" /> <el-table-column prop="sgManage" label="施工项目经理" align="center" />
<el-table-column prop="jlManage" label="监理工程师" align="center" /> <el-table-column prop="jlManage" label="监理工程师" align="center" />
@ -642,7 +642,9 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -209,20 +209,20 @@ export default {
this.dialogFormVisible = false this.dialogFormVisible = false
}, },
loadWaterMark() { loadWaterMark() {
// // //
const nickName = sessionStorage.getItem('nickName'); // const nickName = sessionStorage.getItem('nickName');
const roleName = sessionStorage.getItem('roleName'); // const roleName = sessionStorage.getItem('roleName');
let str1 = nickName ? decryptData(nickName) : ''; // let str1 = nickName ? decryptData(nickName) : '';
let str2 = roleName ? decryptData(roleName) : ''; // let str2 = roleName ? decryptData(roleName) : '';
let str3 = '建设部'; // let str3 = '';
if (nickName || roleName) { // if (nickName || roleName) {
setWaterMark(str1, str2, str3,this.$refs.content); // setWaterMark(str1, str2, str3,this.$refs.content);
} // }
}, },
phoneFormatter(row, column, cellValue, index){ phoneFormatter(row, column, cellValue, index){
if(row.teamLeaderPhone){ if(row.teamLeaderPhone){
let teamLeaderPhone = decryptData(row.teamLeaderPhone).replace(/\/g, ''); // let teamLeaderPhone = decryptData(row.teamLeaderPhone).replace(/\/g, '');
const formatPhone = desensitize(teamLeaderPhone,'phone').replace(/\/g, ''); const formatPhone = desensitize(row.teamLeaderPhone,'phone').replace(/\/g, '');
return formatPhone; return formatPhone;
}else{ }else{
return ''; return '';
@ -266,7 +266,9 @@ export default {
getList() { getList() {
this.listLoading = true this.listLoading = true
getQualityList(this.listQuery).then((response) => { getQualityList(this.listQuery).then((response) => {
console.log(response)
this.list = response.rows.map(item => { this.list = response.rows.map(item => {
console.log(item)
const { score } = item const { score } = item
item.score = Number(score) item.score = Number(score)
if (item.score > 5) item.score = 5 if (item.score > 5) item.score = 5
@ -311,7 +313,9 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -393,7 +393,10 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -295,7 +295,9 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -300,7 +300,9 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -295,7 +295,9 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -306,7 +306,9 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -296,7 +296,9 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -473,7 +473,8 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -308,7 +308,9 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -244,7 +244,9 @@ export default {
}, },
// //
handleEdit(val) { handleEdit(val) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) // this.checkRow = _.cloneDeep(row);
this.planEditMode = true
//this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
// //

View File

@ -263,7 +263,9 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -172,8 +172,8 @@ export default {
phoneFormatter(row, column, cellValue, index){ phoneFormatter(row, column, cellValue, index){
if(row.emergencySource){ console.log(1111) if(row.emergencySource){ console.log(1111)
// console.log(row.emergencySource) // console.log(row.emergencySource)
let en= decryptData(row.emergencySource); // let en= decryptData(row.emergencySource);
let phone =en.replace(/\/g, ''); let phone =row.emergencySource.replace(/\/g, '');
const formatPhone = desensitize(phone,'phone'); const formatPhone = desensitize(phone,'phone');
// return row.emergencySource; // return row.emergencySource;
return formatPhone; return formatPhone;
@ -245,7 +245,8 @@ export default {
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -263,8 +263,10 @@ export default {
}, },
// //
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -238,7 +238,9 @@ export default {
}, },
handleUpdate(row) { // handleUpdate(row) { //
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){
let row = this.checkRow; let row = this.checkRow;

View File

@ -345,7 +345,9 @@ export default {
}, },
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -224,7 +224,9 @@ export default {
}, },
handleUpdate(row) { // handleUpdate(row) { //
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){
let row = this.checkRow; let row = this.checkRow;

View File

@ -310,7 +310,9 @@ export default {
}, },
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){
let row = this.checkRow; let row = this.checkRow;

View File

@ -440,7 +440,9 @@ export default {
}, },
handleUpdate(row) { handleUpdate(row) {
this.checkRow = _.cloneDeep(row); this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) this.isOpenEditDialog();
// this.openModulDialog('', 'pwdVerifiers', '600px', true)
}, },
isOpenEditDialog(){ isOpenEditDialog(){

View File

@ -37,7 +37,8 @@ module.exports = {
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://36.33.26.201:19090/zhgd`, // target: `http://36.33.26.201:19090/zhgd`,
// target: `http://27.50.49.56:8000/zhgd`, // target: `http://27.50.49.56:8000/zhgd`,
target: `http://11.158.16.194:21624/zhgd`, target: `http://192.168.0.14:13030/zhgd`,
// target: `http://11.158.16.194:21624/zhgd`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''