Commit 03c474c7 by 杨北旺

添加UI组件并修复售中转化内容

1 parent f5c870bd
......@@ -1942,6 +1942,17 @@
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"cliui": {
"version": "6.0.0",
"resolved": "https://registry.nlark.com/cliui/download/cliui-6.0.0.tgz",
......@@ -1977,12 +1988,31 @@
"ms": "2.1.2"
}
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz",
"integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0=",
"dev": true
},
"loader-utils": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz",
"integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npmmirror.com/ms/download/ms-2.1.2.tgz",
......@@ -2018,6 +2048,28 @@
"ansi-regex": "^5.0.1"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
},
"wrap-ansi": {
"version": "6.2.0",
"resolved": "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-6.2.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrap-ansi%2Fdownload%2Fwrap-ansi-6.2.0.tgz",
......@@ -13200,87 +13252,6 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"loader-utils": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz",
"integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": {
"version": "3.5.3",
"resolved": "https://registry.npmmirror.com/vue-router/download/vue-router-3.5.3.tgz",
......
......@@ -2,7 +2,7 @@ import Vue from 'vue'
import ElementUI from 'element-ui'
import { message, messageBox } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { GLButton, GLTable, GLCombiForm, GLTableButton } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router'
import render from './render'
import 'glsx-components/dist/glsx-components.css'
......@@ -12,6 +12,8 @@ let router = null
let instance = null
Vue.use(GLTable)
Vue.use(ElementUI)
Vue.use(GLCombiForm)
Vue.use(GLTableButton)
// Vue.use(Table)
// Vue.use(TableColumn)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
......
......@@ -355,7 +355,7 @@ export default {
label: levelName[accountLevel + 1],
name: 'merchantIdss',
type: 'select',
optionList: child[0].children,
optionList: child[0]&&child[0].children?child[0].children:[],
optionId: 'id',
optionLabel: 'merchantName',
isClear: true
......@@ -367,19 +367,35 @@ export default {
label: levelName[accountLevel + 2],
name: 'merchantIdsss',
type: 'select',
optionList: child2[0].children,
optionList: child2[0]&&child2[0].children?child2[0].children:[],
optionId: 'id',
optionLabel: 'merchantName',
isClear: true
}
this.searchFormData1.push(newForm2)
this.searchFormData2.push(newForm2)
const isAdd1 = this.judgeAdd(newForm2,this.searchFormData1,'name')
const isAdd2 = this.judgeAdd(newForm2,this.searchFormData2,'name')
if(!isAdd1){
this.searchFormData1.push(newForm2)
}
if(!isAdd2){
this.searchFormData2.push(newForm2)
}
// this.searchFormData1.push(newForm2)
// this.searchFormData2.push(newForm2)
this.refreshComponent()
}
}
this.rowNumber = 3
this.searchFormData1.push(newForm)
this.searchFormData2.push(newForm)
const isAdd1 = this.judgeAdd(newForm,this.searchFormData1,'name')
const isAdd2 = this.judgeAdd(newForm,this.searchFormData2,'name')
if(!isAdd1){
this.searchFormData1.push(newForm)
}
if(!isAdd2){
this.searchFormData2.push(newForm)
}
// this.searchFormData1.push(newForm)
// this.searchFormData2.push(newForm)
this.refreshComponent()
}
}
......@@ -392,6 +408,16 @@ export default {
this.refreshKey1 = Date.now()
this.refreshKey2 = Date.now() + 1
},
// 判断是否需要添加下拉框
judgeAdd(obj,objList,tag){
let flag = false
objList.forEach(item=>{
if(item[tag]==obj[tag]){
flag = true
}
})
return flag
},
handleOkFn() {
this.handlerParams()
},
......
......@@ -720,7 +720,7 @@ export default {
label: levelName[accountLevel + 1],
name: 'merchantIdss',
type: 'select',
optionList: child[0].children,
optionList: child[0]&&child[0].children?child[0].children:[],
optionId: 'id',
optionLabel: 'merchantName',
isClear: true
......@@ -732,17 +732,23 @@ export default {
label: levelName[accountLevel + 2],
name: 'merchantIdsss',
type: 'select',
optionList: child2[0].children,
optionList: child2[0]&&child2[0].children?child2[0].children:[],
optionId: 'id',
optionLabel: 'merchantName',
isClear: true
}
this.searchFormData.push(newForm2)
const isAdd = this.judgeAdd(newForm2,this.searchFormData,'name')
if(!isAdd){
this.searchFormData.push(newForm2)
}
this.refreshKey = Date.now()
}
}
this.rowNumber = 3
this.searchFormData.push(newForm)
const isAdd = this.judgeAdd(newForm,this.searchFormData,'name')
if(!isAdd){
this.searchFormData.push(newForm)
}
this.refreshKey = Date.now()
}
}
......@@ -750,6 +756,16 @@ export default {
this.refreshKey = Date.now()
})
},
// 判断是否需要添加下拉框
judgeAdd(obj,objList,tag){
let flag = false
objList.forEach(item=>{
if(item[tag]==obj[tag]){
flag = true
}
})
return flag
},
/**处理新表格动态刷新列方法 */
handlerNewTableCoulum(fieldList) {
this.dynamicTableShow = false
......@@ -792,6 +808,7 @@ export default {
newTableParams.tableColumns[item.level - 1].children.push(obj)
})
this.newTableParams = newTableParams
this.$refs.subTable.componentKey = Date.now()
this.$nextTick(() => {
this.dynamicTableShow = true
})
......@@ -911,6 +928,7 @@ export default {
pageSize: this.$refs.subTable.page.pageSize,
...this.newHttpParam
}
this.$refs.subTable.componentKey = Date.now()
this.getTotalOfJT(this.httpParam)
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!