浏览代码

组件工具申请库问题修改

sujunling 1 年之前
父节点
当前提交
f42306bc97
共有 3 个文件被更改,包括 41 次插入1 次删除
  1. 1 1
      public/mapsee.html
  2. 38 0
      src/views/assembly/library/index.vue
  3. 2 0
      src/views/assembly/library/lib.data.ts

+ 1 - 1
public/mapsee.html

@@ -63,7 +63,7 @@
                 if (arr[1].indexOf("onlineIde_") > -1) {
                 if (arr[1].indexOf("onlineIde_") > -1) {
                     // creteIframe(`http://106.12.170.138:4001/examples/online.html#${arr[1].replace("onlineIde_", "")}`)
                     // creteIframe(`http://106.12.170.138:4001/examples/online.html#${arr[1].replace("onlineIde_", "")}`)
                     // creteIframe(`http://127.0.0.1:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
                     // creteIframe(`http://127.0.0.1:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
-                    creteIframe(`http://192.168.193.88:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
+                    creteIframe(`http://192.168.193.88:8080/examples/webgl/online.html#${arr[1].replace("onlineIde_", "")}`)
                 } else {
                 } else {
                     // creteIframe(arr[1])
                     // creteIframe(arr[1])
                     // creteIframe(`http://192.168.193.88:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
                     // creteIframe(`http://192.168.193.88:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)

+ 38 - 0
src/views/assembly/library/index.vue

@@ -75,6 +75,12 @@
       <template #systemkey="{ record }">
       <template #systemkey="{ record }">
         <span :id="'zjsqk' + record.id">{{ getAppName(record.systemkey, `zjsqk${record.id}`) }}</span>
         <span :id="'zjsqk' + record.id">{{ getAppName(record.systemkey, `zjsqk${record.id}`) }}</span>
       </template>
       </template>
+      <template #shr="{ record }">
+        <span :id="'shr' + record.id">{{ getUser(record, `shr${record.id}`) }}</span>
+      </template>
+      <template #shyj="{ record }">
+        <span :id="'shyj' + record.id">{{ getYJ(record, `shyj${record.id}`) }}</span>
+      </template>
       <template #status="{ record }">
       <template #status="{ record }">
         <Tag :style="`color:${record.shzt == '未提交' ? 'red' : '#05B069'};`">
         <Tag :style="`color:${record.shzt == '未提交' ? 'red' : '#05B069'};`">
           {{
           {{
@@ -298,7 +304,39 @@ export default defineComponent({
       })
       })
     }
     }
 
 
+    function getUser(item, id) {
+      var shr = [];
+      if (item?.shlc?.length > 1) {
+        item.shlc.map((i, index) => {
+          if (index != 0 && index != item.shlc.length - 1) {
+            shr.push(i.USER_NAME)
+          }
+        })
+        var dom = document.getElementById(id);
+        if (dom) {
+          dom.innerHTML = shr.join(',')
+        }
+      }
+    }
+
+    function getYJ(item, id) {
+      var shyj = [];
+      if (item?.shlc?.length > 1) {
+        item.shlc.map((i, index) => {
+          if (index != 0 && index != item.shlc.length - 1) {
+            shyj.push(i.CHECKINFO)
+          }
+        })
+        var dom = document.getElementById(id);
+        if (dom) {
+          dom.innerHTML = shyj.join(',')
+        }
+      }
+    }
+
     return {
     return {
+      getYJ,
+      getUser,
       getAppName,
       getAppName,
       applyHandleEdit,
       applyHandleEdit,
       applyHandleSuccess,
       applyHandleSuccess,

+ 2 - 0
src/views/assembly/library/lib.data.ts

@@ -170,11 +170,13 @@ export const columns: BasicColumn[] = [
   {
   {
     title: '审核人',
     title: '审核人',
     dataIndex: 'shr',
     dataIndex: 'shr',
+    slots: { customRender: 'shr' },
     width: 110,
     width: 110,
   },
   },
   {
   {
     title: '审核意见',
     title: '审核意见',
     dataIndex: 'shyj',
     dataIndex: 'shyj',
+    slots: { customRender: 'shyj' },
     width: 110,
     width: 110,
   },
   },
 ];
 ];