修复部分使用的接口联调
Showing
5 changed files
with
14 additions
and
5 deletions
| ... | @@ -621,6 +621,7 @@ onMounted(() => { | ... | @@ -621,6 +621,7 @@ onMounted(() => { |
| 621 | v-preReClick>{{ btn.label }}</span> | 621 | v-preReClick>{{ btn.label }}</span> |
| 622 | </span> | 622 | </span> |
| 623 | </template> | 623 | </template> |
| 624 | <span v-if="actionInfo.isEmpty && (!actionInfo.btns || (Array.isArray(actionInfo.btns) && !actionInfo.btns?.length) || !actionInfo.btns?.(scope)?.length)">--</span> | ||
| 624 | </template> | 625 | </template> |
| 625 | <template v-if=" | 626 | <template v-if=" |
| 626 | props.tableInfo.id.indexOf('maintenance') > -1 && | 627 | props.tableInfo.id.indexOf('maintenance') > -1 && |
| ... | @@ -636,9 +637,6 @@ onMounted(() => { | ... | @@ -636,9 +637,6 @@ onMounted(() => { |
| 636 | handleClick(scope, { label: '添加子菜单', value: 'menu' }) | 637 | handleClick(scope, { label: '添加子菜单', value: 'menu' }) |
| 637 | " v-preReClick>添加子菜单</span> | 638 | " v-preReClick>添加子菜单</span> |
| 638 | </template> | 639 | </template> |
| 639 | <template v-else-if="!actionInfo.btns?.length"> | ||
| 640 | <span>--</span> | ||
| 641 | </template> | ||
| 642 | </template> | 640 | </template> |
| 643 | </el-table-column> | 641 | </el-table-column> |
| 644 | <template #append> | 642 | <template #append> | ... | ... |
| ... | @@ -205,6 +205,8 @@ const tableInfo = ref({ | ... | @@ -205,6 +205,8 @@ const tableInfo = ref({ |
| 205 | label: "操作", | 205 | label: "操作", |
| 206 | type: "btn", | 206 | type: "btn", |
| 207 | width: 140, | 207 | width: 140, |
| 208 | isEmpty: true, | ||
| 209 | isMore: false, | ||
| 208 | btns: (scope) => { | 210 | btns: (scope) => { |
| 209 | let btns: any = []; | 211 | let btns: any = []; |
| 210 | let row = scope.row; | 212 | let row = scope.row; | ... | ... |
| ... | @@ -150,6 +150,13 @@ const btnHanldesMap = { | ... | @@ -150,6 +150,13 @@ const btnHanldesMap = { |
| 150 | currTableData.value = scope.row; | 150 | currTableData.value = scope.row; |
| 151 | tenantDialogInfo.value.visible = true; | 151 | tenantDialogInfo.value.visible = true; |
| 152 | templateFormItems.value[0].options = currTableData.value.deliveryNodes || []; | 152 | templateFormItems.value[0].options = currTableData.value.deliveryNodes || []; |
| 153 | let distributeNodes = currTableData.value.distributeNodes || []; | ||
| 154 | if (distributeNodes?.length) { | ||
| 155 | templateFormItems.value[0].options = currTableData.value.deliveryNodes?.map(d => { | ||
| 156 | d.disabled = distributeNodes.includes(d.guid) ? true : false; | ||
| 157 | return d; | ||
| 158 | }) | ||
| 159 | } | ||
| 153 | templateFormItems.value[0].default = ''; | 160 | templateFormItems.value[0].default = ''; |
| 154 | }, | 161 | }, |
| 155 | delete: (scope) => {//删除 | 162 | delete: (scope) => {//删除 |
| ... | @@ -235,7 +242,8 @@ const templateFormItems = ref([{ | ... | @@ -235,7 +242,8 @@ const templateFormItems = ref([{ |
| 235 | options: [], | 242 | options: [], |
| 236 | props: { | 243 | props: { |
| 237 | value: 'guid', | 244 | value: 'guid', |
| 238 | label: 'tenantName' | 245 | label: 'tenantName', |
| 246 | disabled: 'disabled' | ||
| 239 | }, | 247 | }, |
| 240 | filterable: true, | 248 | filterable: true, |
| 241 | multiple: true, | 249 | multiple: true, | ... | ... |
| ... | @@ -78,6 +78,7 @@ const processTableInfo = ref({ | ... | @@ -78,6 +78,7 @@ const processTableInfo = ref({ |
| 78 | { label: "执行节点标识", field: "executionEntityId", width: 175 }, | 78 | { label: "执行节点标识", field: "executionEntityId", width: 175 }, |
| 79 | { label: "执行合约名称", field: "contractName", width: 160 }, | 79 | { label: "执行合约名称", field: "contractName", width: 160 }, |
| 80 | { label: "执行环节", field: "executionProcess", width: 120 }, | 80 | { label: "执行环节", field: "executionProcess", width: 120 }, |
| 81 | { label: "执行结果", field: "executionResult", width: 120 } | ||
| 81 | ], | 82 | ], |
| 82 | data: [], | 83 | data: [], |
| 83 | showPage: true, | 84 | showPage: true, | ... | ... |
| ... | @@ -358,7 +358,7 @@ const productTableInfo = ref({ | ... | @@ -358,7 +358,7 @@ const productTableInfo = ref({ |
| 358 | arrBtns.push({ | 358 | arrBtns.push({ |
| 359 | label: '查看', value: 'view', click: (scope) => { | 359 | label: '查看', value: 'view', click: (scope) => { |
| 360 | router.push({ | 360 | router.push({ |
| 361 | name: (route.query.foundMode == 'read' || route.query.foundMode == 'download') ? 'useApiDetail' : 'apiDetail', | 361 | name: (route.query.foundMode == 'read' || route.query.foundMode == 'download') ? 'usageApiDetail' : 'apiDetail', |
| 362 | query: { guid: scope.row.guid, apiName: scope.row.apiName } | 362 | query: { guid: scope.row.guid, apiName: scope.row.apiName } |
| 363 | }); | 363 | }); |
| 364 | } | 364 | } | ... | ... |
-
Please register or sign in to post a comment