diff --git a/src/api/device/upkeepPlan.js b/src/api/device/upkeepPlan.js index 63a88bd..908fce5 100644 --- a/src/api/device/upkeepPlan.js +++ b/src/api/device/upkeepPlan.js @@ -1,5 +1,14 @@ import request from '@/utils/request' +// 处理计划-设备信息 +export function formatEquItem(data) { + return request({ + url: '/device/upkeepPlan/formatEquItem', + method: 'post', + data: data + }); +} + // 查询保养计划列表 export function listUpkeepPlan(query) { return request({ diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 340bf49..ca7be84 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -55,12 +55,12 @@ export default { // 大小限制(MB) fileSize: { type: Number, - default: 5, + default: 50, }, // 文件类型, 例如['png', 'jpg', 'jpeg'] fileType: { type: Array, - default: () => ["doc", "xls", "docx", "xlsx","ppt", "txt", "pdf",'png', 'jpg', 'jpeg'], + default: () => ["doc", "xls", "docx", "xlsx","ppt", "txt", "pdf",'png', 'jpg', 'jpeg','apk'], }, // 是否显示提示 isShowTip: { diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue index 88c6bb9..4efa780 100644 --- a/src/views/device/inspectionPlan/index.vue +++ b/src/views/device/inspectionPlan/index.vue @@ -1227,6 +1227,6 @@ export default { } .el-transfer-panel { - width: 300px; + width: 260px; } diff --git a/src/views/device/upkeepPlan/index.vue b/src/views/device/upkeepPlan/index.vue index b2211a5..a7a9157 100644 --- a/src/views/device/upkeepPlan/index.vue +++ b/src/views/device/upkeepPlan/index.vue @@ -330,108 +330,315 @@ /> - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{dict.label}} - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ + + + + + + +
+ + + + + + + + + 单次 + 多次 + + + + + + + + + + + + + + + + + + + + + + + + + + + 按固定周期 + 按上次保养时间 + + + + + + + 停机保养 + 开机保养 + + + +
+ +
+ + + + 选择设备 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 确 定 + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + 取 消 + 确 定 + + +
+ +
+ 更换备件 +
+ +
+ + + + + + +
+
+
+ diff --git a/src/views/system/apkFile/index.vue b/src/views/system/apkFile/index.vue index 8c7aac5..1849ac6 100644 --- a/src/views/system/apkFile/index.vue +++ b/src/views/system/apkFile/index.vue @@ -110,10 +110,9 @@ - + + + @@ -165,9 +164,11 @@ export default { attr2: null, attr3: null, attr4: null, + fileList:'' }, // 表单参数 form: {}, + fileList:[], // 表单校验 rules: { fileName: [ @@ -244,12 +245,30 @@ export default { const id = row.id || this.ids getFile(id).then(response => { this.form = response.data; + /** + if(response.data.files != null){ + var newFiles = []; + response.data.files.forEach(item =>{ + var newfile = {}; + newfile.name = item.fileName; + newfile.url = item.fileAddress; + newFiles.push(newfile); + }) + this.form.fileList = newFiles; + } + **/ + this.open = true; this.title = "修改手持apk版本控制"; }); }, /** 提交按钮 */ submitForm() { + + if(Array.isArray(this.form.fileList)){ + this.form.fileList = this.listToString(this.form.fileList); + } + this.$refs["form"].validate(valid => { if (valid) { if (this.form.id != null) {