修改测试bug

This commit is contained in:
GGJ
2024-12-11 11:33:44 +08:00
parent 22d85dfca1
commit 26c971f3b0
10 changed files with 197 additions and 108 deletions

View File

@@ -38,7 +38,7 @@
:show-file-list="false" :auto-upload="false" :on-change="bulkImport">
<el-button type="primary" class="ml10" icon="el-icon-Tickets">批量导入</el-button>
</el-upload>
<el-button type="primary" class="ml10" @click="add" icon="el-icon-Plus">新增设备</el-button>
<el-button type="primary" class="ml10" @click="add" icon="el-icon-Plus">设备出厂管理</el-button>
</template>
</TableHeader>
<Table ref="tableRef"></Table>
@@ -132,7 +132,7 @@ const rules = reactive({
cntractNo: [{ required: true, message: '合同号不能为空', trigger: 'blur' }]
})
const dialogFormVisible = ref(false)
const dialogTitle = ref('新增设备')
const dialogTitle = ref('设备出厂管理')
const loading = ref<boolean>(false)
const devModelOptions: any = ref([])
queryByCode('Device_Type').then(res => {
@@ -249,7 +249,7 @@ const tableStore = new TableStore({
width: 100,
render: 'tag',
custom: {
1: 'primary',
1: 'error',
2: 'success',
// 3: 'primary',
// 4: 'primary',
@@ -270,7 +270,7 @@ const tableStore = new TableStore({
{
title: '操作',
align: 'center',
width: '180',
width: '220',
render: 'buttons',
buttons: [
//直连装置注册
@@ -567,7 +567,7 @@ const bulkImport = (e: any) => {
// 新增
const add = () => {
dialogFormVisible.value = true
dialogTitle.value = '新增设备'
dialogTitle.value = '设备出厂管理'
}
// 确认
@@ -577,7 +577,7 @@ const onSubmit = () => {
ruleFormRef.value.validate((valid: any) => {
if (valid) {
if (dialogTitle.value == '新增设备') {
if (dialogTitle.value == '设备出厂管理') {
addEquipmentDelivery(form).then(res => {
ElMessage.success('新增成功')
if (devTypeOptions.value.filter((item: any) => item.value == form.devType)[0].code == 'Portable') {