禅道bug修复

This commit is contained in:
BianLzhaoMin 2025-08-28 16:11:20 +08:00
parent f6b2eeaec0
commit b6ad2a8578
6 changed files with 69 additions and 13 deletions

View File

@ -222,3 +222,10 @@ aside {
font-size: 14px;
color: $red;
}
.files-content {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}

View File

@ -9,9 +9,9 @@ import { saveAs } from 'file-saver'
import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
const systemConfig = JSON.parse(localStorage.getItem('systemConfig')) || {
requestConfig: {
encryptRequest: false,
checkIntegrity: false,
encryptResponse: false,
encryptRequest: true,
checkIntegrity: true,
encryptResponse: true,
},
}
@ -90,6 +90,7 @@ service.interceptors.request.use(
if (
systemConfig.requestConfig.encryptRequest &&
encryptRequest
// true
) {
console.log(data)
console.log(hashWithSM3AndSalt(data))

View File

@ -446,11 +446,4 @@ export default {
}
</script>
<style lang="scss" scoped>
.files-content {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
</style>
<style lang="scss" scoped></style>

View File

@ -53,7 +53,7 @@
size="mini"
type="text"
style="color: #f56c6c"
@click="onHandleDelete($scope.index, scope)"
@click="onHandleDelete(scope.$index, scope)"
>
删除
</el-button>

View File

@ -8,6 +8,7 @@
placeholder="请选择人员"
@change="onChangePerson"
v-model="queryPersonForm.selectPersonId"
:disabled="Object.keys(editRow).length > 0"
>
<el-option
:key="item.value"
@ -26,6 +27,7 @@
value-format="yyyy-MM-dd"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="pickerOptions"
v-model="queryPersonForm.time"
/>
</el-form-item>
@ -152,6 +154,28 @@ export default {
cardReplacementDateList: [],
//
editRepairDateList: [],
pickerOptions: {
// 1
disabledDate(time) {
//
const today = new Date()
// 23:59:59
today.setHours(23, 59, 59, 999)
// 1
const lastMonthFirstDay = new Date()
lastMonthFirstDay.setMonth(lastMonthFirstDay.getMonth() - 1) //
lastMonthFirstDay.setDate(1) // 1
lastMonthFirstDay.setHours(0, 0, 0, 0) // 0
// 1
return (
time.getTime() < lastMonthFirstDay.getTime() ||
time.getTime() > today.getTime()
)
},
},
}
},
methods: {
@ -238,7 +262,9 @@ export default {
}
this.cardReplacementDateList = tempList.sort((a, b) => {
return a.date - b.date
if (a.currentDate < b.currentDate) return -1
if (a.currentDate > b.currentDate) return 1
return 0
})
this.$nextTick(() => {

View File

@ -73,6 +73,26 @@
'docx',
]"
/> -->
<div
:key="item.id"
class="files-content"
v-for="item in detailsParams.fileList"
>
<el-tag
@click="onHandlePreviewFile(item)"
style="cursor: pointer"
>
{{ item.originFileName }}
</el-tag>
<span
class="cursor-blue"
@click="onHandleDownloadFile(item)"
>
下载
</span>
</div>
</el-form-item>
</el-col>
</el-row>
@ -112,6 +132,15 @@ export default {
})
this.tableData = res.repairCardDetails
this.detailsParams.repairRemark = res.repairRemark
this.detailsParams.fileList = res.files
},
onHandlePreviewFile(item) {
window.open(item.lsUrl, '_blank')
},
onHandleDownloadFile(item) {
window.open(item.lsUrl, '_blank')
},
},