From 97636f18ec6dbb811fe3682fd03fc7913b5bb6d2 Mon Sep 17 00:00:00 2001
From: "[li_she]" <[li.she@xujiesoft.com]>
Date: Wed, 28 Jul 2021 14:15:51 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=85=B1=E7=BB=84=E4=BB=B6-=E7=BC=96?=
=?UTF-8?q?=E8=BE=91=E5=88=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/common/column.vue | 139 ++++
src/views/modules/knifemold/receive.vue | 3 -
src/views/modules/report/reportCategory.vue | 676 +++++++++++++++
src/views/modules/report/reportList.vue | 864 ++++++++++++++++++++
src/views/modules/sys/language/common.vue | 113 +--
5 files changed, 1689 insertions(+), 106 deletions(-)
create mode 100644 src/views/modules/common/column.vue
create mode 100644 src/views/modules/report/reportCategory.vue
create mode 100644 src/views/modules/report/reportList.vue
diff --git a/src/views/modules/common/column.vue b/src/views/modules/common/column.vue
new file mode 100644
index 0000000..1f59101
--- /dev/null
+++ b/src/views/modules/common/column.vue
@@ -0,0 +1,139 @@
+
+
+
+
+
+ 排序
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 宽度
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/knifemold/receive.vue b/src/views/modules/knifemold/receive.vue
index 173f97b..4966c53 100644
--- a/src/views/modules/knifemold/receive.vue
+++ b/src/views/modules/knifemold/receive.vue
@@ -47,9 +47,6 @@
{{ buttons.add }}
-
- 收藏
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{buttons.search}}
+ {{buttons.defaultTable}}
+
+ {{ buttons.settingTable}}
+
+ {{buttons.download}}
+
+
+ {{ buttons.deleteList}}
+
+
+
+ 打印报表
+
+
+
+
+
+
+
+ {{scope.row[item.columnProp]}}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/report/reportList.vue b/src/views/modules/report/reportList.vue
new file mode 100644
index 0000000..2940032
--- /dev/null
+++ b/src/views/modules/report/reportList.vue
@@ -0,0 +1,864 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{buttons.search}}
+ {{buttons.defaultTable}}
+
+ {{ buttons.settingTable}}
+
+ {{buttons.download}}
+
+
+ {{ buttons.deleteList}}
+
+
+
+
+
+
+
+
+ {{buttons.add}}
+
+
+
+ 打印报表
+
+
+
+
+
+
+
+
+ {{scope.row[item.columnProp]}}
+
+
+
+
+
+
+
+
+
+
+
+ 排序
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 宽度
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row[item.columnProp]}}
+
+
+
+
+
+
+ 添加
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/sys/language/common.vue b/src/views/modules/sys/language/common.vue
index f46280a..94aa9e3 100644
--- a/src/views/modules/sys/language/common.vue
+++ b/src/views/modules/sys/language/common.vue
@@ -92,56 +92,8 @@
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
+
-
-
-
-
- 排序
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 宽度
-
-
-
-
-
-
-
+import column from "../../common/column";
import {
searchSysLanguagePackList,
searchSysLanguageParam,
@@ -208,6 +161,9 @@
} from "@/api/table.js"
import {userFavoriteList,saveUserFavorite,removeUserFavorite} from '@/api/userFavorite.js'
export default {
+ components: {
+ column
+ },
data() {
return {
// table高度
@@ -505,7 +461,6 @@
objectType: '',
objectId: ''
},
- //
// 分页
pageIndex: 1,
pageSize: 10,
@@ -539,8 +494,8 @@
LODOP.PRINT_INIT('') //初始化
LODOP.PRINT_DESIGN();
- LODOP.PREVIEW();
- LODOP.PRINT();
+ //LODOP.PREVIEW();
+ //LODOP.PRINT();
LODOP.SET_PRINT_PAGESIZE(2, 0, 0, 'A4') //设置横向
LODOP.ADD_PRINT_HTM('1%', '1%', '98%', '98%', strFormHtml) //设置打印内容
@@ -650,63 +605,15 @@
// 打开页面设置
userSetting() {
this.visible = true;
- this.getTableUserAll()
- },
- // 获取 用户的配置
- getTableUserAll() {
let queryTable = {
userId: this.$store.state.user.name,
functionId: 9001,
tableId: "common1001",
languageCode: this.$i18n.locale
}
- getTableUserListLanguage(queryTable).then(({data}) => {
- if (data.code == 0) {
- this.userColumnList = data.rows
- if (data.rows.length <= 0) {
- getTableDefaultListLanguage(this.queryTable).then(({data}) => {
- this.userColumnList = data.rows
-
- })
- }
- }
-
- })
- },
- // 修改 table 列
- updateColumnList() {
- let userColumns = []
- for (let column of this.userColumnList) {
- let userColumn = {
- userId: this.$store.state.user.name,
- functionId: column.functionId,
- tableId: column.tableId,
- tableName: column.tableName,
- columnProp: column.columnProp,
- headerAlign: column.headerAlign,
- align: column.align,
- columnWidth: column.columnWidth,
- columnLabel: column.columnLabel,
- columnHidden: column.columnHidden,
- columnImage: column.columnImage,
- columnSortable: column.columnSortable,
- format: column.format,
- sortLv: column.sortLv,
- status: column.status,
- fixed: column.fixed,
- serialNumber: column.serialNumber
- }
- userColumns.push(userColumn)
- }
- saveTableUser(userColumns).then(({data}) => {
- if (data.code == 0) {
- this.$message.success(data.msg)
- this.visible = false
- this.getTableUserColumn()
- } else {
- this.$message.error(data.msg)
- }
- })
+ this.$nextTick(() => {
+ this.$refs.column.init(queryTable);
+ });
},
// 获取 用户保存的 格式列
getTableUserColumn() {