测试问题修改

This commit is contained in:
cwchen 2026-02-04 11:15:02 +08:00
parent 82edb3cc43
commit f1928380ea
4 changed files with 8 additions and 5 deletions

View File

@ -180,7 +180,7 @@ export default {
// //
handleDelete(row) { handleDelete(row) {
this.$modal.confirm('是否确认删除设备类型编号为"' + row.id + '"的数据项?').then(async () => { this.$modal.confirm('是否确认删除设备类型名称为"' + row.typeName + '"的数据项?').then(async () => {
var data ={id:row.id} var data ={id:row.id}
const res = await delDeviceTypeApi(data) const res = await delDeviceTypeApi(data)
if (res.code === 200) { if (res.code === 200) {

View File

@ -125,8 +125,9 @@ export default {
setFormData(data) { setFormData(data) {
const {deviceType, deviceCode, userId, remark ,id} = data const {deviceType, deviceCode, userId, remark ,id} = data
this.addOrEditForm = { this.addOrEditForm = {
deviceType, deviceType: deviceType ?? '',
deviceCode, deviceCode,
userId, userId,
remark, remark,

View File

@ -11,7 +11,7 @@
<el-form-item label="模型文件" prop="files"> <el-form-item label="模型文件" prop="files">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
action="/dev-api/common/upload" action="/water-design-api/common/upload"
:on-success="handleSuccess" :on-success="handleSuccess"
:on-remove="handleRemove" :on-remove="handleRemove"
:before-upload="beforeUpload" :before-upload="beforeUpload"
@ -107,6 +107,7 @@ export default {
files: [], files: [],
modelUrl: '', modelUrl: '',
projectId: '', projectId: '',
uploadFileUrl: process.env.VUE_APP_BASE_API + '/common/upload',
}, },
useOrReturnFormRules: { useOrReturnFormRules: {
files: [{required: true, message: '请上传模型文件', trigger: 'change'}], files: [{required: true, message: '请上传模型文件', trigger: 'change'}],

View File

@ -377,7 +377,8 @@ export default {
this.open = true this.open = true
this.title = '修改项目' this.title = '修改项目'
// this.form.unit = response.data.unitId // this.form.unit = response.data.unitId
this.form.level = response.data.proId const level = response.data.level;
this.form.level = level ? Number(level) : '';
}) })
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -462,7 +463,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const proIds = row.proId || this.ids const proIds = row.proId || this.ids
this.$modal this.$modal
.confirm('是否确认删除项目编号为"' + proIds + '"的数据项?') .confirm('是否确认删除项目名称为"' + row.proName + '"的数据项?')
.then(function () { .then(function () {
return delProject(proIds) return delProject(proIds)
}) })