|
|
@ -20,6 +20,7 @@ |
|
|
:url="tableUrl" |
|
|
:url="tableUrl" |
|
|
:params="tableParams" |
|
|
:params="tableParams" |
|
|
keyword="Temp" |
|
|
keyword="Temp" |
|
|
|
|
|
:filterParams="filterParams" |
|
|
:operations="operations" |
|
|
:operations="operations" |
|
|
:orderOperations="orderOperations" |
|
|
:orderOperations="orderOperations" |
|
|
@selectRadioRow="selectRadioRow"> |
|
|
@selectRadioRow="selectRadioRow"> |
|
|
@ -44,6 +45,7 @@ export default { |
|
|
data () { |
|
|
data () { |
|
|
return { |
|
|
return { |
|
|
params: {},//父组件传来的 |
|
|
params: {},//父组件传来的 |
|
|
|
|
|
clientTypeShow: '',//父组件传来的 |
|
|
tempForm: { |
|
|
tempForm: { |
|
|
commitUrl: 'https://epmet-cloud.elinkservice.cn/api/third/code/upload', |
|
|
commitUrl: 'https://epmet-cloud.elinkservice.cn/api/third/code/upload', |
|
|
// commitUrl: '/third/code/upload', |
|
|
// commitUrl: '/third/code/upload', |
|
|
@ -74,6 +76,7 @@ export default { |
|
|
return {} |
|
|
return {} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 列表操作栏的操作项数组 |
|
|
// 列表操作栏的操作项数组 |
|
|
operations: [], |
|
|
operations: [], |
|
|
orderOperations: [], |
|
|
orderOperations: [], |
|
|
@ -91,7 +94,28 @@ export default { |
|
|
tableHeight () { |
|
|
tableHeight () { |
|
|
return this.clientHeight - 60 - 80 - 80 - 50 - 400 |
|
|
return this.clientHeight - 60 - 80 - 80 - 50 - 400 |
|
|
}, |
|
|
}, |
|
|
...mapGetters(['clientHeight']) |
|
|
//需要过滤的字段 |
|
|
|
|
|
filterParams () { |
|
|
|
|
|
let value = '' |
|
|
|
|
|
|
|
|
|
|
|
if (this.env === 'prod') { |
|
|
|
|
|
value = '正式服' |
|
|
|
|
|
} else if (this.env === 'prod') { |
|
|
|
|
|
value = '体验服' |
|
|
|
|
|
} else { |
|
|
|
|
|
value = '开发服' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let params = [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'userDesc', |
|
|
|
|
|
value: this.clientTypeShow + '-' + value |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
// console.log(params) |
|
|
|
|
|
return params |
|
|
|
|
|
}, |
|
|
|
|
|
...mapGetters(['clientHeight', 'env']) |
|
|
}, |
|
|
}, |
|
|
props: { |
|
|
props: { |
|
|
// optionData: { |
|
|
// optionData: { |
|
|
@ -103,10 +127,11 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
// eslint-disable-next-line |
|
|
// eslint-disable-next-line |
|
|
initData (params, optionData) { |
|
|
initData (params, optionData, clientTypeShow) { |
|
|
this.diaVisible = true |
|
|
this.diaVisible = true |
|
|
this.optionData = optionData |
|
|
this.optionData = optionData |
|
|
this.params = params |
|
|
this.params = params |
|
|
|
|
|
this.clientTypeShow = clientTypeShow |
|
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$refs['ref_form_temp'].assign(params) |
|
|
this.$refs['ref_form_temp'].assign(params) |
|
|
|