{"id":1472,"date":"2024-11-10T08:05:25","date_gmt":"2024-11-10T00:05:25","guid":{"rendered":"https:\/\/fwq.ai\/blog\/1472\/"},"modified":"2024-11-10T08:05:25","modified_gmt":"2024-11-10T00:05:25","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-vue-element-%e4%b8%ad%e5%ae%9e%e7%8e%b0%e5%8a%a8%e6%80%81%e8%a1%a8%e5%a4%b4%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/1472\/","title":{"rendered":"\u5982\u4f55\u5728 Vue + Element \u4e2d\u5b9e\u73b0\u52a8\u6001\u8868\u5934\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173044414597691.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u5728 Vue + Element \u4e2d\u5b9e\u73b0\u52a8\u6001\u8868\u5934\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u5728 Vue + Element \u4e2d\u5b9e\u73b0\u52a8\u6001\u8868\u5934\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528  + element \u5b9e\u73b0\u52a8\u6001\u8868\u5934<\/strong><\/p>\n<p>\u5728 Vue + Element \u4e2d\uff0c\u5b9e\u73b0\u52a8\u6001\u8868\u5934\u975e\u5e38\u65b9\u4fbf\u3002\u5982\u60a8\u6240\u63d0\u5230\u7684\uff0c\u8981\u83b7\u53d6\u7c7b\u4f3c\u4e0a\u5468\u548c\u672c\u5468\u4f5c\u4e3a\u8868\u5934\uff0c\u53ea\u9700\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li>\u5b9a\u4e49\u4e24\u4e2a\u53d8\u91cf\uff0c\u5206\u522b\u8868\u793a\u4e0a\u5468\u548c\u672c\u5468\u7684\u65f6\u95f4\u8303\u56f4\uff0c\u4f8b\u5982\uff1a<\/li>\n<\/ol>\n<pre>let lastweek = '11-14 ~ 11-20'\nlet thisweek = '11-21 ~ 11-22'<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li>\u5728 \u4e2d\u4f7f\u7528\u8fd9\u4e24\u4e2a\u53d8\u91cf\u4f5c\u4e3a\u8868\u5934\u6807\u7b7e\uff0c\u5982\u4e0b\u6240\u793a\uff1a <\/li>\n<\/ol>\n<pre>&lt;el-table-column label=\"\u4e0a\u5468\"&gt;\n    &lt;el-table-column prop=\"state\" :label=\"lastweek\" width=\"120\" \/&gt;\n&lt;\/el-table-column&gt;\n&lt;el-table-column label=\"\u672c\u5468\"&gt;\n    &lt;el-table-column prop=\"state\" :label=\"thisweek\" width=\"120\" \/&gt;\n&lt;\/el-table-column&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u60a8\u5373\u53ef\u5728 Vue + Element \u8868\u683c\u4e2d\u5b9e\u73b0\u52a8\u6001\u8868\u5934\uff0c\u4ee5\u663e\u793a\u4e0a\u5468\u548c\u672c\u5468\u7b49\u81ea\u5b9a\u4e49\u65f6\u95f4\u8303\u56f4\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u5728 Vue + Element \u4e2d\u5b9e\u73b0\u52a8\u6001\u8868\u5934\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u4f7f\u7528 + element \u5b9e\u73b0\u52a8\u6001\u8868\u5934 \u5728 Vue + Element \u4e2d\uff0c\u5b9e\u73b0\u52a8\u6001\u8868\u5934\u975e\u5e38\u65b9\u4fbf\u3002\u5982\u60a8\u6240\u63d0\u5230\u7684\uff0c\u8981\u83b7\u53d6\u7c7b\u4f3c\u4e0a\u5468\u548c\u672c\u5468\u4f5c\u4e3a\u8868\u5934\uff0c\u53ea\u9700\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a \u5b9a\u4e49\u4e24\u4e2a\u53d8\u91cf\uff0c\u5206\u522b\u8868\u793a\u4e0a\u5468\u548c\u672c\u5468\u7684\u65f6\u95f4\u8303\u56f4\uff0c\u4f8b\u5982\uff1a let lastweek = &#8217;11-14 ~ 11-20&#8242; let thisweek = &#8217;11-21 ~ 11-22&#8242; \u767b\u5f55\u540e\u590d\u5236 \u5728 \u4e2d\u4f7f\u7528\u8fd9\u4e24\u4e2a\u53d8\u91cf\u4f5c\u4e3a\u8868\u5934\u6807\u7b7e\uff0c\u5982\u4e0b\u6240\u793a\uff1a &lt;el-table-column label=&#8221;\u4e0a\u5468&#8221;&gt; &lt;el-table-column prop=&#8221;state&#8221; :label=&#8221;lastweek&#8221; width=&#8221;120&#8243; \/&gt; &lt;\/el-table-column&gt; &lt;el-table-column label=&#8221;\u672c\u5468&#8221;&gt; &lt;el-table-column prop=&#8221;state&#8221; :label=&#8221;thisweek&#8221; width=&#8221;120&#8243; \/&gt; &lt;\/el-table-column&gt; \u767b\u5f55\u540e\u590d\u5236 \u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u60a8\u5373\u53ef\u5728 Vue + Element \u8868\u683c\u4e2d\u5b9e\u73b0\u52a8\u6001\u8868\u5934\uff0c\u4ee5\u663e\u793a\u4e0a\u5468\u548c\u672c\u5468\u7b49\u81ea\u5b9a\u4e49\u65f6\u95f4\u8303\u56f4\u3002 \u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u5728 Vue + Element \u4e2d\u5b9e\u73b0\u52a8\u6001\u8868\u5934\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1472","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/1472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=1472"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/1472\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=1472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=1472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=1472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}