src/pages/components/filesTable.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/pages/resourceManage/materialsCenter/list.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/pages/resourceManage/product/list.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/pages/components/filesTable.vue
@@ -199,12 +199,12 @@ updateAttachLock([params]).then((res) => { const { code, data, msg } = res.data; if (code && data) { this.$message.success(msg); this.$message.success('操作成功'); obj.lockFlag = lockFlag; obj.localReason = this.reason; this.reasonVisible = false; } else { this.$message.error(msg); this.$message.error('操作失败'); } }); }, src/pages/resourceManage/materialsCenter/list.vue
@@ -137,18 +137,24 @@ <div class="footer"> <a-space> <a-button @click="fileListCancel">关闭</a-button> <a-upload v-if="canUpload" :before-upload="beforeUpload" @change="fileUploadChange" multiple accept=".zip" > <!-- :showUploadList="false" --> <a-button type="primary">上传附件</a-button> </a-upload> <a-button type="primary" v-if="canUpload" @click="fileUploadShow">上传附件</a-button> </a-space> </div> </a-modal> <!-- 上传附件 --> <a-modal :visible="fileUploadVisible" title="附件上传" :destroyOnClose="true" :maskClosable="false" :width="600" @cancel="fileUploadCancel" @ok="fileUploadChange" > <a-upload :before-upload="beforeUpload" @change="uploadListChange" multiple> <!-- :showUploadList="false" --> <a-button type="primary">选择附件</a-button> </a-upload> </a-modal> </div> </template> @@ -176,6 +182,8 @@ mixins: [WSMixin], data() { return { fileUploadVisible: false, uploadFileList: [], info: {}, fileListShow: false, fileList: [], @@ -488,6 +496,16 @@ console.log(error); }); }, fileUploadShow() { this.uploadFileList = []; this.fileUploadVisible = true; }, fileUploadCancel() { this.fileUploadVisible = false; }, uploadListChange(data) { this.uploadFileList = data.fileList; }, fileUploadChange(data) { let loading = this.$layer.loading(); const formData = new FormData(); @@ -499,7 +517,7 @@ }; formData.append("materialStr", JSON.stringify(obj)); data.fileList.forEach((v, i) => { this.uploadFileList.forEach((v, i) => { formData.append("file", v.originFileObj); }); uploadOthers(formData) @@ -508,7 +526,7 @@ const { code, data, msg } = res.data; if (code && data) { this.$message.success(msg); this.fileListShow = false; this.fileUploadVisible = false; } else { this.$message.error(msg); } src/pages/resourceManage/product/list.vue
@@ -285,12 +285,12 @@ :key="'log_' + idx" :color="item.lockFlag == 1 ? 'red' : 'green'" > <p> <div> <span class="user">{{ item.owner }}</span > 在 <span class="time">{{ item.createTime }}</span > {{ item.lockFlag ? "锁定" : "激活" }}了版本 <span class="version">{{ item.versionTime }}</span> </p> <p>操作原因: {{ item.reason ? item.reason : "无" }}</p> </div> <div>操作原因: {{ item.reason ? item.reason : "无" }}</div> </a-timeline-item> </a-timeline> <a-empty v-else /> @@ -635,7 +635,7 @@ pageCurr, ...params, }; console.log("=====9=", data, JSON.stringify(data)); // console.log("=====9=", data, JSON.stringify(data)); this.SOCKET.send(JSON.stringify(data)); }, onWSMessage(res) { @@ -930,5 +930,8 @@ color: #0aedb2; font-weight: 700; } .ant-timeline-item:first-of-type { padding-top: 6px; } } </style>