09f132a1 by lihua

修复部分使用的接口联调

1 parent 29c739c7
...@@ -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,
......
...@@ -360,7 +360,7 @@ const productTableInfo = ref({ ...@@ -360,7 +360,7 @@ const productTableInfo = ref({
360 arrBtns.push({ 360 arrBtns.push({
361 label: '查看', value: 'view', click: (scope) => { 361 label: '查看', value: 'view', click: (scope) => {
362 router.push({ 362 router.push({
363 name: (route.query.foundMode == 'read' || route.query.foundMode == 'download') ? 'useApiDetail' : 'apiDetail', 363 name: (route.query.foundMode == 'read' || route.query.foundMode == 'download') ? 'usageApiDetail' : 'apiDetail',
364 query: { guid: scope.row.guid, apiName: scope.row.apiName } 364 query: { guid: scope.row.guid, apiName: scope.row.apiName }
365 }); 365 });
366 } 366 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!