|
@@ -0,0 +1,496 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <ibps-crud ref="crud" :style="{ marginLeft: width + 'px', minHeight: '550px' }" :height="height" :data="listData"
|
|
|
|
|
+ :toolbars="listConfig.toolbars" :search-form="listConfig.searchForm" :pk-key="pkKey" :displayField="tableTitle"
|
|
|
|
|
+ :columns="listConfig.columns" :row-handle="listConfig.rowHandle" :pagination="pagination" :loading="loading"
|
|
|
|
|
+ :index-row="false" :selection-row="selection" @action-event="handleAction" @sort-change="handleSortChange"
|
|
|
|
|
+ @column-link-click="handleLinkClick" @pagination-change="handlePaginationChange">
|
|
|
|
|
+
|
|
|
|
|
+ <template slot="selectCont" slot-scope="scope">
|
|
|
|
|
+ <el-popover :ref="'popover2-' + scope.row.id" placement="bottom" width="250" popper-class="popverClass"
|
|
|
|
|
+ trigger="click" @show="getReportAndFile(scope.row)">
|
|
|
|
|
+ <!-- 触发事件 --> <!-- @click="handleAction('detail',null,null,scope.row)"-->
|
|
|
|
|
+ <div class="div_test el-icon-s-order" slot="reference">查阅记录</div>
|
|
|
|
|
+ <!-- 弹框内容 -->
|
|
|
|
|
+ <div class="div_content">
|
|
|
|
|
+ <!-- 获取所有输出报告-->
|
|
|
|
|
+ <div class="content_butts" v-if="currReportCont.report.length > 0" v-for="(item, i) in currReportCont.report">
|
|
|
|
|
+ <span style="cursor: pointer;" @click="clickCont(currReportCont, i)">
|
|
|
|
|
+ <i class="el-icon-tickets" style="font-size: 18px;" />
|
|
|
|
|
+ <!-- {{item.split('/')[1].split('.')[0].split(' ')[1]}} -->
|
|
|
|
|
+ {{ item.slice(-item.split("").reverse().join("").indexOf(' '),
|
|
|
|
|
+ -item.split("").reverse().join("").indexOf('.') - 1)
|
|
|
|
|
+ }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <br>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="content_butts" v-if="currReportCont.file">
|
|
|
|
|
+ <ibps-attachment v-model="fileId" placeholder="请选择" :download="true" :readonly="true" accept="*"
|
|
|
|
|
+ :multiple="true" upload-type="attachment" store="id" media-type="" media="" style="width:100%;" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-popover>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <!---->
|
|
|
|
|
+ <template slot="facilitySlot" slot-scope="scope">
|
|
|
|
|
+ <!-- <ibps-custom-dialog :value="scope.row.facility" template-key="mjsbdjmcdhk" :disabled="true" readonly-text="text" /> -->
|
|
|
|
|
+ <span>{{ scope.row.facility }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <template slot="facilityNumber" slot-scope="scope">
|
|
|
|
|
+ <span v-if="scope.row.number && scope.row.number.includes('-')">{{ scope.row.number }}</span>
|
|
|
|
|
+ <span v-else>
|
|
|
|
|
+ <ibps-custom-dialog :value="scope.row.number" template-key="mjsbdjmcdhk" :disabled="true" readonly-text="text" />
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!-- <template slot="facilitySlotName" slot-scope="scope">
|
|
|
|
|
+ <ibps-custom-dialog :value="scope.row.facility" template-key="sbxzq" :disabled="true" readonly-text="text" />
|
|
|
|
|
+ </template> -->
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </ibps-crud>
|
|
|
|
|
+
|
|
|
|
|
+ <bpmn-formrender :visible="dialogFormVisible" :instance-id="instanceId"
|
|
|
|
|
+ @close="visible => dialogFormVisible = visible" />
|
|
|
|
|
+
|
|
|
|
|
+ <el-dialog :close-on-click-modal="false" :close-on-press-escape="false" :top="'3vh'" :width="'90%'"
|
|
|
|
|
+ class="js-custom-dialog" append-to-body :fullscreen="false" :visible.sync="visible">
|
|
|
|
|
+
|
|
|
|
|
+ <iframe :src="srcUrl" :height="'100%'" :width="'100%'" frameborder="0" scrolling="no" />
|
|
|
|
|
+
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script>
|
|
|
|
|
+import { queryPageList } from '@/api/platform/bpmn/bpmInstHis'
|
|
|
|
|
+import ActionUtils from '@/utils/action'
|
|
|
|
|
+import IbpsTypeTree from '@/business/platform/cat/type/tree'
|
|
|
|
|
+import FixHeight from '@/mixins/height'
|
|
|
|
|
+import { searchOptions, resultTypeOptions, statusOptions } from './../constants'
|
|
|
|
|
+import BpmnFormrender from '@/business/platform/bpmn/form/dialog'
|
|
|
|
|
+import curdPost from '@/business/platform/form/utils/custom/joinCURD.js' //增删改查规则
|
|
|
|
|
+import IbpsAttachment from '@/business/platform/file/attachment/selector'
|
|
|
|
|
+import IbpsCustomDialog from '@/business/platform/data/templaterender/custom-dialog'
|
|
|
|
|
+import getCont from '../corresponding/getDataCont.js'
|
|
|
|
|
+import GetReport from '../corresponding/getReport.js'
|
|
|
|
|
+export default {
|
|
|
|
|
+ components: {
|
|
|
|
|
+ IbpsTypeTree,
|
|
|
|
|
+ BpmnFormrender,
|
|
|
|
|
+ IbpsCustomDialog,
|
|
|
|
|
+ 'ibps-attachment': IbpsAttachment
|
|
|
|
|
+ },
|
|
|
|
|
+ props: {
|
|
|
|
|
+ reportAll: Array,
|
|
|
|
|
+ tableTitle: String,
|
|
|
|
|
+ typeId: String
|
|
|
|
|
+ },
|
|
|
|
|
+ mixins: [FixHeight, getCont, GetReport],
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ width: 200,
|
|
|
|
|
+ dialogFormVisible: false, // 弹窗
|
|
|
|
|
+ instanceId: '', // 编辑dialog需要使用
|
|
|
|
|
+ pkKey: 'id', // 主键 如果主键不是pk需要传主键
|
|
|
|
|
+ srcUrl: '', //报表字段
|
|
|
|
|
+ fileId: '',//文件字段
|
|
|
|
|
+ isDisable: false, //判断多次点击
|
|
|
|
|
+ forClick: '',//判断是否重复点击
|
|
|
|
|
+ visible: false,
|
|
|
|
|
+ currReportCont: {},
|
|
|
|
|
+ title: '',
|
|
|
|
|
+ loading: true,
|
|
|
|
|
+ height: document.clientHeight,
|
|
|
|
|
+ listData: [],
|
|
|
|
|
+ pagination: {},
|
|
|
|
|
+ sorts: {},
|
|
|
|
|
+ sheBei: [],
|
|
|
|
|
+ responseData: "",
|
|
|
|
|
+ dataConfig: {
|
|
|
|
|
+ // sbdjym: { t_sbdj: [] }, //设备登记
|
|
|
|
|
+ // sbyzjl: { t_sbys: [] }, //设备验收
|
|
|
|
|
+ // sbhcjl: { t_sbhcjlb: [] },//设备核查
|
|
|
|
|
+ // gdzcbfsqb: { t_gdzcbfsqb: [] }, //报废申请
|
|
|
|
|
+ mjsbwxqrbd: { t_mjsbwxqrb: [] }, //维修记录
|
|
|
|
|
+ mjyqsbwxsqbd: { t_mjyqsbwxsqb: [] }, //维修申请表
|
|
|
|
|
+ // yqsbwhjl: { t_yqsbwhjlfb: [] }, //维护记录表
|
|
|
|
|
+ },
|
|
|
|
|
+ listConfig: {
|
|
|
|
|
+ toolbars: [
|
|
|
|
|
+ { key: 'search' },
|
|
|
|
|
+ // { key: 'resetSearch' }
|
|
|
|
|
+ ],
|
|
|
|
|
+ searchForm: {
|
|
|
|
|
+ forms: [
|
|
|
|
|
+ { prop: 'Q^subject_^SL', label: '关键字:', width: 125 },
|
|
|
|
|
+ /* { prop: 'Q^proc_def_name_^SL', label: '任务名称' }, */
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: ['Q^create_Time_^DL', 'Q^create_Time_^DG'],
|
|
|
|
|
+ // label: '完成年度:',
|
|
|
|
|
+ // fieldType: 'daterange',
|
|
|
|
|
+ // },
|
|
|
|
|
+ /* {
|
|
|
|
|
+ prop: 'Q^status_^S',
|
|
|
|
|
+ label: '任务状态',
|
|
|
|
|
+ fieldType: 'select',
|
|
|
|
|
+ options: searchOptions
|
|
|
|
|
+ } */
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ // 表格字段配置
|
|
|
|
|
+ columns: [
|
|
|
|
|
+ /* { prop: 'subject', label: '任务标题', link: 'dialog', width: 250 }, */
|
|
|
|
|
+ { prop: 'tYear', label: '年份', width: 58 },
|
|
|
|
|
+ { prop: 'tDept', label: '部门', width: 250 },
|
|
|
|
|
+ { prop: 'procDefName', label: '表单名称', width: 250 },
|
|
|
|
|
+ { prop: 'number', label: '设备编号', width: 250, fieldType: 'slot', slotName: "facilityNumber" },
|
|
|
|
|
+ { prop: 'facility', label: '设备名称', width: 180, fieldType: 'slot', slotName: "facilitySlot" },
|
|
|
|
|
+ { prop: 'tUser', label: '编制人', width: 80 },
|
|
|
|
|
+ { prop: 'endTime', label: '完成时间', sortable: 'custom', dateFormat: 'yyyy-MM-dd', width: 150 },
|
|
|
|
|
+ ],
|
|
|
|
|
+ rowHandle: {
|
|
|
|
|
+ actions: [/* {
|
|
|
|
|
+ key: 'detail',label:"内容及附件"
|
|
|
|
|
+ } */],
|
|
|
|
|
+ effect: 'display',
|
|
|
|
|
+ width: '100'//固定按钮
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ created() {
|
|
|
|
|
+ this.loadData()
|
|
|
|
|
+ },
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ // 加载数据
|
|
|
|
|
+ loadData() {
|
|
|
|
|
+ this.loading = true
|
|
|
|
|
+ queryPageList(this.getSearcFormData()).then(response => {
|
|
|
|
|
+ let data = response.data.dataResult
|
|
|
|
|
+ // console.log('csnz',data,'\n')
|
|
|
|
|
+ for (let i in data) {
|
|
|
|
|
+ let dept, user, tName, tYear
|
|
|
|
|
+ let arr = this.getParenthesesStr(data[i].subject)
|
|
|
|
|
+ if (arr.length == 4) { //如果是年度计划, 标题编辑中取年份, 去除默认给与的年份
|
|
|
|
|
+ data[i]['tYear'] = arr[0]
|
|
|
|
|
+ data[i]['tDept'] = arr[2]
|
|
|
|
|
+ data[i]['tUser'] = arr[3]
|
|
|
|
|
+ } else if (arr.length > 1) {
|
|
|
|
|
+ data[i]['tYear'] = arr[0]
|
|
|
|
|
+ data[i]['tDept'] = arr[1]
|
|
|
|
|
+ data[i]['tUser'] = arr[2]
|
|
|
|
|
+ }
|
|
|
|
|
+ /* 增加表单归类判断 -- */
|
|
|
|
|
+ let reData = this.dataConfig[data[i].formKey]
|
|
|
|
|
+ if (reData) {
|
|
|
|
|
+ reData[Object.keys(reData)[0]].push({ id_: data[i].bizKey })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ /* 新增*/
|
|
|
|
|
+ // console.log(this.dataConfig)
|
|
|
|
|
+ this.getConfigId(this.dataConfig, response.data)
|
|
|
|
|
+ // console.log(this.dataConfig)
|
|
|
|
|
+ /* -0---------------*/
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ this.loading = false
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ getParenthesesStr(text) {
|
|
|
|
|
+ let result = ''
|
|
|
|
|
+ if (!text) return result
|
|
|
|
|
+ let regex = /\((.+?)\)/g;
|
|
|
|
|
+ let options = text.match(regex)
|
|
|
|
|
+ if (options) {
|
|
|
|
|
+ let option = options[0]
|
|
|
|
|
+ if (option) {
|
|
|
|
|
+ result = option.substring(1, option.length - 1)
|
|
|
|
|
+ }
|
|
|
|
|
+ if (options[1]) {
|
|
|
|
|
+ let yersOption = options[1]
|
|
|
|
|
+ if (yersOption) {
|
|
|
|
|
+ result = result + '/' + yersOption.substring(1, yersOption.length - 1)
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return result.split('/')
|
|
|
|
|
+ },
|
|
|
|
|
+ /* 各个设备表*/
|
|
|
|
|
+ mjsbwxqrbd(cont, data) {
|
|
|
|
|
+ // console.log('1',cont,data)
|
|
|
|
|
+ for (let i in data) {
|
|
|
|
|
+ if (data[i].bizKey == cont.id_) {
|
|
|
|
|
+ data[i]["facility"] = cont.she_bei_ming_chen
|
|
|
|
|
+ data[i]["number"] = cont.she_bei_bian_hao_
|
|
|
|
|
+ console.log(cont.she_bei_bian_hao_ + " : "+ cont.she_bei_ming_chen)
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ mjyqsbwxsqbd(cont, data) {
|
|
|
|
|
+ // console.log('2',cont,data)
|
|
|
|
|
+ for (let i in data) {
|
|
|
|
|
+ if (data[i].bizKey == cont.id_) {
|
|
|
|
|
+ data[i]["facility"] = cont.she_bei_ming_chen
|
|
|
|
|
+ data[i]["number"] = cont.she_bei_b_h_id_
|
|
|
|
|
+ console.log(cont.she_bei_b_h_id_ + " : "+ cont.she_bei_ming_chen)
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ // sbdjym(cont, data) {
|
|
|
|
|
+ // console.log('1',cont)
|
|
|
|
|
+ // for (let i in data) {
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["facility"] = cont.id_
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["number"] = cont.id_
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
|
|
+ // sbyzjl(cont, data) {
|
|
|
|
|
+ // console.log('2',cont)
|
|
|
|
|
+ // for (let i in data) {
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["facility"] = cont.yi_qi_ming_cheng_
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["number"] = cont.yi_qi_ming_cheng_
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
|
|
+ // sbhcjl(cont, data) {
|
|
|
|
|
+ // console.log('3',cont)
|
|
|
|
|
+ // for (let i in data) {
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["facility"] = cont.yi_qi_ming_cheng_
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["number"] = cont.yi_qi_ming_cheng_
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
|
|
+ // gdzcbfsqb(cont, data) {
|
|
|
|
|
+ // console.log('4',cont)
|
|
|
|
|
+ // for (let i in data) {
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["facility"] = cont.xuan_ze_she_bei_
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["number"] = cont.xuan_ze_she_bei_
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
|
|
+ // mjsbwxqrbd(cont, data) {
|
|
|
|
|
+ // console.log('9995',cont)
|
|
|
|
|
+ // for (let i in data) {
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["facility"] = cont.she_bei_ming_chen
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["number"] = cont.she_bei_ming_chen
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
|
|
+ // sbwxsq(cont, data) {
|
|
|
|
|
+ // console.log('6',cont)
|
|
|
|
|
+ // for (let i in data) {
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["facility"] = cont.she_bei_ming_chen
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["number"] = cont.she_bei_ming_chen
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
|
|
+ // yqsbwhjl(cont, data) {
|
|
|
|
|
+ // console.log('7',cont)
|
|
|
|
|
+ // for (let i in data) {
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["facility"] = cont.yi_qi_she_bei_min
|
|
|
|
|
+ // if (data[i].bizKey == cont.id_) data[i]["number"] = cont.yi_qi_she_bei_min
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取格式化参数
|
|
|
|
|
+ */
|
|
|
|
|
+ getSearcFormData() {
|
|
|
|
|
+ const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
|
|
|
|
|
+
|
|
|
|
|
+ if (this.$utils.isNotEmpty(this.typeId)) {
|
|
|
|
|
+ params['Q^TYPE_ID_^S'] = this.typeId
|
|
|
|
|
+ }
|
|
|
|
|
+ params['Q^status_^S'] = "end"
|
|
|
|
|
+ let cont = ActionUtils.formatParams(
|
|
|
|
|
+ params,
|
|
|
|
|
+ this.pagination,
|
|
|
|
|
+ this.sorts)
|
|
|
|
|
+
|
|
|
|
|
+ /* cont.parameters.push({
|
|
|
|
|
+ "parameters": [
|
|
|
|
|
+ {
|
|
|
|
|
+ "parameters": [
|
|
|
|
|
+ {
|
|
|
|
|
+ "key": "Q^proc_Def_Key_^NE",
|
|
|
|
|
+ "value": "Process_08hbmhs",
|
|
|
|
|
+ "param": "name"
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "parameters": [
|
|
|
|
|
+ {
|
|
|
|
|
+ "key": "Q^proc_Def_Key_^NE",
|
|
|
|
|
+ "value": "Process_0xlaidt",
|
|
|
|
|
+ "param": "name1"
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "parameters": [
|
|
|
|
|
+ {
|
|
|
|
|
+ "key": "Q^proc_Def_Key_^NE",
|
|
|
|
|
+ "value": "Process_0ocg0f1",
|
|
|
|
|
+ "param": "name2"
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }) */
|
|
|
|
|
+ return cont
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 处理分页事件
|
|
|
|
|
+ */
|
|
|
|
|
+ handlePaginationChange(page) {
|
|
|
|
|
+ ActionUtils.setPagination(this.pagination, page)
|
|
|
|
|
+ this.loadData()
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 处理排序
|
|
|
|
|
+ */
|
|
|
|
|
+ handleSortChange(sort) {
|
|
|
|
|
+ ActionUtils.setSorts(this.sorts, sort)
|
|
|
|
|
+ this.loadData()
|
|
|
|
|
+ },
|
|
|
|
|
+ handleLinkClick(data, columns) {
|
|
|
|
|
+ this.handleEdit(data.id)
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询
|
|
|
|
|
+ */
|
|
|
|
|
+ search() {
|
|
|
|
|
+ this.loadData()
|
|
|
|
|
+ },
|
|
|
|
|
+ /* 防止多次快速查询*/
|
|
|
|
|
+ numbersClick() {
|
|
|
|
|
+ this.isDisable = true
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.isDisable = false
|
|
|
|
|
+ }, 600)
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 处理按钮事件
|
|
|
|
|
+ */
|
|
|
|
|
+ handleAction(command, position, selection, data) {
|
|
|
|
|
+ switch (command) {
|
|
|
|
|
+ case 'search':// 查询
|
|
|
|
|
+ ActionUtils.setFirstPagination(this.pagination)
|
|
|
|
|
+ this.search()
|
|
|
|
|
+ break
|
|
|
|
|
+ // case 'resetSearch':
|
|
|
|
|
+ // this.typeId = ''
|
|
|
|
|
+ // this.tableTitle = ''
|
|
|
|
|
+ // this.search()
|
|
|
|
|
+ // break
|
|
|
|
|
+ case 'remove':
|
|
|
|
|
+ let str = ""
|
|
|
|
|
+ selection.forEach((item, index) => {
|
|
|
|
|
+ if (index == 0) {
|
|
|
|
|
+ str += item
|
|
|
|
|
+ } else {
|
|
|
|
|
+ str += "," + item
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ let data = {}
|
|
|
|
|
+ data['tableName'] = "ibps_bpm_inst_his"
|
|
|
|
|
+ data['paramWhere'] = "{id_:'" + str + "'}"
|
|
|
|
|
+ let this_ = this
|
|
|
|
|
+ curdPost('batchDelete', data).then(response => {
|
|
|
|
|
+ this_.$message({
|
|
|
|
|
+ message: '删除成功!',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ })
|
|
|
|
|
+ this.search()
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ break
|
|
|
|
|
+
|
|
|
|
|
+ case 'detail':// 明细
|
|
|
|
|
+ ActionUtils.selectedRecord(selection).then((id) => {
|
|
|
|
|
+ this.handleEdit(id)
|
|
|
|
|
+ this.title = '信息'
|
|
|
|
|
+ }).catch(() => { })
|
|
|
|
|
+ break
|
|
|
|
|
+ default:
|
|
|
|
|
+ break
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ handleNodeClick(typeId, typeName) {
|
|
|
|
|
+ this.tableTitle = typeName.name
|
|
|
|
|
+ this.typeId = typeId
|
|
|
|
|
+ this.loadData()
|
|
|
|
|
+ },
|
|
|
|
|
+ handleExpandCollapse(isExpand) {
|
|
|
|
|
+ this.width = isExpand ? 230 : 30
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 处理编辑
|
|
|
|
|
+ */
|
|
|
|
|
+ handleEdit(id = '') {
|
|
|
|
|
+ this.instanceId = id
|
|
|
|
|
+ this.dialogFormVisible = true
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</script>
|
|
|
|
|
+<style lang="scss" >
|
|
|
|
|
+.js-custom-dialog {
|
|
|
|
|
+ .el-dialog__body {
|
|
|
|
|
+ height: calc(100vh) !important;
|
|
|
|
|
+ margin: -9px !important;
|
|
|
|
|
+ padding: 0px !important;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .el-dialog__header {
|
|
|
|
|
+ padding: 0px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .el-dialog__headerbtn i {
|
|
|
|
|
+ font-size: 28px;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ background-color: #FFFFFF;
|
|
|
|
|
+ border-radius: 8px;
|
|
|
|
|
+ margin-top: -8px;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|
|
|
|
|
+<style>
|
|
|
|
|
+.main-container .div_test {
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.main-container .el-popover.popverClass {
|
|
|
|
|
+ .div_content {
|
|
|
|
|
+ .content_checkbox {
|
|
|
|
|
+ .el-checkbox-group {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ z-index: 999;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ z-index: 999;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .content_butts {
|
|
|
|
|
+ z-index: 999;
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: flex-end;
|
|
|
|
|
+
|
|
|
|
|
+ .el-button {
|
|
|
|
|
+ padding: 7px 14px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|