标准拆分

This commit is contained in:
zyn
2023-04-07 21:19:47 +08:00
parent 3decbacdf7
commit 516e25d990
3 changed files with 626 additions and 184 deletions
@@ -0,0 +1,390 @@
<template>
<div style="height: 100%;">
<div style="height: 100%;display: flex;flex-direction: row">
<el-table
style="height: calc(100% - 56px)"
:data="itemInfoList"
height="100%"
border
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
@selection-change="standSelectChange"
ref="selection"
>
<el-table-column
type="selection"
width="55"
:resizable="false"
align="center">
</el-table-column>
<el-table-column
prop="itemsNum"
label="条款号"
width="150"
fixed="left"
:resizable="false"
align="center">
</el-table-column>
<el-table-column
prop="itemsName"
label="条款名称"
width="150"
fixed="left"
:resizable="false"
show-overflow-tooltip
align="center">
</el-table-column>
<el-table-column
prop="itermsConditions"
label="条款内容"
fixed="left"
:resizable="false"
align="center">
<template slot-scope="scope">
<div class="itemsText" @click="itemsTextDialog(scope.row.itemsNum, scope.row.itermsConditions)">{{ scope.row.itermsConditions ? scope.row.itermsConditions.replace(/<.*?>/ig, ' ') : '' }}</div>
</template>
</el-table-column>
</el-table>
<el-pagination
style="position:absolute;height: 56px;left: 0;bottom: 0;background: #ffffff;z-index: 999;"
@size-change="pageSizeChange"
@current-change="pageChange"
:current-page="itemsPage"
:page-sizes="[10, 20, 30, 50]"
:page-size="itemsPageSize"
layout="total, prev, pager, next, sizes, jumper"
:total="total">
</el-pagination>
</div>
<loading :loading="loading">数据加载中...</loading>
<!--内容简介-->
<el-dialog :visible.sync="itemsTextDialogs" title="内容简介" append-to-body :close-on-click-modal="false">
<div v-html="itemsText" class="itemsTextBox"></div>
<div slot="footer">
<el-button type="primary" size="large" @click="itemsTextDialogs = false">关闭</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
name: "ResolveTable",
data(){
return {
itemInfoList: [],
infoId: '8H94ZSWC2UQSANNG79CK',
total: 0,
itemsPage: 1,
itemsPageSize: this.$store.getters.userInfo.configContent,
selectedList:[],
selectedList1:[],
itemsEo: {
menuId: '',
infoId: '',
page: 1,
pageSize: this.$store.getters.userInfo.configContent
},
selectSarMenu: {},
infoForm: {
id: '',
standId: '',
standNumSplit: '', // 标准号/政策号
standNameSplit: '', // 标准名称/政策名称
fileType: '' // 文本状态
},
itemsTextDialogs:false,
itemsText: ""
}
},
mounted(){
this.findInfoId().then(res => {
if(res && res.data){
this.infoId = res.data.list[0].infoId
this.queryInfoByInfoId().then(res=>{
this.getSplitItemsByPage()
})
}
})
},
methods:{
getSplitItemsByPage (query) {
let itemsEoPage = this.itemsEo
itemsEoPage.infoId = this.infoId
itemsEoPage.page = this.itemsPage
itemsEoPage.pageSize = this.itemsPageSize
itemsEoPage.getItemsName = query ? query.clauseName : undefined
this.$http.get('lawss/sarFileSplitItems/getSplitItemsByPage', itemsEoPage, {
_this: this,
loading: 'loading'
}, res => {
this.itemInfoList = res.data.list
this.total = res.data.count
}, e => {
})
},
findInfoId(){
return new Promise((resolve,reject)=>{
this.$http.get('SarStandItems/sar-stand-items/selectSarItemAndInterpretation', {
standId: this.$route.params.id
}, {
_this: this,
}, res => {
resolve(res)
})
})
},
queryInfoByInfoId() {
return new Promise((resolve,reject)=>{
this.$http.get('lawss/sarFileSplitInfo/getSarFileSplitInfoEOPage', {
id: this.infoId
}, {
_this: this,
}, res => {
if (res.ok) {
const info = res.data.list
if (info) {
const query = info[0]
this.infoForm = {
id: this.infoId,
standNumSplit: query.splitStatus=='0' ? query.showNumber : query.standNumSplit,
standNameSplit: query.splitStatus=='0' ? query.standName : query.standNameSplit,
fileType: query.fileType
}
resolve(res)
}
} else {
this.$message.warning(res.message)
}
})
})
},
itemsTextDialog (itemsNum, text) {
this.itemsTextDialogs = true
this.itemsText = '<p>' + itemsNum + '</p>' + text.replace(/''/g, '\'')
},
standSelectChange (data) {
this.selectedList = []
for (let i = 0; i < data.length; i++) {
this.selectedList.push(data[i].id)
}
},
// 分页点击后方法
pageChange (page) {
this.selectedAllList = []
this.itemsPage = page
this.getSplitItemsByPage()
},
// 分页每页显示数改变后方法
pageSizeChange (pageSize) {
this.selectedAllList = []
this.itemsPageSize = pageSize
this.getSplitItemsByPage()
},
// 导出事件
exportItemInfo () {
let exportName = this.infoForm.standNumSplit + this.infoForm.standNameSplit
if (this.selectedList != null && this.selectedList.length > 0) {
let ids = this.selectedList.join(',')
window.open('/api/lawss/sarFileSplitItems/exportSplitInfoZip?idList=' + ids + '&infoId=' + this.infoId + '&exportName=' + exportName)
} else {
this.$confirm('当前未选择条款信息,是否导出全部内容?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
confirmButtonClass: 'common-button-primary',
roundButton: false
}).then(() => {
window.open('/api/lawss/sarFileSplitItems/exportSplitInfoZip?ids=null&infoId=' + this.infoId + '&exportName=' + exportName)
}).catch(() => {})
}
},
// jurisdictionCheck() {
// return true
// },
// // 点击更多 事件
// handleCommand (command) {
// switch (command[1]) {
// case '复制':
// this.$confirm('确认复制该条款?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning',
// confirmButtonClass: 'common-button-primary',
// roundButton: false
// }).then(() => {
// this.$http.postData('lawss/sarFileSplitMenu/copyMenuNotChildren', command[0], {
// _this: this, loading: 'loading'
// }, res => {
// // this.selectMenu()
// this.getSplitItemsByPage()
// }, e => {
// })
// }).catch(() => {})
// break
// case '删除':
// this.selectedList = []
// this.selectedList.push(command[0].id)
// this.selectedList1.push(command[0].editFlag)
// this.judgebatchDeleteItem()
// break
// // case '内容简介':
// // this.clause(command[0])
// // break
// case '属性':
// this.attribute(command[2], command[0])
// break
// case '编辑':
// this.editLawsInfo(command[2], command[0])
// break
// }
// },
// // 点击表格 属性按钮事件
// attribute (index, row) {
// this.isSubmit = false
// this.standItemEO.id = row.id
// this.showItemInfoModal = true
// this.saveEditItemIndex = index
// this.standItemEO = JSON.parse(JSON.stringify(row))
// if (this.standItemEO.applyArctic && !(this.standItemEO.applyArctic instanceof Array)) {
// let a = this.standItemEO.applyArctic.split(',')
// this.standItemEO.applyArctic = a // 适用车型
// }
// if (this.standItemEO.newcarPutTime != null && this.standItemEO.newcarPutTime !== '') {
// this.standItemEO.newcarPutTime = this.standItemEO.newcarPutTime.replace(new RegExp(/-/gm), '/')
// this.standItemEO.newcarPutTime = new Date(this.standItemEO.newcarPutTime)
// }
// if (this.standItemEO.productPutTime != null && this.standItemEO.productPutTime !== '') {
// this.standItemEO.productPutTime = this.standItemEO.productPutTime.replace(new RegExp(/-/gm), '/')
// this.standItemEO.productPutTime = new Date(this.standItemEO.productPutTime)
// }
// if (this.standItemEO.paramsList == null || this.standItemEO.paramsList.length < 1) {
// let specialObj = {
// description: '',
// figure: ''
// }
// this.standItemEO.paramsList.push(specialObj)
// }
// this.standItemEO.ZRBM = this.standItemEO.responsibleUnit
// this.saveItemId = row.id
// this.showUpdateItemInfo()
// },
// // 点击表格 编辑按钮事件
// editLawsInfo (index, row) {
// this.isSubmit = false
// this.standItemEO.id = row.id
// this.modalItemaddShowflag = true
// this.saveEditItemIndex = index
// this.standItemEO = JSON.parse(JSON.stringify(row))
// if (this.standItemEO.applyArctic && !(this.standItemEO.applyArctic instanceof Array)) {
// let a = this.standItemEO.applyArctic.split(',')
// this.standItemEO.applyArctic = a // 适用车型
// }
// if (this.standItemEO.newcarPutTime != null && this.standItemEO.newcarPutTime !== '') {
// this.standItemEO.newcarPutTime = this.standItemEO.newcarPutTime.replace(new RegExp(/-/gm), '/')
// this.standItemEO.newcarPutTime = new Date(this.standItemEO.newcarPutTime)
// }
// if (this.standItemEO.productPutTime != null && this.standItemEO.productPutTime !== '') {
// this.standItemEO.productPutTime = this.standItemEO.productPutTime.replace(new RegExp(/-/gm), '/')
// this.standItemEO.productPutTime = new Date(this.standItemEO.productPutTime)
// }
// if (this.standItemEO.paramsList == null || this.standItemEO.paramsList.length < 1) {
// let specialObj = {
// description: '',
// figure: ''
// }
// this.standItemEO.paramsList.push(specialObj)
// }
// this.standItemEO.ZRBM = this.standItemEO.responsibleUnit
// this.saveItemId = row.id
// this.showUpdateItemInfo()
// },
// showUpdateItemInfo () {
// this.itemsContentList = []
// this.saveChooseAddType = ''
// this.saveAddIndex = 0
// this.saveDeleteItemIds = ''
// // this.editItemsContentModel = true
// this.$http.get('lawss/sarFileSplitItemsVal/getItemsValList', {
// itemId: this.saveItemId
// }, {
// _this: this
// }, res => {
// res.data.map(item => {
// item.itemContent = item.itemContent.replace(/''/g, '\'')
// })
// this.itemsContentList = res.data
// }, e => {
// })
// },
// // 批量删除
// judgebatchDeleteItem () {
// if (!this.jurisdictionCheck()) {
// return
// }
// if (this.selectedList != null && this.selectedList.length > 0) {
// this.$http.get('lawss/sarFileSplitItems/judgeContaintChilds', {
// ids: this.selectedList.join(',')
// }, {
// _this: this
// }, res => {
// this.batchDeleteItem()
// }, e => {
// })
// } else {
// this.$message.warning('请确认选择条款是否有子节点,若有,则此次删除将全部删除。')
// }
// },
// batchDeleteItem () {
// if (this.selectedList != null && this.selectedList.length > 0) {
// this.$confirm('请确认选择条款是否有子节点,若有,则此次删除将全部删除。', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning',
// confirmButtonClass: 'common-button-primary',
// roundButton: false
// }).then(() => {
// this.itemsPage = 1
// this.itemsEo.page = 1
// this.loading = true
// this.deleteItemsModal = false
// this.$http.post('lawss/sarFileSplitItems/batchDeleteItems', {
// ids: this.selectedList.join(','),
// editFlag: this.selectedList1.join(','),
// }, {
// _this: this
// }, res => {
// this.getSplitItemsByPage()
// this.selectMenu()
// // 获取下一个节点
// let currentNode = this.$refs.domesticTree.getNextNode()
// let nodeId = ''
// // 如果这个节点为null, 本次删除了最后一个节点
// if (currentNode === null) {
// // 选中根节点
// this.$refs.domesticTree.selectRootNode()
// } else {
// nodeId = currentNode.id
// }
// this.selectSarMenu.id = nodeId
// this.loading = false
// }, e => {
// })
// }).catch(() => {})
// } else {
// this.$message.warning('请确认选择条款是否有子节点,若有,则此次删除将全部删除。')
// }
// },
}
}
</script>
<style scoped>
.itemsText {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #409EFF;
cursor: pointer;
}
</style>
+229 -180
View File
@@ -750,45 +750,69 @@
>
<div class="search-area">
<div class="left">
<el-form ref="ruleForm" :model="standardForm" class="label-input-form" inline>
<el-form-item class="search-item">
<el-input v-show="false" v-model="standItemSearch.orgName" size="small" style="height: 32px"/>
<el-input v-show="false" v-model="standItemSearch.responsibleUnit" size="small" style="height: 32px"/>
<el-popover
:value="false"
placement="bottom"
popper-class="user-dept-popper"
trigger="click"
>
</el-popover>
</el-form-item>
<!--<el-form ref="ruleForm" :model="standardForm" class="label-input-form" inline>-->
<!-- <el-form-item class="search-item">-->
<!-- <el-input v-show="false" v-model="standItemSearch.orgName" size="small" style="height: 32px"/>-->
<!-- <el-input v-show="false" v-model="standItemSearch.responsibleUnit" size="small" style="height: 32px"/>-->
<!-- <el-popover-->
<!-- :value="false"-->
<!-- placement="bottom"-->
<!-- popper-class="user-dept-popper"-->
<!-- trigger="click"-->
<!-- >-->
<!-- </el-popover>-->
<!-- </el-form-item>-->
<el-form-item class="search-item">
<el-input v-model="standItemSearch.itemsName" clearable maxlength="100" placeholder="根据条款名称查找"
size="small"></el-input>
</el-form-item>
<!-- <el-form-item class="search-item">-->
<!-- <el-input v-model="standItemSearch.itemsName" clearable maxlength="100" placeholder="根据条款名称查找"-->
<!-- size="small"></el-input>-->
<!-- </el-form-item>-->
<!-- 新车实施日期-->
<!--<el-form-item class="search-item">-->
<!-- <div class="block">-->
<!-- <el-date-picker-->
<!-- v-model="standItemSearch.XCXSSRQ"-->
<!-- placeholder="新车实施日期"-->
<!-- type="date"-->
<!-- value-format="yyyy-MM-dd">-->
<!-- </el-date-picker>-->
<!-- </div>-->
<!--</el-form-item>-->
<!--&lt;!&ndash; //在产车实施日期&ndash;&gt;-->
<!--<el-form-item class="search-item">-->
<!-- <div class="block">-->
<!-- <el-date-picker-->
<!-- v-model="standItemSearch.ZCCSSRQ"-->
<!-- placeholder="在产车实施日期"-->
<!-- type="date"-->
<!-- value-format="yyyy-MM-dd">-->
<!-- </el-date-picker>-->
<!-- </div>-->
<!--</el-form-item>-->
<!--<el-form-item class="search-item btn-box">-->
<!-- <el-button-->
<!-- :loading="searching"-->
<!-- class="common-button-primary"-->
<!-- size="mini"-->
<!-- type="primary"-->
<!-- @click="searchSarStandItems">-->
<!-- 查询-->
<!-- </el-button>-->
<!--</el-form-item>-->
<!--<el-form-item class="search-item btn-box">-->
<!-- <el-button-->
<!-- class="common-button-default"-->
<!-- size="mini"-->
<!-- @click="clearAllSearch">-->
<!-- 清空-->
<!-- </el-button>-->
<!--</el-form-item>-->
<!--</el-form>-->
<el-form ref="ruleForm" class="label-input-form" inline>
<el-form-item class="search-item">
<div class="block">
<el-date-picker
v-model="standItemSearch.XCXSSRQ"
placeholder="新车实施日期"
type="date"
value-format="yyyy-MM-dd">
</el-date-picker>
</div>
</el-form-item>
<!-- //在产车实施日期-->
<el-form-item class="search-item">
<div class="block">
<el-date-picker
v-model="standItemSearch.ZCCSSRQ"
placeholder="在产车实施日期"
type="date"
value-format="yyyy-MM-dd">
</el-date-picker>
</div>
<el-input v-model="clauseName" maxlength="100" placeholder="根据条款名称查找"
size="small"></el-input>
</el-form-item>
<el-form-item class="search-item btn-box">
<el-button
@@ -796,7 +820,7 @@
class="common-button-primary"
size="mini"
type="primary"
@click="searchSarStandItems">
@click="searchClause">
查询
</el-button>
</el-form-item>
@@ -804,7 +828,7 @@
<el-button
class="common-button-default"
size="mini"
@click="clearAllSearch">
@click="clearClause">
清空
</el-button>
</el-form-item>
@@ -812,12 +836,17 @@
</div>
</div>
<div class="action-bar">
<!--<el-button class="common-button-default export-button" icon="export" size="mini"-->
<!-- @click="exportStandardItem"-->
<!--&gt;-->
<!-- 导出-->
<!--</el-button>-->
<el-button class="common-button-default export-button" icon="export" size="mini"
@click="exportStandardItem"
@click="exportItemInfo"
>
导出
</el-button>
<el-button
<el-button v-if="false"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'bd291146ac1e42c48968c5142ae55375' : '960a97045a6e47b0b8e33ebc347e5fd9'"
class="common-button-primary"
size="mini"
@@ -825,14 +854,14 @@
@click="openRelatedTermsDrawer"
>关联条款
</el-button>
<el-button
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'bd291146ac1e42c48968c5142ae55375' : '960a97045a6e47b0b8e33ebc347e5fd9'"
class="common-button-primary"
size="mini"
type="primary"
@click="editResolveList"
>编辑
</el-button>
<!--<el-button-->
<!-- v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'bd291146ac1e42c48968c5142ae55375' : '960a97045a6e47b0b8e33ebc347e5fd9'"-->
<!-- class="common-button-primary"-->
<!-- size="mini"-->
<!-- type="primary"-->
<!-- @click="editResolveList"-->
<!--&gt;编辑-->
<!--</el-button>-->
<el-upload
:key="cfjgscUploadKey"
style="display: inline-block;margin:0 5px;"
@@ -862,139 +891,140 @@
<!--</el-button>-->
</div>
<div class="content">
<el-table
ref="multipleTable"
:data="standItemList"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
:height="tableHeight"
border
style="width: 100%"
tooltip-effect="dark"
@sort-change='sort'
@selection-change="selectAllStand">
<el-table-column
fixed="left"
type="selection"
width="60"
>
</el-table-column>
<el-table-column
label="条款号"
prop="itemsNum"
show-overflow-tooltip
sortable="custom"
width="90"
>
</el-table-column>
<el-table-column
label="条款名称"
min-width="300"
prop="itemsName"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
:resizable="false"
label="条款内容"
min-width="200"
prop="termsConditions"
>
<template slot-scope="scope">
<!-- <div class="table-jump" @click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)">-->
<!-- {{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}-->
<!-- </div>-->
<div class="table-jump" style=" overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"
@click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)">
{{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}
</div>
<!-- <el-tooltip placement="top">-->
<!-- <div slot="content" v-html="scope.row.termsConditions" :disabled="scope.row.termsConditions"></div>-->
<!-- <div class="table-jump" style=" overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" @click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)">-->
<!-- {{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}-->
<!-- </div>-->
<!-- </el-tooltip>-->
</template>
</el-table-column>
<el-table-column
label="核心技术要求/变化点"
prop="readContent"
show-overflow-tooltip
width="170"
>
</el-table-column>
<el-table-column
label="基于上一版本差异"
prop="comparedWithPrevious"
show-overflow-tooltip
width="170">
</el-table-column>
<el-table-column
label="新车型实施日期(文本)"
prop="xccssrq"
width="180">
</el-table-column>
<el-table-column
label="在产车实施日期(文本)"
prop="zccssrq"
width="170">
</el-table-column>
<el-table-column
label="适用车型"
prop="applyArctic"
show-overflow-tooltip
width="90"
>
<template slot-scope="scope">
{{ filterApplyArctic(scope.row) }}
</template>
</el-table-column>
<!-- <el-table-column-->
<!-- prop="responsibleUnit"-->
<!-- label="责任部门">-->
<!-- </el-table-column>-->
<el-table-column
label="责任工程师"
prop="dutyEngineer"
width="100">
</el-table-column>
<!-- <el-table-column-->
<!-- show-overflow-tooltip-->
<!-- label="符合性状态"-->
<!-- width="100">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.complianceRequire ? (scope.row.complianceRequire === '1' ? '是' : '否') : '-' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- show-overflow-tooltip-->
<!-- prop="complianceState"-->
<!-- label="合规性分析"-->
<!-- width="100">-->
<!-- </el-table-column>-->
<el-table-column align="center" fixed="right" label="操作" width="50">
<template slot-scope="scope">
<div @click.stop>
<el-dropdown trigger="click" @command="handleCommand">
<i class="iconfont">&#xe61e;</i>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="[scope.row, '查看']" :disabled="scope.row.enable==='0'">查看
</el-dropdown-item>
<!--<el-dropdown-item :disabled="scope.row.enable==='0'" :command="[scope.row, '编辑']">编辑</el-dropdown-item>-->
<!--<el-dropdown-item :disabled="scope.row.enable==='0'" :command="[scope.row, '删除']">删除</el-dropdown-item>-->
</el-dropdown-menu>
</el-dropdown>
</div>
</template>
</el-table-column>
</el-table>
<loading :loading="tableLoading">数据加载中...</loading>
<!--<el-table-->
<!-- ref="multipleTable"-->
<!-- :data="standItemList"-->
<!-- :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',-->
<!-- fontWeight: 'bold', height: '48px'}"-->
<!-- :height="tableHeight"-->
<!-- border-->
<!-- style="width: 100%"-->
<!-- tooltip-effect="dark"-->
<!-- @sort-change='sort'-->
<!-- @selection-change="selectAllStand">-->
<!-- <el-table-column-->
<!-- fixed="left"-->
<!-- type="selection"-->
<!-- width="60"-->
<!-- >-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="条款号"-->
<!-- prop="itemsNum"-->
<!-- show-overflow-tooltip-->
<!-- sortable="custom"-->
<!-- width="90"-->
<!-- >-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="条款名称"-->
<!-- min-width="300"-->
<!-- prop="itemsName"-->
<!-- show-overflow-tooltip-->
<!-- >-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- :resizable="false"-->
<!-- label="条款内容"-->
<!-- min-width="200"-->
<!-- prop="termsConditions"-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- &lt;!&ndash; <div class="table-jump" @click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)">&ndash;&gt;-->
<!-- &lt;!&ndash; {{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- <div class="table-jump" style=" overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"-->
<!-- @click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)">-->
<!-- {{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}-->
<!-- </div>-->
<!-- &lt;!&ndash; <el-tooltip placement="top">&ndash;&gt;-->
<!-- &lt;!&ndash; <div slot="content" v-html="scope.row.termsConditions" :disabled="scope.row.termsConditions"></div>&ndash;&gt;-->
<!-- &lt;!&ndash; <div class="table-jump" style=" overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" @click="itemsTextDialog(scope.row.itemsNum, scope.row.termsConditions)">&ndash;&gt;-->
<!-- &lt;!&ndash; {{ scope.row.termsConditions ? scope.row.termsConditions.replace(/<.*?>/ig, ' ') : '' }}&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- &lt;!&ndash; </el-tooltip>&ndash;&gt;-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="核心技术要求/变化点"-->
<!-- prop="readContent"-->
<!-- show-overflow-tooltip-->
<!-- width="170"-->
<!-- >-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="基于上一版本差异"-->
<!-- prop="comparedWithPrevious"-->
<!-- show-overflow-tooltip-->
<!-- width="170">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="新车型实施日期(文本)"-->
<!-- prop="xccssrq"-->
<!-- width="180">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="在产车实施日期(文本)"-->
<!-- prop="zccssrq"-->
<!-- width="170">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="适用车型"-->
<!-- prop="applyArctic"-->
<!-- show-overflow-tooltip-->
<!-- width="90"-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- {{ filterApplyArctic(scope.row) }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- &lt;!&ndash; <el-table-column&ndash;&gt;-->
<!-- &lt;!&ndash; prop="responsibleUnit"&ndash;&gt;-->
<!-- &lt;!&ndash; label="责任部门">&ndash;&gt;-->
<!-- &lt;!&ndash; </el-table-column>&ndash;&gt;-->
<!-- <el-table-column-->
<!-- label="责任工程师"-->
<!-- prop="dutyEngineer"-->
<!-- width="100">-->
<!-- </el-table-column>-->
<!-- &lt;!&ndash; <el-table-column&ndash;&gt;-->
<!-- &lt;!&ndash; show-overflow-tooltip&ndash;&gt;-->
<!-- &lt;!&ndash; label="符合性状态"&ndash;&gt;-->
<!-- &lt;!&ndash; width="100">&ndash;&gt;-->
<!-- &lt;!&ndash; <template slot-scope="scope">&ndash;&gt;-->
<!-- &lt;!&ndash; {{ scope.row.complianceRequire ? (scope.row.complianceRequire === '1' ? '是' : '否') : '-' }}&ndash;&gt;-->
<!-- &lt;!&ndash; </template>&ndash;&gt;-->
<!-- &lt;!&ndash; </el-table-column>&ndash;&gt;-->
<!-- &lt;!&ndash; <el-table-column&ndash;&gt;-->
<!-- &lt;!&ndash; show-overflow-tooltip&ndash;&gt;-->
<!-- &lt;!&ndash; prop="complianceState"&ndash;&gt;-->
<!-- &lt;!&ndash; label="合规性分析"&ndash;&gt;-->
<!-- &lt;!&ndash; width="100">&ndash;&gt;-->
<!-- &lt;!&ndash; </el-table-column>&ndash;&gt;-->
<!-- <el-table-column align="center" fixed="right" label="操作" width="50">-->
<!-- <template slot-scope="scope">-->
<!-- <div @click.stop>-->
<!-- <el-dropdown trigger="click" @command="handleCommand">-->
<!-- <i class="iconfont">&#xe61e;</i>-->
<!-- <el-dropdown-menu slot="dropdown">-->
<!-- <el-dropdown-item :command="[scope.row, '查看']" :disabled="scope.row.enable==='0'">查看-->
<!-- </el-dropdown-item>-->
<!-- &lt;!&ndash;<el-dropdown-item :disabled="scope.row.enable==='0'" :command="[scope.row, '编辑']">编辑</el-dropdown-item>&ndash;&gt;-->
<!-- &lt;!&ndash;<el-dropdown-item :disabled="scope.row.enable==='0'" :command="[scope.row, '删除']">删除</el-dropdown-item>&ndash;&gt;-->
<!-- </el-dropdown-menu>-->
<!-- </el-dropdown>-->
<!-- </div>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!--</el-table>-->
<ResolveTable ref="resolveTable"></ResolveTable>
<!--<loading :loading="tableLoading">数据加载中...</loading>-->
</div>
<pagination
:page="page7"
:total="total7"
@pageChange="pageChange7"
@pageSizeChange="pageSizeChange7"></pagination>
<!--<pagination-->
<!-- :page="page7"-->
<!-- :total="total7"-->
<!-- @pageChange="pageChange7"-->
<!-- @pageSizeChange="pageSizeChange7"></pagination>-->
<!-- <el-pagination-->
<!-- @size-change="pageSizeChange"-->
<!-- @current-change="pageChange"-->
@@ -1808,6 +1838,7 @@ import {dateFormat} from '@/common/date'
import RelatedTermsSelect from './components/RelatedTermsSelect'
import {getBusStandFileByAttId} from 'api/process'
import {dicTypeData} from "api/unqualProcess";
import ResolveTable from './components/ResolveTable.vue'
export default {
@@ -1817,7 +1848,8 @@ export default {
CustomSVPPS,
CustomSelectArray,
CustomOrg,
RelatedTermsSelect
RelatedTermsSelect,
ResolveTable
},
filters: {
ellipsis(value) {
@@ -1837,6 +1869,7 @@ export default {
},
data() {
return {
clauseName:"", // 条款名称
cfjgscUploadKey:1,
externalStatus: '',
handleList: [],
@@ -3937,6 +3970,22 @@ export default {
itemsTextDialog(itemsNum, text) {
this.itemsTextDialogs = true
this.itemsText = '<p>' + itemsNum + '</p>' + text.replace(/''/g, '\'')
},
exportItemInfo(){
this.$refs.resolveTable.exportItemInfo();
},
searchClause(){
let query = {}
query.clauseName = this.clauseName
this.$refs.resolveTable.getSplitItemsByPage(query)
},
clearClause(){
this.clauseName = ''
let query = {}
query.clauseName = this.clauseName
this.$refs.resolveTable.itemsPage = 1
this.$refs.resolveTable.itemsPageSize = this.$store.getters.userInfo.configContent
this.$refs.resolveTable.getSplitItemsByPage(query)
}
},
computed: {
@@ -134,7 +134,7 @@
<div class="prc-content-border" v-show="verifySarStandard">
<el-row :gutter="24">
<el-col :span="12">
<el-form-item label="发布稿" prop="FBGBUSSName" class="add-form-item form-item-disabled">
<el-form-item label="发布稿" prop="FBGBUSSName" class="add-form-item form-item-disabled uploadBtnFormItem">
<el-input
disabled
style="display: none;"
@@ -220,7 +220,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="编制说明" prop="BZSMBUSSName" class="add-form-item form-item-disabled">
<el-form-item label="编制说明" prop="BZSMBUSSName" class="add-form-item form-item-disabled uploadBtnFormItem">
<el-input
disabled
style="display: none;"
@@ -640,7 +640,7 @@
<div class="prc-content-border" v-show="opinionsShow">
<el-row :gutter="24">
<el-col :span="12">
<el-form-item label="培训文件" prop="madelSubName" class="add-form-item form-item-disabled">
<el-form-item label="培训文件" prop="madelSubName" class="add-form-item form-item-disabled uploadBtnFormItem">
<el-input
disabled
style="display: none;"
@@ -661,7 +661,7 @@
type="primary"
class="common-button-primary"
size="mini"
style="margin-top: 6px; float: left;"
style="margin-top: 6px; float: right;"
@click="fileUpload('madelSub')">
<i class="el-icon-upload"></i>
</el-button>
@@ -1132,4 +1132,7 @@ export default {
/deep/ .fileClass{
line-height: 22px !important;
}
.uploadBtnFormItem /deep/ .el-form-item__error{
right: 45px !important;
}
</style>