diff --git a/src/views/lb-business/config-manage/index.vue b/src/views/lb-business/config-manage/index.vue index e3c1cdf..7490f52 100644 --- a/src/views/lb-business/config-manage/index.vue +++ b/src/views/lb-business/config-manage/index.vue @@ -77,9 +77,10 @@ {{ formatDateTime(scope.row.updateTime) }} - + @@ -536,6 +537,30 @@ export default { this.$refs.dataForm && this.$refs.dataForm.clearValidate() }) }, + handleCopy(row) { + this.dialogTitle = '复制第三方集成配置' + this.isEdit = false + this.activeTab = 'basic' + this.form = { + ...DEFAULT_FORM(), + ...this.pickFormFields(row), + id: '', + tenantId: '', + adminBaseUrl: '', + webBaseUrl: '', + goodsApiToken: '' + } + this.originalCredential = { + cookie: '', + phpsid: '', + goodsApiToken: '', + goodsApiAppStr: '' + } + this.dialogVisible = true + this.$nextTick(() => { + this.$refs.dataForm && this.$refs.dataForm.clearValidate() + }) + }, loadFormCredentials(tenantId) { if (!tenantId) return this.formCredentialLoading = true diff --git a/src/views/lb-business/rush-order-account/index.vue b/src/views/lb-business/rush-order-account/index.vue index b6b2bad..809b523 100644 --- a/src/views/lb-business/rush-order-account/index.vue +++ b/src/views/lb-business/rush-order-account/index.vue @@ -112,9 +112,10 @@ {{ formatDateTime(scope.row.updateTime) }} - + @@ -528,6 +529,20 @@ export default { this.$refs.dataForm && this.$refs.dataForm.clearValidate() }) }, + handleCopy(row) { + this.dialogTitle = '复制抢单账号' + this.isEdit = false + this.form = { + ...DEFAULT_FORM(), + ...this.pickFormFields(row), + id: '', + loginPassword: '' + } + this.dialogVisible = true + this.$nextTick(() => { + this.$refs.dataForm && this.$refs.dataForm.clearValidate() + }) + }, pickFormFields(row) { const fields = DEFAULT_FORM() Object.keys(fields).forEach((key) => {