| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276 |
- <!-- 人员管理页面 -->
- <template>
- <div class="resource">
- <div class="zy-head-search">
- <span>人员姓名</span>
- <el-input
- v-model="search.empName"
- size="small"
- placeholder="请输入员工姓名"
- style="width: 200px"
- ></el-input>
- <span>人员编号</span>
- <el-input
- v-model="search.empNo"
- size="small"
- placeholder="请输入员工编号"
- style="width: 200px"
- ></el-input>
- <el-button
- icon="el-icon-search"
- type="goon"
- size="mini"
- @click="searchData"
- >查询</el-button>
- <el-button
- icon="el-icon-refresh"
- type="info"
- plain
- size="mini"
- @click="reset"
- >重置</el-button>
- </div>
- <!--人员信息表表头-->
- <div class="zy-title-div">
- <div class="zy-title-name">
- <img
- style="width: 25px; height: 25px"
- src='../../../../assets/img/imgScreen/logo.png'
- />
- 人员信息表
- </div>
- <div>
- <el-button
- icon="el-icon-circle-plus-outline"
- type="goon"
- size="mini"
- @click="addData"
- >新增</el-button>
- <el-button
- icon="el-icon-edit"
- type="goon"
- size="mini"
- @click="modifyData"
- >修改</el-button>
- <el-button
- icon="el-icon-circle-close"
- type="danger"
- size="mini"
- @click="deleteData"
- >停用</el-button>
- <el-button
- icon="el-icon-check"
- type="goon"
- size="mini"
- @click="recoverData"
- >启用</el-button>
- </div>
- </div>
-
- <!-- 人员信息表表格:height="height_top" -->
- <div class="common-table-div" style="margin-bottom:0;margin-top:0">
- <el-table
- v-loading="dataLoading"
- ref="dataTable"
- border
- highlight-current-row
- @selection-change="handleSelectionChange"
- :data="table.list"
- :icore-filter-flag="icoreFilterFlag"
- :header-cell-style="tableHeaderCellStyle"
- @row-click="getAllListByEmpNo"
- :cell-class-name="tableRowClassName"
- :summary-method="getSummaries"
- show-summary
- :exchangeFilterMap="{'validFlag':{'0':'已停用','1':'已启用'}}"
- >
- <el-table-column
- type="index"
- label="NO"
- align="center"
- ></el-table-column>
- <el-table-column
- type="selection"
- width="55"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="empNo"
- label="职工编号"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="empName"
- label="职工姓名"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="90px"
- prop="birthday"
- label="出生日期"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop='gender'
- label="性别"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="people"
- label="民族"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="politics"
- label="政治面貌"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="validFlag"
- label="数据状态"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.validFlag == 1">已启用</span>
- <span v-else-if="scope.row.validFlag == 0">已停用</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="companyName"
- label="公司"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="deptName"
- label="部门"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="sectionName"
- label="班组"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="wrkGrpName"
- label="班值"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="postName"
- label="岗位"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="marriage"
- label="婚姻状况"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="birthPlace"
- label="籍贯"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="150px"
- prop="idCard"
- label="身份证号码"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="permanentAddr"
- label="户籍地址"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="contactNumber"
- label="联系电话"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="contactAddr"
- label="联系地址"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="emergencyContact"
- label="紧急联系人"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="emergencyNumber2"
- label="紧急电话"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="email"
- label="电子邮箱"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="eduDegree"
- label="学历"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="unvstGraduated"
- label="毕业院校"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="major"
- label="专业名称"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="graduationTime"
- label="毕业时间"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="title"
- label="职称"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="foreignLanguage"
- label="外语语种"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="languageLevel"
- label="外语等级"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="computerLevel"
- label="计算机等级"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="empno"
- label="工号"
- align="center"
- ></el-table-column>
- <!-- <el-table-column sortable :show-overflow-tooltip="true" min-width="100px" prop="postGrade" label="职级" align="center"></el-table-column> -->
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="130px"
- prop="entryDate"
- label="入职日期"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="130px"
- prop="passedDate"
- label="转正日期"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="130px"
- prop="leaveDate"
- label="离职日期"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="leaveReason"
- label="离职原因"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="empStatus"
- label="员工状态"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="200px"
- prop="photoDir1"
- label="员工照片"
- align="left"
- >
- <template slot-scope="scope">
- <!-- <el-button
- type="goon" size="mini" icon="el-icon-download" circle
- @click="downloadFile(scope.$index, scope.row.photoDir)">
- </el-button>
- <el-button
- type="warning" size="mini" icon="el-icon-view" circle
- @click="imgPreView(scope.$index, scope.row)">
- </el-button> -->
- <span>{{scope.row.photoDir1}}</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- label="下载、预览"
- align="center"
- >
- <template slot-scope="scope">
- <el-tooltip
- content="下载文件"
- placement="bottom"
- effect="light"
- >
- <el-button
- :disabled='!scope.row.photoDir1'
- type="goon"
- size="mini"
- icon="el-icon-download"
- circle
- @click="downloadFile(scope.$index, scope.row.empNo, scope.row.photoDir.fileName, scope.row.photoDir.oldFileName, 'LIMS_LRC_EMP')"
- >
- </el-button>
- </el-tooltip>
- <el-tooltip
- content="预览照片"
- placement="bottom"
- effect="light"
- >
- <el-button
- :disabled='!scope.row.photoDir1'
- type="warning"
- size="mini"
- icon="el-icon-view"
- circle
- @click="imgPreView(scope.$index, scope.row.empNo, scope.row.photoDir.fileName, 'LIMS_LRC_EMP')"
- >
- </el-button>
- </el-tooltip>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="memo"
- label="备注"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="createMan"
- label="创建人"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="createTime"
- label="创建时间"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="updateMan"
- label="更新人"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="updateTime"
- label="更新时间"
- align="center"
- ></el-table-column>
- </el-table>
- </div>
- <!-- 分页一 -->
- <div class="zy-foot-page">
- <el-pagination
- v-loading="dataLoading"
- @size-change="pageSizeChange"
- @current-change="pageCurrentChange"
- :current-page="page.pageNum"
- :page-sizes="[10, 20, 50, 100, 200]"
- :page-size="page.pageSize"
- layout="total, sizes, prev, pager, next, jumper"
- :total="page.totalPage"
- background
- >
- </el-pagination>
- </div>
- <br>
- <!-- 合同信息 -->
- <div
- style="position: absolute;right:23px;margin-top:7px;z-index: 999;"
- v-if="activeName === 'first'"
- ></div>
- <!-- 资格认证 -->
- <div
- style="position: absolute;right:23px;margin-top: 7px;z-index: 999;"
- v-if="activeName === 'second'"
- ></div>
- <!-- 教育经历 -->
- <div
- style="position: absolute;right:23px;margin-top: 7px;z-index: 999;"
- v-if="activeName === 'third'"
- ></div>
- <!-- 培训记录 -->
- <div
- style="position: absolute;right:23px;margin-top: 7px;z-index: 999;"
- v-if="activeName === 'fourth'"
- ></div>
- <!-- 工作经历 -->
- <div
- style="position: absolute;right:23px;margin-top: 7px;z-index: 999;"
- v-if="activeName === 'fifth'"
- ></div>
- <!-- 班组维护 -->
- <div
- style="position: absolute;right:23px;margin-top: 7px;z-index: 999;"
- v-if="activeName === 'sixth'"
- ></div>
- <!-- tabs切栏 -->
- <div>
- <el-tabs
- v-model="activeName"
- type="card"
- @tab-click="tabsHandleClick"
- >
- <el-tab-pane
- label="合同信息"
- name="first"
- >
- <div class="zy-title-div">
- <div class="zy-title-name">
- <img
- style="width: 25px; height: 25px"
- src='../../../../assets/img/imgScreen/logo.png'
- />
- 人员合同信息
- </div>
- <div>
- <el-button
- icon="el-icon-circle-plus-outline"
- type="goon"
- size="mini"
- @click="addData2"
- >新增</el-button>
- <el-button
- icon="el-icon-edit"
- type="goon"
- size="mini"
- @click="modifyData2"
- >修改</el-button>
- <el-button
- icon="el-icon-circle-close"
- type="danger"
- size="mini"
- @click="deleteData2"
- >停用</el-button>
- <el-button
- icon="el-icon-check"
- type="goon"
- size="mini"
- @click="recoverData2"
- >启用</el-button>
- </div>
- </div>
-
- <!-- 人员合同信息表表格 :height="height_bot"-->
- <div class="common-table-div" style="margin-bottom:0;margin-top:0">
- <el-table
- v-loading="dataLoading2"
- ref="dataTable2"
- border
- highlight-current-row
- @selection-change="handleSelectionChange2"
- @row-click="getRowCheck"
- :data="table.list2"
- :icore-filter-flag="icoreFilterFlag"
- :header-cell-style="tableHeaderCellStyle"
- :cell-class-name="tableRowClassName2"
- :exchangeFilterMap="{'onTrial':{'0':'否','1':'是'},
- 'unlimited':{'0':'否','1':'是'},
- 'validFlag':{'0':'已停用','1':'已启用'},}"
- >
- <el-table-column
- type="index"
- label="NO"
- align="center"
- ></el-table-column>
- <el-table-column
- type="selection"
- width="55"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="empNo"
- label="职工编号"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="contId"
- label="合同编号"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="110px"
- prop="contractTitle"
- label="合同名称"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="contractType"
- label="合同类型"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="110px"
- prop="fileNumber"
- label="档案编号"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="onTrial"
- label="是否试用"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.onTrial == 0">否</span>
- <span v-else-if="scope.row.onTrial == 1">是</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="unlimited"
- label="是否长期合同"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.unlimited == 0">否</span>
- <span v-else-if="scope.row.unlimited == 1">是</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="validFlag"
- label="数据状态"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.validFlag == 1">已启用</span>
- <span v-else-if="scope.row.validFlag == 0">已停用</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="130px"
- prop="trialEndDate"
- label="试用期至"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="130px"
- prop="signDate"
- label="签订日期"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="130px"
- prop="strDate"
- label="开始日期"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="130px"
- prop="endDate"
- label="结束日期"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="200px"
- prop="attachment011"
- label="附件1"
- align="left"
- >
- <template slot-scope="scope">
- <el-button
- type="goon"
- size="mini"
- icon="el-icon-download"
- circle
- :disabled='!scope.row.attachment011'
- @click="downloadFile(scope.$index, scope.row.rowId, scope.row.attachment01.fileName, scope.row.attachment01.oldFileName, '')"
- >
- <!-- @click="downloadFile(scope.$index, scope.row.rowId, scope.row.attachment01.fileName, scope.row.attachment01.oldFileName, 'LIMS_LRC_EMP_CONT')"> -->
- </el-button>
- <span>{{scope.row.attachment011}}</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="200px"
- prop="attachment021"
- label="附件2"
- align="left"
- >
- <template slot-scope="scope">
- <el-button
- type="goon"
- size="mini"
- icon="el-icon-download"
- circle
- :disabled='!scope.row.attachment021'
- @click="downloadFile(scope.$index, scope.row.rowId, scope.row.attachment02.fileName, scope.row.attachment02.oldFileName, '')"
- >
- </el-button>
- <span>{{scope.row.attachment021}}</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="200px"
- prop="attachment031"
- label="附件3"
- align="left"
- >
- <template slot-scope="scope">
- <el-button
- type="goon"
- size="mini"
- icon="el-icon-download"
- circle
- :disabled='!scope.row.attachment031'
- @click="downloadFile(scope.$index, scope.row.rowId, scope.row.attachment03.fileName, scope.row.attachment03.oldFileName, '')"
- >
- </el-button>
- <span>{{scope.row.attachment031}}</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="memo"
- label="备注"
- align="center"
- ></el-table-column>
- </el-table>
- </div>
- <!-- <div class="zy-foot-page">
- <el-pagination
- v-loading="dataLoading2"
- @size-change="pageSizeChange2"
- @current-change="pageCurrentChange2"
- :current-page="page2.pageNum"
- :page-sizes="[10, 20, 50, 100, 200]"
- :page-size="page2.pageSize"
- layout="total, sizes, prev, pager, next, jumper"
- :total="page2.totalPage"
- background
- >
- </el-pagination>
- </div> -->
- </el-tab-pane>
- <el-tab-pane
- label="资格认证"
- name="second"
- >
- <div class="zy-title-div">
- <div class="zy-title-name">
- <img
- style="width: 25px; height: 25px"
- src='../../../../assets/img/imgScreen/logo.png'
- />
- 资格认证信息
- </div>
- <div>
- <el-button
- icon="el-icon-circle-plus-outline"
- type="goon"
- size="mini"
- @click="addData3"
- >新增</el-button>
- <el-button
- icon="el-icon-edit"
- type="goon"
- size="mini"
- @click="modifyData3"
- >修改</el-button>
- <el-button
- icon="el-icon-circle-close"
- type="danger"
- size="mini"
- @click="deleteData3"
- >停用</el-button>
- <el-button
- icon="el-icon-check"
- type="goon"
- size="mini"
- @click="recoverData3"
- >启用</el-button>
- </div>
- </div>
- <!-- 资格认证表格 -->
- <div class="common-table-div" style="margin-bottom:0;margin-top:0">
- <el-table
- v-loading="dataLoading3"
- ref="dataTable3"
- border
- :height="height_bot"
- highlight-current-row
- @selection-change="handleSelectionChange3"
- :data="table.list3"
- @row-click="getRowCheck2"
- :icore-filter-flag="icoreFilterFlag"
- :cell-class-name="tableRowClassName3"
- :header-cell-style="tableHeaderCellStyle"
- :exchangeFilterMap="{'validFlag':{'0':'已停用','1':'已启用'},
- 'unlimited':{'0':'否','1':'是'}}"
- >
- <el-table-column
- type="index"
- label="NO"
- align="center"
- ></el-table-column>
- <el-table-column
- type="selection"
- width="55"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- width="140px"
- prop="empNo"
- label="职工编号"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- width="140px"
- prop="certId"
- label=资格证编号
- align="center"
- ></el-table-column>
- <!-- <el-table-column sortable width="100px" prop="certifyNo" label="资格证编号" align="center"></el-table-column> -->
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="110px"
- prop="certifyName"
- label="资格证名称"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="certifyType"
- label="资格证类型"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="certifyLevel"
- label="资格证等级"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="issueOrg"
- label="发证机构"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="unlimited"
- label="终身有效"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.unlimited == 0">否</span>
- <span v-else-if="scope.row.unlimited == 1">是</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="validFlag"
- label="数据状态"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.validFlag == 1">已启用</span>
- <span v-else-if="scope.row.validFlag == 0">已停用</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="issueDate"
- label="发证日期"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="strDate"
- label="有效期起"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="endDate"
- label="有效期止"
- align="center"
- ></el-table-column>
- <!-- <el-table-column sortable :show-overflow-tooltip="true" min-width="200px" prop="attachment01" label="附件1" align="left">
- <template slot-scope="scope">
- <el-button
- type="goon" size="mini" icon="el-icon-download" circle
- @click="downloadFile(scope.$index, scope.row.attachment01)">
- </el-button>
- <span>{{scope.row.attachment01}}</span>
- </template>
- </el-table-column>
- <el-table-column sortable :show-overflow-tooltip="true" min-width="200px" prop="attachment02" label="附件2" align="left">
- <template slot-scope="scope">
- <el-button
- type="goon" size="mini" icon="el-icon-download" circle
- @click="downloadFile(scope.$index, scope.row.attachment02)">
- </el-button>
- <span>{{scope.row.attachment02}}</span>
- </template>
- </el-table-column>
- <el-table-column sortable :show-overflow-tooltip="true" min-width="200px" prop="attachment03" label="附件3" align="left">
- <template slot-scope="scope">
- <el-button
- type="goon" size="mini" icon="el-icon-download" circle
- @click="downloadFile(scope.$index, scope.row.attachment03)">
- </el-button>
- <span>{{scope.row.attachment03}}</span>
- </template>
- </el-table-column> -->
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="memo"
- label="备注"
- align="center"
- ></el-table-column>
- </el-table>
- </div>
- <!-- <div class="zy-foot-page">
- <el-pagination
- v-loading="dataLoading3"
- @size-change="pageSizeChange3"
- @current-change="pageCurrentChange3"
- :current-page="page3.pageNum"
- :page-sizes="[10, 20, 50, 100, 200]"
- :page-size="page3.pageSize"
- layout="total, sizes, prev, pager, next, jumper"
- :total="page3.totalPage"
- background
- >
- </el-pagination>
- </div> -->
- </el-tab-pane>
- <el-tab-pane
- label="教育经历"
- name="third"
- >
- <div class="zy-title-div">
- <div class="zy-title-name">
- <img
- style="width: 25px; height: 25px"
- src='../../../../assets/img/imgScreen/logo.png'
- />
- 教育经历信息
- </div>
- <div>
- <el-button
- icon="el-icon-circle-plus-outline"
- type="goon"
- size="mini"
- @click="addData4"
- >新增</el-button>
- <el-button
- icon="el-icon-edit"
- type="goon"
- size="mini"
- @click="modifyData4"
- >修改</el-button>
- <el-button
- icon="el-icon-circle-close"
- type="danger"
- size="mini"
- @click="deleteData4"
- >停用</el-button>
- <el-button
- icon="el-icon-check"
- type="goon"
- size="mini"
- @click="recoverData4"
- >启用</el-button>
- </div>
- </div>
- <!-- 教育经历表格 -->
- <div class="common-table-div" style="margin-bottom:0;margin-top:0">
- <el-table
- v-loading="dataLoading4"
- ref="dataTable4"
- border
- :height="height_bot"
- highlight-current-row
- @selection-change="handleSelectionChange4"
- :data="table.list4"
- @row-click="getRowCheck3"
- :icore-filter-flag="icoreFilterFlag"
- :cell-class-name="tableRowClassName4"
- :header-cell-style="tableHeaderCellStyle"
- :exchangeFilterMap="{'validFlag':{'0':'已停用','1':'已启用'}}"
- >
- <el-table-column
- type="index"
- label="NO"
- align="center"
- ></el-table-column>
- <el-table-column
- type="selection"
- width="55"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="eduId"
- label="教育经历编号"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="empNo"
- label="职工编号"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="eduDegree"
- label="学历"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="school"
- label="学校"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="major"
- label="专业"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="eduDesc"
- label="学习情况"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="135px"
- prop="strDate"
- label="入学时间"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="135px"
- prop="endDate"
- label="毕业时间"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="200px"
- prop="attachment011"
- label="附件1"
- align="left"
- >
- <template slot-scope="scope">
- <el-button
- type="goon"
- size="mini"
- icon="el-icon-download"
- circle
- :disabled='!scope.row.attachment011'
- @click="downloadFile(scope.$index, scope.row.rowId, scope.row.attachment01.fileName, scope.row.attachment01.oldFileName, '')"
- >
- <!-- LIMS_LRC_EMP_EDU -->
- </el-button>
- <span>{{scope.row.attachment011}}</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="200px"
- prop="attachment021"
- label="附件2"
- align="left"
- >
- <template slot-scope="scope">
- <el-button
- type="goon"
- size="mini"
- icon="el-icon-download"
- circle
- :disabled='!scope.row.attachment021'
- @click="downloadFile(scope.$index, scope.row.rowId, scope.row.attachment02.fileName, scope.row.attachment02.oldFileName, '')"
- >
- </el-button>
- <span>{{scope.row.attachment021}}</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="200px"
- prop="attachment031"
- label="附件3"
- align="left"
- >
- <template slot-scope="scope">
- <el-button
- type="goon"
- size="mini"
- icon="el-icon-download"
- circle
- :disabled='!scope.row.attachment031'
- @click="downloadFile(scope.$index, scope.row.rowId, scope.row.attachment03.fileName, scope.row.attachment03.oldFileName, '')"
- >
- </el-button>
- <span>{{scope.row.attachment031}}</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="validFlag"
- label="数据状态"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.validFlag == 1">已启用</span>
- <span v-else-if="scope.row.validFlag == 0">已停用</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="memo"
- label="备注"
- align="center"
- ></el-table-column>
- </el-table>
- </div>
- <!-- <div class="zy-foot-page">
- <el-pagination
- v-loading="dataLoading4"
- @size-change="pageSizeChange4"
- @current-change="pageCurrentChange4"
- :current-page="page4.pageNum"
- :page-sizes="[10, 20, 50, 100, 200]"
- :page-size="page4.pageSize"
- layout="total, sizes, prev, pager, next, jumper"
- :total="page4.totalPage"
- background
- >
- </el-pagination>
- </div> -->
- </el-tab-pane>
- <el-tab-pane
- label="培训记录"
- name="fourth"
- >
- <div class="zy-title-div">
- <div class="zy-title-name">
- <img
- style="width: 25px; height: 25px"
- src='../../../../assets/img/imgScreen/logo.png'
- />
- 培训记录信息
- </div>
- <div>
- <el-button
- icon="el-icon-circle-plus-outline"
- type="goon"
- size="mini"
- @click="addData5"
- >新增</el-button>
- <el-button
- icon="el-icon-edit"
- type="goon"
- size="mini"
- @click="modifyData5"
- >修改</el-button>
- <el-button
- icon="el-icon-circle-close"
- type="danger"
- size="mini"
- @click="deleteData5"
- >停用</el-button>
- <el-button
- icon="el-icon-check"
- type="goon"
- size="mini"
- @click="recoverData5"
- >启用</el-button>
- </div>
- </div>
- <!-- 培训记录信息表表格 -->
- <div class="common-table-div" style="margin-bottom:0;margin-top:0">
- <el-table
- v-loading="dataLoading5"
- ref="dataTable5"
- border
- :height="height_bot"
- highlight-current-row
- @selection-change="handleSelectionChange5"
- :data="table.list5"
- @row-click="getRowCheck4"
- :icore-filter-flag="icoreFilterFlag"
- :cell-class-name="tableRowClassName5"
- :header-cell-style="tableHeaderCellStyle"
- :exchangeFilterMap="{'validFlag':{'0':'已停用','1':'已启用'},
- 'passed':{'0':'否','1':'是'},}"
- >
- <el-table-column
- type="index"
- label="NO"
- align="center"
- ></el-table-column>
- <el-table-column
- type="selection"
- width="55"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="traId"
- label="培训记录编号"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="empNo"
- label="职工编号"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="courseName"
- label="培训课程"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="trnType"
- label="培训类型"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="trnMode"
- label="培训形式"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="trnOrg"
- label="培训机构"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="trnPurpose"
- label="培训目的"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="trnConten"
- label="培训内容"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="trnCost"
- label="培训费用"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="strDate"
- label="培训开始时间"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="endDate"
- label="培训结束时间"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="110px"
- prop="paidByComp"
- label="公司支付费用"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="110px"
- prop="paidBySelf"
- label="个人支付费用"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="trnResult"
- label="培训成绩"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="passed"
- label="是否合格"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.passed == 0">否</span>
- <span v-else-if="scope.row.passed == 1">是</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="110px"
- prop="tchComments"
- label="导师评语"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="200px"
- prop="attachment011"
- label="附件1"
- align="left"
- >
- <template slot-scope="scope">
- <el-button
- type="goon"
- size="mini"
- icon="el-icon-download"
- circle
- :disabled='!scope.row.attachment011'
- @click="downloadFile(scope.$index, scope.row.rowId, scope.row.attachment01.fileName, scope.row.attachment01.oldFileName, '')"
- >
- <!-- LIMS_LRC_EMP_TRAINING -->
- </el-button>
- <span>{{scope.row.attachment011}}</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="200px"
- prop="attachment021"
- label="附件2"
- align="left"
- >
- <template slot-scope="scope">
- <el-button
- type="goon"
- size="mini"
- icon="el-icon-download"
- circle
- :disabled='!scope.row.attachment021'
- @click="downloadFile(scope.$index, scope.row.rowId, scope.row.attachment02.fileName, scope.row.attachment02.oldFileName, '')"
- >
- </el-button>
- <span>{{scope.row.attachment021}}</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="200px"
- prop="attachment031"
- label="附件3"
- align="left"
- >
- <template slot-scope="scope">
- <el-button
- type="goon"
- size="mini"
- icon="el-icon-download"
- circle
- :disabled='!scope.row.attachment031'
- @click="downloadFile(scope.$index, scope.row.rowId, scope.row.attachment03.fileName, scope.row.attachment03.oldFileName, '')"
- >
- </el-button>
- <span>{{scope.row.attachment031}}</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="memo"
- label="备注"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="validFlag"
- label="数据状态"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.validFlag == 1">已启用</span>
- <span v-else-if="scope.row.validFlag == 0">已停用</span>
- </template>
- </el-table-column>
- </el-table>
- </div>
- <!-- <div class="zy-foot-page">
- <el-pagination
- v-loading="dataLoading5"
- @size-change="pageSizeChange5"
- @current-change="pageCurrentChange5"
- :current-page="page5.pageNum"
- :page-sizes="[10, 20, 50, 100, 200]"
- :page-size="page5.pageSize"
- layout="total, sizes, prev, pager, next, jumper"
- :total="page5.totalPage"
- background
- >
- </el-pagination>
- </div> -->
- </el-tab-pane>
- <el-tab-pane
- label="工作经历"
- name="fifth"
- >
- <div class="zy-title-div">
- <div class="zy-title-name">
- <img
- style="width: 25px; height: 25px"
- src='../../../../assets/img/imgScreen/logo.png'
- />
- 工作经历信息
- </div>
- <div>
- <el-button
- icon="el-icon-circle-plus-outline"
- type="goon"
- size="mini"
- @click="addData6"
- >新增</el-button>
- <el-button
- icon="el-icon-edit"
- type="goon"
- size="mini"
- @click="modifyData6"
- >修改</el-button>
- <el-button
- icon="el-icon-circle-close"
- type="danger"
- size="mini"
- @click="deleteData6"
- >停用</el-button>
- <el-button
- icon="el-icon-check"
- type="goon"
- size="mini"
- @click="recoverData6"
- >启用</el-button>
- </div>
- </div>
- <!-- 工作经历表格 -->
- <div class="common-table-div" style="margin-bottom:0;margin-top:0">
- <el-table
- v-loading="dataLoading6"
- ref="dataTable6"
- border
- :height="height_bot"
- highlight-current-row
- @selection-change="handleSelectionChange6"
- :data="table.list6"
- @row-click="getRowCheck5"
- :icore-filter-flag="icoreFilterFlag"
- :cell-class-name="tableRowClassName6"
- :header-cell-style="tableHeaderCellStyle"
- :exchangeFilterMap="{'validFlag':{'0':'已停用','1':'已启用'},}"
- >
- <el-table-column
- type="index"
- label="NO"
- align="center"
- ></el-table-column>
- <el-table-column
- type="selection"
- width="55"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="wrkId"
- label="工作经历编号"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="empNo"
- label="职工编号"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="wrkCompany"
- label="工作单位"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="jobDesc"
- label="工作内容"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="leavePost"
- label="离职职务"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="leaveReason"
- label="离职原因"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="strDate"
- label="开始时间"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="140px"
- prop="endDate"
- label="离职日期"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="200px"
- prop="attachment011"
- label="附件1"
- align="left"
- >
- <template slot-scope="scope">
- <el-button
- type="goon"
- size="mini"
- icon="el-icon-download"
- circle
- :disabled='!scope.row.attachment011'
- @click="downloadFile(scope.$index, scope.row.rowId, scope.row.attachment01.fileName, scope.row.attachment01.oldFileName, '')"
- >
- <!-- LIMS_LRC_EMP_WRK -->
- </el-button>
- <span>{{scope.row.attachment011}}</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="200px"
- prop="attachment021"
- label="附件2"
- align="left"
- >
- <template slot-scope="scope">
- <el-button
- type="goon"
- size="mini"
- icon="el-icon-download"
- circle
- :disabled='!scope.row.attachment021'
- @click="downloadFile(scope.$index, scope.row.rowId, scope.row.attachment02.fileName, scope.row.attachment02.oldFileName, '')"
- >
- </el-button>
- <span>{{scope.row.attachment021}}</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="200px"
- prop="attachment031"
- label="附件3"
- align="left"
- >
- <template slot-scope="scope">
- <el-button
- type="goon"
- size="mini"
- icon="el-icon-download"
- circle
- :disabled='!scope.row.attachment031'
- @click="downloadFile(scope.$index, scope.row.rowId, scope.row.attachment03.fileName, scope.row.attachment03.oldFileName, '')"
- >
- </el-button>
- <span>{{scope.row.attachment031}}</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="memo"
- label="备注"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="validFlag"
- label="数据状态"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.validFlag == 1">已启用</span>
- <span v-else-if="scope.row.validFlag == 0">已停用</span>
- </template>
- </el-table-column>
- </el-table>
- </div>
- <!-- <div class="zy-foot-page">
- <el-pagination
- v-loading="dataLoading6"
- @size-change="pageSizeChange6"
- @current-change="pageCurrentChange6"
- :current-page="page6.pageNum"
- :page-sizes="[10, 20, 50, 100, 200]"
- :page-size="page6.pageSize"
- layout="total, sizes, prev, pager, next, jumper"
- :total="page6.totalPage"
- background
- >
- </el-pagination>
- </div> -->
- </el-tab-pane>
- <el-tab-pane
- label="班组维护"
- name="sixth"
- >
- <div class="zy-title-div">
- <div class="zy-title-name">
- <img
- style="width: 25px; height: 25px"
- src='../../../../assets/img/imgScreen/logo.png'
- />
- 班组维护信息
- </div>
- <div>
- <el-button
- icon="el-icon-circle-plus-outline"
- type="goon"
- size="mini"
- @click="addData7"
- >新增</el-button>
- <el-button
- icon="el-icon-edit"
- type="goon"
- size="mini"
- @click="modifyData7"
- >修改</el-button>
- <el-button
- icon="el-icon-circle-close"
- type="danger"
- size="mini"
- @click="deleteData7"
- >停用</el-button>
- <el-button
- icon="el-icon-check"
- type="goon"
- size="mini"
- @click="recoverData7"
- >启用</el-button>
- </div>
- </div>
- <!-- 班组维护表格 -->
- <div class="common-table-div" style="margin-bottom:0;margin-top:0">
- <el-table
- v-loading="dataLoading7"
- ref="dataTable7"
- border
- :height="height_bot"
- highlight-current-row
- @selection-change="handleSelectionChange7"
- :data="table.list7"
- @row-click="getRowCheck6"
- :icore-filter-flag="icoreFilterFlag"
- :header-cell-style="tableHeaderCellStyle"
- :cell-class-name="tableRowClassName7"
- :exchangeFilterMap="{'validFlag':{'0':'已停用','1':'已启用'},}"
- >
- <el-table-column
- type="index"
- label="NO"
- align="center"
- ></el-table-column>
- <el-table-column
- type="selection"
- width="55"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="empNo"
- label="职工编号"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="empName"
- label="职工姓名"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="companyName"
- label="公司名称"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="deptName"
- label="部门名称"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="sectionName"
- label="班组名称"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="wrkGrpName"
- label="班值"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="postName"
- label="岗位"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="100px"
- prop="memo"
- label="备注"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="validFlag"
- label="有效状态"
- align="center"
- >
- <template slot-scope="scope">
- <span v-if="scope.row.validFlag == 1">已启用</span>
- <span v-else-if="scope.row.validFlag == 0">已停用</span>
- </template>
- </el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="createMan"
- label="创建人"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="createTime"
- label="创建时间"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="80px"
- prop="updateMan"
- label="更新人"
- align="center"
- ></el-table-column>
- <el-table-column
- sortable
- :show-overflow-tooltip="true"
- min-width="120px"
- prop="updateTime"
- label="更新时间"
- align="center"
- ></el-table-column>
- </el-table>
- </div>
- <!-- <div class="zy-foot-page">
- <el-pagination
- v-loading="dataLoading7"
- @size-change="pageSizeChange7"
- @current-change="pageCurrentChange7"
- :current-page="page7.pageNum"
- :page-sizes="[10, 20, 50, 100, 200]"
- :page-size="page7.pageSize"
- layout="total, sizes, prev, pager, next, jumper"
- :total="page7.totalPage"
- background
- >
- </el-pagination>
- </div> -->
- </el-tab-pane>
- </el-tabs>
- </div>
- <!-- 新增实验室人员信息弹窗 -->
- <div
- is="alertComponents"
- :showFlag="showFlag"
- :Params="Params"
- @refresh='refresh(1)'
- ></div>
- <div
- is="alertComponents2"
- :showFlag2="showFlag2"
- :Params="Params"
- :Params2="Params2"
- @refresh='refresh(2)'
- ></div>
- <div
- is="alertComponents3"
- :showFlag3="showFlag3"
- :Params="Params"
- :Params3="Params3"
- @refresh='refresh(3)'
- ></div>
- <div
- is="alertComponents4"
- :showFlag4="showFlag4"
- :Params="Params"
- :Params4="Params4"
- @refresh='refresh(4)'
- ></div>
- <div
- is="alertComponents5"
- :showFlag5="showFlag5"
- :Params="Params"
- :Params5="Params5"
- @refresh='refresh(5)'
- ></div>
- <div
- is="alertComponents6"
- :showFlag6="showFlag6"
- :Params="Params"
- :Params6="Params6"
- @refresh='refresh(6)'
- ></div>
- <div
- is="alertComponents7"
- :showFlag7="showFlag7"
- :Params="Params"
- :Params7="Params7"
- @refresh='refresh(7)'
- ></div>
- <!-- 图片预览 -->
- <el-dialog
- :visible.sync="imgVisible"
- width='70%'
- >
- <div
- slot="title"
- class="titleBox"
- >
- <i
- class="el-icon-document"
- style="font-size: 20px"
- ></i>
- <span style="margin-left:10px;font-size:18px">图片预览</span>
- </div>
- <div style="text-align:center">
- <img
- :src="imgPreViews"
- alt=""
- >
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import { getCookie, formatDate } from '@/utils/util.js';
- import { ajaxCtx } from '@/config/config.js';
- import { cookieUserId, cookieUserName } from '@/config/config.js';
- import alertComponents from './alertComponents';
- import alertComponents2 from './alertComponents2';
- import alertComponents3 from './alertComponents3';
- import alertComponents4 from './alertComponents4';
- import alertComponents5 from './alertComponents5';
- import alertComponents6 from './alertComponents6';
- import alertComponents7 from './alertComponents7';
- let userName = getCookie(cookieUserName);
- let userId = getCookie(cookieUserId);
- export default {
- components: { alertComponents, alertComponents2, alertComponents3, alertComponents4, alertComponents5, alertComponents6, alertComponents7 },
- data () {
- return {
- text: '',
- table: {
- list: [],
- list2: [],
- list3: [],
- list4: [],
- list5: [],
- list6: [],
- list7: [],
- },
- dataLoading: false,
- dataLoading2: false,
- dataLoading3: false,
- dataLoading4: false,
- dataLoading5: false,
- dataLoading6: false,
- dataLoading7: false,
- icoreFilterFlag: true,
- page: {
- pageSize: 50,
- pageNum: 1,
- totalPage: 0
- },
- page2: {
- pageSize: 50,
- pageNum: 1,
- totalPage: 0
- },
- page3: {
- pageSize: 50,
- pageNum: 1,
- totalPage: 0
- },
- page4: {
- pageSize: 50,
- pageNum: 1,
- totalPage: 0
- },
- page5: {
- pageSize: 50,
- pageNum: 1,
- totalPage: 0
- },
- page6: {
- pageSize: 50,
- pageNum: 1,
- totalPage: 0
- },
- page7: {
- pageSize: 50,
- pageNum: 1,
- totalPage: 0
- },
- showFlag: false,
- Params: {},
- showFlag2: false,
- Params2: {},
- showFlag3: false,
- Params3: {},
- showFlag4: false,
- Params4: {},
- showFlag5: false,
- Params5: {},
- showFlag6: false,
- Params6: {},
- showFlag7: false,
- Params7: {},
- multipleSelection3: [],
- multipleSelection4: [],
- multipleSelection5: [],
- multipleSelection6: [],
- multipleSelection7: [],
- multipleSelection8: [],
- multipleSelection9: [],
- search: {
- empName: '',
- empNo: '',
- },
- empNo: '',
- action_prod: window.location.protocol + '//' + window.location.host,
- // action_prod:ajaxCtx,
- height_top: 0,
- height_bot: 0,
- activeName: 'first',
- activeRefreshObj: {},
- activeEmpNo: '',
- setTimeoutObj: null,
- imgPreViews: '',
- imgVisible: false
- }
- },
- created () {
- this.height_top = window.innerHeight / 2 - 130 < 250 ? 250 : window.innerHeight / 2 - 110;
- this.height_bot = window.innerHeight / 2 - 130 < 250 ? 250 : window.innerHeight / 2 - 110;
- },
- mounted () {
- this.getDataList();
- // this.getDataList2();
- // this.getDataList3();
- // this.getDataList4();
- // this.getDataList5();
- // this.getDataList6();
- // this.getDataList7();
- // this.addScreen();
- // this.addScreen2();
- // this.addScreen3();
- // this.addScreen4();
- // this.addScreen5();
- // this.addScreen6();
- // this.addScreen7();
- },
- methods: {
- getSummaries (param) {
- const { columns, data } = param;
- const sums = [];
- columns.forEach((column, index) => {
- if (index === 0) {
- sums[index] = "合计";
- }
- if (index === 1) {
- sums[index] = data.length;
- }
- });
- return sums;
- },
- // 页面刷新,重新加载表格数据
- refresh (number) {
- switch (number) {
- case 1:
- this.getDataList();
- break
- case 2:
- this.getDataList2(this.empNo);
- break
- case 3:
- this.getDataList3(this.empNo);
- break
- case 4:
- this.getDataList4(this.empNo);
- break
- case 5:
- this.getDataList5(this.empNo);
- break
- case 6:
- this.getDataList6(this.empNo);
- break
- case 7:
- this.getDataList7(this.empNo);
- break
- }
- },
- // 人员信息表新增
- addData () {
- this.showFlag = !this.showFlag;
- // this.Params2 = null;
- this.Params = null;
- },
- // 修改(人员信息表)
- modifyData () {
- if (this.multipleSelection3.length !== 1) {
- this.$message.warning('请勾选您要修改的一条数据!')
- } else {
- this.showFlag = !this.showFlag;
- this.Params = Object.assign({}, this.multipleSelection3[0])
- }
- },
- // 人员信息删除
- deleteData () {
- if (this.multipleSelection3.length < 1) {
- this.$message.warning('请勾选您要停用的数据!')
- } else {
- this.dialogTableVisible = false;
- for (var i = 0; i < this.multipleSelection3.length; i++) {
- this.multipleSelection3[i].updateMan = userName;
- this.multipleSelection3[i].updateNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcemps/abolish', this.multipleSelection3, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('停用操作成功');
- this.refresh(1)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- recoverData () {
- if (this.multipleSelection3.length < 1) {
- this.$message.warning('请勾选您要启用的数据!')
- } else {
- this.dialogTableVisible = false;
- for (var i = 0; i < this.multipleSelection3.length; i++) {
- this.multipleSelection3[i].updateMan = userName;
- this.multipleSelection3[i].updateNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcemps/recover', this.multipleSelection3, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('启用操作成功');
- this.refresh(1)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- // 人员查询
- searchData () {
- this.page.pageNum = 1;
- this.getDataList()
- },
- // 人员信息重置
- reset () {
- this.search.empName = '';
- this.search.empNo = '';
- this.searchData();
- },
- // 人员合同信息新增
- addData2 () {
- this.showFlag2 = !this.showFlag2;
- this.Params2 = null;
- this.Params = this.multipleSelection3;
- },
- // 人员合同信息修改
- modifyData2 () {
- if (this.multipleSelection4.length !== 1) {
- this.$message.warning('请勾选您要修改的一条数据!')
- } else {
- this.showFlag2 = !this.showFlag2;
- this.Params2 = this.multipleSelection4[0];
- this.Params = null
- }
- },
- // 人员合同信息删除
- deleteData2 () {
- if (this.multipleSelection4.length < 1) {
- this.$message.warning('请勾选您要停用的数据!')
- } else {
- this.dialogTableVisible = false;
- for (var i = 0; i < this.multipleSelection4.length; i++) {
- this.multipleSelection4[i].updateMan = userName;
- this.multipleSelection4[i].updateNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcempconts/abolish', this.multipleSelection4, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('停用操作成功');
- this.refresh(2)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- // 人员合同信息启用按钮
- recoverData2 () {
- if (this.multipleSelection4.length < 1) {
- this.$message.warning('请勾选您要恢复的数据!')
- } else {
- this.dialogTableVisible2 = false;
- for (var i = 0; i < this.multipleSelection4.length; i++) {
- this.multipleSelection4[i].evaMan = userName;
- this.multipleSelection4[i].evaNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcempconts/recover', this.multipleSelection4, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('启用成功');
- this.refresh(2)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- // 资格认证新增
- addData3 () {
- this.showFlag3 = !this.showFlag3;
- this.Params3 = null;
- this.Params = this.multipleSelection3;
- },
- // 资格认证修改
- modifyData3 () {
- if (this.multipleSelection5.length !== 1) {
- this.$message.warning('请勾选您要修改的一条数据!')
- } else {
- this.showFlag3 = !this.showFlag3;
- this.Params3 = this.multipleSelection5[0];
- this.Params = null
- }
- },
- // 资格认证删除
- deleteData3 () {
- if (this.multipleSelection5.length < 1) {
- this.$message.warning('请勾选您要停用的数据!')
- } else {
- this.dialogTableVisible = false;
- for (var i = 0; i < this.multipleSelection5.length; i++) {
- this.multipleSelection5[i].updateMan = userName;
- this.multipleSelection5[i].updateNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcempcerts/abolish', this.multipleSelection5, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('停用操作成功');
- this.refresh(3)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- // 资格认证启用
- recoverData3 () {
- if (this.multipleSelection5.length < 1) {
- this.$message.warning('请勾选您要恢复的数据!')
- } else {
- this.dialogTableVisible2 = false;
- for (var i = 0; i < this.multipleSelection5.length; i++) {
- this.multipleSelection5[i].evaMan = userName;
- this.multipleSelection5[i].evaNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcempcerts/recover', this.multipleSelection5, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('启用成功');
- this.refresh(3)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- // 教育经历
- addData4 () {
- this.showFlag4 = !this.showFlag4;
- this.Params4 = null;
- this.Params = this.multipleSelection3;
- },
- // 教育经历修改
- modifyData4 () {
- if (this.multipleSelection6.length !== 1) {
- this.$message.warning('请勾选您要修改的一条数据!')
- } else {
- this.showFlag4 = !this.showFlag4;
- this.Params4 = this.multipleSelection6[0];
- this.Params = null
- }
- },
- // 教育经历删除
- deleteData4 () {
- if (this.multipleSelection6.length < 1) {
- this.$message.warning('请勾选您要停用的数据!')
- } else {
- this.dialogTableVisible = false;
- for (var i = 0; i < this.multipleSelection6.length; i++) {
- this.multipleSelection6[i].updateMan = userName;
- this.multipleSelection6[i].updateNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcempedus/abolish', this.multipleSelection6, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('停用操作成功');
- this.refresh(4)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- // 教育经历启用
- recoverData4 () {
- if (this.multipleSelection6.length < 1) {
- this.$message.warning('请勾选您要恢复的数据!')
- } else {
- this.dialogTableVisible2 = false;
- for (var i = 0; i < this.multipleSelection6.length; i++) {
- this.multipleSelection6[i].evaMan = userName;
- this.multipleSelection6[i].evaNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcempedus/recover', this.multipleSelection6, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('启用成功');
- this.refresh(4)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- // 培训记录
- addData5 () {
- this.showFlag5 = !this.showFlag5;
- this.Params5 = null;
- this.Params = this.multipleSelection3;
- },
- // 培训记录修改
- modifyData5 () {
- if (this.multipleSelection7.length !== 1) {
- this.$message.warning('请勾选您要修改的一条数据!')
- } else {
- this.showFlag5 = !this.showFlag5;
- this.Params5 = this.multipleSelection7[0];
- this.Params = null
- }
- },
- // 培训记录删除
- deleteData5 () {
- if (this.multipleSelection7.length < 1) {
- this.$message.warning('请勾选您要停用的数据!')
- } else {
- this.dialogTableVisible = false;
- for (var i = 0; i < this.multipleSelection7.length; i++) {
- this.multipleSelection7[i].updateMan = userName;
- this.multipleSelection7[i].updateNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcemptrainings/abolish', this.multipleSelection7, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('停用操作成功');
- this.refresh(5)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- // 培训记录启用
- recoverData5 () {
- if (this.multipleSelection7.length < 1) {
- this.$message.warning('请勾选您要恢复的数据!')
- } else {
- this.dialogTableVisible2 = false;
- for (var i = 0; i < this.multipleSelection7.length; i++) {
- this.multipleSelection7[i].evaMan = userName;
- this.multipleSelection7[i].evaNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcemptrainings/recover', this.multipleSelection7, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('启用成功');
- this.refresh(5)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- // 工作经历
- addData6 () {
- this.showFlag6 = !this.showFlag6;
- this.Params6 = null;
- this.Params = this.multipleSelection3;
- },
- // 工作经历修改
- modifyData6 () {
- if (this.multipleSelection8.length !== 1) {
- this.$message.warning('请勾选您要修改的一条数据!')
- } else {
- this.showFlag6 = !this.showFlag6;
- this.Params6 = this.multipleSelection8[0];
- this.Params = null
- }
- },
- // 工作经历删除
- deleteData6 () {
- if (this.multipleSelection8.length < 1) {
- this.$message.warning('请勾选您要停用的数据!')
- } else {
- this.dialogTableVisible = false;
- for (var i = 0; i < this.multipleSelection8.length; i++) {
- this.multipleSelection8[i].updateMan = userName;
- this.multipleSelection8[i].updateNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcempwrks/abolish', this.multipleSelection8, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('停用操作成功');
- this.refresh(6)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- // 工作经历启用
- recoverData6 () {
- if (this.multipleSelection8.length < 1) {
- this.$message.warning('请勾选您要恢复的数据!')
- } else {
- this.dialogTableVisible2 = false;
- for (var i = 0; i < this.multipleSelection8.length; i++) {
- this.multipleSelection8[i].evaMan = userName;
- this.multipleSelection8[i].evaNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcempwrks/recover', this.multipleSelection8, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('启用成功');
- this.refresh(6)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- // 班组维护经历
- addData7 () {
- this.showFlag7 = !this.showFlag7;
- this.Params7 = null;
- this.Params = this.multipleSelection3;
- },
- // 班组维护修改
- modifyData7 () {
- if (this.multipleSelection9.length !== 1) {
- this.$message.warning('请勾选您要修改的一条数据!')
- } else {
- this.showFlag7 = !this.showFlag7;
- this.Params7 = this.multipleSelection9[0];
- this.Params = null
- }
- },
- // 班组维护删除
- deleteData7 () {
- if (this.multipleSelection9.length < 1) {
- this.$message.warning('请勾选您要停用的数据!')
- } else {
- this.dialogTableVisible = false;
- for (var i = 0; i < this.multipleSelection9.length; i++) {
- this.multipleSelection9[i].updateMan = userName;
- this.multipleSelection9[i].updateNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcempwrkgrps/abolish', this.multipleSelection9, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('停用操作成功');
- this.refresh(7)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- // 班组维护启用
- recoverData7 () {
- if (this.multipleSelection9.length < 1) {
- this.$message.warning('请勾选您要恢复的数据!')
- } else {
- this.dialogTableVisible2 = false;
- for (var i = 0; i < this.multipleSelection9.length; i++) {
- this.multipleSelection9[i].evaMan = userName;
- this.multipleSelection9[i].evaNo = userId
- }
- this.axios.post('pass/baseManagement/v1/limslrcempwrkgrps/recover', this.multipleSelection9, { individualType: 'json' }).then(res => {
- if (res.succeed) {
- this.$message.success('启用成功');
- this.refresh(7)
- } else {
- this.$message.error(res.message)
- }
- }).catch(e => {
- this.$message.error(e.message)
- })
- }
- },
- // 第一个
- pageSizeChange (size) {
- this.page.pageSize = size;
- this.getDataList();
- },
- pageCurrentChange (index) {
- this.page.pageNum = index;
- this.getDataList();
- },
- handleSelectionChange (val) {
- this.multipleSelection3 = val;
- if (val.length > 0) {
- this.empNo = val[val.length - 1].empNo
- this.$refs.dataTable.setCurrentRow(val[val.length - 1])
- this.getAllListByEmpNo(val[val.length - 1])
- }
- },
- getAllListByEmpNo (val) {
- if (this.activeEmpNo === val.empNo) {
- return;
- }
- this.activeRefreshObj = {};
- this.activeEmpNo = val.empNo;
- this.$refs.dataTable.toggleRowSelection(val, true)
- //缓解切换行过快导致请求过多造成的界面卡顿
- if (this.setTimeoutObj != null) {
- clearTimeout(this.setTimeoutObj);
- this.setTimeoutObj = setTimeout(() => {
- this.setTimeoutObj = null;
- this.getTagsData();
- }, 500);
- } else {
- this.getTagsData();
- this.setTimeoutObj = setTimeout(() => {
- this.setTimeoutObj = null;
- }, 600);
- }
- },
- tabsHandleClick (tab, event) {
- if (!this.activeRefreshObj[this.activeName]){
- this.getTagsData();
- }
- },
- getTagsData () {
- this.activeRefreshObj[this.activeName] = true;
- switch (this.activeName) {
- case 'first':
- this.getDataList2(this.activeEmpNo)
- break;
- case 'second':
- this.getDataList3(this.activeEmpNo)
- break;
- case 'third':
- this.getDataList4(this.activeEmpNo)
- break;
- case 'fourth':
- this.getDataList5(this.activeEmpNo)
- break;
- case 'fifth':
- this.getDataList6(this.activeEmpNo)
- break;
- case 'sixth':
- this.getDataList7(this.activeEmpNo)
- break;
- }
- },
- getRowCheck (val) {
- this.$refs.dataTable2.toggleRowSelection(val, true)
- },
- getRowCheck2 (val) {
- this.$refs.dataTable3.toggleRowSelection(val, true)
- },
- getRowCheck3 (val) {
- this.$refs.dataTable4.toggleRowSelection(val, true)
- },
- getRowCheck4 (val) {
- this.$refs.dataTable5.toggleRowSelection(val, true)
- },
- getRowCheck5 (val) {
- this.$refs.dataTable6.toggleRowSelection(val, true)
- },
- getRowCheck6 (val) {
- this.$refs.dataTable7.toggleRowSelection(val, true)
- },
- // 第二个
- pageSizeChange2 (size) {
- this.page2.pageSize = size;
- this.getDataList2();
- },
- pageCurrentChange2 (index) {
- this.page2.pageNum = index;
- this.getDataList2();
- },
- handleSelectionChange2 (val) {
- this.multipleSelection4 = val;
- },
- // 三个
- pageSizeChange3 (size) {
- this.page3.pageSize = size;
- this.getDataList3();
- },
- pageCurrentChange3 (index) {
- this.page3.pageNum = index;
- this.getDataList3();
- },
- handleSelectionChange3 (val) {
- this.multipleSelection5 = val;
- },
- // 四个
- pageSizeChange4 (size) {
- this.page4.pageSize = size;
- this.getDataList4();
- },
- pageCurrentChange4 (index) {
- this.page4.pageNum = index;
- this.getDataList4();
- },
- handleSelectionChange4 (val) {
- this.multipleSelection6 = val;
- },
- // 五个
- pageSizeChange5 (size) {
- this.page5.pageSize = size;
- this.getDataList5();
- },
- pageCurrentChange5 (index) {
- this.page5.pageNum = index;
- this.getDataList5();
- },
- handleSelectionChange5 (val) {
- this.multipleSelection7 = val;
- },
- // 六个
- pageSizeChange6 (size) {
- this.page6.pageSize = size;
- this.getDataList6();
- },
- pageCurrentChange6 (index) {
- this.page6.pageNum = index;
- this.getDataList6();
- },
- handleSelectionChange6 (val) {
- this.multipleSelection8 = val;
- },
- // 七个
- pageSizeChange7 (size) {
- this.page7.pageSize = size;
- this.getDataList7();
- },
- pageCurrentChange7 (index) {
- this.page7.pageNum = index;
- this.getDataList7();
- },
- handleSelectionChange7 (val) {
- this.multipleSelection9 = val;
- },
- addScreen () {
- this.$nextTick(() => {
- let ss = document.createElement('div');
- ss.innerHTML = '筛选';
- ss.style = 'text-align: center;'
- this.$refs.dataTable.$el.getElementsByClassName('el-table__fixed')[0].getElementsByTagName('td')[0].appendChild(ss);
- });
- },
- addScreen2 () {
- this.$nextTick(() => {
- let ss = document.createElement('div');
- ss.innerHTML = '筛选';
- ss.style = 'text-align: center;'
- this.$refs.dataTable2.$el.getElementsByClassName('el-table__fixed')[0].getElementsByTagName('td')[0].appendChild(ss);
- });
- },
- addScreen3 () {
- this.$nextTick(() => {
- let ss = document.createElement('div');
- ss.innerHTML = '筛选';
- ss.style = 'text-align: center;'
- this.$refs.dataTable3.$el.getElementsByClassName('el-table__fixed')[0].getElementsByTagName('td')[0].appendChild(ss);
- });
- },
- addScreen4 () {
- this.$nextTick(() => {
- let ss = document.createElement('div');
- ss.innerHTML = '筛选';
- ss.style = 'text-align: center;'
- this.$refs.dataTable4.$el.getElementsByClassName('el-table__fixed')[0].getElementsByTagName('td')[0].appendChild(ss);
- });
- },
- addScreen5 () {
- this.$nextTick(() => {
- let ss = document.createElement('div');
- ss.innerHTML = '筛选';
- ss.style = 'text-align: center;'
- this.$refs.dataTable5.$el.getElementsByClassName('el-table__fixed')[0].getElementsByTagName('td')[0].appendChild(ss);
- });
- },
- addScreen6 () {
- this.$nextTick(() => {
- let ss = document.createElement('div');
- ss.innerHTML = '筛选';
- ss.style = 'text-align: center;'
- this.$refs.dataTable6.$el.getElementsByClassName('el-table__fixed')[0].getElementsByTagName('td')[0].appendChild(ss);
- });
- },
- addScreen7 () {
- this.$nextTick(() => {
- let ss = document.createElement('div');
- ss.innerHTML = '筛选';
- ss.style = 'text-align: center;'
- this.$refs.dataTable7.$el.getElementsByClassName('el-table__fixed')[0].getElementsByTagName('td')[0].appendChild(ss);
- });
- },
- getDataList () {
- this.dataLoading = true;
- this.axios.get('pass/baseManagement/v1/limslrcemps/like/' + '?pageNum=' + this.page.pageNum + '&pageSize=' + this.page.pageSize + '&empNo=' + this.search.empNo + '&empName=' + this.search.empName).then(res => {
- this.dataLoading = false;
- this.table.list = res.data.list;
- this.table.list.forEach(item => {
- try {
- item.birthday = formatDate(item.birthday, "yyyy-MM-dd")
- item.graduationTime = formatDate(item.graduationTime, "yyyy-MM-dd")
- item.entryDate = formatDate(item.entryDate, "yyyy-MM-dd")
- item.passedDate = formatDate(item.passedDate, "yyyy-MM-dd")
- item.leaveDate = formatDate(item.leaveDate, "yyyy-MM-dd")
- item.gender = item.sex == 0 ? '女' : item.sex == 1 ? '男' : ''
- item.photoDir = JSON.parse(item.photoDir)
- item.photoDir1 = item.photoDir.oldFileName ? item.photoDir.oldFileName : ''
- } catch (e) {
- // console.log(e);
- }
- })
- this.page.totalPage = res.data.total;
- }).catch(e => {
- this.dataLoading = false;
- });
- },
- getDataList2 (empNo) {
- this.dataLoading2 = true;
- if (empNo === null || empNo === '') {
- this.table.list2 = [];
- this.dataLoading2 = false;
- return 0
- } else {
- this.axios.get('pass/baseManagement/v1/limslrcempconts/' + '?pageNum=' + this.page2.pageNum + '&pageSize=' + this.page2.pageSize + '&empNo=' + empNo)
- .then(res => {
- this.dataLoading2 = false;
- this.table.list2 = res.data.list;
- this.table.list2.forEach(item => {
- try {
- item.trialEndDate = formatDate(item.trialEndDate, "yyyy-MM-dd")
- item.signDate = formatDate(item.signDate, "yyyy-MM-dd")
- item.strDate = formatDate(item.strDate, "yyyy-MM-dd")
- item.endDate = formatDate(item.endDate, "yyyy-MM-dd")
- item.attachment01 = JSON.parse(item.attachment01)
- item.attachment02 = JSON.parse(item.attachment02)
- item.attachment03 = JSON.parse(item.attachment03)
- item.attachment011 = item.attachment01.oldFileName ? item.attachment01.oldFileName : ''
- item.attachment021 = item.attachment02.oldFileName ? item.attachment02.oldFileName : ''
- item.attachment031 = item.attachment03.oldFileName ? item.attachment03.oldFileName : ''
- } catch (e) {
- // console.log(e);
- }
- })
- this.page2.totalPage = res.data.total;
- }).catch(e => {
- this.dataLoading2 = false;
- });
- }
- },
- getDataList3 (empNo) {
- this.dataLoading3 = true;
- if (empNo === null || empNo === '') {
- this.table.list3 = [];
- this.dataLoading3 = false;
- return 0
- } else {
- this.axios.get('pass/baseManagement/v1/limslrcempcerts/' + '?pageNum=' + this.page3.pageNum + '&pageSize=' + this.page3.pageSize + '&empNo=' + empNo)
- .then(res => {
- this.dataLoading3 = false;
- this.table.list3 = res.data.list;
- this.table.list3.forEach(item => {
- try {
- item.issueDate = formatDate(item.issueDate, "yyyy-MM-dd")
- item.strDate = formatDate(item.strDate, "yyyy-MM-dd")
- item.endDate = formatDate(item.endDate, "yyyy-MM-dd")
- } catch (e) {
- // console.log(e);
- }
- })
- this.page3.totalPage = res.data.total;
- }).catch(e => {
- this.dataLoading3 = false;
- });
- }
- },
- getDataList4 (empNo) {
- this.dataLoading4 = true;
- if (empNo === null || empNo === '') {
- this.table.list4 = [];
- this.dataLoading4 = false;
- return 0
- } else {
- this.axios.get('pass/baseManagement/v1/limslrcempedus/' + '?pageNum=' + this.page4.pageNum + '&pageSize=' + this.page4.pageSize + '&empNo=' + empNo)
- .then(res => {
- this.dataLoading4 = false;
- this.table.list4 = res.data.list;
- this.table.list4.forEach(item => {
- try {
- item.strDate = formatDate(item.strDate, "yyyy-MM-dd")
- item.endDate = formatDate(item.endDate, "yyyy-MM-dd")
- item.attachment01 = JSON.parse(item.attachment01)
- item.attachment02 = JSON.parse(item.attachment02)
- item.attachment03 = JSON.parse(item.attachment03)
- item.attachment011 = item.attachment01.oldFileName ? item.attachment01.oldFileName : ''
- item.attachment021 = item.attachment02.oldFileName ? item.attachment02.oldFileName : ''
- item.attachment031 = item.attachment03.oldFileName ? item.attachment03.oldFileName : ''
- } catch (e) {
- // console.log(e);
- }
- })
- this.page4.totalPage = res.data.total;
- }).catch(e => {
- this.dataLoading4 = false;
- });
- }
- },
- getDataList5 (empNo) {
- this.dataLoading5 = true;
- if (empNo === null || empNo === '') {
- this.table.list5 = [];
- this.dataLoading5 = false;
- return 0
- } else {
- this.axios.get('pass/baseManagement/v1/limslrcemptrainings/' + '?pageNum=' + this.page5.pageNum + '&pageSize=' + this.page5.pageSize + '&empNo=' + empNo)
- .then(res => {
- this.dataLoading5 = false;
- this.table.list5 = res.data.list;
- this.table.list5.forEach(item => {
- try {
- item.strDate = formatDate(item.strDate, "yyyy-MM-dd")
- item.endDate = formatDate(item.endDate, "yyyy-MM-dd")
- item.attachment01 = JSON.parse(item.attachment01)
- item.attachment02 = JSON.parse(item.attachment02)
- item.attachment03 = JSON.parse(item.attachment03)
- item.attachment011 = item.attachment01.oldFileName ? item.attachment01.oldFileName : ''
- item.attachment021 = item.attachment02.oldFileName ? item.attachment02.oldFileName : ''
- item.attachment031 = item.attachment03.oldFileName ? item.attachment03.oldFileName : ''
- } catch (e) {
- // console.log(e);
- }
- })
- this.page5.totalPage = res.data.total;
- }).catch(e => {
- this.dataLoading5 = false;
- });
- }
- },
- getDataList6 (empNo) {
- this.dataLoading6 = true;
- if (empNo === null || empNo === '') {
- this.table.list6 = [];
- this.dataLoading6 = false;
- return 0
- } else {
- this.axios.get('pass/baseManagement/v1/limslrcempwrks/' + '?pageNum=' + this.page6.pageNum + '&pageSize=' + this.page6.pageSize + '&empNo=' + empNo)
- .then(res => {
- this.dataLoading6 = false;
- this.table.list6 = res.data.list;
- this.table.list6.forEach(item => {
- try {
- item.strDate = formatDate(item.strDate, "yyyy-MM-dd")
- item.endDate = formatDate(item.endDate, "yyyy-MM-dd")
- item.attachment01 = JSON.parse(item.attachment01)
- item.attachment02 = JSON.parse(item.attachment02)
- item.attachment03 = JSON.parse(item.attachment03)
- item.attachment011 = item.attachment01.oldFileName ? item.attachment01.oldFileName : ''
- item.attachment021 = item.attachment02.oldFileName ? item.attachment02.oldFileName : ''
- item.attachment031 = item.attachment03.oldFileName ? item.attachment03.oldFileName : ''
- } catch (e) {
- // console.log(e);
- }
- })
- this.page6.totalPage = res.data.total;
- }).catch(e => {
- this.dataLoading6 = false;
- });
- }
- },
- getDataList7 (empNo) {
- this.dataLoading7 = true;
- if (empNo === null || empNo === '') {
- this.table.list7 = [];
- this.dataLoading7 = false;
- return 0
- } else {
- this.axios.get('pass/baseManagement/v1/limslrcempwrkgrps/' + '?pageNum=' + this.page7.pageNum + '&pageSize=' + this.page7.pageSize + '&empNo=' + empNo)
- .then(res => {
- this.dataLoading7 = false;
- this.table.list7 = res.data.list;
- this.page7.totalPage = res.data.total;
- }).catch(e => {
- this.dataLoading7 = false;
- });
- }
- },
- // download(data, strFileName, strMimeType, fileN = '文件') {
- // var self = window, // this script is only for browsers anyway...
- // defaultMime = 'application/octet-stream', // this default mime also triggers iframe downloads
- // mimeType = strMimeType || defaultMime,
- // payload = data,
- // // url = !strFileName && !strMimeType && payload,
- // url = payload,
- // anchor = document.createElement('a'),
- // toString = function (a) { return String(a); },
- // myblob = (self.Blob || self.MozBlob || self.WebKitBlob || toString),
- // fileName = strFileName || 'download',
- // blob,
- // reader;
- // myblob = myblob.call ? myblob.bind(self) : Blob;
- // if (String(this) === 'true') { // reverse arguments, allowing download.bind(true, "text/xml", "export.xml") to act as a callback
- // payload = [payload, mimeType];
- // mimeType = payload[0];
- // payload = payload[1];
- // }
- // if (url && url.length < 2048) { // if no filename and no mime, assume a url was passed as the only argument
- // fileName = fileN;
- // anchor.href = url; // assign href prop to temp anchor
- // console.log('enterree111111111', anchor.href);
- // if (url) { // if the browser determines that it's a potentially valid url path:
- // console.log('enterree2222222222', anchor.href);
- // var ajax = new XMLHttpRequest();
- // ajax.open('GET', url, true);
- // ajax.responseType = 'blob';
- // ajax.onload = function (e) {
- // download(e.target.response, fileName, defaultMime);
- // };
- // setTimeout(function () { ajax.send(); }, 0); // allows setting custom ajax headers using the return:
- // return ajax;
- // } // end if valid url?
- // } // end if url?
- // // go ahead and download dataURLs right away
- // if (/^data:[\w+-]+\/[\w+-]+[,;]/.test(payload)) {
- // if (payload.length > (1024 * 1024 * 1.999) && myblob !== toString) {
- // payload = dataUrlToBlob(payload);
- // mimeType = payload.type || defaultMime;
- // } else {
- // return navigator.msSaveBlob ? navigator.msSaveBlob(dataUrlToBlob(payload), fileName) : saver(payload); // everyone else can save dataURLs un-processed
- // }
- // }// end if dataURL passed?
- // // eslint-disable-next-line new-cap
- // blob = payload instanceof myblob ? payload : new myblob([payload], {type: mimeType});
- // function dataUrlToBlob (strUrl) {
- // var parts = strUrl.split(/[:;,]/),
- // type = parts[1],
- // decoder = parts[2] === 'base64' ? atob : decodeURIComponent,
- // binData = decoder(parts.pop()),
- // mx = binData.length,
- // i = 0,
- // uiArr = new Uint8Array(mx);
- // for (i; i < mx; ++i) uiArr[i] = binData.charCodeAt(i);
- // // eslint-disable-next-line new-cap
- // return new myblob([uiArr], {type: type});
- // }
- // },
- downloadFile (index, objId, objFileName, oldFileName, objType) {
- let obj = {
- objId: objId,
- objName: objType,
- fileName: objFileName
- }
- let fileRow = {}
- this.axios.post('pass/baseManagement/v1/limslrcfilesaves/queryListLrcFileSave', obj, { individualType: 'json' }).then(res => {
- if (res.code == 0 || res.code == 200) {
- fileRow = res.data[0]
- this.axios.get('pass/baseManagement/v1/file/download/' + fileRow.fileName, { responseType: 'blob' }, { headers: { 'content-type': 'application/x-www-form-urlencoded' } }).then(res => {
- let blob = new Blob([res]);
- let fileName = oldFileName;
- let elink = document.createElement('a');
- elink.download = fileName;
- elink.style.display = 'none';
- elink.target = "_blank";
- elink.href = URL.createObjectURL(blob);
- document.body.appendChild(elink);
- elink.click();
- URL.revokeObjectURL(elink.href); // 释放URL对象
- document.body.removeChild(elink);
- })
- // this.download(this.action_prod + fileRow.fileUrl, 'download.txt', 'text/plain', fileRow.oldFileName);
- } else {
- this.$message.error(res.message)
- }
- }).catch(err => {
- this.$message.error(err.message)
- })
- },
- // downloadFile (index, row) {
- // this.downloadUrl = row
- // this.axios.get('pass/baseManagement/v1/download/' + '?path=' + this.downloadUrl, {responseType: 'blob'},{headers: {'content-type': 'application/x-www-form-urlencoded'}})
- // .then(res => {
- // console.log(res)
- // let blob = new Blob([res]);
- // let fileName = this.downloadUrl;
- // let elink = document.createElement('a');
- // elink.download = fileName;
- // elink.style.display = 'none';
- // elink.target = "_blank";
- // elink.href = URL.createObjectURL(blob);
- // document.body.appendChild(elink);
- // elink.click();
- // URL.revokeObjectURL(elink.href); // 释放URL对象
- // document.body.removeChild(elink);
- // })
- // },
- // 图片预览:
- imgPreView (index, objId, objFileName, objType) {
- this.imgPreViews = ''
- let obj = {
- objId: objId,
- objName: objType,
- fileName: objFileName
- }
- let fileRow = {}
- this.axios.post('pass/baseManagement/v1/limslrcfilesaves/queryListLrcFileSave', obj, { individualType: 'json' }).then(res => {
- if (res.code == 0 || res.code == 200) {
- fileRow = res.data[res.data.length - 1]
- this.imgPreViews = this.action_prod + '/icore.icp.web/pass/baseManagement/v1/file/download/' + fileRow.fileName
- this.imgVisible = true
- // var form = $('<form>'); // 定义一个form表单
- // form.attr('id', 'downloadform');
- // form.attr('style', 'display:none');
- // form.attr('target', '_blank');
- // form.attr('method', 'get');
- // form.attr('action', this.action_prod +'/icore.icp.web/pass/baseManagement/v1/file/download/' + fileRow.fileName);
- // var input1 = $('<input>');
- // input1.attr('type', 'hidden');
- // form.append(input1);
- // $('body').append(form); // 将表单放置在web中
- // form.submit(); // 表单提交
- // $('#downloadform').remove();
- } else {
- this.$message.error(res.message)
- }
- }).catch(err => {
- this.$message.error(err.message)
- })
- },
- tableRowClassName ({
- row, column, rowIndex, columnIndex
- }) {
- if (columnIndex === 8) {
- if (row.validFlag === '0') {
- return 'error-row';
- }
- return '';
- }
- },
- tableRowClassName2 ({
- row, column, rowIndex, columnIndex
- }) {
- if (columnIndex === 9) {
- if (row.validFlag === '0') {
- return 'error-row';
- }
- return '';
- }
- },
- tableRowClassName3 ({
- row, column, rowIndex, columnIndex
- }) {
- if (columnIndex === 9) {
- if (row.validFlag === '0') {
- return 'error-row';
- }
- return '';
- }
- },
- tableRowClassName4 ({
- row, column, rowIndex, columnIndex
- }) {
- if (columnIndex === 13) {
- if (row.validFlag === '0') {
- return 'error-row';
- }
- return '';
- }
- },
- tableRowClassName5 ({
- row, column, rowIndex, columnIndex
- }) {
- if (columnIndex === 22) {
- if (row.validFlag === '0') {
- return 'error-row';
- }
- return '';
- }
- },
- tableRowClassName6 ({
- row, column, rowIndex, columnIndex
- }) {
- if (columnIndex === 14) {
- if (row.validFlag === '0') {
- return 'error-row';
- }
- return '';
- }
- },
- tableRowClassName7 ({
- row, column, rowIndex, columnIndex
- }) {
- if (columnIndex === 9) {
- if (row.validFlag === '0') {
- return 'error-row';
- }
- return '';
- }
- },
- // 表格上横线
- tableHeaderCellStyle () {
- return 'color: rgb(255,255,255);border-bottom: 1px solid #DCDFE7;'
- }
- }
- }
- </script>
- <style scoped>
- </style>
|