From 3f30be5cc6423273201719eac30079725c4b14db Mon Sep 17 00:00:00 2001 From: "[li_she]" <[li.she@xujiesoft.com]> Date: Mon, 16 Aug 2021 18:13:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8E=82=E4=BF=A1=E6=81=AF=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4,=E7=94=A8=E6=88=B7=E4=BF=9D=E5=AD=98=20=E8=AF=AD?= =?UTF-8?q?=E8=A8=80,=E5=B7=A5=E5=8E=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - src/api/factory.js | 4 + src/main.js | 2 +- .../factory/tblbasedata-add-or-update.vue | 265 +++++++ src/views/modules/factory/tblbasedata.vue | 650 ++++++++++++++++++ src/views/modules/sys/language/common.vue | 14 +- src/views/modules/sys/user-add-or-update.vue | 173 +++-- 7 files changed, 1009 insertions(+), 100 deletions(-) create mode 100644 src/api/factory.js create mode 100644 src/views/modules/factory/tblbasedata-add-or-update.vue create mode 100644 src/views/modules/factory/tblbasedata.vue diff --git a/package.json b/package.json index 18d6608..e368a41 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ "vue-cookie": "1.1.4", "vue-json-excel": "^0.3.0", "vue-router": "3.0.1", - "decimal": "10.3.1", "vuex": "3.0.1", "xlsx": "^0.17.0" }, diff --git a/src/api/factory.js b/src/api/factory.js new file mode 100644 index 0000000..d23375f --- /dev/null +++ b/src/api/factory.js @@ -0,0 +1,4 @@ +import { createAPI } from "@/utils/httpRequest.js"; + +// 获取工厂列表 +export const getFactory = data => createAPI(`/factory/tblbasedata/list`,'get',data) diff --git a/src/main.js b/src/main.js index 535b969..588e584 100644 --- a/src/main.js +++ b/src/main.js @@ -29,7 +29,7 @@ if (process.env.NODE_ENV !== 'production') { // 挂载全局 Vue.prototype.$http = httpRequest // ajax请求方法 Vue.prototype.isAuth = isAuth // 权限方法 -Vue.prototype.decimalUtil = decimalUtil // 权限方法 +Vue.prototype.decimalUtil = decimalUtil // 计算 // 保存整站vuex本地储存初始状态 diff --git a/src/views/modules/factory/tblbasedata-add-or-update.vue b/src/views/modules/factory/tblbasedata-add-or-update.vue new file mode 100644 index 0000000..cb5aaf8 --- /dev/null +++ b/src/views/modules/factory/tblbasedata-add-or-update.vue @@ -0,0 +1,265 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + 确定 + + + + + diff --git a/src/views/modules/factory/tblbasedata.vue b/src/views/modules/factory/tblbasedata.vue new file mode 100644 index 0000000..93709a1 --- /dev/null +++ b/src/views/modules/factory/tblbasedata.vue @@ -0,0 +1,650 @@ + + + + + + + + + + + + + + {{buttons.search}} + {{buttons.defaultTable}} + + {{ buttons.settingTable}} + {{ buttons.add}} + + + + + + {{scope.row[item.columnProp]}} + + + + + + 修改 + 删除 + + + + + + + + + + + + + diff --git a/src/views/modules/sys/language/common.vue b/src/views/modules/sys/language/common.vue index 12fa99e..3ec60f4 100644 --- a/src/views/modules/sys/language/common.vue +++ b/src/views/modules/sys/language/common.vue @@ -6,9 +6,7 @@ - - @@ -446,6 +444,7 @@ import column from "../../common/column"; queryLanguage: {}, // 数据集条件 querySysLanguagePack: { + functionId: '', page: 1, limit: 1, languageValue: '', @@ -473,7 +472,9 @@ import column from "../../common/column"; methods: { // 打印方式 printReport(){ + this.decimalUtil.sub(100,50) alert( this.$store.state.user.site) + alert( this.decimalUtil.sub(100,50)) // // const LODOP = getLodop() // if (LODOP) { @@ -579,11 +580,11 @@ import column from "../../common/column"; // 获取button的词典 getFunctionButtonList() { searchFunctionButtonList(this.queryButton).then(({data}) => { - if (data.data && data.data.toString().length>0) { + if (JSON.stringify(data.data) != '{}' ) { this.buttons = data.data } else { - saveButtonList(this.buttonList).then(({data}) => { - }) + // saveButtonList(this.buttonList).then(({data}) => { + // }) } }) }, @@ -637,6 +638,9 @@ import column from "../../common/column"; this.$message.error(data.msg) } }) + saveButtonList(this.buttonList).then(({data}) => { + }) + this.getFunctionButtonList() this.getFunctionButtonList(); this.getColumnList() }, diff --git a/src/views/modules/sys/user-add-or-update.vue b/src/views/modules/sys/user-add-or-update.vue index 37d0f54..8b27c10 100644 --- a/src/views/modules/sys/user-add-or-update.vue +++ b/src/views/modules/sys/user-add-or-update.vue @@ -1,48 +1,66 @@ - + - - - - - - - - - - - - - - - - - - - {{ role.roleName }} - - - - - {{ - role.roleName - }} - - - - - - 禁用 - 正常 - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ + role.roleName + }} + + + + + + + + 禁用 + 正常 + + + 取消 @@ -54,88 +72,49 @@