代码格式化,没有做任何改动,现在的代码看着太乱了

This commit is contained in:
yanyizhou
2021-11-27 11:34:17 +08:00
parent 87814496cc
commit a9663b2a3b
@@ -207,7 +207,8 @@
width="150"
>
<template slot-scope="scope">
<a v-if="scope.row.standYear && textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" class="table-jump" style="color: #F56C6C"
<a v-if="scope.row.standYear && textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'"
class="table-jump" style="color: #F56C6C"
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
scope.row.standNumber
}}-{{ scope.row.standYear }}</a>
@@ -227,8 +228,12 @@
min-width="300"
>
<template slot-scope="scope">
<a v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" @click="handlePreview(scope.row)" class="table-jump" style="color: #F56C6C">{{ scope.row.standName }}</a>
<a v-else @click="handlePreview(scope.row)" style="color: #333333" class="table-jump">{{ scope.row.standName }}</a>
<a v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'"
@click="handlePreview(scope.row)" class="table-jump" style="color: #F56C6C">{{
scope.row.standName
}}</a>
<a v-else @click="handlePreview(scope.row)" style="color: #333333"
class="table-jump">{{ scope.row.standName }}</a>
</template>
</el-table-column>
<el-table-column
@@ -237,7 +242,9 @@
width="120"
label="发布日期">
<template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ formatIssueDate(scope.row.issueTime) }}</span>
<span
v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'"
style="color: #F56C6C">{{ formatIssueDate(scope.row.issueTime) }}</span>
<span v-else>{{ formatIssueDate(scope.row.issueTime) }}</span>
</template>
</el-table-column>
@@ -248,7 +255,9 @@
label="实施日期">
<template slot-scope="scope">
<!-- {{ formatIssueDate(scope.row.putTime) }}-->
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }}</span>
<span
v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'"
style="color: #F56C6C">{{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }}</span>
<span v-else>{{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }}</span>
</template>
@@ -260,7 +269,9 @@
width="150"
label="新车型实施日期">
<template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-' }}</span>
<span
v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'"
style="color: #F56C6C">{{ scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-' }}</span>
<span v-else>{{ scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-' }}</span>
</template>
</el-table-column>
@@ -270,7 +281,9 @@
width="150"
label="在产车实施日期">
<template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-' }}</span>
<span
v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'"
style="color: #F56C6C">{{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-' }}</span>
<span v-else>{{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-' }}</span>
</template>
</el-table-column>
@@ -285,7 +298,9 @@
<!-- </el-tooltip>-->
<!-- </template>-->
<template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
<span
v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'"
style="color: #F56C6C">{{
textStatusMap[scope.row.textStatus]
}}</span>
<span v-else>{{ textStatusMap[scope.row.textStatus] }}</span>
@@ -296,7 +311,8 @@
label="操作" align="center" width="50"
>
<template slot-scope="scope">
<div v-if="isPermission('cac1eb379eb8e3b987cbb2e4599adb50,247cebaefa7cf1683092af160af11502,dbaf9df2990a595c8abea28e68b1a681') == 1"
<div
v-if="isPermission('cac1eb379eb8e3b987cbb2e4599adb50,247cebaefa7cf1683092af160af11502,dbaf9df2990a595c8abea28e68b1a681') == 1"
@command="handleCommand"
>
<el-button type="text" v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"
@@ -320,45 +336,46 @@
<div v-else>
<div @click.stop style="display: inline-block">
<el-dropdown trigger="click" @command="handleCommand">
<!-- <i class="iconfont">&#xe61e;</i>-->
<el-button title="收藏" class="collection-btn" icon="el-icon-star-off" v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"
<!-- <i class="iconfont">&#xe61e;</i>-->
<el-button title="收藏" class="collection-btn" icon="el-icon-star-off"
v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"
v-if="scope.row.collectBtn"
@click="handleCommand([scope.row, '收藏'])"
>
</el-button>
<el-button title="取消收藏" class="collection-btn" icon="el-icon-star-off" style="color: #f56c6c;" v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"
<el-button title="取消收藏" class="collection-btn" icon="el-icon-star-off" style="color: #f56c6c;"
v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"
v-else
@click="handleCommand([scope.row, '取消收藏'])"
>
</el-button>
<!-- <el-dropdown-menu slot="dropdown">-->
<!-- <el-dropdown-item v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"-->
<!-- v-if="scope.row.collectBtn"-->
<!-- :command="[scope.row, '收藏']"-->
<!-- >-->
<!-- 收藏-->
<!-- </el-dropdown-item>-->
<!-- <el-dropdown-item v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"-->
<!-- v-else-->
<!-- :command="[scope.row, '取消收藏']"-->
<!-- >-->
<!-- 取消收藏-->
<!-- </el-dropdown-item>-->
<!-- <el-dropdown-item :command="[scope.row, '编辑']"-->
<!-- v-btn-permission="'247cebaefa7cf1683092af160af11502'">编辑-->
<!-- </el-dropdown-item>-->
<!-- &lt;!&ndash; <el-dropdown-item :command="[scope.row, '分享']" v-btn-permission="'ce4ec1bb233314d2ad8740d0aa98aca1'">分享</el-dropdown-item>&ndash;&gt;-->
<!-- <el-dropdown-item :command="[scope.row, '删除']"-->
<!-- v-btn-permission="'dbaf9df2990a595c8abea28e68b1a681'">删除-->
<!-- </el-dropdown-item>-->
<!-- </el-dropdown-menu>-->
<!-- <el-dropdown-menu slot="dropdown">-->
<!-- <el-dropdown-item v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"-->
<!-- v-if="scope.row.collectBtn"-->
<!-- :command="[scope.row, '收藏']"-->
<!-- >-->
<!-- 收藏-->
<!-- </el-dropdown-item>-->
<!-- <el-dropdown-item v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'"-->
<!-- v-else-->
<!-- :command="[scope.row, '取消收藏']"-->
<!-- >-->
<!-- 取消收藏-->
<!-- </el-dropdown-item>-->
<!-- <el-dropdown-item :command="[scope.row, '编辑']"-->
<!-- v-btn-permission="'247cebaefa7cf1683092af160af11502'">编辑-->
<!-- </el-dropdown-item>-->
<!-- &lt;!&ndash; <el-dropdown-item :command="[scope.row, '分享']" v-btn-permission="'ce4ec1bb233314d2ad8740d0aa98aca1'">分享</el-dropdown-item>&ndash;&gt;-->
<!-- <el-dropdown-item :command="[scope.row, '删除']"-->
<!-- v-btn-permission="'dbaf9df2990a595c8abea28e68b1a681'">删除-->
<!-- </el-dropdown-item>-->
<!-- </el-dropdown-menu>-->
</el-dropdown>
</div>
</div>
</template>
</el-table-column>
</el-table>
</div>
@@ -681,7 +698,7 @@
:disabled="formdisableflag"
></custom-textarea>
</template>
<!-- 起草单位-->
<!-- 起草单位-->
<template v-else-if="field.attrType === 'SEL_OPTION'">
<template>
<custom-select
@@ -1188,7 +1205,8 @@
:type="'car'"
:urlChild="urlChild"
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs" @popoverHideCancel="popoverHideBusVsCancel"></tree-select-new>
:nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs"
@popoverHideCancel="popoverHideBusVsCancel"></tree-select-new>
<tree-select-new
width="500"
:lazy=true
@@ -1200,7 +1218,8 @@
:type="'truck'"
:urlChild="urlChild"
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel()"></tree-select-new>
:nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs"
@popoverHideCancel="popoverHideCarVsCancel()"></tree-select-new>
<tree-select-new
width="500"
:lazy=true
@@ -1211,7 +1230,8 @@
:url="url"
:urlChild="urlChild"
:defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3"
:nodeKey="nodeKeyModel" @popoverHide="popoverHideModel" @popoverHideCancel="popoverHideModelCancel()"></tree-select-new>
:nodeKey="nodeKeyModel" @popoverHide="popoverHideModel"
@popoverHideCancel="popoverHideModelCancel()"></tree-select-new>
<!-- 导入失败-->
<el-dialog :visible.sync="importFailed" :close-on-click-modal="false" width="400px">
<p slot="title" style="color:#f60">
@@ -1452,13 +1472,15 @@
<el-col :span="12">
<!-- 标准号-->
<el-form-item :label="$t('m.standardNo')" class="add-form-item form-item-disabled">
<el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable
<el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')"
clearable
:maxlength="100"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!-- 标准名称-->
<el-form-item :label="$t('m.standName')" class="add-form-item form-item-disabled">
<el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable
<el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')"
clearable
:maxlength="500"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
@@ -1471,7 +1493,8 @@
</el-form-item>
<!-- 文本状态-->
<el-form-item :label="$t('m.standStateShow')" class="add-form-item form-item-disabled">
<el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')" clearable
<el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')"
clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in standStateOptions" :value="opt.value === undefined ? '' :opt.value"
:key="opt.value" :label="opt.label">{{ opt.label }}
@@ -1482,7 +1505,8 @@
<el-form-item label="体系类别" class="add-form-item form-item-disabled">
<el-select v-model="advanceSearchMapping.TXLB" placeholder="根据体系类别查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in txlbOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
<el-option v-for="opt in txlbOptions" :value="opt.value === undefined ? '' :opt.value"
:key="opt.value"
:label="opt.label">{{ opt.label }}
</el-option>
</el-select>
@@ -1499,7 +1523,8 @@
clearable/>
</el-form-item>
<!-- 标准英文名称-->
<el-form-item :label="$t('m.standardEnglishName')" :title="$t('m.standardEnglishName')" class="add-form-item form-item-disabled">
<el-form-item :label="$t('m.standardEnglishName')" :title="$t('m.standardEnglishName')"
class="add-form-item form-item-disabled">
<el-input v-model="sarStandardsSearch.standEnName"
:placeholder="$t('m.searchAccordingToStandardEnglishName')" clearable :maxlength="500"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
@@ -1590,7 +1615,8 @@
<el-form-item label="我司参与深度" class="add-form-item form-item-disabled">
<el-select v-model="advanceSearchMapping.CYSD" placeholder="请选择我司参与深度" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in cysdOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
<el-option v-for="opt in cysdOptions" :value="opt.value === undefined ? '' :opt.value"
:key="opt.value"
:label="opt.label">{{ opt.label }}
</el-option>
</el-select>
@@ -1609,7 +1635,8 @@
<el-form-item label="适用认证" class="add-form-item form-item-disabled">
<el-select v-model="advanceSearchMapping.SYRZ" placeholder="根据适用认证查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in syrzOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
<el-option v-for="opt in syrzOptions" :value="opt.value === undefined ? '' :opt.value"
:key="opt.value"
:label="opt.label">{{ opt.label }}
</el-option>
</el-select>
@@ -1618,25 +1645,29 @@
<el-form-item label="责任工程师" class="add-form-item form-item-disabled">
<el-select v-model="advanceSearchMapping.ZRGCS" placeholder="根据责任工程师查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in zrgcsOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
<el-option v-for="opt in zrgcsOptions" :value="opt.value === undefined ? '' :opt.value"
:key="opt.value"
:label="opt.label">{{ opt.label }}
</el-option>
</el-select>
</el-form-item>
<!-- 关联模块--乘用车VPPS编码-->
<el-form-item title="关联模块--乘用车VPPS编码" label=" 关联模块--乘用车VPPS编码" prop="standNumber" class="add-form-item form-item-disabled">
<el-form-item title="关联模块--乘用车VPPS编码" label=" 关联模块--乘用车VPPS编码" prop="standNumber"
class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.CYCVPPSBM" clearable
placeholder=" 关联模块--乘用车VPPS编码"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!-- 关联模块--乘用车vpps中文名称-->
<el-form-item title="关联模块--乘用车vpps中文名称" label="关联模块--乘用车vpps中文名称" prop="standNumber" class="add-form-item form-item-disabled">
<el-form-item title="关联模块--乘用车vpps中文名称" label="关联模块--乘用车vpps中文名称" prop="standNumber"
class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.CYCVPPSCN" clearable
placeholder="关联模块--乘用车vpps中文名称"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!--关联模块--卡车VPPS编码-->
<el-form-item title="关联模块--卡车VPPS编码" label="关联模块--卡车VPPS编码" prop="standNumber" class="add-form-item form-item-disabled">
<el-form-item title="关联模块--卡车VPPS编码" label="关联模块--卡车VPPS编码" prop="standNumber"
class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.KCCVPPSBM" clearable
placeholder="关联模块--卡车VPPS编码"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
@@ -1648,7 +1679,8 @@
<el-form-item label="起草单位" class="add-form-item form-item-disabled">
<el-select v-model="advanceSearchMapping.QCDW" placeholder="根据起草单位查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in qcdwOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
<el-option v-for="opt in qcdwOptions" :value="opt.value === undefined ? '' :opt.value"
:key="opt.value"
:label="opt.label">{{ opt.label }}
</el-option>
</el-select>
@@ -1657,7 +1689,8 @@
<el-form-item label="能源类型" class="add-form-item form-item-disabled">
<el-select v-model="advanceSearchMapping.NYLX" placeholder="请选择能源类型" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in nylxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
<el-option v-for="opt in nylxOptions" :value="opt.value === undefined ? '' :opt.value"
:key="opt.value"
:label="opt.label">{{ opt.label }}
</el-option>
</el-select>
@@ -1667,7 +1700,8 @@
<el-select v-model="advanceSearchMapping.SYCPX" :placeholder="$t('m.searchByApplicableProductLine')"
clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in sycpxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
<el-option v-for="opt in sycpxOptions" :value="opt.value === undefined ? '' :opt.value"
:key="opt.value"
:label="opt.label">{{ opt.label }}
</el-option>
</el-select>
@@ -1676,13 +1710,15 @@
<el-form-item label="责任部门" class="add-form-item form-item-disabled">
<el-select v-model="advanceSearchMapping.ZRBM" placeholder="根据责任部门查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in zrbmOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
<el-option v-for="opt in zrbmOptions" :value="opt.value === undefined ? '' :opt.value"
:key="opt.value"
:label="opt.label">{{ opt.label }}
</el-option>
</el-select>
</el-form-item>
<!--关联模块--卡车vpps中文名称-->
<el-form-item title="关联模块--卡车vpps中文名称" label="关联模块--卡车vpps中文名称" prop="standNumber" class="add-form-item form-item-disabled">
<el-form-item title="关联模块--卡车vpps中文名称" label="关联模块--卡车vpps中文名称" prop="standNumber"
class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.KCCVPPSCN" clearable
placeholder="关联模块--卡车vpps中文名称"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
@@ -1698,7 +1734,8 @@
<el-col :span="12">
<!-- 代替标准号-->
<el-form-item :label="$t('m.substituteStandardNumber')" class="add-form-item form-item-disabled">
<el-input v-model="sarStandardsSearch.replaceStandNum" :placeholder="$t('m.lookUpByAlternativeCriteria')"
<el-input v-model="sarStandardsSearch.replaceStandNum"
:placeholder="$t('m.lookUpByAlternativeCriteria')"
clearable :maxlength="100"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
@@ -1787,7 +1824,8 @@
<div class="OCRstandardForComments">
<div class="content" style="height: calc(100% - 57px);">
<div class="table-wrap">
<div style="position: absolute; margin: 10px 10px 10px 0px; height: calc(100% - 120px); width: calc(100% - 20px);">
<div
style="position: absolute; margin: 10px 10px 10px 0px; height: calc(100% - 120px); width: calc(100% - 20px);">
<el-table
ref="OCRselections"
:data="OCRData"
@@ -1812,7 +1850,7 @@
label="文本状态"
align="center">
<template slot-scope="scope">
<div>{{setWBType(scope.row.standFileClassify)}}</div>
<div>{{ setWBType(scope.row.standFileClassify) }}</div>
</template>
</el-table-column>
</el-table>
@@ -1830,31 +1868,31 @@
</template>
<script>
import store from '@/store'
import CustomInputForStandards from '@/components/CustomFormComponents/InputForStandards'
import CustomInput from '@/components/CustomFormComponents/Input'
import CustomTextarea from '@/components/CustomFormComponents/Textarea'
import CustomSearchSelect from '@/components/CustomFormComponents/SearchSelect'
import CustomSelect from '@/components/CustomFormComponents/Select'
import CustomDatePick from '@/components/CustomFormComponents/DatePicker'
import CustomFile from '@/components/CustomFormComponents/File'
import CustomInputNum from '@/components/CustomFormComponents/InputNum'
import CustomDatePickGroup from '@/components/CustomFormComponents/DatePickerGroup'
import CustomSelectArray from '@/components/CustomFormComponents/SelectArray'
import CustomOrg from '@/components/CustomFormComponents/OrgTree'
import CustomEopDatePick from '@/components/CustomFormComponents/DatePickerWithText'
import CustomDatePickWithText, {formatText} from '@/components/CustomFormComponents/DatePickerGroupWithText'
import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
import MechanismTree from '@/components/mechanismTree'
import CustomDatePickWithText2 from '@/components/CustomFormComponents/DatePickerWithText2'
import {interfaceUrl} from '@/sysConfig'
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
import store from '@/store'
import CustomInputForStandards from '@/components/CustomFormComponents/InputForStandards'
import CustomInput from '@/components/CustomFormComponents/Input'
import CustomTextarea from '@/components/CustomFormComponents/Textarea'
import CustomSearchSelect from '@/components/CustomFormComponents/SearchSelect'
import CustomSelect from '@/components/CustomFormComponents/Select'
import CustomDatePick from '@/components/CustomFormComponents/DatePicker'
import CustomFile from '@/components/CustomFormComponents/File'
import CustomInputNum from '@/components/CustomFormComponents/InputNum'
import CustomDatePickGroup from '@/components/CustomFormComponents/DatePickerGroup'
import CustomSelectArray from '@/components/CustomFormComponents/SelectArray'
import CustomOrg from '@/components/CustomFormComponents/OrgTree'
import CustomEopDatePick from '@/components/CustomFormComponents/DatePickerWithText'
import CustomDatePickWithText, {formatText} from '@/components/CustomFormComponents/DatePickerGroupWithText'
import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
import MechanismTree from '@/components/mechanismTree'
import CustomDatePickWithText2 from '@/components/CustomFormComponents/DatePickerWithText2'
import {interfaceUrl} from '@/sysConfig'
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
export default {
export default {
name: 'domesticStandardsAndRegulations',
components: {
CustomFile,
@@ -2007,7 +2045,7 @@
validFlag: '0',
standSort: '',
standNumber: '',
standName:''
standName: ''
},
defaultCheckedKeys1: [],
defaultCheckedKeys2: [],
@@ -2578,7 +2616,7 @@
}
},
methods: {
setWBType (type) {
setWBType(type) {
let text = ''
for (let a = 0; a < this.OCRoptions.length; a++) {
if (this.OCRoptions[a].attrField === type) {
@@ -2587,14 +2625,14 @@
}
return text
},
selectOCRChange (val) {
selectOCRChange(val) {
this.OCRDatas = val
},
OCRclose () {
OCRclose() {
this.OCRData = []
this.OCRModel = false
},
OCRsubmit () {
OCRsubmit() {
if (this.OCRDatas.length > 1) {
this.$message.warning('仅能选择一个文件')
} else if (this.OCRDatas.length === 0) {
@@ -2618,7 +2656,8 @@
this.OCRModel = false
if (res.ok) {
this.$message.success('OCR实别成功')
} else {}
} else {
}
},
(e) => {
}
@@ -2635,22 +2674,23 @@
this.OCRModel = false
if (res.ok) {
this.$message.success('拆分成功')
} else {}
} else {
}
}, e => {
})
}
}
},
OCRAdd (type) {
OCRAdd(type) {
let text = ''
this.OCRType = type
if (type === '0') {
text = 'OCR识别'
this.OCRTitle = '选择OCR实别文件'
} else if(type === '1') {
} else if (type === '1') {
text = '拆分'
this.OCRTitle = '选择拆分文件'
}else if(type === '2') {
} else if (type === '2') {
text = '编辑'
this.OCRTitle = '选择编辑文件'
}
@@ -2664,7 +2704,7 @@
this.$http.get('lawss/sarStandFile/queryFileInfoNew', {
type: type,
standId: this.selectedList[0]
},{
}, {
_this: this
}, res => {
this.OCRLoading = false
@@ -2677,32 +2717,32 @@
}
}
})
} else if (this.ocrList.length === 1 && type === '2'){
} else if (this.ocrList.length === 1 && type === '2') {
this.selectStandardPro(this.ocrList[0], 'edit')
}
},
// 左右拖动事件
dragControllerLR: function() {
dragControllerLR: function () {
var resize = document.getElementById("resize");
var left = document.getElementById("left");
var right = document.getElementById("right");
var box = document.getElementById("domesticStandardDatabase");
resize.onmousedown = function(e){
resize.onmousedown = function (e) {
var startX = e.clientX;
resize.left = resize.offsetLeft;
document.onmousemove = function(e){
document.onmousemove = function (e) {
var endX = e.clientX;
var moveLen = resize.left + (endX - startX);
var maxT = box.clientWidth - resize.offsetWidth;
if(moveLen<150) moveLen = 150;
if(moveLen>maxT-150) moveLen = maxT-150;
if (moveLen < 150) moveLen = 150;
if (moveLen > maxT - 150) moveLen = maxT - 150;
resize.style.left = moveLen;
left.style.width = moveLen + "px";
right.style.width = (box.clientWidth - moveLen - 5) + "px";
}
document.onmouseup = function(evt){
document.onmouseup = function (evt) {
document.onmousemove = null;
document.onmouseup = null;
resize.releaseCapture && resize.releaseCapture();
@@ -2711,15 +2751,15 @@
return false;
}
},
isPermission (value) {
isPermission(value) {
let hasCount = 0
let set =new Set( value.split(","))
let set = new Set(value.split(","))
let menuList = store.getters.getMenuList
if (menuList === '') {
return hasCount
} else {
menuList.map((menu) => {
if ( set.has(menu.id)|| value === undefined || value === '') {
if (set.has(menu.id) || value === undefined || value === '') {
hasCount++
}
})
@@ -3983,7 +4023,7 @@
} else {
this.sarStandardsSearch.page = page
}
this.standCommonlySearch.page=page
this.standCommonlySearch.page = page
this.getDomesticStandardTable(this.standCommonlySearch)
},
// 分页每页显示数改变后方法
@@ -5286,7 +5326,7 @@
},
drawerCheckZRBM(data) {
console.log("data",data);
console.log("data", data);
let idList = ''
let nameList = ''
data.forEach(item => {
@@ -5397,83 +5437,92 @@
this.searchInlandNodes = []
this.orgData = []
}
}
}
</script>
<style lang="less" scoped>
/deep/ .el-table--scrollable-x .el-table__body-wrapper {
/deep/ .el-table--scrollable-x .el-table__body-wrapper {
overflow-x: scroll;
}
.OCRstandardForComments {
}
.OCRstandardForComments {
height: 100%;
}
#left{
width:calc(30% - 5px);
height:100%;
float:left;
}
}
#resize{
width:5px;
height:100%;
#left {
width: calc(30% - 5px);
height: 100%;
float: left;
}
#resize {
width: 5px;
height: 100%;
cursor: w-resize;
float:left;
}
float: left;
}
#right{
float:right;
width:70%;
height:100%;
}
/deep/.contentTitle{
#right {
float: right;
width: 70%;
height: 100%;
}
/deep/ .contentTitle {
width: 100%;
}
/deep/.el-drawer__container {
}
/deep/ .el-drawer__container {
.prc-content-border {
/*border: none;*/
width: 100%;
padding: 0 20px 0;
}
}
/deep/ .icon-tree {
}
/deep/ .icon-tree {
margin: 0 5px 0 10px;
position: relative;
background: url('~@/assets/images/shangqi/img/tree-add.png');
background-size: 100% 100%;
}
}
/deep/ .expanded {
/deep/ .expanded {
background: url('~@/assets/images/shangqi/img/tree-sub.png');
background-size: 100% 100%;
}
}
/deep/ .is-leaf {
/deep/ .is-leaf {
background-image: none;
background-size: 100% 100%;
}
}
/deep/ .is-leaf-none {
/deep/ .is-leaf-none {
position: relative;
display: inline-block;
width: 15px;
height: 15px;
background: url('~@/assets/images/shangqi/img/none-file.png');
background-size: 100% 100%;
}
/deep/ .is-show {
}
/deep/ .is-show {
position: relative;
display: inline-block;
width: 15px;
height: 15px;
background: url('~@/assets/images/shangqi/img/tree.png');
background-size: 100% 100%;
}
#domesticStandardDatabase{
}
#domesticStandardDatabase {
height: 100%;
.content {
height: calc(~'100% - 105px - 56px')
}
}
/deep/ .tree-line {
}
/deep/ .tree-line {
.el-tree-node {
position: relative;
padding-left: 0px; // 缩进量
@@ -5531,14 +5580,14 @@
// display: none; // 也可以去掉
}
}
}
}
</style>
<style lang="less" scoped>
@import '~@/assets/styles/mixins';
@import '~@/assets/styles/style';
@import '~@/assets/styles/mixins';
@import '~@/assets/styles/style';
#domesticStandardDatabase {
#domesticStandardDatabase {
//background: #fff;
display: flex;
height: 100%;
@@ -5593,6 +5642,7 @@
overflow: hidden;
display: flex;
flex-direction: column;
.collection-btn {
padding: 0;
border: none;
@@ -5663,31 +5713,31 @@
}
}
}
}
}
.el-textarea__inner {
.el-textarea__inner {
line-height: 28px !important;
}
}
.btn-col {
.btn-col {
padding-top: 11px;
}
}
::v-deep .el-drawer__header {
::v-deep .el-drawer__header {
& > span:first-child {
outline: none !important;
}
}
}
::v-deep .el-drawer {
::v-deep .el-drawer {
outline: none !important;
}
}
.el-date-editor.el-input, .el-date-editor.el-input__inner {
.el-date-editor.el-input, .el-date-editor.el-input__inner {
width: 190px
}
}
.classDisplay {
.classDisplay {
display: none;
}
}
</style>