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 @@