From 8b9367e5cdc174832e2c6aac8c7ce28c7dc1da60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B4=8B=E5=B7=9D?= <604737071@qq.com> Date: Wed, 8 May 2024 11:13:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9appCode=E5=8F=96?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: 修改appCode取值 --- .../src/views/FDS/installationList/index.vue | 168 +++------ .../FDS/publishList/components/addPack.vue | 59 ++-- sf-ui/src/views/FDS/publishList/index.vue | 185 +++------- sf-ui/src/views/deployment/module/index.vue | 194 ++++------- sf-ui/src/views/deployment/publish/index.vue | 322 +++++------------- 5 files changed, 279 insertions(+), 649 deletions(-) diff --git a/sf-ui/src/views/FDS/installationList/index.vue b/sf-ui/src/views/FDS/installationList/index.vue index 4aa0ee1..e356451 100644 --- a/sf-ui/src/views/FDS/installationList/index.vue +++ b/sf-ui/src/views/FDS/installationList/index.vue @@ -12,29 +12,14 @@ - + - + - + @@ -48,12 +33,7 @@ - + 搜索 @@ -63,14 +43,8 @@ - 新增 + 新增 @@ -86,23 +60,16 @@ - 批量删除 + 批量删除 - - - + + + - + - + - + - + - + - + - + - + @@ -249,7 +183,7 @@ import Cookies from 'js-cookie' export default { name: 'INFO', dicts: ['sys_apk_uploading_type', 'uploading_status', 'sys_apk_type'], - data() { + data () { return { form: { @@ -259,7 +193,7 @@ export default { sysApk: null, sysApkSize: undefined, sysType: '', - appCode: Cookies.get('Admin-Application-Id') + appCode: Cookies.get('Admin-Application-appCode') }, // 遮罩层 @@ -312,12 +246,12 @@ export default { } } }, - created() { + created () { this.getList() }, methods: { /** 查询安装包管理(新)列表 */ - getList() { + getList () { this.loading = true listINFO(this.queryParams).then(response => { this.INFOList = response.rows @@ -326,12 +260,12 @@ export default { }) }, // 取消按钮 - cancel() { + cancel () { this.open = false this.reset() }, // 表单重置 - reset() { + reset () { this.form = { uploadingType: 'OnLineUploading', sysApkName: undefined, @@ -339,34 +273,34 @@ export default { sysApk: null, sysApkSize: undefined, sysType: '', - appCode: Cookies.get('Admin-Application-Id') + appCode: Cookies.get('Admin-Application-appCode') } this.resetForm('form') }, /** 搜索按钮操作 */ - handleQuery() { + handleQuery () { this.queryParams.pageNum = 1 this.getList() }, /** 重置按钮操作 */ - resetQuery() { + resetQuery () { this.resetForm('queryForm') this.handleQuery() }, // 多选框选中数据 - handleSelectionChange(selection) { + handleSelectionChange (selection) { this.ids = selection.map(item => item.id) this.single = selection.length !== 1 this.multiple = !selection.length }, /** 新增按钮操作 */ - handleAdd() { + handleAdd () { this.reset() this.open = true this.title = '添加安装包管理' }, /** 修改按钮操作 */ - handleUpdate(row) { + handleUpdate (row) { this.reset() const id = row.id || this.ids getINFO(id).then(response => { @@ -377,7 +311,7 @@ export default { }, /** 详情按钮操作 */ - handleDetail(row) { + handleDetail (row) { this.reset() const id = row.id || this.ids getINFO(id).then(response => { @@ -389,13 +323,13 @@ export default { }, /** 提交按钮 */ - submitForm() { + submitForm () { this.$refs['form'].validate(valid => { if (valid) { if (this.form.id != null) { let data = Object.assign({}, this.form) - data.appCode = Cookies.get('Admin-Application-Id'), - delete data.explain + data.appCode = Cookies.get('Admin-Application-appCode') + delete data.explain updateINFO(data).then(response => { this.$modal.msgSuccess('修改成功') this.open = false @@ -412,9 +346,9 @@ export default { }) }, /** 删除按钮操作 */ - handleDelete(row) { + handleDelete (row) { const ids = row.id || this.ids - this.$modal.confirm('是否确认删除安装包管理编号为"' + ids + '"的数据项?').then(function() { + this.$modal.confirm('是否确认删除安装包管理编号为"' + ids + '"的数据项?').then(function () { return delINFO(ids) }).then(() => { this.getList() @@ -422,7 +356,7 @@ export default { }).catch(() => { }) }, - getSize(e) { + getSize (e) { this.form.sysApkSize = e[0].size + 'kb' }, // /** 导出按钮操作 */ @@ -433,14 +367,14 @@ export default { // }, /**下载安装包*/ - handleDownload(row) { + handleDownload (row) { window.open(row.sysApk) }, - cancelDetail() { + cancelDetail () { this.openDetail = false this.reset() }, - copyIt(url) { + copyIt (url) { navigator.clipboard.writeText(url) this.$message.success('复制成功') } diff --git a/sf-ui/src/views/FDS/publishList/components/addPack.vue b/sf-ui/src/views/FDS/publishList/components/addPack.vue index 980fdee..585d3d4 100644 --- a/sf-ui/src/views/FDS/publishList/components/addPack.vue +++ b/sf-ui/src/views/FDS/publishList/components/addPack.vue @@ -1,21 +1,10 @@ - - + + - + - + - - + +