微调
This commit is contained in:
@@ -191,7 +191,7 @@ const rules = ref({
|
||||
// fileList: [{ required: true, message: '请上传文件', trigger: 'change' }],
|
||||
})
|
||||
const changeSubstationFlag = () => {
|
||||
console.log(form.value.customSubstationFlag)
|
||||
|
||||
//处理所属变电站手都输入1/下拉数据0
|
||||
key.value += 1
|
||||
if (form.value.customSubstationFlag == 0) {
|
||||
@@ -283,7 +283,6 @@ const changeArea = () => {
|
||||
treeList.value.forEach((item: any) => {
|
||||
if (item.id == form.value.deptId) {
|
||||
list.push(item)
|
||||
|
||||
} else {
|
||||
if (item.children.filter((v: any) => v.id == form.value.deptId).length == 0) {
|
||||
item.children.forEach((v: any) => {
|
||||
@@ -295,15 +294,10 @@ const changeArea = () => {
|
||||
// return k
|
||||
// }
|
||||
// }))
|
||||
// }))
|
||||
console.log("🚀 ~ list.push ~ list:", list)
|
||||
|
||||
|
||||
// }))
|
||||
} else {
|
||||
list.push(item.children.filter((v: any) => v.id == form.value.deptId)[0])
|
||||
}
|
||||
|
||||
|
||||
// if (form.value.deptId != treeListCgy.value[0].id) {
|
||||
// list.push(...treeListCgy.value)
|
||||
// }
|
||||
|
||||
@@ -1328,7 +1328,6 @@ const filterUsers = (arr: any) => {
|
||||
userTypeList.value = userTypeList.value.filter(item => !arr.includes(item.value))
|
||||
}
|
||||
const setcontroFlag = () => {
|
||||
console.log(12333)
|
||||
|
||||
controFlag.value = true
|
||||
}
|
||||
|
||||
@@ -603,7 +603,7 @@ const preview = (val: any, url: any) => {
|
||||
}
|
||||
//预测评估报告
|
||||
if (val == 'predictionEvaluationReport') {
|
||||
console.log(url, '9999999')
|
||||
|
||||
predictionEvaluationReportRef?.value.open(url)
|
||||
}
|
||||
//预测评估评审意见报告
|
||||
|
||||
@@ -160,7 +160,7 @@ const { query } = useRoute() // 查询参数
|
||||
const props = defineProps({
|
||||
id: propTypes.string.def(undefined)
|
||||
})
|
||||
console.log(propTypes.string.def(undefined), '999999999999传参')
|
||||
|
||||
const detailLoading = ref(false) // 表单的加载中
|
||||
const detailData = ref<any>({}) // 详情数据
|
||||
const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编号
|
||||
@@ -199,7 +199,7 @@ getEffectUserList()
|
||||
/** 获得数据 */
|
||||
const getInfo = async () => {
|
||||
detailLoading.value = true
|
||||
console.log(props.id, queryId, '流程详情内部的id')
|
||||
|
||||
try {
|
||||
await getPlanDetailsById({ id: props.id || queryId }).then(res => {
|
||||
detailData.value = res.data
|
||||
|
||||
@@ -117,7 +117,7 @@ const tableStore = new TableStore({
|
||||
inactiveValue: '1',
|
||||
render: 'switch',
|
||||
onChangeField: (row: any, value) => {
|
||||
console.log('🚀 ~ row:', 444123, value)
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ const open = async (
|
||||
}
|
||||
if (supervisionReport) {
|
||||
let arrPath = supervisionReport.split(',')
|
||||
console.log('🚀 ~ arrPath:', arrPath)
|
||||
|
||||
await getFileNameAndFilePath({ filePath: arrPath[0] }).then(res => {
|
||||
supervisionReportDetail.supervisionReportPath = res.data.url
|
||||
supervisionReportDetail.supervisionReportName = res.data.fileName
|
||||
|
||||
@@ -602,7 +602,7 @@ const preview = (val: any, url: any) => {
|
||||
}
|
||||
//预测评估报告
|
||||
if (val == 'predictionEvaluationReport') {
|
||||
console.log(url, '9999999')
|
||||
|
||||
predictionEvaluationReportRef?.value.open(url)
|
||||
}
|
||||
//预测评估评审意见报告
|
||||
|
||||
@@ -455,7 +455,7 @@ const terminalModelList = [
|
||||
const substationList: any = ref([])
|
||||
//字典获取通讯类型
|
||||
const frontTypeList = dictData.getBasicData('Front_Type', ['CLD', '61850'])
|
||||
console.log('🚀 ~ frontTypeList:', frontTypeList)
|
||||
|
||||
//定义通讯状态下拉框数据
|
||||
const communicationStatusList = [
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ const getInfo = async () => {
|
||||
getFileNameAndFilePath({ filePath: res.data.testRunReport }).then(report => {
|
||||
detailData.value.reportUrl = report.data.url
|
||||
detailData.value.reportName = report.data.fileName
|
||||
console.log('🚀 ~ getFileNameAndFilePath ~ detailData.value:', detailData.value)
|
||||
// console.log('🚀 ~ getFileNameAndFilePath ~ detailData.value:', detailData.value)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -376,7 +376,6 @@ const startRunTest = () => {
|
||||
// 下载报告
|
||||
const downloadTheReport = (url: string) => {
|
||||
getFileNameAndFilePath({ filePath: url }).then((res: any) => {
|
||||
console.log(res.data.url, 'res')
|
||||
const link = document.createElement('a')
|
||||
link.href = res.data.url
|
||||
link.download = res.data.name
|
||||
|
||||
Reference in New Issue
Block a user