PageSourceSearch

https://hyint.typl.gov.tw/component---src-pages-questionnaire-js-ac214378bc498ab45fbc.js

js typl.gov.tw collected 2026-10-01 12:21:56 UTC 5,507 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkjumperrwd=self.webpackChunkjumperrwd||[]).push([[4987],{87550:function(e,t,n){n.r(t),n.d(t,{default:function(){return I}});var a,r=n(10434),i=n.n(r),o=n(7867),s=n.n(o),l=n(46877),c=n.n(l),u=n(19452),p=n.n(u),d=n(67294),m=n(3343),y=n(45238),h=n(73028),f=n(59470),b=n(89639),g=n(37587),E=n(6406),C=n(13514),v=n(45697),N=n.n(v),k=n(87761),w=n(75635),S=(a=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={dbID:""},n}s()(t,e);var n=t.prototype;return n.apply=function(e){e.preventDefault();var t="/questionnaireDetail?id="+e.target.dataset.sn;(0,k.Z)(t)},n.render=function(){var e=this,t=this.props,n=t.data,a=t.serialNo,r=t.handleClick,i=(0,w.bq)(n),o=i.onlinedate?i.onlinedate.substring(0,4)+"/"+i.onlinedate.substring(4,6)+"/"+i.onlinedate.substring(6,8):"",s=i.offlinedate?i.offlinedate.substring(0,4)+"/"+i.offlinedate.substring(4,6)+"/"+i.offlinedate.substring(6,8):"不限";return d.createElement(d.Fragment,null,d.createElement("tr",null,d.createElement("td",{"data-title":"編號"},a),d.createElement("td",{"data-title":"問卷標題"},i.subject),d.createElement("td",{"data-title":"資源名稱",className:"link"},d.createElement("a",{tabIndex:"0",onClick:function(e){e.preventDefault(),r({id:i.dbid})},onKeyDown:function(e){"Enter"===e.key&&r({id:i.dbid})}},i.ebname)),d.createElement("td",{"data-title":"調查起迄時間",className:"nowrap"},o,"~",s),d.createElement("td",{className:"nowrap"},i.isFilled&&"1"===i.isFilled&&"已填寫",i.isFilled&&"0"===i.isFilled&&d.createElement("a",{href:"#",tabIndex:"0","data-sn":i.sn,className:"btn-primary",onClick:this.apply.bind(this),onKeyDown:function(t){"Enter"===t.key&&e.apply(t)}},"填寫"))))},t}(n(68727).Z),c()(a.prototype,"apply",[f.Nj],Object.getOwnPropertyDescriptor(a.prototype,"apply"),a.prototype),a);S.propTypes={displayConfig:N().array.isRequired,data:N().array,functionConfigList:N().array,functionRightConfigList:N().array,functionLeftConfigList:N().array,detailList:N().object,buttonEvent:N().func,batchConfig:N().array,serialNo:N().number,checked:N().bool,rowStyle:N().string},S.defaultProps={buttonEvent:function(){},functionConfigList:[],functionRightConfigList:[],functionLeftConfigList:[],detailList:[],batchConfig:[],serialNo:-1,checked:!1,rowStyle:""};var L=S,j=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={},n}return s()(t,e),t.prototype.render=function(){return d.createElement(d.Fragment,null,d.createElement("div",{className:"table_list"},d.createElement("table",null,d.createElement("thead",null,d.createElement("tr",null,d.createElement("th",
1null,"編號"),d.createElement("th",{className:"title"},"問卷標題"),d.createElement("th",null,"資源名稱"),d.createElement("th",null,"調查起迄時間"),d.createElement("th",null))),d.createElement("tbody",null,this.props.compDataContent))))},t}(d.Component);j.propTypes={};var D,F,O,Q=j,P=n(95281),Z=(0,g.ZP)(D||(D=p()(["\n  query getQuestionnaireList($searchForm: SearchForm){\n    getQuestionnaireList(Input: $searchForm){\n      ","\n    }\n  }\n  "," \n"])),E.Z.defaultLayoutReturn,E.Z.defaultLayoutFragment),I=(0,y.a)(["common"])(F=(0,b.M)((O=function(e){function t(t){var n,a=(n=e.call(this,t)||this).getQueryState(t,!0);return n.state=a,n}s()(t,e);var n=t.prototype;return n.UNSAFE_componentWillReceiveProps=function(e){this.props!==e&&this.setQueryState(e)},n.setQueryState=function(e){var t=this.getQueryState(e);JSON.stringify(t)!==JSON.stringify(this.state)&&this.setState(i()({},t))},n.getQueryState=function(e,t){var n,a=e.search,r=e.readerStore,o=i()({},a),s=o.pageNo,l=(o.limit,o.resourceType);t||(n=this.state.dbID),n=n||"";var c={pageNo:s=s||1,limit:99999,resourceType:l};return Object.keys(c).map((function(e){return(null===c[e]||"string"==typeof c[e]&&""===c[e].trim())&&delete c[e],""})),{searchForm:c,auth:r.auth,resourceType:l,dbID:n}},n.handleClick=function(e){this.setState({dbID:e.id}),this.detailLightBox.popup(),window.history.pushState("","","/resourceDetail?resourceType=databases&id="+e.id)},n.render=function(){var e=this;return d.createElement(d.Fragment,null,d.createElement(m.Z,this.props,d.createElement("div",{className:"main sp",id:"center"},d.createElement(h.Z,null),d.createElement("section",{className:"col-6-6 main_content"},d.createElement("div",{className:"container"},d.createElement("a",{className:"accesskey",href:"javascript:;",id:"aC",accessKey:"C",title:this.props.t("jumperrwd.common.mainContenctArea")},":::"),d.createElement("h2",null,this.props.t("hyint.common.questionnaire")),d.createElement("a",{href:"javascript:history.back();",className:"back"},this.props.t("hyint.common.table.back")),d.createElement("div",{className:"detail_block"},d.createElement(C.Z,{query:Z,variables:{searchForm:this.state.searchForm},fetchPolicy:"network-only",displayComp:L,pagination:"NormalPagination",handleClick:this.handleClick,customComponentLayout:Q,showPagination:!1}))))),d.createElement(P.Z,i()({ref:function(t){e.detailLightBox=t},id:this.state.dbID,resourceType:"databases"},this.props))))},t}(d.Component),c()(O.prototype,"setQueryState",[f.Nj],Object.getOwnPropertyDescriptor(O.prototype,"setQueryState"),O.prototype),c()(O.prototype,"getQueryState",[f.Nj],Object.getOwnPropertyDescriptor(O.prototype,"getQueryState"),O.prototype),c()(O.prototype,"handleClick",[f.Nj],Object.getOwnPropertyDescriptor(O.prototype,"handleClick"),O.prototype),F=O))||F)||F}}]);
2//# sourceMappingURL=component---src-pages-questionnaire-js-ac214378bc498ab45fbc.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.