From c9c662a8d35e17354c139311bd2e54539de6e618 Mon Sep 17 00:00:00 2001 From: shenyanpei Date: Tue, 25 Jan 2022 15:03:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E5=9E=8B=E7=B1=BB=E5=88=AB=E6=B8=85?= =?UTF-8?q?=E5=8D=95=E4=B8=8A=E4=B8=8B=E7=A7=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/projectAddEit.vue | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue index 58dff1bd3..9ec80823d 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue @@ -1223,6 +1223,31 @@ export default { this.$message.error('请选中需要添加到 清单条目 的(标准号/政策编号)') } }, + // 上移 事件 + moveUp(index, row) { + if (index === 0) { + this.$message({ + message: '已经是列表中第一个素材!', + type: 'warning' + }) + } else { + let temp = this.sarAccessInfoList[index - 1] + this.$set(this.sarAccessInfoList, index - 1, this.sarAccessInfoList[index]) + this.$set(this.sarAccessInfoList, index, temp) + } + }, + moveDown(index) { + if (index === (this.sarAccessInfoList.length - 1)) { + this.$message({ + message: '已经是列表中最后一个素材!', + type: 'warning' + }) + } else { + let i = this.sarAccessInfoList[index + 1] + this.$set(this.sarAccessInfoList, index + 1, this.sarAccessInfoList[index]) + this.$set(this.sarAccessInfoList, index, i) + } + }, // 点击清单条目导入按钮事件 importmodalFlags() { this.importmodalFlag = true