Commit 123b9272 authored by “yiyousong”'s avatar “yiyousong”

pref:修改工作人员窗口显示

parent 5e069882
...@@ -238,8 +238,8 @@ ...@@ -238,8 +238,8 @@
<span v-else>--</span> <span v-else>--</span>
</template> </template>
<!-- 所属窗口 --> <!-- 所属窗口 -->
<template slot="windowName" slot-scope="text"> <template slot="windowId" slot-scope="text">
{{ text.windowName ? text.windowName : "--" }} {{ text.windowId ? filterWindow(text.windowId) : "--" }}
</template> </template>
<!-- 创建时间 --> <!-- 创建时间 -->
<template slot="time" slot-scope="text"> <template slot="time" slot-scope="text">
...@@ -357,7 +357,7 @@ const columns = [ ...@@ -357,7 +357,7 @@ const columns = [
{ {
title: "所属窗口", title: "所属窗口",
scopedSlots: { scopedSlots: {
customRender: "windowName", customRender: "windowId",
}, },
}, },
{ {
...@@ -637,6 +637,10 @@ export default { ...@@ -637,6 +637,10 @@ export default {
}); });
return name; return name;
}, },
// 过滤窗口
filterWindow(id) {
return this.windowData.find((v) => v.id == id).fromnum;
},
}, },
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment