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

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