微调
This commit is contained in:
@@ -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