Merge branch 'master' of http://192.168.1.22:3000/frontend/pqs-9100_client
This commit is contained in:
@@ -77,7 +77,7 @@ const acceptParams = (params: ExcelParameterProps) => {
|
|||||||
// Excel 导入模板下载
|
// Excel 导入模板下载
|
||||||
const downloadTemp = () => {
|
const downloadTemp = () => {
|
||||||
if (!parameter.value.tempApi) return;
|
if (!parameter.value.tempApi) return;
|
||||||
useDownload(parameter.value.tempApi, `${parameter.value.title}模板`,{},true);
|
useDownload(parameter.value.tempApi, `${parameter.value.title}模板`,{},false);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 文件上传
|
// 文件上传
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
<el-input v-model="formContent.softwareVersion" placeholder="请输入软件版本"/>
|
<el-input v-model="formContent.softwareVersion" placeholder="请输入软件版本"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-divider >参数信息</el-divider>
|
<el-divider >参数信息</el-divider>
|
||||||
<el-form-item label="设备通道数" prop="devChns" >
|
<el-form-item label="通道数" prop="devChns" >
|
||||||
<el-select v-model="formContent.devChns" clearable placeholder="请选择设备通道数">
|
<el-select v-model="formContent.devChns" clearable placeholder="请选择设备通道数">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dictStore.getDictData('Dev_Chns')"
|
v-for="item in dictStore.getDictData('Dev_Chns')"
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'devChns',
|
prop: 'devChns',
|
||||||
label: '设备通道数',
|
label: '通道数',
|
||||||
minWidth: 110,
|
minWidth: 110,
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,14 +8,14 @@
|
|||||||
:cell-style="{ textAlign: 'center' }"
|
:cell-style="{ textAlign: 'center' }"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:span-method="spanMethod"
|
:span-method="spanMethod"
|
||||||
border
|
:border="true"
|
||||||
class="custom-table"
|
class="custom-table"
|
||||||
>
|
>
|
||||||
<el-table-column label="被测量">
|
<el-table-column label="被测量">
|
||||||
<el-table-column prop="col1" width="120"/>
|
<el-table-column prop="col1" width="150"/>
|
||||||
<el-table-column prop="col2" width="100"/>
|
<el-table-column prop="col2" width="120" />
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="deviceLevel" label="检测装置级别" />
|
<el-table-column prop="deviceLevel" label="检测装置级别" width="120"/>
|
||||||
<el-table-column prop="measurementType" label="测量类型" />
|
<el-table-column prop="measurementType" label="测量类型" />
|
||||||
<el-table-column prop="condition" label="测量条件" />
|
<el-table-column prop="condition" label="测量条件" />
|
||||||
<el-table-column prop="maxErrorValue" label="最大误差" />
|
<el-table-column prop="maxErrorValue" label="最大误差" />
|
||||||
@@ -78,56 +78,84 @@ const spanMethod = ({
|
|||||||
rowIndex,
|
rowIndex,
|
||||||
columnIndex,
|
columnIndex,
|
||||||
}: SpanMethodProps) => {
|
}: SpanMethodProps) => {
|
||||||
|
if (columnIndex === 0) {
|
||||||
if (columnIndex === 0 ) { // 检查是否为第一列
|
if (rowIndex <= 1 || rowIndex === 7 || rowIndex == 20) {
|
||||||
|
|
||||||
if (rowIndex === 2||rowIndex === 5 ||rowIndex === 21||rowIndex === 23) { // 检查是否为第三行
|
|
||||||
return {
|
return {
|
||||||
rowspan: 2, // 合并行数
|
rowspan: 1,
|
||||||
colspan: 1, // 单元格列数
|
colspan: 2,
|
||||||
};
|
|
||||||
}else if (rowIndex === 8) { //
|
|
||||||
return {
|
|
||||||
rowspan: 8,
|
|
||||||
colspan: 1,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
else if (rowIndex === 16) { //
|
|
||||||
return {
|
|
||||||
rowspan: 4,
|
|
||||||
colspan: 1,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
else if (rowIndex === 3 ||rowIndex === 6 ||rowIndex === 9 || rowIndex === 10|| rowIndex === 11
|
if (rowIndex === 2) {
|
||||||
|| rowIndex === 12|| rowIndex === 13|| rowIndex === 14|| rowIndex === 15
|
return {
|
||||||
|| rowIndex === 17 || rowIndex === 18|| rowIndex === 19
|
rowspan: 3, // 不显示该单元格
|
||||||
|| rowIndex === 22 ||rowIndex === 24) { // 检查是否为第四行
|
colspan: 2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (rowIndex === 3 || rowIndex === 4 || rowIndex === 6 || rowIndex >= 9 && rowIndex <= 15 || rowIndex >= 17 && rowIndex <= 19 || rowIndex === 22 || rowIndex === 24) {
|
||||||
return {
|
return {
|
||||||
rowspan: 0, // 不显示该单元格
|
rowspan: 0, // 不显示该单元格
|
||||||
colspan: 0,
|
colspan: 0,
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (rowIndex === 5 || rowIndex === 23) {
|
||||||
if (columnIndex === 1 || columnIndex === 2){
|
|
||||||
|
|
||||||
if (rowIndex === 2
|
|
||||||
|| rowIndex === 8|| rowIndex === 10|| rowIndex === 12|| rowIndex === 14
|
|
||||||
|| rowIndex === 16|| rowIndex === 18
|
|
||||||
|| rowIndex === 21) {
|
|
||||||
return {
|
return {
|
||||||
rowspan: 2,
|
rowspan: 2,
|
||||||
colspan: 1,
|
colspan: 1,
|
||||||
};
|
|
||||||
}
|
}
|
||||||
else if (rowIndex === 3
|
}
|
||||||
|| rowIndex === 9|| rowIndex === 11|| rowIndex === 13|| rowIndex === 15
|
if (rowIndex === 8) {
|
||||||
|| rowIndex === 17|| rowIndex === 19
|
|
||||||
|| rowIndex === 22) { // 检查是否为第四行
|
|
||||||
return {
|
return {
|
||||||
rowspan: 0, // 不显示该单元格
|
rowspan: 8,
|
||||||
|
colspan: 2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (rowIndex === 16) {
|
||||||
|
return {
|
||||||
|
rowspan: 4,
|
||||||
|
colspan: 2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (rowIndex === 21 || rowIndex === 22) {
|
||||||
|
return {
|
||||||
|
rowspan: 2,
|
||||||
|
colspan: 2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (columnIndex === 1) {
|
||||||
|
if (rowIndex <= 4 || rowIndex >= 7 && rowIndex <= 22) {
|
||||||
|
return {
|
||||||
|
rowspan: 0,
|
||||||
colspan: 0,
|
colspan: 0,
|
||||||
};
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (columnIndex === 2) {
|
||||||
|
if (rowIndex === 2 || rowIndex === 8 || rowIndex === 10 || rowIndex === 12 || rowIndex === 14 || rowIndex === 16 || rowIndex === 18 || rowIndex === 21) {
|
||||||
|
return {
|
||||||
|
rowspan: 2,
|
||||||
|
colspan: 1,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (rowIndex === 3 || rowIndex === 9 || rowIndex === 11 || rowIndex === 13 || rowIndex === 15 || rowIndex === 17 || rowIndex === 19 || rowIndex === 22) {
|
||||||
|
return {
|
||||||
|
rowspan: 0,
|
||||||
|
colspan: 0,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (columnIndex === 3) {
|
||||||
|
if (rowIndex === 2 || rowIndex === 8 || rowIndex === 10 || rowIndex === 12 || rowIndex === 14 || rowIndex === 16 || rowIndex === 18 || rowIndex === 21) {
|
||||||
|
return {
|
||||||
|
rowspan: 2,
|
||||||
|
colspan: 1,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (rowIndex === 3 || rowIndex === 9 || rowIndex === 11 || rowIndex === 13 || rowIndex === 15 || rowIndex === 17 || rowIndex === 19 || rowIndex === 22) {
|
||||||
|
return {
|
||||||
|
rowspan: 0,
|
||||||
|
colspan: 0,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ const close = () => {
|
|||||||
const save = () => {
|
const save = () => {
|
||||||
try {
|
try {
|
||||||
dialogFormRef.value?.validate(async (valid: boolean) => {
|
dialogFormRef.value?.validate(async (valid: boolean) => {
|
||||||
console.log("11111111111111111")
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (formContent.value.id) {
|
if (formContent.value.id) {
|
||||||
await updateTestSource(formContent.value);
|
await updateTestSource(formContent.value);
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
:dialogTitle="dialogTitle"
|
:dialogTitle="dialogTitle"
|
||||||
:is-read-only="isReadOnly"
|
:is-read-only="isReadOnly"
|
||||||
@update:visible="dialogFormVisible = $event"
|
@update:visible="dialogFormVisible = $event"
|
||||||
|
ref='testSourcePopup'
|
||||||
/>
|
/>
|
||||||
<!-- 查看误差体系详细信息 -->
|
<!-- 查看误差体系详细信息 -->
|
||||||
<ErrorStandardDialog
|
<ErrorStandardDialog
|
||||||
@@ -62,6 +63,7 @@
|
|||||||
:formData='detail_dialogForm'
|
:formData='detail_dialogForm'
|
||||||
:dialogTitle='detail_dialogTitle'
|
:dialogTitle='detail_dialogTitle'
|
||||||
@update:visible='detail_dialogFormVisible = $event'
|
@update:visible='detail_dialogFormVisible = $event'
|
||||||
|
ref="errorStandardPopup"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<devTransfer
|
<devTransfer
|
||||||
@@ -177,7 +179,7 @@ const columns = reactive<ColumnProps<Plan.PlanAndSourceBO>[]>([
|
|||||||
render: scope => {
|
render: scope => {
|
||||||
return (
|
return (
|
||||||
<div class='flx-flex-start'>
|
<div class='flx-flex-start'>
|
||||||
<el-button type='primary' link onClick={() => showData(scope.row.testSourceName)}>
|
<el-button type='primary' link onClick={() => showTestSource(scope.row.testSourceName)}>
|
||||||
{scope.row.testSourceName}
|
{scope.row.testSourceName}
|
||||||
</el-button>
|
</el-button>
|
||||||
<moreButtons isShow={isVisible(scope.row)} ></moreButtons>
|
<moreButtons isShow={isVisible(scope.row)} ></moreButtons>
|
||||||
@@ -193,7 +195,7 @@ const columns = reactive<ColumnProps<Plan.PlanAndSourceBO>[]>([
|
|||||||
fieldNames: { label: 'label', value: 'id' },
|
fieldNames: { label: 'label', value: 'id' },
|
||||||
render: scope => {
|
render: scope => {
|
||||||
return (
|
return (
|
||||||
<el-button type='primary' link onClick={() => showData(scope.row.script_Id)}>
|
<el-button type='primary' link onClick={() => showTestScript(scope.row.script_Id)}>
|
||||||
{getScriptName(scope.row.script_Id)}
|
{getScriptName(scope.row.script_Id)}
|
||||||
</el-button>
|
</el-button>
|
||||||
)
|
)
|
||||||
@@ -278,15 +280,25 @@ function isVisible(row: Plan.PlanAndSourceBO) {
|
|||||||
else
|
else
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const errorStandardPopup = ref()
|
||||||
function showData(row: string) {
|
function showData(row: string) {
|
||||||
|
|
||||||
detail_dialogTitle.value = row
|
errorStandardPopup.value?.open(row, row)
|
||||||
detail_dialogFormVisible.value = true // 显示对话框
|
|
||||||
|
|
||||||
// router.push({
|
// router.push({
|
||||||
// path: "/machine/device",
|
// path: "/machine/device",
|
||||||
// query: { id: row }
|
// query: { id: row }
|
||||||
// });
|
// });
|
||||||
|
}
|
||||||
|
const testSourcePopup = ref()
|
||||||
|
function showTestSource(row: string) {
|
||||||
|
|
||||||
|
//testSourcePopup.value?.open('view', row,'模拟式')
|
||||||
|
}
|
||||||
|
|
||||||
|
function showTestScript(row: string) {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleFiles(event: Event) {
|
function handleFiles(event: Event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user