d9906e69 by lihua

修复部分使用的接口联调

1 parent 2bf009dd
...@@ -610,6 +610,7 @@ onMounted(() => { ...@@ -610,6 +610,7 @@ onMounted(() => {
610 v-preReClick>{{ btn.label }}</span> 610 v-preReClick>{{ btn.label }}</span>
611 </span> 611 </span>
612 </template> 612 </template>
613 <span v-if="actionInfo.isEmpty && (!actionInfo.btns || (Array.isArray(actionInfo.btns) && !actionInfo.btns?.length) || !actionInfo.btns?.(scope)?.length)">--</span>
613 </template> 614 </template>
614 <template v-if=" 615 <template v-if="
615 props.tableInfo.id.indexOf('maintenance') > -1 && 616 props.tableInfo.id.indexOf('maintenance') > -1 &&
...@@ -625,9 +626,6 @@ onMounted(() => { ...@@ -625,9 +626,6 @@ onMounted(() => {
625 handleClick(scope, { label: '添加子菜单', value: 'menu' }) 626 handleClick(scope, { label: '添加子菜单', value: 'menu' })
626 " v-preReClick>添加子菜单</span> 627 " v-preReClick>添加子菜单</span>
627 </template> 628 </template>
628 <template v-else-if="!actionInfo.btns?.length">
629 <span>--</span>
630 </template>
631 </template> 629 </template>
632 </el-table-column> 630 </el-table-column>
633 <template #append> 631 <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,
......
...@@ -359,7 +359,7 @@ const productTableInfo = ref({ ...@@ -359,7 +359,7 @@ const productTableInfo = ref({
359 arrBtns.push({ 359 arrBtns.push({
360 label: '查看', value: 'view', click: (scope) => { 360 label: '查看', value: 'view', click: (scope) => {
361 router.push({ 361 router.push({
362 name: (route.query.foundMode == 'read' || route.query.foundMode == 'download') ? 'useApiDetail' : 'apiDetail', 362 name: (route.query.foundMode == 'read' || route.query.foundMode == 'download') ? 'usageApiDetail' : 'apiDetail',
363 query: { guid: scope.row.guid, apiName: scope.row.apiName } 363 query: { guid: scope.row.guid, apiName: scope.row.apiName }
364 }); 364 });
365 } 365 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!