| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236 |
- <template>
- <div style="height:100%;width:100%" id="wenTiContainer_sk">
- <el-container>
- <el-aside
- width="318px"
- style="border-right:2px solid #d5d5ff;float:left;text-align: center;"
- :style="{'max-height':testHeight+'px','height':testHeight+'px'}">
- <span style="display: flex;justify-content: center;align-items: center;border-bottom: 1px solid #ebeef5;">
- <el-button size="mini" :class="tabType==1 ? 'skactive' : 'sknormal'" @click="tabChange('1')">当前数据</el-button>
- <!-- <el-button size="mini" :class="tabType==2 ? 'skactive' : 'sknormal'" @click="tabChange('2')">历史数据</el-button>-->
- <el-button size="mini" :class="tabType==0 ? 'skactive' : 'sknormal'" @click="tabChange('0')">全部数据</el-button>
- </span>
- <div class="tree" style="
- height: calc(100% - 50px);
- width: 100%;
- overflow: auto;
- display: inline-flex;">
- <el-tree
- :highlight-current="true"
- style="height:100%;"
- :data="treeData"
- node-key="id"
- show-checkbox
- @check-change="handleCheckChange"
- ref="jigou_tree"
- >
- <div class="custom-tree-node" slot-scope="{ node, data }">
- <span style="float:left;">
- {{ data.pnm}}
- </span>
- <div style="float:right;display: flex;justify-content: flex-end;align-items: center;width:50%;">
- <span style="color:blue;width:80px;"></span>
- </div>
- </div>
- </el-tree>
- </div>
- </el-aside>
- <!-- 主要窗口 -->
- <el-main style="margin:0px;padding:0px;overflow-y:hidden;" class="shuiku" v-loading="exportLoading">
- <!-- <el-card> -->
- <div class="pages" :style="{'max-height':testHeight+'px'}">
- <div style="padding: 12px 0 0 0">
- <el-row type="flex" justify="space-between">
- <el-col :span="24">
- <el-form :inline="true" size="mini" class="demo-form-inline"
- style="padding-left: 10px;">
- <el-form-item label="行政区划:">
- <el-input
- resize="none"
- type="input"
- :rows="3"
- placeholder="请输入行政区划名称"
- v-model.trim="findParams.adFullName"
- clearable
- ></el-input>
- </el-form-item>
- <el-form-item label="名称:">
- <el-input
- resize="none"
- type="input"
- :rows="3"
- placeholder="请输入名称"
- v-model.trim="findParams.rsName"
- clearable
- ></el-input>
- </el-form-item>
- <el-form-item label="对象类型">
- <el-select v-model="findParams.type" style="width: 140px;" clearable placeholder="请选择">
- <el-option
- v-for="item in problemClasslist"
- :key="item.value"
- :label="item.label"
- :value="item.value">
- </el-option>
- </el-select>
- </el-form-item>
- </el-form>
- </el-col>
- </el-row>
- <el-row type="flex" justify="space-between" v-show="showExpandSearchPanel">
- <el-col :span="24">
- <el-form :inline="true" size="mini" class="demo-form-inline"
- style="padding-left: 10px;">
- <el-form-item label="问题类别:">
- <el-select v-model="findParams.inspPblmName" clearable placeholder="请选择">
- <el-option
- v-for="item in problemList"
- :key="item.guid"
- :label="item.inspPblmsName"
- :value="item.inspPblmsName"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="是否典型:">
- <el-select v-model="findParams.ifCasePblm" clearable placeholder="请选择">
- <el-option
- v-for="item in supervision"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="问题筛选:">
- <el-select v-model="pblscr" clearable placeholder="请选择">
- <el-option
- v-for="item in pblscrList"
- :key="item.value"
- :label="item.lable"
- :value="item.value"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="上报人员:">
- <el-input
- resize="none"
- type="input"
- :rows="3"
- placeholder="请输入名称"
- v-model.trim="findParams.persName"
- ></el-input>
- </el-form-item>
- <!-- <el-form-item label="严重程度:">-->
- <!-- <el-select v-model="findParams.inspPblmCate" clearable placeholder="请选择">-->
- <!-- <el-option-->
- <!-- v-for="item in supervisionState"-->
- <!-- :key="item.value"-->
- <!-- :label="item.label"-->
- <!-- :value="item.value"-->
- <!-- ></el-option>-->
- <!-- </el-select>-->
- <!-- </el-form-item>-->
- <el-form-item label="发现时间:">
- <el-date-picker
- style="width: 200px;"
- v-model="value6"
- type="daterange"
- value-format="yyyy-MM-dd"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- ></el-date-picker>
- </el-form-item>
- <el-form-item label="所在组:">
- <el-input
- resize="none"
- type="input"
- :rows="3"
- placeholder="请输入所在组名称"
- v-model.trim="pblscrGroup"
- clearable
- ></el-input>
- </el-form-item>
- <el-form-item label="是否包含多媒体文件:">
- <el-select v-model="findParams.hasVedio" clearable placeholder="请选择">
- <el-option
- v-for="item in hasVedio1"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="问题督查状态:">
- <el-select v-model="findParams.state" clearable placeholder="请选择">
- <el-option
- v-for="item in stateList"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-form>
- </el-col>
- </el-row>
- <el-row type="flex" justify="space-between" style="border-top:1px solid #0014ff2e;">
- <el-col style='padding-bottom:10px;' :span="12">
- <el-button style="float:right;margin-right:10px;border: 1px solid #0014ff2e;
- border-radius: 0px 0px 5px 5px;border-top: 0px;" type="info" plain
- size="mini"
- @click="showExpandSearchPanel = !showExpandSearchPanel"
- >
- {{showExpandSearchPanel?'收起':'更多条件'}}
- <i class="el-icon-arrow-down el-icon--right" v-show="!showExpandSearchPanel"/>
- <i class="el-icon-arrow-up el-icon--right" v-show="showExpandSearchPanel"/>
- </el-button>
- </el-col>
- <el-col :span="12">
- <el-button
- style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"
- type="success"
- @click="submitBtn"
- >问题提交
- </el-button>
- <el-button
- style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"
- type="primary"
- icon="el-icon-search"
- @click="search"
- > 查 询
- </el-button>
- <!-- <el-button-->
- <!-- style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"-->
- <!-- type="success"-->
- <!-- icon="el-icon-download"-->
- <!-- @click="exportWord"-->
- <!-- >导出WORD-->
- <!-- </el-button>-->
- <el-button
- style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"
- type="success"
- icon="el-icon-download"
- @click="exportExcel"
- >导出EXCEL
- </el-button>
- <el-button
- style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"
- type="success"
- icon="el-icon-download"
- @click="exportExceltable"
- >导出问题统计表
- </el-button>
- <!-- <el-button-->
- <!-- style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"-->
- <!-- type="success"-->
- <!-- icon="el-icon-download"-->
- <!-- @click="showPlDialog"-->
- <!-- :disabled="uploadDisabled"-->
- <!-- >上传模板-->
- <!-- </el-button>-->
- <!--<el-button-->
- <!--style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"-->
- <!--type="success"-->
- <!--icon="el-icon-download"-->
- <!--@click="downloadTemplate"-->
- <!-->导出模板-->
- <!--</el-button>-->
- <shuiKuWentiPl v-if="showShuiKuTianBaoPl"
- :showShuiKuTianBaoPl="showShuiKuTianBaoPl"
- @closePlDialog="closePlDialog"></shuiKuWentiPl>
- </el-col>
- </el-row>
- </div>
- <!-- 查询展示 -->
- <div class="search" style="margin-top:10px;">
- <el-table
- v-loading="loading"
- border
- ref="multipleTable"
- :height="tableHeight"
- :data="searchResult"
- tooltip-effect="dark"
- style="width: 100%"
- @row-click="openDetails"
- @selection-change="handleSelectionChange"
- >
- <el-table-column
- type="selection"
- min-width="55">
- </el-table-column>
- <!-- <el-table-column align="center" type="index" label="序号" min-width="60">-->
- <!-- <template slot-scope="scope">{{ (currentPage - 1) * pageSize + (scope.$index + 1) }}-->
- <!-- </template>-->
- <!-- </el-table-column>-->
- <!-- <el-table-column header-align="center" align="center" min-width="140" prop="inspPblmName" label="小水库问题类别"></el-table-column> -->
- <el-table-column
- header-align="center"
- align="center"
- min-width="80"
- prop="province"
- label="省" v-if="isXj"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="80"
- prop="city"
- :label="ownAdName"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="80"
- prop="country"
- label="县" v-if="isXj"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="100"
- prop="nm"
- label="水库名称"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="80"
- prop="inspPblmName"
- label="问题类别"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="80"
- prop="inspPblmDesc"
- label="问题描述"
- show-overflow-tooltip
- ></el-table-column>
- <!-- <el-table-column-->
- <!-- header-align="center"-->
- <!-- align="center"-->
- <!-- min-width="80"-->
- <!-- prop="score"-->
- <!-- label="扣分值">-->
- <!-- </el-table-column>-->
- <el-table-column
- header-align="center"
- align="center"
- min-width="60"
- prop="ifCasePblm"
- label="典型">
- <template slot-scope="scope">
- <p v-if="scope.row.ifCasePblm == 1">是</p>
- <p v-if="scope.row.ifCasePblm == 0">否</p>
- </template>
- </el-table-column>
- <!-- <el-table-column-->
- <!-- header-align="center"-->
- <!-- align="center"-->
- <!-- min-width="100"-->
- <!-- prop="inspPblmCate"-->
- <!-- label="严重程度">-->
- <!-- <template slot-scope="scope">-->
- <!-- <p v-if="scope.row.inspPblmCate == 0"><span class="inspPblmCate"-->
- <!-- style="background: #27C19F;">一般</span>-->
- <!-- </p>-->
- <!-- <p v-if="scope.row.inspPblmCate == 1"><span class="inspPblmCate"-->
- <!-- style="background: #E6A23C;">较重</span>-->
- <!-- </p>-->
- <!-- <p v-if="scope.row.inspPblmCate == 2"><span class="inspPblmCate"-->
- <!-- style="background: #F56C6C;">严重</span>-->
- <!-- </p>-->
- <!-- <p v-if="scope.row.inspPblmCate == 3"><span class="inspPblmCate"-->
- <!-- style="background: #795548;">特别严重</span>-->
- <!-- </p>-->
- <!-- </template>-->
- <!-- </el-table-column>-->
- <el-table-column
- header-align="center"
- align="center"
- min-width="100"
- prop="state"
- label="问题督查状态">
- <template slot-scope="scope">
- <p v-if="Number(scope.row.state) === 0"><span class="inspPblmCate"
- style="background: #F56C6C;">未提交</span>
- </p>
- <p v-if="scope.row.state == 2"><span class="inspPblmCate"
- style="background: #409EFF;">已提交</span>
- </p>
- <p v-if="scope.row.state == 3"><span class="inspPblmCate"
- style="background: #67C23A;">已发布</span>
- </p>
- </template>
- </el-table-column>
- <!-- <el-table-column-->
- <!-- header-align="center"-->
- <!-- align="center"-->
- <!-- min-width="60"-->
- <!-- prop="oldAttach"-->
- <!-- label="附件"-->
- <!-- show-overflow-tooltip>-->
- <!-- <template slot-scope="scope">-->
- <!-- <span>{{'附件' + scope.row.oldAttach}}</span>-->
- <!-- </template>-->
- <!-- </el-table-column>-->
- <!-- <el-table-column-->
- <!-- header-align="center"-->
- <!-- align="center"-->
- <!-- min-width="80"-->
- <!-- prop="oldSn"-->
- <!-- label="问题序号"-->
- <!-- show-overflow-tooltip-->
- <!-- ></el-table-column>-->
- <el-table-column
- header-align="center"
- align="center"
- min-width="80"
- prop="persName"
- label="上报人"
- ></el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="80"
- show-overflow-tooltip
- prop="orgNm"
- label="所在组"
- ></el-table-column>
- <el-table-column
- prop="collTime"
- label="上报时间"
- sortable
- align="center"
- min-width="100"
- show-overflow-tooltip>
- <template slot-scope="scope">
- {{scope.row.collTime ? formatDateTime(scope.row.collTime) : ''}}
- </template>
- </el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="80"
- prop="hasVedio"
- label="是否包含多媒体文件"
- >
- <template slot-scope="scope">
- <p v-if="scope.row.hasVedio == 1">是</p>
- <p v-if="scope.row.hasVedio == 0">否</p>
- </template>
- </el-table-column>
- <el-table-column
- align="center"
- prop
- min-width="100"
- label="操作"
- show-overflow-tooltip
- fixed="right"
- >
- <template slot-scope="scope">
- <el-button icon="el-icon-view" title="查看详情" type="text"
- @click.native.stop="showDetails(scope.row.pblmId)"></el-button>
- <el-button icon="el-icon-edit" title="修改问题" type="text"
- @click.native.stop="changeSup(scope.row.pblmId)"
- v-if="isMine(scope.row) && ownPriv('manage') && scope.row.state != '2'"></el-button>
- <el-button
- icon="el-icon-delete"
- type="text"
- title="删除问题"
- v-if="isMine(scope.row) && ownPriv('manage') && scope.row.state != '2'"
- @click.native.stop="removeSuperviseOne(scope.row.pblmId)"
- ></el-button>
- <!-- <el-button icon="el-icon-view" title="查看详情"@click="showDetails(scope.row.pblmId)" style="background:#409EFF;border-radius:15px;color:rgba(255,255,255,1)"></el-button>
- <el-button style=" margin:2px 20px;padding: 5px 15px;background-color:#909399;border-radius:15px;color:rgba(255,255,255,1)" type="info" icon="el-icon-edit" @click="changeSup(scope.row.pblmId)"></el-button>
- <el-button style=" margin:2px 20px;padding: 5px 15px;background-color:#F56C6C;border-radius:15px;color:rgba(255,255,255,1)" type="danger" icon="el-icon-delete" title="删除问题" @click="removeSuperviseOne(scope.row.pblmId)"></el-button>-->
- </template>
- </el-table-column>
- </el-table>
- <!-- 分页 -->
- <div class="paginationWarpper">
- <el-pagination
- class="paginationCenter"
- background
- @size-change="handleSizeChange"
- @current-change="search"
- :current-page.sync="currentPage"
- :page-sizes="[10, 20, 50, 100]"
- :page-size="pageSize"
- layout="total, sizes, prev, pager, next, jumper"
- :total="total"
- ></el-pagination>
- </div>
- </div>
- <!-- 详情弹框 -->
- <el-dialog
- class="outerDialog custom_dialog"
- title="问题详情"
- width="60%"
- v-if="supervisionDetailsVisible"
- :visible.sync="supervisionDetailsVisible"
- >
- <supervision-details ref="xianqing" :problemId="currentProblemId"></supervision-details>
- <span slot="footer">
- <el-button style="margin-top:5px;" @click="supervisionDetailsVisible = false">返回</el-button>
- </span>
- </el-dialog>
- <!-- 删除的弹窗 -->
- <el-dialog class="deleteDialog" title="问题删除描述" :visible.sync="problemDeleteVisible">
- <Problem-delete
- ref="deleteMiaoShu"
- :deleteProblemId="deleteId"
- @deleteSuccess="deleteSuccess"
- ></Problem-delete>
- <span slot="footer">
- <el-button @click="problemDeleteVisible = false">返回</el-button>
- </span>
- </el-dialog>
- <!-- 修改弹框 -->
- <el-dialog
- width="60%"
- class="outerDialog custom_dialog"
- title="修改督查问题"
- :close-on-click-modal="false"
- :visible.sync="changeSupervisionVisible"
- >
- <div class="scroll300">
- <div
- style="width:49%;overflow-y:auto;max-height:52vh;float:left;border:1px solid #d5d5ff;margin-right:5px;">
- <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">基本信息</p>
- <el-form
- ref="changeSupFrom"
- :rules="rules1"
- :model="changeSupervision"
- label-width="120px"
- >
- <el-form-item label="水库名称" prop="nm">
- <el-input v-model="changeSupervision.nm" clearable readonly></el-input>
- </el-form-item>
- <el-form-item label="问题类别" prop="inspPblmsName">
- <el-select v-model="t1" value-key="inspPblmsName" placeholder="请选择"
- @change="problemListChange">
- <el-option v-for="(item,index) in problemList" :key="index"
- :label="item.inspPblmsName" :value="item">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="检查项目" prop="checkPoint" style="text-align:left">
- <el-select v-model="t2" placeholder="请选择" value-key="checkPointName"
- @change="currentCheckPointListChange">
- <el-option v-for="(item,index) in currentCheckPointList" :key="index"
- :label="item.checkPointName" :value="item">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="问题描述" prop="pblmDesc" style="text-align:left">
- <el-select v-model="t3" placeholder="请选择" value-key="pblmDesc"
- @change="currentProblemDescListChange" style="max-width: 500px">
- <el-option v-for="(item,index) in currentProblemDescList" :key="index"
- :label="item.pblmDesc" :value="item" :title="item.pblmDesc"
- style="max-width: 500px">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="详细描述" prop="inspPblmDesc">
- <el-input
- type="textarea"
- :rows="2"
- v-model="changeSupervision.inspPblmDesc"
- clearable
- ></el-input>
- </el-form-item>
- <el-form-item label="是否为典型问题:">
- <el-select v-model="changeSupervision.ifCasePblm" clearable placeholder="请选择">
- <el-option
- v-for="item in supervision"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- ></el-option>
- </el-select>
- </el-form-item>
- <!-- <el-form-item label="严重程度:">-->
- <!-- <el-select v-model="changeSupervision.inspPblmCate" disabled clearable-->
- <!-- placeholder="请选择">-->
- <!-- <el-option-->
- <!-- v-for="item in supervisionState"-->
- <!-- :key="item.value"-->
- <!-- :label="item.label"-->
- <!-- :value="item.value"-->
- <!-- ></el-option>-->
- <!-- </el-select>-->
- <!-- </el-form-item>-->
- <el-form-item label="扣分值:">
- {{changeSupervision.score}}
- </el-form-item>
- <el-form-item label="备注" prop="note">
- <el-input
- type="textarea"
- :rows="2"
- v-model.trim="changeSupervision.note"
- clearable
- ></el-input>
- <!-- <el-input resize="none" type="input" :rows="3" placeholder="请输入" v-model.trim="changeSupervision.pblmPersName"></el-input> -->
- </el-form-item>
- <el-form-item label="上报人" prop="persName">
- <el-input
- resize="none"
- type="input"
- :rows="3"
- readonly
- placeholder="请输入"
- v-model.trim="changeSupervision.persName"
- ></el-input>
- </el-form-item>
- <el-form-item label="上报时间" prop="collTime">
- <el-date-picker v-model="changeSupervision.collTime" readonly
- type="date"></el-date-picker>
- </el-form-item>
- </el-form>
- </div>
- <div
- style="width: 49%;float: left;border: 1px solid rgb(213, 213, 255);margin-right: 5px;overflow-y: auto;max-height: 52vh;"
- >
- <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">多媒体信息</p>
- <el-tabs style="margin:0px 5px">
- <el-tab-pane :label="picturetabName">
- <el-row style="text-align:right;">
- <el-button :v-if="!addPicPanel?addPicPanel:addPicPanel"
- size="mini"
- type="text"
- :icon="!addPicPanel?'el-icon-circle-plus-outline':'el-icon-circle-close-outline'"
- @click="addPic"
- >{{!addPicPanel?"添加":"取消"}}
- </el-button>
- </el-row>
- <el-row v-show="addPicPanel">
- <upload ref="uploadFile"
- :url="`/pdcApi/file/insert?bizId=`"
- @uploadOver="removeNewSupervision">
- </upload>
- </el-row>
- <el-row>
- <div
- style="overflow-y:auto;overflow-x:hidden;max-height:30vh;padding:10px;">
- <div class="upload-container">
- <div
- v-for="(item, index) in pictureArray"
- :key="index"
- class="image-preview image-app-preview"
- >
- <div class="image-preview-wrapper">
- <img :src="`${hostUrl}/${item.filePath}`">
- <div class="image-preview-action">
- <i @click="removeFile(item.id)"
- class="el-icon-delete"></i>
- </div>
- </div>
- </div>
- </div>
- </div>
- </el-row>
- </el-tab-pane>
- <el-tab-pane :label="audiotabName">
- <el-table border :data="audioArray" style="width: 100%;margin: 0 auto;">
- <el-table-column header-align="center" align="center" label="音频">
- <template slot-scope="scope">
- <elaudio
- style="margin-left:15%;width:100px;height:30px;"
- :theUrl="`${hostUrl}/${scope.row.filePath}`"
- ></elaudio>
- <!-- <span>{{scope.row.fileTitle}}</span> -->
- </template>
- </el-table-column>
- <el-table-column header-align="center" align="center" label="操作">
- <template slot-scope="scope">
- <el-button
- size="mini"
- @click="removeFile(scope.row.id,scope.$index)"
- type="danger"
- >删除
- </el-button>
- </template>
- </el-table-column>
- </el-table>
- </el-tab-pane>
- <el-tab-pane :label="videotabName">
- <el-table border :data="videoArray" style="width: 100%;margin: 0 auto;">
- <el-table-column header-align="center" align="center" label="视频">
- <template slot-scope="scope">
- <!-- <span>{{scope.row.fileTitle}}</span> -->
- <video-player
- class="vjs-custom-skin"
- ref="videoPlayer"
- :options="scope.row"
- :playsinline="true"
- ></video-player>
- </template>
- </el-table-column>
- <el-table-column header-align="center" align="center" label="操作">
- <template slot-scope="scope">
- <el-button
- size="mini"
- @click="removeFile(scope.row.id,scope.$index)"
- type="danger"
- >删除
- </el-button>
- </template>
- </el-table-column>
- </el-table>
- </el-tab-pane>
- <el-tab-pane :label="filetabName">
- <el-table border :data="fileArray" style="width: 100%;margin: 0 auto;">
- <el-table-column header-align="center" align="center" label="文档">
- <template slot-scope="scope">
- <p>
- <a :href="`${hostUrl}/${scope.row.filePath}`" target="_blank"
- rel="noopener noreferrer">
- {{scope.row.fileName}}
- </a>
- </p>
- </template>
- </el-table-column>
- <el-table-column header-align="center" align="center" label="操作">
- <template slot-scope="scope">
- <el-button
- size="mini"
- @click="removeFile(scope.row.id,scope.$index)"
- type="danger"
- >删除
- </el-button>
- </template>
- </el-table-column>
- </el-table>
- </el-tab-pane>
- </el-tabs>
- </div>
- </div>
- <span slot="footer">
- <el-button
- type="primary"
- @click="changeSupervisionInfo"
- :loading="buttonLoading"
- >保存</el-button>
- <el-button @click="changeSupervisionVisiblefalse">取消</el-button>
- </span>
- </el-dialog>
- </div>
- </el-main>
- </el-container>
- </div>
- </template>
- <script>
- import {
- deleteFileById,
- getSupervisdByID,
- getXSKProblemNew,
- pblmSubmit,
- showDetailsXq,
- submitUpload,
- updatelist
- } from "../../api/duChaAPI.js";
- import {formatDateTime2,formatDateTime2New} from '@util/gw_date.js'
- import {exportModel} from "@util/gw_exportModel";
- import request from "../../utils/gw_ajax_request.js";
- import {hostUrl} from "@util/global_variable.js";
- import elaudio from "../../widgets/elAudioShort.vue";
- import inuptWithDuChaTreeNode from "../../widgets/inuptWithDuChaTreeNode.vue";
- import inputWidthDuChaNodes from "../../widgets/inputWithDuChaNodes.vue";
- import inputWidthDuChaShuiKu from "../../widgets/inputWith_sk.vue";
- import problemDialog from "./problemDialog.vue";
- import shuiKuWentiPl from "./shuiKuWenti_piliang.vue"
- // import { getList, persCheck } from '@/api/persCheck'
- export default {
- props: ["codeId"],
- components: {
- upload: resolve => {
- require(["../../widgets/uploadFile.vue"], resolve);
- },
- //详情页
- supervisionDetails: resolve => {
- require(["./supervisionDetails_shuiku.vue"], resolve);
- },
- // 删除描述页
- ProblemDelete: resolve => {
- require(["./problemDelete.vue"], resolve);
- },
- // addPicDialog: resolve => {
- // require(["./addPicDialog.vue"], resolve);
- // },
- elaudio: elaudio,
- inuptWithDuChaTreeNode: inuptWithDuChaTreeNode,
- inputWidthDuChaNodes: inputWidthDuChaNodes,
- inputWidthDuChaShuiKu: inputWidthDuChaShuiKu,
- problemDialog: problemDialog,
- shuiKuWentiPl: shuiKuWentiPl
- },
- data() {
- var validatePass1 = (rules1, value, callback) => {
- if (this.newSupervision.startTime > this.newSupervision.endTime) {
- callback(new Error("结束时间不能早于开始时间"));
- } else {
- callback();
- }
- };
- var validatePass2 = (rules1, value, callback) => {
- let startTime = this.changeSupervision.startTime.slice(0, 10);
- if (startTime > this.changeSupervision.endTime) {
- callback(new Error("结束时间不能早于开始时间"));
- } else {
- callback();
- }
- };
- var divisionList = (rules1, value, callback) => {
- if (this.newGroup.divisionList.length) {
- callback();
- } else {
- callback(new Error("至少要添加一个地区"));
- }
- };
- return {
- problemClasslist: [
- {
- label: "小水库",
- value: "小水库"
- },
- {
- label: "大中型水库",
- value: "大中型水库"
- },
- {
- label: "在建水利工程",
- value: "在建水利工程"
- },
- {
- label: "水闸工程",
- value: "水闸工程"
- },
- {
- label: "堤防工程",
- value: "堤防工程"
- },
- {
- label: "小水电站",
- value: "小水电站"
- },
- {
- label: "水利工程设施水毁修复",
- value: "水利工程设施水毁修复"
- },
- {
- label: "山洪灾害监测预警",
- value: "山洪灾害监测预警"
- },
- {
- label: "水旱灾害防御",
- value: "水旱灾害防御"
- },
- {
- label: "在建涉河建设项目和“清四乱”",
- value: "在建涉河建设项目和“清四乱”"
- },
- {
- label: "水利风景区",
- value: "水利风景区"
- },
- ],
- tabType: "0",//0全部数据,1当前数据,2历史数据
- showExpandSearchPanel: false,
- tableHeight: window.innerHeight - 291,
- globoId: "",
- addPicPanel: false,
- currentDate: new Date(),
- deleteId: "",
- treeNodeArray: [],
- treeNodeSelectVisible: false,
- adNodeArray: [],
- adNodeSelectVisible: false,
- areaSelectVisible: false,
- rsvrNodeArray: [],
- rsvrNodeSelectVisible: false,
- skSelectVisible: false,
- currentProblemId: "",
- updateIdXiuGai: "",
- rules1: {
- inspPblmName: [
- {
- required: true,
- message: "请输入问题名称",
- trigger: "blur"
- },
- {
- min: 1,
- max: 999,
- message: "不超过100字符",
- trigger: "blur"
- }
- ],
- inspPblmDesc: [
- {
- required: true,
- message: "请输入问题描述",
- trigger: "blur"
- }
- ],
- recPers: [
- {
- required: true,
- message: "请输入记录人",
- trigger: "blur"
- },
- {
- min: 1,
- max: 999,
- message: "不超过100字符",
- trigger: "blur"
- }
- ],
- objType: [
- {
- required: true,
- message: "请选择督查对象类型",
- trigger: "change"
- }
- ],
- objId: [
- {
- required: true,
- message: "请选择督查对象类型",
- trigger: "change"
- }
- ],
- inspPblmType: [
- {
- required: true,
- message: "请选择督查问题类型",
- trigger: "change"
- }
- ],
- dataStat: [
- {
- required: true,
- message: "请选择数据状态",
- trigger: "change"
- }
- ],
- collTime: [
- {
- required: true,
- message: "请选择采集时间",
- trigger: "change"
- }
- ],
- ifCasePblm: [
- {
- required: true,
- message: "请选择是否典型",
- trigger: "change"
- }
- ],
- pblmStat: [
- {
- required: true,
- message: "请选择问题类型",
- trigger: "change"
- }
- ],
- inspPblmCate: [
- {
- required: true,
- message: "请选择问题程度",
- trigger: "change"
- },
- {
- trigger: "change"
- }
- ]
- },
- dxdcAsideHeight: window.innerHeight - 220,
- maxHeight: window.innerHeight - 300,
- testHeight: window.innerHeight - 80,
- supervisionStateList: [
- {
- value: "0",
- label: "暂存"
- },
- {
- value: "1",
- label: "上报"
- }
- ],
- supervisionState: [
- {
- value: "0",
- label: "一般"
- },
- {
- value: "1",
- label: "较重"
- },
- {
- value: "2",
- label: "严重"
- },
- {
- value: "3",
- label: "特别严重"
- }
- ],
- supervision: [
- {
- value: "1",
- label: "是"
- },
- {
- value: "0",
- label: "否"
- }
- ],
- hasVedio1: [
- {
- value: "1",
- label: "是"
- },
- {
- value: "0",
- label: "否"
- }
- ],
- findUseOrgArray: [],
- areaInputValue: {},
- memberInputValue: {},
- multipleSelection: [], // 已选
- selectionType: {
- remove: 0,
- befor: 0,
- now: 0,
- after: 0
- },
- // 根据客户点击的督查类型查找督查对象ID
- // 新增
- listobjId: [],
- userId: localStorage.getItem("userid"),
- treeData: [],
- // 修改督查
- pictureArray: [],
- audioArray: [],
- videoArray: [],
- fileArray: [],
- audiotabName: "",
- videotabName: "",
- picturetabName: "",
- filetabName: "",
- playerOptions: {
- height: "120",
- autoplay: true,
- muted: true,
- language: "en",
- playbackRates: [0.7, 1.0, 1.5, 2.0],
- sources: [
- {
- type: "video/mp4",
- // mp4
- src: "http://vjs.zencdn.net/v/oceans.mp4"
- // webm
- // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
- },
- {
- type: "video/mp4",
- // mp4
- src: "http://vjs.zencdn.net/v/oceans.mp4"
- // webm
- // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
- },
- {
- type: "video/mp4",
- // mp4
- src: "http://vjs.zencdn.net/v/oceans.mp4"
- // webm
- // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
- },
- {
- type: "video/mp4",
- // mp4
- src: "http://vjs.zencdn.net/v/oceans.mp4"
- // webm
- // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
- }
- ]
- },
- changeSupervisionVisible: false,
- changeSupervision: {
- nm: "",
- presId: localStorage.getItem("userid"),
- endTime: "",
- pblmId: "",
- objId: "",
- objType: "",
- inspGroupId: "",
- inspPblmName: "",
- inspPblmDesc: "",
- pblmLong: "",
- pblmLat: "",
- pblmStat: "",
- ifCasePblm: "",
- inspPblmOrgName: "",
- pblmPersName: "",
- inspPblmCate: "",
- reviOpin: "",
- reviConc: "",
- reviOrgGuid: "",
- collTime: "",
- recPers: "",
- gwComFiles: [
- {
- id: "",
- filePath: "",
- bizId: ""
- }
- ]
- },
- // 督查类型
- supervisionTypeList: [
- {
- value: "1",
- label: "小水库"
- }
- ],
- // 查询
- value6: [],
- findParams: {
- hasVedio: "",
- adCode: "",
- pblmStat: "",
- inspPblmCate: "",
- ifCasePblm: "",
- nm: "",
- rsName: "",
- adFullName: "",
- startTime: "",
- endTime: "",
- objType: 1,
- inspPblmName: "",
- state: "",
- persId: localStorage.getItem("userid")
- },
- stateList: [
- {
- label: '未提交',
- value: '0'
- },
- {
- label: '已提交',
- value: '2'
- },
- {
- label: '已发布',
- value: '3'
- }
- ],
- currentPage: 1, // 页码
- pageSize: 20, // 条数
- loading: false,
- total: 0, // 总数
- searchResult: [], // 结果
- crId: "", // 当前督查id
- // 督查详情
- userid: localStorage.getItem("userid"),
- supervisionDetailsVisible: false,
- problemDeleteVisible: false,
- supervisionDetails: {},
- pblmId: "",
- gwComFiles: [],
- pblscr: "",
- pblscrList: [
- {
- lable: "我的问题",
- value: localStorage.getItem("userid")
- }
- ],
- pblscrGroup: "",
- t1: {},
- t2: {},
- t3: {},
- problemList: [],
- currentCheckPointList: [],
- currentProblemDescList: [],
- xiangqingmiaoshu: '',
- wenTiLeiBie: "",
- jianChaXiangMu: "",
- actionUrl: "",
- fileList: [],
- header: {
- 'persId': localStorage.getItem('userid'),
- 'orgId': localStorage.getItem('currentOrgId'),
- 'accessToken': localStorage.getItem('accessToken')
- },
- fileListLength: 0,
- showShuiKuTianBaoPl: false,
- uploadDisabled: true,
- exportLoading: false,
- datas: {},
- buttonLoading: false,
- };
- },
- computed: {
- persId() {
- return localStorage.getItem("userid") ? localStorage.getItem("userid") : "1098101939614724096";
- },
- hostUrl() {
- return hostUrl
- },
- formatDateTime() {
- return formatDateTime2New
- },
- isGd(){
- if(localStorage.getItem('currentRlcode').substring(0,2)=="44"){
- return true;
- }else{
- return false;
- }
- }
- },
- created() {
- if (this.userId) {
- console.log("已经登录");
- this.search();
- } else {
- this.$router.push("/login");
- }
- this.getproblemSmallType();
- this.getLeftTreeData();
- this.addPicPanel = false;
- },
- activated() {
- // 监督司提的一个优化,来回切换页签的时候,能不能不主动刷新页面,这样他们不方便来回对比数据
- // this.getLeftTreeData();
- // this.search();
- // this.findParams = {
- // hasVedio:"",
- // adCode: "",
- // pblmStat: "",
- // inspPblmCate: "",
- // ifCasePblm: "",
- // nm: "",
- // rsName: "",
- // adFullName: "",
- // startTime: "",
- // endTime: "",
- // objType: 1,
- // inspPblmName: "",
- // persId: localStorage.getItem("userid")
- // }
- },
- methods: {
- isMine(row){
- if(localStorage.getItem('currentRlcode').substring(0,2)=="35"){
- return row.recPers == this.persId;
- }else{
- return true;
- }
- },
- openDetails(row) {
- this.currentProblemId = row.pblmId;
- this.supervisionDetailsVisible = true;
- },
- tabChange(tabType) {
- this.tabType = tabType;
- this.getLeftTreeData();
- this.search();
- },
- handleCheckChange(data, checked, indeterminate) {
- let cNarray = this.$refs["jigou_tree"].getCheckedNodes();
- console.log(cNarray);
- this.treeNodeArray = cNarray;
- },
- getLeftTreeData() {
- var _self = this;
- request
- .get("/dc/organization/base/getAllNode", {
- params: {
- userId: this.userId,
- orgType: "128",
- tabType: this.tabType
- }
- })
- .then(res => {
- let data = res.data;
- data.forEach(ele => {
- if (ele.pid == null || ele.pid == "") {
- ele.pid = "001";
- }
- });
- data = _self.getTrees(data);
- _self.treeData = data;
- console.log(data);
- // _self.duChaType = _self.treeData[0].id.substring(2,3);
- });
- },
- //格式化树形数据
- getTrees(list) {
- //@wxcwater重写方法 适应多个树
- let highLevelLength = 99;//预设最大节点id长度,目前最大应该为12,所以设置为99保证正常
- let _self = this;
- list.forEach((item, index) => {
- item['pidLength'] = item.pid && item.pid != '' ? item.pid.length : 0;
- if (highLevelLength > item.pidLength) {
- highLevelLength = item.pidLength;
- }
- });
- console.log(highLevelLength);
- let heightLevelNode = [];
- list.forEach((item, index) => {
- if (highLevelLength >= item.pidLength) {
- heightLevelNode.push(item);
- }
- });
- list.forEach((item, index) => {
- heightLevelNode.forEach((pItem) => {
- _self.addTreeNode(pItem, item);
- });
- });
- console.log(heightLevelNode);
- return heightLevelNode;
- },
- addTreeNode: function (treeNode, leafNode) {
- let _self = this;
- if (!treeNode.hasOwnProperty('children')) {
- treeNode['children'] = [];
- }
- if (leafNode.pid == treeNode.id) {
- treeNode.children.push(leafNode);
- return;
- }
- treeNode.children.forEach((item) => {
- _self.addTreeNode(item, leafNode);
- });
- },
- // 查询参数逻辑
- insertTreeNode: function (params) {
- this.treeNodeArray.push({
- name: params.name,
- code: params.code
- });
- this.treeNodeSelectVisible = false;
- this.areaSelectVisible = false;
- this.skSelectVisible = false;
- },
- deleteTreeNode: function (tag) {
- let deleteIndex;
- this.treeNodeArray.forEach((item, index) => {
- if (item.code == tag.code) {
- deleteIndex = index;
- }
- });
- this.treeNodeArray.splice(deleteIndex, 1);
- },
- selectDuChaAreaNode(params) {
- this.adNodeArray.push(params);
- this.areaSelectVisible = false;
- this.skSelectVisible = false;
- },
- deleteAreaNode(tag) {
- let deleteIndex;
- this.adNodeArray.forEach((item, index) => {
- if (item.adCode == tag.adCode) {
- deleteIndex = index;
- return;
- }
- });
- this.adNodeArray.splice(deleteIndex, 1);
- },
- selectSkNode(params) {
- this.rsvrNodeArray.push(params);
- this.skSelectVisible = false;
- },
- deleteSkNode(tag) {
- let deleteIndex;
- this.rsvrNodeArray.forEach((item, index) => {
- if (item.rsCode == tag.rsCode) {
- deleteIndex = index;
- return;
- }
- });
- this.rsvrNodeArray.splice(deleteIndex, 1);
- },
- // end
- handleClose(tag) {
- this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
- },
- showInput() {
- this.inputVisible = true;
- this.$nextTick(_ => {
- this.$refs.saveTagInput.$refs.input.focus();
- });
- },
- handleInputConfirm() {
- // let inputValue = this.inputValue;
- // if (inputValue) {
- // this.dynamicTags.push(inputValue);
- // }
- // this.inputVisible = false;
- // this.inputValue = '';
- },
- // 操作成功反馈
- successInfo() {
- this.$message({
- type: "success",
- message: "保存成功!"
- });
- },
- // 操作失败反馈
- failInfo(val) {
- this.$message.error(val);
- },
- // 清空选择
- toggleSelection(rows) {
- this.$refs.multipleTable.clearSelection();
- },
- // 已选择项
- handleSelectionChange(val) {
- this.multipleSelection = val;
- },
- // 查询
- search() {
- this.loading = true;
- let _self = this;
- request
- .get("/dc/organization/base/getAllNode", {
- params: {
- userId: this.userId,
- orgType: "128",
- tabType: this.tabType
- }
- })
- .then(res => {
- let orgAllNode = res.data;
- _self.loading = true;
- let data = _self.findParams;
- data.startTime = _self.value6 && _self.value6.length > 0 ? _self.value6[0] : '';
- data.endTime = _self.value6 && _self.value6.length > 0 ? _self.value6[1] : '';
- data.pageNum = _self.currentPage;
- data.recPers = _self.pblscr;
- data.orgNm = _self.pblscrGroup;
- data.pageSize = _self.pageSize;
- data.villType = "0";
- // data.adCode = this.codeId;
- _self.findUseOrgArray = [];
- _self.treeNodeArray.forEach(item => {
- if (item.id.length < 12) {
- orgAllNode.forEach(orgItem => {
- if (orgItem.id.startsWith(item.code)) {
- _self.findUseOrgArray.push(orgItem.id);
- }
- });
- }
- _self.findUseOrgArray.push(item.id);
- });
- if (_self.findUseOrgArray.length > 0) {
- data["orgIds"] = _self.findUseOrgArray.join(",");
- } else {
- data["orgIds"] = "";
- }
- data.objType = "128";
- data.tabType = this.tabType;
- getXSKProblemNew(data).then(res => {
- console.log(res)
- _self.loading = false;
- _self.multipleSelection = [];
- if (res.success) {
- _self.searchResult = res.data.list;
- console.log( "绝对是"+searchResult)
- _self.total = res.data.total;
- } else {
- _self.failInfo();
- }
- });
- });
- },
- async submitBtn() {
- if (this.multipleSelection.length === 0) {
- this.$message.warning('请至少选择一条问题');
- return;
- }
- let newArray = this.multipleSelection.map((item) => {
- return {
- "objId": item.objId,
- "objType": item.objType,
- "state": "3"
- }
- });
- const {success, message} = await pblmSubmit(newArray);
- if (success) {
- this.$message.success('问题发布成功');
- this.search();
- } else {
- this.$message.warning(message);
- }
- },
- toForm(){
- var idArr = [];
- if(this.multipleSelection && this.multipleSelection.length==0){
- this.$message.warning("请选择数据");
- return false;
- }else{
- this.multipleSelection.forEach((item)=>{
- idArr.push(item.pblmId);
- })
- }
- var ids = idArr.join(",");
- let host = hostUrl;
- let nginx = '/pageofficePath/';
- let href = 'pageoffice://|' + host + nginx + '/pageoffice/pblm/list/word?ids='+ids+'&filename=pblm|width=1100px;height=800px;ismodal=false;||91A4EE66EC1921F376873E85D6C74FFA|A890649B44577C32CE1930797E1299F9';
- let a = document.createElement('a'); // 创建a标签
- a.setAttribute('href', href);// href链接
- a.click();// 自执行点击事件
- },
- async exportExceltable(){
- this.exportLoading = true;
- let _self = this;
- let data = _self.findParams
- data.objType = "128";
- this.datas = JSON.stringify(data)
- let url = "/pdcApi/dc/insp/pblm/genrl/statistics/export";
- let type = "post";
- let exportName = "问题统计表.xls"
- let result = await exportModel(type, url, exportName, this.datas);
- _self.exportLoading = result;
- },
- async exportExcel() {
- this.exportLoading = true;
- let _self = this;
- // await request.get("/dc/insp/pblm/genrl/export", {
- // params: {
- // userId: this.userId,
- // orgType: "128",
- // }
- // }).then(res => {
- // let orgAllNode = res.data;
- // let data = _self.findParams;
- // data.pageNum = _self.currentPage;
- // data.pageSize = _self.pageSize;
- // data.villType = "0";
- // _self.datas = JSON.stringify(data);
- // _self.treeNodeArray.forEach(item => {
- // console.log(item);
- // if (item.id.length < 12) {
- // orgAllNode.forEach(orgItem => {
- // if (orgItem.id.startsWith(item.id)) {
- // _self.findUseOrgArray.push(orgItem.id);
- // }
- // });
- // } else {
- // _self.findUseOrgArray.push(item.id);
- // }
- // });
- // });
- let data = _self.findParams;
- data.objType = "128";
- this.datas = JSON.stringify(data)
- let url = "/pdcApi/dc/insp/pblm/page/rever/export";
- let type = "post";
- let exportName = "问题列表.xls"
- let result = await exportModel(type, url, exportName, this.datas);
- _self.exportLoading = result;
- },
- async exportWord() {
- let _self = this;
- _self.exportLoading = true;
- await request
- .get("/dc/organization/base/getAllNode", {
- params: {
- userId: this.userId,
- orgType: "001"
- }
- })
- .then(res => {
- let orgAllNode = res.data;
- let data = _self.findParams;
- data.pageNum = _self.currentPage;
- data.pageSize = _self.pageSize;
- data.villType = "0";
- this.datas = data;
- _self.treeNodeArray.forEach(item => {
- if (item.id.length < 12) {
- orgAllNode.forEach(orgItem => {
- if (orgItem.id.startsWith(item.id)) {
- _self.findUseOrgArray.push(orgItem.id);
- }
- });
- } else {
- _self.findUseOrgArray.push(item.id);
- }
- });
- });
- //下载word文档2
- await request.post('/rever/doc', this.datas).then(res => {
- if (res.success) {
- console.log(this.response)
- var a = document.createElement('a');
- a.href = `${this.hostUrl}${res.data.downloadPath}`;
- //设置文件名称
- a.download = '小水库问题详情.doc';
- a.click();
- // window.open(`${this.hostUrl}${res.data.downloadPath}`)
- _self.exportLoading = false;
- } else {
- _self.$mesage.error(res.message)
- }
- }).catch(res => {
- _self.$mesage.error(res.message)
- })
- },
- downFile(blob, fileName) {
- // 非IE下载
- if ("download" in document.createElement("a")) {
- let link = document.createElement("a");
- link.href = window.URL.createObjectURL(blob); // 创建下载的链接
- link.download = fileName; // 下载后文件名
- link.style.display = "none";
- document.body.appendChild(link);
- link.click(); // 点击下载
- window.URL.revokeObjectURL(link.href); // 释放掉blob对象
- document.body.removeChild(link); // 下载完成移除元素
- } else {
- // IE10+下载
- window.navigator.msSaveBlob(blob, fileName);
- }
- },
- async downloadTemplate() {
- let url = '/pdcApi/dc/imp/skpblm/download?userId=' + this.userId + '&orgType=001';
- let downloadName = "小水库问题.xls";
- let type = "get";
- await exportModel(type, url, downloadName);
- this.uploadDisabled = false;
- },
- showPlDialog() {
- this.showShuiKuTianBaoPl = true
- },
- closePlDialog(val) {
- this.showShuiKuTianBaoPl = false
- this.search();
- },
- handleSizeChange(pageSize) {
- this.pageSize = pageSize;
- this.search();
- },
- // 新增
- getDuChaId() {
- //新增中 获取督查对象id
- getSupervisdByID(this.userid, 1).then(res => {
- if (res.success) {
- // alert(1)
- this.listobjId = res.data;
- } else {
- this.failInfo();
- }
- });
- },
- // 取消
- removeNewSupervision(arg) {
- this.gwComFiles = [];
- if (arg) {
- this.gwComFiles = arg;
- this.$refs.uploadFile.init();
- }
- },
- // 详情弹框
- showDetails(id) {
- this.currentProblemId = id;
- this.supervisionDetailsVisible = true;
- // showDetailsXq(id).then(res => {
- // this.supervisionDetails = res.data;
- // this.supervisionDetailsVisible = true;
- // });
- },
- // 删除弹窗
- removeSuperviseOne(id) {
- this.deleteId = id;
- this.problemDeleteVisible = true;
- // showDetailsXq(id).then(res => {
- // // console.log("123" + res.data)
- // this.persNameRen = res.data.persName;
- // });
- },
- deleteSuccess() {
- this.problemDeleteVisible = false;
- this.search();
- this.$emit("problemCount");
- },
- // 修改弹窗显示
- changeSup(id, deleteUpdate) {
- this.currentProblemId = '';
- this.pictureArray = [];
- this.audioArray = [];
- this.videoArray = [];
- this.fileArray = [];
- this.updateIdXiuGai = id;
- this.t1 = {};
- showDetailsXq(this.updateIdXiuGai).then(res => {
- this.changeSupervision = res.data;
- this.fileList = this.changeSupervision.gwComFiles;
- this.t1['inspPblmsName'] = this.changeSupervision.inspPblmName;
- this.problemList.forEach(ele => {
- if (ele.inspPblmsName == this.t1.inspPblmsName) {
- this.problemListChange(ele)
- }
- })
- this.t2['checkPointName'] = this.changeSupervision.checkPoint
- this.currentCheckPointList.forEach(ele => {
- if (ele.checkPointName == this.t2.checkPointName) {
- this.currentCheckPointListChange(ele)
- }
- })
- this.t3['pblmDesc'] = this.changeSupervision.pblmDesc;
- console.log(this.t1, this.t2, this.t3);
- this.changeSupervisionVisible = true;
- // 当删掉最后一个多媒体文件后,更新一下提交信息(解决删掉多媒体文件后台没有更改状态的问题 record by wby)
- if (deleteUpdate && !res.data.gwComFiles.length) {
- this.changeSupervisionInfo()
- }
- res.data.gwComFiles.forEach(item => {
- if (
- item.fileExt == "mp3" ||
- item.fileExt == "MP3" ||
- item.fileExt == "m4a"
- ) {
- this.audioArray.push(item);
- } else if (
- item.fileExt == "jpg" ||
- item.fileExt == "JPG" ||
- item.fileExt == "png" ||
- item.fileExt == "PNG" ||
- item.fileExt == "JPEG" ||
- item.fileExt == "jpeg"
- ) {
- this.pictureArray.push(item);
- } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
- this.videoArray.push({
- id: item.id,
- bizId: item.bizId,
- width: "130",
- height: "130",
- autoplay: false,
- muted: true,
- language: "en",
- playbackRates: [0.7, 1.0, 1.5, 2.0],
- sources: [
- {
- type: "video/mp4",
- // mp4
- src: this.hostUrl + item.filePath
- // webm
- // src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
- }
- ]
- });
- } else {
- this.fileArray.push(item);
- }
- });
- this.picturetabName = "图片资料(" + this.pictureArray.length + ")";
- this.audiotabName = "音频资料(" + this.audioArray.length + ")";
- this.videotabName = "视频资料(" + this.videoArray.length + ")";
- this.filetabName = "其它资料(" + this.fileArray.length + ")";
- });
- },
- // 提交修改信息
- changeSupervisionInfo() {
- this.$refs.changeSupFrom.validate(valid => {
- if (valid) {
- this.$nextTick(() => {
- // this.changeSupervisionVisible = true;
- this.buttonLoading = true;
- setTimeout(() => {
- this.changeSupervision.inspPblmsName = this.wenTiLeiBie;
- this.changeSupervision.checkPoint = this.jianChaXiangMu;
- this.changeSupervision.inspPblmName = this.wenTiLeiBie; //后台只需要这一个字段和问题id inspPblmsName和checkPoint可不传
- this.changeSupervision.inspPlbmType = this.t2.sort2;
- this.changeSupervision.inspPblmCode = this.t3.sn;
- this.changeSupervision.pblmsTypeId = this.t3.guid;
- let data = this.changeSupervision;
- updatelist(data).then(res => {
- this.pblmId = res.data.pblmId;
- this.gwComFiles = res.data.gwComFiles;
- if (res.success) {
- if (this.$refs.uploadFile.submitUpload(this.changeSupervision.pblmId)) {
- this.removeNewSupervision();
- }
- this.buttonLoading = false;
- this.search();
- this.changeSupervisionVisible = false;
- this.addPicPanel = false;
- } else {
- this.failInfo();
- }
- });
- }, 1000)
- })
- }
- });
- },
- // 删除图片文件
- removeFile(id, index) {
- var _self = this;
- this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "返回",
- type: "warning"
- }).then(
- res => {
- if (res === "confirm") {
- deleteFileById(id, this.userId).then(res => {
- if (res.success) {
- this.fileListLength = 0;
- this.fileList.forEach(item => {
- if (
- item.fileExt == "mp3" ||
- item.fileExt == "MP3" ||
- item.fileExt == "m4a"
- ) {
- this.audioArray.splice(index, 1);
- } else if (
- item.fileExt == "jpg" ||
- item.fileExt == "JPG" ||
- item.fileExt == "png" ||
- item.fileExt == "PNG" ||
- item.fileExt == "JPEG" ||
- item.fileExt == "jpeg"
- ) {
- this.pictureArray.splice(index, 1);
- } else if (item.fileExt == "mp4" || item.fileExt == "MP4") {
- this.videoArray.splice(index, 1);
- }
- });
- _self.changeSup(this.updateIdXiuGai, 'deleteUpdate');
- } else {
- this.failInfo();
- }
- });
- }
- },
- res => {
- console.log("返回");
- }
- );
- },
- changeSupervisionVisiblefalse() {
- this.changeSupervisionVisible = false;
- this.changeSupervision = {
- dataStat: "",
- nm: "",
- endTime: "",
- pblmId: "",
- objId: "",
- objType: "",
- inspGroupId: "",
- inspPblmCate: "",
- inspPblmName: "",
- inspPblmDesc: "",
- pblmLong: "",
- pblmLat: "",
- pblmStat: "",
- ifCasePblm: "",
- inspPblmOrgName: "",
- pblmPersName: "",
- reviOpin: "",
- reviConc: "",
- reviOrgGuid: "",
- collTime: "",
- recPers: "",
- note: "",
- gwComFiles: [
- {
- id: "",
- filePath: "",
- bizId: ""
- }
- ]
- };
- this.$refs.uploadFile.init();
- this.addPicPanel = false;
- },
- addPic() {
- this.addPicPanel = !this.addPicPanel;
- },
- getproblemSmallType() {
- let result = [];
- request.get('/dc/insp/pblms/getPblmType', {
- params: {
- type: 1
- }
- }).then(res => {
- if (res.success) {
- res.data.forEach((ele) => {
- let haveinspPblmsName = false;
- result.forEach((inspPblm) => {
- if (inspPblm['inspPblmsName'] == ele.inspPblmsName) {
- //
- let havechekPoint = false;
- inspPblm['checkPoints'].forEach((chekPoint) => {
- if (chekPoint['checkPointName'] == ele.checkPoint) {
- //
- chekPoint['pblmDescs'].push({
- pblmDesc: ele.pblmDesc,
- sn: ele.sn,
- guid: ele.guid,
- });
- havechekPoint = true;
- }
- });
- if (!havechekPoint) {
- let newCheckPoint = {};
- newCheckPoint['checkPointName'] = ele.checkPoint;
- newCheckPoint['sort2'] = ele.sort2;
- newCheckPoint['pblmDescs'] = [{
- pblmDesc: ele.pblmDesc,
- sn: ele.sn,
- guid: ele.guid,
- }]
- inspPblm['checkPoints'].push(newCheckPoint);
- }
- haveinspPblmsName = true;
- }
- });
- if (!haveinspPblmsName) {
- let haveinspPblmsObj = {};
- haveinspPblmsObj['inspPblmsName'] = ele.inspPblmsName;
- haveinspPblmsObj['sort1'] = ele.sort1;
- haveinspPblmsObj['checkPoints'] = [{
- checkPointName: ele.checkPoint,
- sort2: ele.sort2,
- pblmDescs: [{
- pblmDesc: ele.pblmDesc,
- sn: ele.sn,
- guid: ele.guid,
- }]
- }];
- result.push(haveinspPblmsObj);
- }
- })
- this.problemList = result;
- console.log(this.problemList);
- }
- })
- },
- getYanZhongChengDu() {
- request.post('/dc/insp/pblms/getByPblms', {
- inspPblmsName: this.wenTiLeiBie,
- checkPoint: this.jianChaXiangMu,
- pblmDesc: this.t3.pblmDesc,
- type: "1"
- }).then(res => {
- if (res.success) {
- console.log("验证" + res);
- this.changeSupervision.inspPblmCate = res.data.inspPblmCate;
- this.changeSupervision.score = res.data.score;
- }
- })
- },
- problemListChange: function (item) {
- this.t1 = item;// 解决问题编辑弹窗关闭后再打开问题类别展示第一次的问题类别 record by thy
- this.wenTiLeiBie = item.inspPblmsName;
- this.currentCheckPointList = item.checkPoints;
- },
- currentCheckPointListChange: function (item) {
- this.jianChaXiangMu = item.checkPointName;
- this.currentProblemDescList = item.pblmDescs;
- },
- currentProblemDescListChange: function (item) {
- this.xiangqingmiaoshu = item.pblmDesc;
- console.log(item);
- },
- // fileUpErr(err, file, fileList){
- // this.$message.error("上传出错,请修改文件!");
- // this.fileList = [];
- // },
- // fileSuccess(item){
- // this.fileList.push(item.data);
- // console.log(this.fileList);
- // },
- onChangeDialog() {
- },
- //
- // addFile(file,fileList){
- // this.fileListLength = fileList.length;
- //
- // },
- // UploadUrl:function(){
- // return `/pdcApi/file/insert?bizId=${this.changeSupervision.pblmId}`
- // },
- // beforeAvatarUpload(file) {
- // console.log(file);
- // }
- },
- watch: {
- codeId: function () {
- this.search();
- },
- 't1': {
- handler: function (val, oldVal) {
- this.getYanZhongChengDu()
- },
- deep: true
- },
- 't2': {
- handler: function (val, oldVal) {
- this.getYanZhongChengDu()
- },
- deep: true
- },
- 't3': {
- handler: function (val, oldVal) {
- this.getYanZhongChengDu()
- },
- deep: true
- },
- showExpandSearchPanel: function (val) {
- if (val) {
- this.tableHeight = window.innerHeight - 390;
- } else {
- this.tableHeight = window.innerHeight - 291;
- }
- }
- },
- };
- </script>
- <style rel="stylesheet/scss" lang="scss" scoped>
- @import "./base.css";
- @import url("/src/assets/iconfont/iconfont.css");
- @import url("/src/assets/css/mixin.scss");
- .upload-container {
- width: 100%;
- position: relative;
- .image-uploader {
- width: 35%;
- float: left;
- }
- .image-preview {
- width: 200px;
- height: 200px;
- position: relative;
- border: 1px dashed #d9d9d9;
- float: left;
- // margin-left: 50px;
- .image-preview-wrapper {
- position: relative;
- width: 100%;
- height: 100%;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .image-preview-action {
- position: absolute;
- width: 100%;
- height: 100%;
- left: 0;
- top: 0;
- cursor: default;
- text-align: center;
- color: #fff;
- opacity: 0;
- font-size: 20px;
- background-color: rgba(0, 0, 0, 0.5);
- transition: opacity 0.3s;
- cursor: pointer;
- text-align: center;
- line-height: 200px;
- .el-icon-delete {
- font-size: 36px;
- }
- }
- &:hover {
- .image-preview-action {
- opacity: 1;
- }
- }
- }
- .image-app-preview {
- margin-bottom: 10px;
- width: 40vh;
- height: 180px;
- position: relative;
- border: 1px dashed #d9d9d9;
- float: left;
- // margin-left: 50px;
- .app-fake-conver {
- height: 44px;
- position: absolute;
- width: 100%; // background: rgba(0, 0, 0, .1);
- text-align: center;
- line-height: 64px;
- color: #fff;
- }
- }
- }
- .bottom {
- margin-top: 13px;
- line-height: 12px;
- }
- .button {
- padding: 0;
- float: right;
- }
- .image {
- width: 100%;
- display: block;
- }
- .clearfix:before,
- .clearfix:after {
- display: table;
- content: "";
- }
- .clearfix:after {
- clear: both;
- }
- #wenTiContainer_sk .el-tree-node {
- /* overflow: auto; */
- }
- #wenTiContainer_sk .el-tree-node > .el-tree-node__children {
- overflow: auto;
- }
- .shuiku .el-date-editor.el-input {
- min-width: 180px !important;
- }
- .shuiku .header {
- padding: 0px 10px;
- }
- .shuiku .el-row {
- margin-bottom: 5px;
- }
- .shuiku .content {
- margin: 10px;
- }
- /* .search .el-table>>>.el-tooltip {
- white-space: pre-wrap !important;
- line-height: 30px;
- font-size: 0;
- } */
- .shuiku .search > > > .el-table .el-button:nth-child(odd) {
- margin-left: 0 !important;
- }
- .custom_dialog .el-dialog {
- width: 60% !important;
- }
- .custom_dialog .scroll300 {
- max-height: 60vh !important;
- }
- .scroll300 .el-form {
- padding-top: 5px;
- padding-right: 5px;
- }
- .shuiku .el-tag + .el-tag {
- margin-left: 10px;
- }
- .shuiku .button-new-tag {
- margin-left: 10px;
- height: 28px;
- line-height: 28px;
- padding-top: 0;
- padding-bottom: 0;
- }
- .shuiku .input-new-tag {
- width: 90px;
- margin-left: 10px;
- vertical-align: bottom;
- }
- .inspPblmCate {
- padding: 2px 10px;
- border-radius: 10px;
- color: #ffffff;
- -webkit-border-radius: 10px;
- -moz-border-radius: 10px;
- border-radius: 10px;
- }
- #wenTiContainer_sk .el-select, #wenTiContainer_sk .el-input {
- width: 140px !important;
- }
- .skactive {
- background: #3f8eff !important;
- color: white !important;
- margin-top: 5px;
- margin-bottom: 5px;
- }
- .sknormal {
- background: white;
- margin-top: 5px;
- margin-bottom: 5px;
- }
- </style>
|