| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624 |
- <template>
- <div style="height:100%;width:100%" id="wenTiContainer_sk" class="wt_wrapper">
- <el-container>
- <el-aside
- width="318px"
- style="float:left"
- :style="{'max-height':testHeight+'px','height':testHeight+'px'}"
- >
- <wt-left-tree orgType="026" :isAll="!hasPriv" @treeNodeClickHandler="treeNodeClickHandler" @changeYear="changeYear"
- @organList="getAllTreeData"></wt-left-tree>
- </el-aside>
- <!-- 主要窗口 -->
- <el-main class="shuiku" v-loading="exportLoading">
- <!-- <el-card> -->
- <div class="pages" :style="{'max-height':testHeight+'px'}">
- <div style="padding: 12px 0 0 0" class="wt_search_wrapper">
- <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.nm"
- clearable
- ></el-input>
- </el-form-item>
- <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.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-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-date-picker
- v-model="value6"
- type="daterange"
- value-format="yyyy-MM-dd"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- ></el-date-picker>
- </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-input
- resize="none"
- type="input"
- :rows="3"
- placeholder="请输入名称"
- v-model.trim="findParams.persName"
- ></el-input>
- </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>
- </el-col>
- </el-row>
- <el-row type="flex" justify="space-between" style="border-top:1px solid rgba(0, 20, 255, 0.12);">
- <el-col style='padding-bottom:10px;' :offset="11" :span="2">
- <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 :offset="2" :span="9">
- <tongYongWentiPl v-if="showShuiKuTianBaoPl"
- :showShuiKuTianBaoPl="showShuiKuTianBaoPl"
- titleName="水库防洪"
- @closePlDialog="closePlDialog">
- </tongYongWentiPl>
- </el-col>
- </el-row>
- <div class="wt_search_btn">
- <el-button type="primary" @click="search">查询</el-button>
- </div>
- </div>
- <!-- 查询展示 -->
- <div class="search table_wrapper">
- <!-- <div class="table_operate">-->
- <!-- <el-button-->
- <!-- style="color:rgba(255,255,255,1);float:right;margin-right:10px;margin-top:5px;"-->
- <!-- type="success"-->
- <!-- icon="el-icon-upload2"-->
- <!-- @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="exportWord"-->
- <!-- :loading="exportLoading"-->
- <!-- >导出WORD-->
- <!-- </el-button>-->
- <!-- <el-button-->
- <!-- style="color:rgba(255,255,255,1);float:right;margin-top:5px;"-->
- <!-- type="success"-->
- <!-- @click="downloadTemplate"-->
- <!-- :loading="buttonLoading"-->
- <!-- >导出EXCEL-->
- <!-- </el-button>-->
- <!-- </div>-->
- <el-table
- v-loading="loading"
- border
- stripe
- ref="multipleTable"
- :height="tableHeight"
- :data="searchResult"
- tooltip-effect="dark"
- style="width: 100%"
- @selection-change="handleSelectionChange"
- >
- <el-table-column align="center" type="index" label="序号" width="50">
- <template slot-scope="scope">{{ (currentPage - 1) * pageSize + (scope.$index + 1) }}
- </template>
- </el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="60"
- prop="province"
- label="省"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="60"
- prop="city"
- label="市"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="60"
- prop="country"
- label="县"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="110"
- prop="nm"
- label="水库名称"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="140"
- prop="inspPblmsName"
- label="问题类别"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="140"
- prop="checkPoint"
- label="检查项目"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="160"
- prop="inspPblmDesc"
- label="问题描述"
- show-overflow-tooltip
- ></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="color: #00BE6D;">一般</span>
- </p>
- <p v-if="scope.row.inspPblmCate == 1"><span class="inspPblmCate"
- style="color: #F88D2E;">较重</span>
- </p>
- <p v-if="scope.row.inspPblmCate == 2"><span class="inspPblmCate"
- style="color: #ED2B2F;">严重</span>
- </p>
- <p v-if="scope.row.inspPblmCate == 3"><span class="inspPblmCate"
- style="color: #795548;">特别严重</span>
- </p>
- </template>
- </el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="60"
- prop="attach"
- label="附件"
- show-overflow-tooltip>
- <template slot-scope="scope">
- <span>{{'附件' + scope.row.attach}}</span>
- </template>
- </el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="80"
- prop="snNum"
- label="问题序号"
- show-overflow-tooltip
- ></el-table-column>
- <el-table-column
- header-align="center"
- align="center"
- min-width="70"
- 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="110"
- 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="70"
- 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="300"
- label="操作"
- show-overflow-tooltip
- fixed="right"
- >
- <template slot-scope="scope">
- <el-button size="mini" type="primary"
- @click="showDetails(scope.row.pblmId)"><i class="el-icon-document"></i> 详情</el-button>
- <el-button size="mini" type="warning" @click="changeSup(scope.row.pblmId)"
- v-if="hasPriv"><i class="el-icon-edit"></i> 编辑</el-button>
- <el-button
- size="mini" type="danger"
- v-if="hasPriv"
- @click="removeSuperviseOne(scope.row.pblmId)"
- ><i class="el-icon-delete"></i> 删除</el-button>
- </template>
- </el-table-column>
- </el-table>
- <!-- 分页 -->
- <div style="text-align: center">
- <el-pagination
- 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%"
- :visible.sync="supervisionDetailsVisible"
- >
- <supervision-details ref="xianqing" :problemId="currentProblemId"
- :objType="26"></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>
- <!-- 修改弹框 -->
- <problem-edit :editId="updateIdXiuGai" @closeEditDialog="closeEditDialog"
- v-if="changeSupervisionVisible"></problem-edit>
- </div>
- </el-main>
- </el-container>
- </div>
- </template>
- <script>
- import {
- findPageInfoShuiKu,
- getShuiKuWenTi,
- getXSKProblemNewExport,
- findPageInfo,
- removeSupervise,
- showDetailsXq,
- submitUpload,
- creatSupervise,
- getSupervisdByID,
- deleteFileById,
- updatelist,
- getEngId,
- findProblemPageInfo
- } from "@api/duChaAPI.js";
- import {formatDateTime2} from '@util/gw_date.js'
- import {exportModel} from "@util/gw_exportModel";
- import request from "@util/gw_ajax_request.js";
- import {hostUrl} from "@util/global_variable.js";
- import elaudio from "@widget/elAudioShort.vue";
- import inuptWithDuChaTreeNode from "@widget/inuptWithDuChaTreeNode.vue";
- import inputWidthDuChaNodes from "@widget/inputWithDuChaNodes.vue";
- import inputWidthDuChaShuiKu from "@widget/inputWith_sk.vue";
- import problemDialog from "./problemDialog.vue";
- import tongYongWentiPl from "./problemBatchImp/tongYongWenti_piliang.vue"
- import wtLeftTree from "./wtcz_lefttree.vue"
- export default {
- props: ["codeId"],
- components: {
- upload: resolve => {
- require(["../../widgets/uploadFile.vue"], resolve);
- },
- //详情页
- supervisionDetails: resolve => {
- require(["./supervisionDetails_fanghong.vue"], resolve);
- },
- // 删除描述页
- ProblemDelete: resolve => {
- require(["./problemDelete.vue"], resolve);
- },
- // 修改问题
- problemEdit: resolve => {
- require(["./problemModify/fanghongProblemModifyNew.vue"], resolve);
- },
- elaudio: elaudio,
- inuptWithDuChaTreeNode: inuptWithDuChaTreeNode,
- inputWidthDuChaNodes: inputWidthDuChaNodes,
- inputWidthDuChaShuiKu: inputWidthDuChaShuiKu,
- problemDialog: problemDialog,
- tongYongWentiPl: tongYongWentiPl,
- wtLeftTree: wtLeftTree
- },
- 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 {
- showExpandSearchPanel: false,
- tableHeight: window.innerHeight - 326,
- 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 - 88,
- 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,
- changeSupervisionLoading: false,
- changeSupervision: {
- nm: "",
- presId: localStorage.getItem("userid"),
- endTime: "",
- pblmId: "",
- objId: "",
- pType: "",
- inspGroupId: "",
- inspPblmName: "",
- inspPblmDesc: "",
- pblmLong: "",
- pblmLat: "",
- // pblmStat: "",
- ifCasePblm: "",
- inspPblmOrgName: "",
- pblmPersName: "",
- inspPblmCate: "",
- reviOpin: "",
- reviConc: "",
- reviOrgGuid: "",
- collTime: "",
- recPers: "",
- gwComFiles: [
- {
- id: "",
- filePath: "",
- bizId: ""
- }
- ]
- },
- flash: false,
- // 督查类型
- supervisionTypeList: [
- {
- value: "1",
- label: "小水库"
- }
- ],
- // 查询
- value6: [],
- findParams: {
- hasVedio: "",
- adCode: "",
- // pblmStat: "",
- inspPblmCate: "",
- ifCasePblm: "",
- nm: "",
- adFullName: "",
- startTime: "",
- endTime: "",
- pType: 26,
- inspPblmName: "",
- persId: localStorage.getItem("userid")
- },
- 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')
- },
- fileListLength: 0,
- showShuiKuTianBaoPl: false,
- uploadDisabled: true,
- exportLoading: false,
- datas: {},
- buttonLoading: false,
- orgIds: '',
- newYear: ""
- };
- },
- computed: {
- hostUrl() {
- return hostUrl
- },
- formatDateTime() {
- return formatDateTime2
- },
- hasPriv(){
- return this.ownPriv('manage')
- }
- },
- created() {
- if (this.userId) {
- console.log("已经登录");
- this.search();
- } else {
- this.$router.push("/login");
- }
- this.getproblemSmallType();
- this.addPicPanel = false;
- },
- activated() {
- },
- methods: {
- handleCheckChange(data, checked, indeterminate) {
- let cNarray = this.$refs["jigou_tree"].getCheckedNodes();
- console.log(cNarray);
- this.treeNodeArray = cNarray;
- },
- // 查询参数逻辑
- 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();
- });
- },
- // 操作成功反馈
- successInfo() {
- this.$message({
- type: "success",
- message: "操作成功!"
- });
- },
- // 操作失败反馈
- failInfo(val) {
- this.$message.error(val);
- },
- // 清空选择
- toggleSelection(rows) {
- this.$refs.multipleTable.clearSelection();
- },
- // 已选择项
- handleSelectionChange(val) {
- this.multipleSelection = val;
- },
- // 文件上传
- submitUpload() {
- },
- handleRemove(file, fileList) {
- console.log(file, fileList);
- },
- handlePreview(file) {
- console.log(file);
- },
- // 查询
- async search() {
- this.loading = true;
- let _self = this;
- let params = {
- userId: this.userId,
- orgType: "026",
- year: this.newYear
- }
- if(!this.hasPriv) params['isAll'] = 1 //只浏览的时候增加isAll参数 左侧树和问题列表展示所有机构
- await request
- .get("/dc/organization/base/getAllNode", {
- params: params
- })
- .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.type = "0";
- _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(",");
- this.orgIds = _self.findUseOrgArray.join(",");
- } else {
- data["orgIds"] = "";
- this.orgIds = "";
- }
- console.log(this.orgIds);
- data["year"] = this.newYear;
- if(!this.hasPriv) data['isAll'] = 1 //只浏览的时候增加isAll参数 左侧树和问题列表展示所有机构
- findProblemPageInfo(data).then(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 exportExcel() {
- this.exportLoading = true;
- let _self = this;
- await request.get("/dc/organization/base/getAllNode", {
- params: {
- userId: this.userId,
- orgType: "026"
- }
- }).then(res => {
- let orgAllNode = res.data;
- let data = _self.findParams;
- data.pageNum = _self.currentPage;
- data.pageSize = _self.pageSize;
- // data.type = "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 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;
- let orgAllNode = this.treeData;
- let data = _self.findParams;
- data.pageNum = _self.currentPage;
- data.pageSize = _self.pageSize;
- data.villType = "0";
- _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);
- }
- });
- if (_self.findUseOrgArray.length > 0) {
- data["orgIds"] = _self.findUseOrgArray.join(",");
- this.orgIds = _self.findUseOrgArray.join(",");
- } else {
- data["orgIds"] = "";
- this.orgIds = "";
- }
- this.datas = data;
- //下载word文档2
- await request.post('/pblm/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.$message.error(res.message)
- }
- }).catch(res => {
- _self.$message.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);
- }
- },
- // 下载模板
- downloadTemplate() {
- this.buttonLoading = true;
- this.search().then(res => {
- this.downloadTemplateSet();
- })
- },
- downloadTemplateSet() {
- let datas = JSON.stringify(this.findParams);
- let url = '/pdcApi/dc/imp/pblm/download?userId=' + this.userid + '&orgType=026&orgIds=' + this.orgIds + '&datas=' + datas;
- let downloadName = "水库防洪问题.xls";
- let type = "get";
- exportModel(type, url, downloadName);
- this.buttonLoading = false;
- 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, 26).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;
- },
- // 删除弹窗
- removeSuperviseOne(id) {
- this.deleteId = id;
- this.problemDeleteVisible = true;
- },
- deleteSuccess() {
- this.problemDeleteVisible = false;
- this.search();
- this.$emit("problemCount");
- },
- // 修改弹窗显示
- changeSup(id) {
- this.currentProblemId = '';
- this.pictureArray = [];
- this.audioArray = [];
- this.videoArray = [];
- this.fileArray = [];
- this.updateIdXiuGai = id;
- showDetailsXq(this.updateIdXiuGai).then(res => {
- this.changeSupervision = res.data;
- this.fileList = this.changeSupervision.gwComFiles;
- this.t1['inspPblmsName'] = this.changeSupervision.inspPblmsName
- 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
- this.changeSupervisionVisible = true;
- 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 + ")";
- });
- },
- // 删除图片文件
- 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);
- } else {
- this.failInfo();
- }
- });
- }
- },
- res => {
- console.log("返回");
- }
- );
- },
- changeSupervisionVisiblefalse() {
- this.$nextTick(() => {
- if (this.flash) {
- this.flash = false;
- this.search();
- }
- });
- this.changeSupervisionVisible = false;
- this.changeSupervision = {
- dataStat: "",
- nm: "",
- endTime: "",
- pblmId: "",
- objId: "",
- pType: "",
- 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: 26,
- pguid: '26000000000000000000000000000000'
- }
- }).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.xiangqingmiaoshu
- }).then(res => {
- if (res.success) {
- console.log("验证" + res);
- this.changeSupervision.inspPblmCate = res.data.inspPblmCate;
- }
- })
- },
- problemListChange: function (item) {
- 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);
- },
- closeEditDialog() {
- this.changeSupervisionVisible = false
- setTimeout(() => {
- this.search()
- }, 800)
- },
- treeNodeClickHandler(data) {
- this.treeNodeArray = data;
- },
- changeYear(val) {
- this.newYear = val;
- this.search();
- },
- getAllTreeData(data) {
- this.treeAllData = data;
- }
- },
- 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 - 372;
- } else {
- this.tableHeight = window.innerHeight - 326;
- }
- }
- },
- };
- </script>
- <style rel="stylesheet/scss" lang="scss">
- @import "../../assets/sass/tbPublicCss.scss";
- </style>
- <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;
- } */
- .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;
- }
- </style>
|