Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
zhaokaiyao@91isoft.com
2021-11-08 15:13:27 +08:00
22 changed files with 760 additions and 456 deletions
+8
View File
@@ -38,3 +38,11 @@ export function StandardsInfoPage (data) {
params: data params: data
}) })
} }
export function solostarData (data) {
return axios({
url: 'api/sarStandProjectLibrary/solostar',
method: 'get',
params: data
})
}
+55 -31
View File
@@ -1,31 +1,60 @@
<template> <template>
<div class="header"> <div class="header">
<div class="header-left"> <div style="background-color: #0068B7; height: 65px; width: 100%;">
<span class="logo" @click="toHome" title="回到首页"></span> <div class="header-left">
</div> <div class="logo">
<div class="header-center"> <img src="@/assets/images/shangqi/img/logo2.png" style="height: 61px; width: 160px;" />
<span style="color: #fff; line-height: 65px; font-size: 20px;"> </div>
标准法规管理系统 standard and regulations management system </div>
<span style="color: #fff; line-height: 65px; float: left; font-size: 20px; font-weight: 600;">
标准法规管理系统 Standard and Regulations Management System
</span> </span>
</div> <!-- header头部 右侧内容 当前登录人和退出-->
<div class="header-right"> <div class="header-right" style="display: inline-block; float: right; margin-right: 20px; color: #fff">
<span class="date">{{ currentTime }}</span> <div>
<span class="divide-line"> | </span> <el-dropdown
<span class="user-img"></span> trigger="click"
<span class="user">{{ $store.getters.userInfo.uName }}</span> @command="handleCommand"
<div class="user-info-panel-setting" @click.prevent="userInfoVisible = !userInfoVisible"> >
<el-dropdown <div>
trigger="click" <img :src="userAvator" v-if="$store.getters.userInfo.avator">
:visible="userInfoVisible" <span class="iconfont" v-else style="color: #FFFFFF;">&#xe69b;</span>
@command="userInfoOpen" <span style="color: #FFFFFF;">{{ $store.getters.userInfo.uName }}</span>
> <i style="color: #FFFFFF;" class="el-icon-arrow-down"/>
<div class="iconfont" style="color: #fff;"><i class="el-icon-arrow-down"></i></div> </div>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item name="logout" command="logout">{{ $t("m.exit") }}</el-dropdown-item> <el-dropdown-item command="loginOut">退出</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div>
</div> </div>
</div> </div>
<!-- <div class="header-left">-->
<!-- <span class="logo" @click="toHome" title="回到首页"></span>-->
<!-- </div>-->
<!-- <div class="header-center">-->
<!-- <span style="color: #fff; line-height: 65px; font-size: 20px;">-->
<!-- 标准法规管理系统 standard and regulations management system-->
<!-- </span>-->
<!-- </div>-->
<!-- <div class="header-right">-->
<!-- <span class="date">{{ currentTime }}</span>-->
<!-- <span class="divide-line"> | </span>-->
<!-- <span class="user-img"></span>-->
<!-- <span class="user">{{ $store.getters.userInfo.uName }}</span>-->
<!-- <div class="user-info-panel-setting" @click.prevent="userInfoVisible = !userInfoVisible">-->
<!-- <el-dropdown-->
<!-- trigger="click"-->
<!-- :visible="userInfoVisible"-->
<!-- @command="userInfoOpen"-->
<!-- >-->
<!-- <div class="iconfont" style="color: #fff;"><i class="el-icon-arrow-down"></i></div>-->
<!-- <el-dropdown-menu slot="dropdown">-->
<!-- <el-dropdown-item name="logout" command="logout">{{ $t("m.exit") }}</el-dropdown-item>-->
<!-- </el-dropdown-menu>-->
<!-- </el-dropdown>-->
<!-- </div>-->
<!-- </div>-->
</div> </div>
</template> </template>
@@ -105,15 +134,10 @@ export default {
color: #fff; color: #fff;
.header-left { .header-left {
text-align: left; float: left;
//width: 50%;
.logo { .logo {
display: inline-block; padding: 4px 42px 10px 10px;
width: 160px; text-align: left;
height: 61px;
background: url("~@/assets/images/shangqi/home/logo2.png") no-repeat;
background-size: cover;
cursor: pointer;
} }
} }
.header-center{ .header-center{
+2 -1
View File
@@ -149,7 +149,8 @@
}, },
getChildren (node, resolve) { getChildren (node, resolve) {
this.$http.get('SarInstitution/institution/getNext', { this.$http.get('SarInstitution/institution/getNext', {
institutionId: node.key institutionId: node.key,
userName: this.filterText
}, {}, res => { }, {}, res => {
resolve(res) resolve(res)
}) })
+103 -13
View File
@@ -57,7 +57,7 @@
<!-- <p><label style=" margin-right: 150px;">标准年份</label><span>{{ sarStandardsInfoEO.standYear || '-' }}</span></p>--> <!-- <p><label style=" margin-right: 150px;">标准年份</label><span>{{ sarStandardsInfoEO.standYear || '-' }}</span></p>-->
<template v-for="(child, childIndex) in item.child1"> <template v-for="(child, childIndex) in item.child1">
<p class="half files-title" <p class="half files-title"
v-for="(file, fileIndex) in child.value" v-for="(file, fileIndex) in child1Func(child.value)"
> >
<label style=" margin-right: 102px;">{{ child.attrName }}</label> <label style=" margin-right: 102px;">{{ child.attrName }}</label>
<span> <span>
@@ -76,6 +76,18 @@
/> />
<!-- <span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span>--> <!-- <span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span>-->
</span> </span>
<el-button
v-if="child.attrField === itemNam "
v-for="(itemNam,index) in itemExistList"
:key="index"
@click="showItemsModel(child.attrField)"
class="decomposition-btn"
style="right:62px"
icon="icon-separate"
>标准分解单
</el-button>
<el-button v-if="child.value.length > 1" style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"
class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">更多</el-button>
</p> </p>
</template> </template>
<p><label style=" margin-right: 150px;">中文名称</label><span>{{ <p><label style=" margin-right: 150px;">中文名称</label><span>{{
@@ -125,7 +137,7 @@
<!-- modular-item half 代替标准编号--> <!-- modular-item half 代替标准编号-->
<div <div
:key="child.id" :key="child.id"
:class="item.label !== '文本信息' ? 'modular-item half' : 'modular-item'" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
v-if=" child.attrField === 'DTBJH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'XGLC' || child.attrField === 'BDTBZBH' || child.attrField === 'BFDTBZ' || child.attrField === 'BBFDTBZ' " v-if=" child.attrField === 'DTBJH' || child.attrField === 'YYBJ' || child.attrField === 'BYYBJ' || child.attrField === 'CBBH' || child.attrField === 'DXBZ' || child.attrField === 'XGLC' || child.attrField === 'BDTBZBH' || child.attrField === 'BFDTBZ' || child.attrField === 'BBFDTBZ' "
> >
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label> <label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
@@ -171,7 +183,7 @@
<div <div
v-else v-else
:key="child.id" :key="child.id"
:class="item.label !== '文本信息' ? 'modular-item half' : 'modular-item'" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
> >
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label> <label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
<span <span
@@ -259,7 +271,7 @@
> >
<div <div
:key="child.id" :key="child.id"
:class="item.label !== '文本信息' ? 'modular-item half' : 'modular-item'" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
> >
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label> <label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
<!--相关流程--> <!--相关流程-->
@@ -353,7 +365,7 @@
</template> </template>
<template <template
v-for="(child, childIndex) in item.one" v-for="(child, childIndex) in item.one"
v-if="child.isShowImp === '0' && item.label == '文本信息'" v-if="child.isShowImp === '0' && item.label == '过程稿件'"
> >
<div <div
:key="child.id" :key="child.id"
@@ -430,11 +442,11 @@
</template> </template>
<template <template
v-for="(child, childIndex) in item.one" v-for="(child, childIndex) in item.one"
v-if="child.isShowImp === '0' && item.label !== '关联信息' && item.label !== '文本信息' && (item.label !== '实施日期' || (childIndex < 6 || item.showAll))" v-if="child.isShowImp === '0' && item.label !== '关联信息' && item.label !== '过程稿件' && (item.label !== '实施日期' || (childIndex < 6 || item.showAll))"
> >
<div <div
:key="child.id" :key="child.id"
:class="item.label !== '文本信息' ? 'modular-item half' : 'modular-item'" :class="item.label !== '过程稿件' ? 'modular-item half' : 'modular-item'"
> >
<label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label> <label class="modular-content-p-name" :title="child.attrName">{{ child.attrName }}</label>
<!--相关流程--> <!--相关流程-->
@@ -1036,6 +1048,40 @@
<!-- </div>--> <!-- </div>-->
</div> </div>
</el-drawer> </el-drawer>
<el-dialog
title="更多发布稿"
:visible.sync="relateDialog1"
class="relateClass"
width="40%"
:before-close="relateDialogClose1">
<div
v-for="(file, index) in relateNowList1"
:key="index"
v-if="relateNowList1"
style="margin-bottom: 10px;line-height: 20px;max-height: 300px"
>
{{ index + 1 }}.
<a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ file.oldFileName }}</a>
<i
title="下载"
@click="downloadFile(file.id)"
class="icon-download"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : 'a772afab2a6708883335500f3f86e771'"
/>
<i
title="下载带水印"
@click="downloadFileByWater(file.id, file.fileSuffix)"
class="icon-download2"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '02fd6eff0537c283dd071683de10689f' : '824f3bf9edef83fc7488917136167232'"
/>
<div v-if="relateNowList.length >1">
<el-divider></el-divider>
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="relateDialogClose1">关 闭</el-button>
</div>
</el-dialog>
<!-- 更新LOG --> <!-- 更新LOG -->
<el-dialog <el-dialog
title="更新LOG" title="更新LOG"
@@ -1360,8 +1406,8 @@
filters: { filters: {
ellipsis (value) { ellipsis (value) {
if (!value) return '' if (!value) return ''
if (value.length > 25) { if (value.length > 12) {
return value.slice(0,25) + '...' return value.slice(0,12) + '...'
} }
return value return value
} }
@@ -1424,8 +1470,10 @@
AddKnowledgDialog: false, AddKnowledgDialog: false,
knowledgeSharingDialog: false, knowledgeSharingDialog: false,
relateDialog: false, relateDialog: false,
relateDialog1: false,
relateList: [], relateList: [],
relateNowList: [], relateNowList: [],
relateNowList1: [],
loading: false, loading: false,
showItemInfoModal: false, showItemInfoModal: false,
standShowItemEO: {}, standShowItemEO: {},
@@ -1663,6 +1711,14 @@
props: {}, props: {},
watch: {}, watch: {},
methods: { methods: {
child1Func(child1){
const list = []
if(child1 && child1.length > 1){
list.push(child1[0])
return list
}
return child1
},
handleChange(val) { handleChange(val) {
console.log(val); console.log(val);
}, },
@@ -2869,6 +2925,10 @@
}) })
} }
}, },
relateEvent1(list){
this.relateDialog1 = true
this.relateNowList1 = list
},
// 更新LOG // 更新LOG
relateEvent() { relateEvent() {
this.$http.get('lawss/sarUpdLog/getLogList', { this.$http.get('lawss/sarUpdLog/getLogList', {
@@ -2902,6 +2962,10 @@
this.relateDialog = false this.relateDialog = false
this.relateNowList = [] this.relateNowList = []
}, },
relateDialogClose1() {
this.relateDialog1 = false
this.relateNowList = []
},
halfClass(data, nextData, index) { halfClass(data, nextData, index) {
const halfType = ['INPUT_STR', 'DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM'] const halfType = ['INPUT_STR', 'DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM']
let flag = false let flag = false
@@ -3036,7 +3100,7 @@
// } // }
} }
} }
if (location.label === '文本信息') { if (location.label === '过程稿件') {
location.isShowImp = '0' location.isShowImp = '0'
} }
}) })
@@ -3044,7 +3108,7 @@
for (let i = 0; i < displayLocation.length; i++) { for (let i = 0; i < displayLocation.length; i++) {
// sss // sss
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '文本信息'){ if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== ''); const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
if(childList.length === 0){ if(childList.length === 0){
displayLocation.splice(i,1) displayLocation.splice(i,1)
@@ -3053,19 +3117,20 @@
} }
displayLocation.forEach(location => { displayLocation.forEach(location => {
// 动态属性字段-FBGBJBD 单独添加至基础信息 // 动态属性字段-FBGBJBD 单独添加至基础信息
const list = displayLocation.filter ( item => item.label === '文本信息'); const list = displayLocation.filter ( item => item.label === '过程稿件');
if(location.label === '基础信息' && list && list.length > 0){ if(location.label === '基础信息' && list && list.length > 0){
if (!list[0].child) { if (!list[0].child) {
location['child1'] = [] location['child1'] = []
}else { }else {
const childList = list[0].child.filter ( item => item.attrField === 'FBGBJBD'); const childList = list[0].child.filter ( item => item.attrField === 'FBGBJBD');
location['child1'] = childList location['child1'] = childList
} }
} }
// 动态属性字段-SYRZ 单独添加至基础信息 // 动态属性字段-SYRZ 单独添加至基础信息
const list2 = displayLocation.filter ( item => item.label === '适用范围'); const list2 = displayLocation.filter ( item => item.label === '适用范围');
if(location.label === '基础信息' && list2 && list2.length > 0){ if(location.label === '基础信息' && list2 && list2.length > 0){
if (!list[0].child) { if (!list2[0].child) {
location['child2'] = [] location['child2'] = []
}else { }else {
const childList = list2[0].child.filter ( item => item.attrField === 'SYRZ'); const childList = list2[0].child.filter ( item => item.attrField === 'SYRZ');
@@ -3142,6 +3207,31 @@
@import '~@/assets/styles/mixins'; @import '~@/assets/styles/mixins';
@import '~@/assets/styles/style'; @import '~@/assets/styles/style';
/deep/ .decomposition-btn {
position: absolute;
top: 6px;
right: 0;
padding: 0 10px;
height: 30px;
line-height: 30px;
font-size: 14px;
color: #07C160;
border: 1px solid #07C160;
background: rgba(1, 193, 96, 0.1);
/deep/ .icon-separate {
display: inline-block;
margin-right: 3px;
width: 16px;
height: 16px;
background-repeat: no-repeat;
background-size: 100% 100%;
background-position: center center;
vertical-align: sub;
background-image: url("~assets/images/shangqi/standardDetails/separate.png");
}
}
/deep/ .el-collapse-item__content { /deep/ .el-collapse-item__content {
padding-bottom: 0px; padding-bottom: 0px;
font-size: 13px; font-size: 13px;
@@ -163,10 +163,17 @@
ref="importFileAboutStand" ref="importFileAboutStand"
> >
<el-button <el-button
v-if="uploadFilesdfEo.fileName === ''"
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
>{{ $t("m.upload")+' PDF'}}</el-button >{{ $t("m.upload")+' PDF'}}</el-button>
> <div v-else>
<el-input readonly v-model="uploadFilesdfEo.fileName" class="bead-input" style="width: 62%;margin-right: 14px"></el-input>
<el-button
type="primary"
class="common-button-primary"
>{{ $t("m.upload")+' PDF'}}</el-button>
</div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@@ -572,9 +579,11 @@ export default {
}, },
// 编辑 // 编辑
editOcrRecord(row) { editOcrRecord(row) {
console.log('575',row)
this.modalType = "2"; this.modalType = "2";
this.title = "编辑信息"; this.title = "编辑信息";
this.btnName = "保存"; this.btnName = "保存";
this.uploadFilesdfEo.fileName = row.fileName
this.uploadModal = true; this.uploadModal = true;
this.uploadFilesdfEo.standNumber = JSON.parse( this.uploadFilesdfEo.standNumber = JSON.parse(
JSON.stringify(row) JSON.stringify(row)
+2 -2
View File
@@ -326,8 +326,8 @@
:pageSize="pageConfig.oldStandPageSize" :pageSize="pageConfig.oldStandPageSize"
:total="pageConfig.count4" :total="pageConfig.count4"
autoSize autoSize
@pageChange="page => handlePageChange('oldItems', page)" @pageChange="page => handlePageChange('oldStand', page)"
@pageSizeChange="pageSize => handlePageSizeChange('oldItems', pageSize)"></pagination> @pageSizeChange="pageSize => handlePageSizeChange('oldStand', pageSize)"></pagination>
</div> </div>
</div> </div>
<!-- </el-tab-pane>--> <!-- </el-tab-pane>-->
@@ -515,6 +515,11 @@ export default {
this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId }, { this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId }, {
_this: this _this: this
}, res => { }, res => {
res.data.records.forEach(item => {
if(item.zrbm === "[]"){
item.zrbm = ''
}
})
this.listForm.dataList = res.data.records; this.listForm.dataList = res.data.records;
this.dataList = res.data.records; this.dataList = res.data.records;
let ids = []; let ids = [];
@@ -525,6 +525,11 @@ export default {
this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId }, { this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId }, {
_this: this _this: this
}, res => { }, res => {
res.data.records.forEach(item => {
if(item.zrbm === "[]"){
item.zrbm = ''
}
})
this.listForm.dataList = res.data.records; this.listForm.dataList = res.data.records;
this.dataList = res.data.records; this.dataList = res.data.records;
this.listForm.dataList.forEach(item => { this.listForm.dataList.forEach(item => {
@@ -337,7 +337,6 @@ export default {
}, },
// 点击查看 // 点击查看
handlePreview(item) { handlePreview(item) {
console.log(item);
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
name: "OtherStandardDetails", name: "OtherStandardDetails",
params: { params: {
@@ -400,6 +399,11 @@ export default {
this.listForm["id"] = item.id; this.listForm["id"] = item.id;
this.listForm.dataList = item.dataList; this.listForm.dataList = item.dataList;
this.dataList = item.dataList; this.dataList = item.dataList;
this.dataList.forEach(item => {
if(item.zrbm === "[]"){
item.zrbm = ''
}
})
this.dataList.distributePerson = item.dataList[0].distributePerson; this.dataList.distributePerson = item.dataList[0].distributePerson;
this.listForm.breakdownList = item.breakdownList; this.listForm.breakdownList = item.breakdownList;
} else { } else {
@@ -407,6 +407,7 @@ export default {
}, },
//动态表单读取 //动态表单读取
getFormFieldList(item) { getFormFieldList(item) {
console.log(item);
this.$nextTick(() => { this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item)); this.listForm = JSON.parse(JSON.stringify(item));
if (item.form === undefined) { if (item.form === undefined) {
@@ -472,6 +473,7 @@ export default {
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
this.isSubmit = true; this.isSubmit = true;
console.log(this.dataList);
this.listForm.commentText = this.commentText; this.listForm.commentText = this.commentText;
this.listForm.children = this.dataList[0].children this.listForm.children = this.dataList[0].children
this.listForm.dataList = this.dataList this.listForm.dataList = this.dataList
@@ -44,7 +44,8 @@
</process-title> </process-title>
<div class="tableTitle"> <div class="tableTitle">
<div class="tableButton"> <div class="tableButton">
<el-button :disabled="acceptShow" class="common-button-primary add-button" type="primary" size="mini" @click="batchEdit">批量编辑 <el-button :disabled="acceptShow" class="common-button-primary add-button" type="primary" size="mini"
@click="batchEdit">批量编辑
</el-button> </el-button>
</div> </div>
</div> </div>
@@ -121,206 +122,206 @@
<span>{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format("YYYY-MM-DD") : "" }}</span> <span>{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format("YYYY-MM-DD") : "" }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="productType"--> <!-- prop="productType"-->
<!-- align="center"--> <!-- align="center"-->
<!-- label="在研产品">--> <!-- label="在研产品">-->
<el-table-column <el-table-column
prop="researchCompliance" prop="researchCompliance"
align="center" align="center"
width="160" width="160"
label="合规"> label="合规">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
v-if="scope.row.noCompliance && scope.row.noCompliance.length>0 v-if="scope.row.noCompliance && scope.row.noCompliance.length>0
|| scope.row.countermeasures && scope.row.countermeasures.length>0 || scope.row.countermeasures && scope.row.countermeasures.length>0
|| scope.row.completionTime && scope.row.completionTime !== null" || scope.row.completionTime && scope.row.completionTime !== null"
disabled disabled
v-model="scope.row.complianceReasons" v-model="scope.row.complianceReasons"
placeholder="请输入合规原因" placeholder="请输入合规原因"
>
</el-input>
<el-input
v-else
:disabled="acceptShow"
v-model="scope.row.complianceReasons"
placeholder="请输入合规原因"
>
</el-input>
</template>
</el-table-column>
<el-table-column
align="center"
width="160"
prop="researchNonCompliance"
label="不合规">
<el-table-column
prop="researchNonCompliance"
align="center"
width="170"
label="不合规项目">
<template slot-scope="scope">
<el-input
v-if="scope.row.complianceReasons && scope.row.complianceReasons.length>0"
disabled
v-model="scope.row.noCompliance"
placeholder="请输入不合规项目"
> >
</el-input> </el-input>
<el-input <el-input
v-else v-else
:disabled="acceptShow" :disabled="acceptShow"
v-model="scope.row.complianceReasons" v-model="scope.row.noCompliance"
placeholder="请输入合规原因" placeholder="请输入合规项目"
> >
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="researchCountermeasures"
align="center" align="center"
width="160" width="160"
prop="researchNonCompliance" label="应对措施">
label="不合规"> <template slot-scope="scope">
<el-table-column <el-input
prop="researchNonCompliance" v-if="scope.row.complianceReasons && scope.row.complianceReasons.length>0"
align="center" disabled
width="170" v-model="scope.row.countermeasures"
label="不合规项目"> placeholder="请输入应对措施"
<template slot-scope="scope"> >
<el-input </el-input>
v-if="scope.row.complianceReasons && scope.row.complianceReasons.length>0" <el-input
disabled v-else
v-model="scope.row.noCompliance" :disabled="acceptShow"
placeholder="请输入不合规项目" v-model="scope.row.countermeasures"
> placeholder="请输入应对措施"
</el-input> >
<el-input </el-input>
v-else </template>
:disabled="acceptShow"
v-model="scope.row.noCompliance"
placeholder="请输入不合规项目"
>
</el-input>
</template>
</el-table-column>
<el-table-column
prop="researchCountermeasures"
align="center"
width="160"
label="应对措施">
<template slot-scope="scope">
<el-input
v-if="scope.row.complianceReasons && scope.row.complianceReasons.length>0"
disabled
v-model="scope.row.countermeasures"
placeholder="请输入应对措施"
>
</el-input>
<el-input
v-else
:disabled="acceptShow"
v-model="scope.row.countermeasures"
placeholder="请输入应对措施"
>
</el-input>
</template>
</el-table-column>
<el-table-column
prop="researchCompletionTime"
align="center"
width="140"
label="完成时间">
<template slot-scope="scope">
<el-date-picker
v-if="scope.row.complianceReasons && scope.row.complianceReasons.length>0"
disabled
v-model="scope.row.completionTime"
type="date"
placeholder="请选择日期">
</el-date-picker>
<el-date-picker
v-else
:disabled="acceptShow"
class="datePickLen"
clearable
v-model="scope.row.completionTime"
type="date"
placeholder="请选择日期">
</el-date-picker>
</template>
</el-table-column>
</el-table-column> </el-table-column>
<!-- </el-table-column>--> <el-table-column
<!-- <el-table-column--> prop="researchCompletionTime"
<!-- align="center"--> align="center"
<!-- label="在产产品">--> width="140"
<!-- <el-table-column--> label="完成时间">
<!-- prop="productionCompliance"--> <template slot-scope="scope">
<!-- align="center"--> <el-date-picker
<!-- width="160"--> v-if="scope.row.complianceReasons && scope.row.complianceReasons.length>0"
<!-- label="合规(具体情况)">--> disabled
<!-- <template slot-scope="scope">--> v-model="scope.row.completionTime"
<!-- <el-input--> type="date"
<!-- v-if="scope.row.zcNoCompliance && scope.row.zcNoCompliance.length>0--> placeholder="请选择日期">
<!-- || scope.row.zcCountermeasures && scope.row.zcCountermeasures>0--> </el-date-picker>
<!-- || scope.row.zcCompletionTime && scope.row.zcCompletionTime !== null"--> <el-date-picker
<!-- disabled--> v-else
<!-- v-model="scope.row.zcComplianceReasons"--> :disabled="acceptShow"
<!-- placeholder="请输入合规原因"--> class="datePickLen"
<!-- >--> clearable
<!-- </el-input>--> v-model="scope.row.completionTime"
<!-- <el-input--> type="date"
<!-- v-else--> placeholder="请选择日期">
<!-- v-model="scope.row.zcComplianceReasons"--> </el-date-picker>
<!-- placeholder="请输入合规原因"--> </template>
<!-- >--> </el-table-column>
<!-- </el-input>--> </el-table-column>
<!-- </template>--> <!-- </el-table-column>-->
<!-- </el-table-column>--> <!-- <el-table-column-->
<!-- <el-table-column--> <!-- align="center"-->
<!-- align="center"--> <!-- label="在产产品">-->
<!-- width="160"--> <!-- <el-table-column-->
<!-- label="不合规">--> <!-- prop="productionCompliance"-->
<!-- <el-table-column--> <!-- align="center"-->
<!-- prop="productionNonCompliance"--> <!-- width="160"-->
<!-- align="center"--> <!-- label="合规(具体情况)">-->
<!-- width="170"--> <!-- <template slot-scope="scope">-->
<!-- label="不合规项目">--> <!-- <el-input-->
<!-- <template slot-scope="scope">--> <!-- v-if="scope.row.zcNoCompliance && scope.row.zcNoCompliance.length>0-->
<!-- <el-input--> <!-- || scope.row.zcCountermeasures && scope.row.zcCountermeasures>0-->
<!-- v-if="scope.row.zcComplianceReasons && scope.row.zcComplianceReasons.length>0"--> <!-- || scope.row.zcCompletionTime && scope.row.zcCompletionTime !== null"-->
<!-- disabled--> <!-- disabled-->
<!-- v-model="scope.row.zcNoCompliance"--> <!-- v-model="scope.row.zcComplianceReasons"-->
<!-- placeholder="请输入合规项目"--> <!-- placeholder="请输入合规原因"-->
<!-- >--> <!-- >-->
<!-- </el-input>--> <!-- </el-input>-->
<!-- <el-input--> <!-- <el-input-->
<!-- v-else--> <!-- v-else-->
<!-- v-model="scope.row.zcNoCompliance"--> <!-- v-model="scope.row.zcComplianceReasons"-->
<!-- placeholder="请输入合规项目"--> <!-- placeholder="请输入合规原因"-->
<!-- >--> <!-- >-->
<!-- </el-input>--> <!-- </el-input>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="productionCountermeasures"--> <!-- align="center"-->
<!-- align="center"--> <!-- width="160"-->
<!-- width="160"--> <!-- label="不合规">-->
<!-- label="应对措施">--> <!-- <el-table-column-->
<!-- <template slot-scope="scope">--> <!-- prop="productionNonCompliance"-->
<!-- <el-input--> <!-- align="center"-->
<!-- v-if="scope.row.zcComplianceReasons && scope.row.zcComplianceReasons.length>0"--> <!-- width="170"-->
<!-- disabled--> <!-- label="不合规项目">-->
<!-- v-model="scope.row.zcCountermeasures"--> <!-- <template slot-scope="scope">-->
<!-- placeholder="请输入应对措施"--> <!-- <el-input-->
<!-- >--> <!-- v-if="scope.row.zcComplianceReasons && scope.row.zcComplianceReasons.length>0"-->
<!-- </el-input>--> <!-- disabled-->
<!-- <el-input--> <!-- v-model="scope.row.zcNoCompliance"-->
<!-- v-else--> <!-- placeholder="请输入不合规项目"-->
<!-- v-model="scope.row.zcCountermeasures"--> <!-- >-->
<!-- placeholder="请输入应对措施"--> <!-- </el-input>-->
<!-- >--> <!-- <el-input-->
<!-- </el-input>--> <!-- v-else-->
<!-- </template>--> <!-- v-model="scope.row.zcNoCompliance"-->
<!-- </el-table-column>--> <!-- placeholder="请输入不合规项目"-->
<!-- <el-table-column--> <!-- >-->
<!-- prop="productionCompletionTime"--> <!-- </el-input>-->
<!-- align="center"--> <!-- </template>-->
<!-- width="140"--> <!-- </el-table-column>-->
<!-- label="完成时间">--> <!-- <el-table-column-->
<!-- <template slot-scope="scope">--> <!-- prop="productionCountermeasures"-->
<!-- <el-date-picker--> <!-- align="center"-->
<!-- v-if="scope.row.zcComplianceReasons && scope.row.zcComplianceReasons.length>0"--> <!-- width="160"-->
<!-- disabled--> <!-- label="应对措施">-->
<!-- v-model="scope.row.zcCompletionTime"--> <!-- <template slot-scope="scope">-->
<!-- type="date"--> <!-- <el-input-->
<!-- placeholder="请选择日期">--> <!-- v-if="scope.row.zcComplianceReasons && scope.row.zcComplianceReasons.length>0"-->
<!-- </el-date-picker>--> <!-- disabled-->
<!-- <el-date-picker--> <!-- v-model="scope.row.zcCountermeasures"-->
<!-- v-else--> <!-- placeholder="请输入应对措施"-->
<!-- class="datePickLen"--> <!-- >-->
<!-- clearable--> <!-- </el-input>-->
<!-- v-model="scope.row.zcCompletionTime"--> <!-- <el-input-->
<!-- type="date"--> <!-- v-else-->
<!-- placeholder="请选择日期">--> <!-- v-model="scope.row.zcCountermeasures"-->
<!-- </el-date-picker>--> <!-- placeholder="请输入应对措施"-->
<!-- </template>--> <!-- >-->
<!-- </el-table-column>--> <!-- </el-input>-->
<!-- </el-table-column>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="productionCompletionTime"-->
<!-- align="center"-->
<!-- width="140"-->
<!-- label="完成时间">-->
<!-- <template slot-scope="scope">-->
<!-- <el-date-picker-->
<!-- v-if="scope.row.zcComplianceReasons && scope.row.zcComplianceReasons.length>0"-->
<!-- disabled-->
<!-- v-model="scope.row.zcCompletionTime"-->
<!-- type="date"-->
<!-- placeholder="请选择日期">-->
<!-- </el-date-picker>-->
<!-- <el-date-picker-->
<!-- v-else-->
<!-- class="datePickLen"-->
<!-- clearable-->
<!-- v-model="scope.row.zcCompletionTime"-->
<!-- type="date"-->
<!-- placeholder="请选择日期">-->
<!-- </el-date-picker>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table-column>-->
<!-- </el-table-column>-->
<!-- 以后全选可能用--> <!-- 以后全选可能用-->
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="productionCompletionTime"--> <!-- prop="productionCompletionTime"-->
@@ -455,63 +456,107 @@
size="800px"> size="800px">
<div class="demo-drawer-content"> <div class="demo-drawer-content">
<el-form :model="batchEditForm" class="label-input-form" ref="projectComplianceForm" label-width="150"> <el-form :model="batchEditForm" class="label-input-form" ref="projectComplianceForm" label-width="150">
<el-divider><span><b>在研产品</b></span></el-divider> <!-- <el-divider><span><b>在研产品</b></span></el-divider>-->
<el-formItem label="合规原因" class="add-form-item"> <el-formItem label="合规原因" class="add-form-item">
<el-input <el-input
v-if="batchEditForm.noCompliance && batchEditForm.noCompliance.length>0
|| batchEditForm.countermeasures && batchEditForm.countermeasures.length>0
|| batchEditForm.completionTime && batchEditForm.completionTime !== null"
disabled
v-model="batchEditForm.complianceReasons" v-model="batchEditForm.complianceReasons"
placeholder="请输入合规原因" placeholder="请输入合规原因"
></el-input> >
</el-input>
<el-input
v-else
:disabled="acceptShow"
v-model="batchEditForm.complianceReasons"
placeholder="请输入合规原因"
>
</el-input>
</el-formItem> </el-formItem>
<el-form-item label="不合规项目" class="add-form-item"> <el-form-item label="不合规项目" class="add-form-item">
<el-input <el-input
v-model="batchEditForm.noCompliance" v-if="batchEditForm.complianceReasons && batchEditForm.complianceReasons.length>0"
placeholder="请输入不合规项目" disabled
></el-input> v-model="batchEditForm.noCompliance"
placeholder="请输入不合规项目"
>
</el-input>
<el-input
v-else
:disabled="acceptShow"
v-model="batchEditForm.noCompliance"
placeholder="请输入不合规项目"
>
</el-input>
</el-form-item> </el-form-item>
<el-form-item label="不合规应对措施" class="add-form-item"> <el-form-item label="不合规应对措施" class="add-form-item">
<el-input <el-input
v-if="batchEditForm.complianceReasons && batchEditForm.complianceReasons.length>0"
disabled
v-model="batchEditForm.countermeasures" v-model="batchEditForm.countermeasures"
placeholder="请输入不合规应对措施" placeholder="请输入不合规应对措施"
></el-input> >
</el-input>
<el-input
v-else
:disabled="acceptShow"
v-model="batchEditForm.countermeasures"
placeholder="请输入不合规应对措施"
>
</el-input>
</el-form-item> </el-form-item>
<el-form-item label="完成时间" class="add-form-item"> <el-form-item label="完成时间" class="add-form-item">
<el-date-picker <el-date-picker
v-if="batchEditForm.complianceReasons && batchEditForm.complianceReasons.length>0"
disabled
v-model="batchEditForm.completionTime" v-model="batchEditForm.completionTime"
type="date" type="date"
placeholder="选择日期"> placeholder="选择日期">
</el-date-picker>
<el-date-picker
v-else
:disabled="acceptShow"
class="datePickLen"
clearable
v-model="batchEditForm.completionTime"
type="date"
placeholder="请选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<br> <br>
<el-divider><span><b>在产产品</b></span></el-divider> <!-- <el-divider><span><b>在产产品</b></span></el-divider>-->
<el-formItem label="合规原因" class="add-form-item"> <!-- <el-formItem label="合规原因" class="add-form-item">-->
<el-input <!-- <el-input-->
v-model="batchEditForm.zcComplianceReasons" <!-- v-model="batchEditForm.zcComplianceReasons"-->
placeholder="请输入合规原因" <!-- placeholder="请输入合规原因"-->
></el-input> <!-- ></el-input>-->
</el-formItem> <!-- </el-formItem>-->
<el-form-item label="不合规项目" class="add-form-item"> <!-- <el-form-item label="不合规项目" class="add-form-item">-->
<el-input <!-- <el-input-->
v-model="batchEditForm.zcNoCompliance" <!-- v-model="batchEditForm.zcNoCompliance"-->
placeholder="请输入不合规项目" <!-- placeholder="请输入不合规项目"-->
></el-input> <!-- ></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="不合规应对措施" class="add-form-item"> <!-- <el-form-item label="不合规应对措施" class="add-form-item">-->
<el-input <!-- <el-input-->
v-model="batchEditForm.zcCountermeasures" <!-- v-model="batchEditForm.zcCountermeasures"-->
placeholder="请输入不合规应对措施" <!-- placeholder="请输入不合规应对措施"-->
></el-input> <!-- ></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="完成时间" class="add-form-item"> <!-- <el-form-item label="完成时间" class="add-form-item">-->
<el-date-picker <!-- <el-date-picker-->
v-model="batchEditForm.zcCompletionTime" <!-- v-model="batchEditForm.zcCompletionTime"-->
type="date" <!-- type="date"-->
placeholder="选择日期"> <!-- placeholder="选择日期">-->
</el-date-picker> <!-- </el-date-picker>-->
</el-form-item> <!-- </el-form-item>-->
</el-form> </el-form>
</div> </div>
<div class="demo-drawer-footer"> <div class="demo-drawer-footer">
<el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary" @click="saveBatchEditForm"> <el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary"
@click="saveBatchEditForm">
确定 确定
</el-button> </el-button>
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="cancelBatchEditForm">取消 <el-button class="common-button-default" size="mini" icon="el-icon-close" @click="cancelBatchEditForm">取消
@@ -525,7 +570,8 @@
import ProcessHeader from "../../components/ProcessHeader"; import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter"; import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle"; import ProcessTitle from "../../components/ProcessTitle";
import {inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew, execTask} from "api/process"; import { inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew, execTask } from "api/process";
import seeDatalis from "@/pages/localTool/standContrast/pages/seeDatalis";
export default { export default {
name: "xmpg2Step6", name: "xmpg2Step6",
@@ -546,23 +592,23 @@ export default {
batchEditForm: { batchEditForm: {
// 在研产品 // 在研产品
// 合规 // 合规
complianceReasons: '', complianceReasons: "",
// 不合规 // 不合规
noCompliance: '', noCompliance: "",
// 应对措施 // 应对措施
countermeasures: '', countermeasures: "",
// 完成时间 // 完成时间
completionTime: '', completionTime: "",
// 在产产品 // 在产产品
// 合规 // 合规
zcComplianceReasons: '', zcComplianceReasons: "",
// 不合规 // 不合规
zcNoCompliance: '', zcNoCompliance: "",
// 应对措施 // 应对措施
zcCountermeasures: '', zcCountermeasures: "",
// 完成时间 // 完成时间
zcCompletionTime: '' zcCompletionTime: ""
}, },
hasChildren: true, hasChildren: true,
active: "1", active: "1",
@@ -573,7 +619,7 @@ export default {
saveLoading: false, saveLoading: false,
submitShow: false, submitShow: false,
acceptShow: false, acceptShow: false,
todoId: '', todoId: "",
showColumn: true, showColumn: true,
drawerTitle: "", //drawer标题 drawerTitle: "", //drawer标题
modalshowflag: false, // drawer开关 modalshowflag: false, // drawer开关
@@ -618,120 +664,135 @@ export default {
methods: { methods: {
//确认转办 //确认转办
checkedTransferRole(data) { checkedTransferRole(data) {
this.assigneeNewLoading = true this.assigneeNewLoading = true;
changeAssigneeNew({ changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id taskId: this.$route.query.taskIds, // 任务id
assignee: data[0].id, // 被委托人 assignee: data[0].id, // 被委托人
userId: this.$store.getters.userInfo.userId, // 委托人 userId: this.$store.getters.userInfo.userId, // 委托人
pId: this.$route.query.prcId // 流程实例 pId: this.$route.query.prcId // 流程实例
}).then(res => { }).then(res => {
this.isTransfer = false this.isTransfer = false;
if (res.success) { if (res.success) {
this.drawerModal = false this.drawerModal = false;
this.$message.success('调整成功') this.$message.success("调整成功");
this.$router.push("/processCenter"); this.$router.push("/processCenter");
this.processNum() this.processNum();
} else { } else {
this.$message.warning(res.message) this.$message.warning(res.message);
} }
}) });
}, },
// 请求转换流程图 // 请求转换流程图
processNum(row) { processNum(row) {
axios.request({ axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(), url: "/api/lawss/activiti/getImg?_t=" + new Date().getTime(),
responseType: 'blob', responseType: "blob",
method: 'get', method: "get",
params: { params: {
prcNum: this.$route.query.prcNum prcNum: this.$route.query.prcNum
} }
}).then(res => { }).then(res => {
// let blob = new Blob([res.data], {type: 'image/jpg'}) // let blob = new Blob([res.data], {type: 'image/jpg'})
// let url = window.URL.createObjectURL(res.data) // let url = window.URL.createObjectURL(res.data)
this.processStep = window.URL.createObjectURL(res.data) this.processStep = window.URL.createObjectURL(res.data);
}) });
}, },
//转办事件 //转办事件
handleTransfer() { handleTransfer() {
this.drawerModal = true this.drawerModal = true;
this.drawerTitle = '转办处理人' this.drawerTitle = "转办处理人";
this.selectPeople = row this.selectPeople = row;
}, },
//批量编辑确定按钮事件 //批量编辑确定按钮事件
saveBatchEditForm() { saveBatchEditForm() {
this.selectList = JSON.parse(localStorage.getItem("selectList"));
// console.log(this.selectList) console.log("datalist", this.dataList);
for (let a = 0; a < this.dataList.length; a++) { console.log("select", this.selectList);
for (let b = 0; b < this.selectList.length; b++) { this.dataList.forEach(item => {
if (this.dataList[a].id === this.selectList[b]) { this.selectList.forEach(items => {
//合规 if (item.id === items) {
this.dataList[a].complianceReasons = this.batchEditForm.complianceReasons item.complianceReasons = this.batchEditForm.complianceReasons;
//不合规 //不合规
this.dataList[a].noCompliance = this.batchEditForm.noCompliance item.noCompliance = this.batchEditForm.noCompliance;
//应对措施 //应对措施
this.dataList[a].countermeasures = this.batchEditForm.countermeasures item.countermeasures = this.batchEditForm.countermeasures;
//完成时间 //完成时间
this.dataList[a].completionTime = this.batchEditForm.completionTime item.completionTime = this.batchEditForm.completionTime;
//合规
this.dataList[a].zcComplianceReasons = this.batchEditForm.zcComplianceReasons
//不合规
this.dataList[a].zcNoCompliance = this.batchEditForm.zcNoCompliance
//应对措施
this.dataList[a].zcCountermeasures = this.batchEditForm.zcCountermeasures
//完成时间
this.dataList[a].zcCompletionTime = this.batchEditForm.zcCompletionTime
} else {
for (let i = 0; i < this.dataList[a].children.length; i++) {
if (this.dataList[a].children[i].id === this.selectList[b]) {
//合规
this.dataList[a].children[i].complianceReasons = this.batchEditForm.complianceReasons
//不合规
this.dataList[a].children[i].noCompliance = this.batchEditForm.noCompliance
//应对措施
this.dataList[a].children[i].countermeasures = this.batchEditForm.countermeasures
//完成时间
this.dataList[a].children[i].completionTime = this.batchEditForm.completionTime
//合规
this.dataList[a].children[i].zcComplianceReasons = this.batchEditForm.zcComplianceReasons
//不合规
this.dataList[a].children[i].zcNoCompliance = this.batchEditForm.zcNoCompliance
//应对措施
this.dataList[a].children[i].zcCountermeasures = this.batchEditForm.zcCountermeasures
//完成时间
this.dataList[a].children[i].zcCompletionTime = this.batchEditForm.zcCompletionTime
}
}
} }
});
} });
} // for (let a = 0; a < this.dataList.length; a++) {
this.modalshowflag = false // for (let b = 0; b < this.selectList.length; b++) {
// if (this.dataList[a].id === this.selectList[b]) {
// console.log('11');
// //合规
// this.dataList[a].complianceReasons = this.batchEditForm.complianceReasons
// //不合规
// this.dataList[a].noCompliance = this.batchEditForm.noCompliance
// //应对措施
// this.dataList[a].countermeasures = this.batchEditForm.countermeasures
// //完成时间
// this.dataList[a].completionTime = this.batchEditForm.completionTime
// //合规
// this.dataList[a].zcComplianceReasons = this.batchEditForm.zcComplianceReasons
// //不合规
// this.dataList[a].zcNoCompliance = this.batchEditForm.zcNoCompliance
// //应对措施
// this.dataList[a].zcCountermeasures = this.batchEditForm.zcCountermeasures
// //完成时间
// this.dataList[a].zcCompletionTime = this.batchEditForm.zcCompletionTime
// } else {
// for (let i = 0; i < this.dataList[a].children.length; i++) {
// if (this.dataList[a].children[i].id === this.selectList[b]) {
// //合规
// this.dataList[a].children[i].complianceReasons = this.batchEditForm.complianceReasons
// //不合规
// this.dataList[a].children[i].noCompliance = this.batchEditForm.noCompliance
// //应对措施
// this.dataList[a].children[i].countermeasures = this.batchEditForm.countermeasures
// //完成时间
// this.dataList[a].children[i].completionTime = this.batchEditForm.completionTime
// //合规
// this.dataList[a].children[i].zcComplianceReasons = this.batchEditForm.zcComplianceReasons
// //不合规
// this.dataList[a].children[i].zcNoCompliance = this.batchEditForm.zcNoCompliance
// //应对措施
// this.dataList[a].children[i].zcCountermeasures = this.batchEditForm.zcCountermeasures
// //完成时间
// this.dataList[a].children[i].zcCompletionTime = this.batchEditForm.zcCompletionTime
// }
// }
// }
//
// }
// }
this.modalshowflag = false;
}, },
cancelBatchEditForm() { cancelBatchEditForm() {
this.modalshowflag = false this.modalshowflag = false;
}, },
//批量编辑 //批量编辑
batchEdit() { batchEdit() {
if (this.selectList.length > 0) { if (this.selectList.length > 0) {
//合规 //合规
this.batchEditForm.complianceReasons = '' this.batchEditForm.complianceReasons = "";
//不合规 //不合规
this.batchEditForm.noCompliance = '' this.batchEditForm.noCompliance = "";
//应对措施 //应对措施
this.batchEditForm.countermeasures = '' this.batchEditForm.countermeasures = "";
//完成时间 //完成时间
this.batchEditForm.completionTime = '' this.batchEditForm.completionTime = "";
//合规 //合规
this.batchEditForm.zcComplianceReasons = '' this.batchEditForm.zcComplianceReasons = "";
//不合规 //不合规
this.batchEditForm.zcNoCompliance = '' this.batchEditForm.zcNoCompliance = "";
//应对措施 //应对措施
this.batchEditForm.zcCountermeasures = '' this.batchEditForm.zcCountermeasures = "";
//完成时间 //完成时间
this.batchEditForm.zcCompletionTime = '' this.batchEditForm.zcCompletionTime = "";
this.modalshowflag = true this.modalshowflag = true;
} else { } else {
this.$message.warning('请选择要编辑的数据') this.$message.warning("请选择要编辑的数据");
} }
}, },
// 点击查看 // 点击查看
@@ -795,15 +856,15 @@ export default {
}).then(res => { }).then(res => {
if (res) { if (res) {
const processForm = JSON.parse(res.mesg); const processForm = JSON.parse(res.mesg);
let commitStatus = res.commitStatus let commitStatus = res.commitStatus;
if(commitStatus && commitStatus > 0){ if (commitStatus && commitStatus > 0) {
this.acceptShow = true this.acceptShow = true;
this.submitShow = false this.submitShow = false;
}else { } else {
this.acceptShow = false this.acceptShow = false;
this.submitShow = true this.submitShow = true;
} }
this.todoId = res.id this.todoId = res.id;
this.getFormFieldList(processForm); this.getFormFieldList(processForm);
} }
}).catch(e => { }).catch(e => {
@@ -819,18 +880,18 @@ export default {
this.listForm.prcName = this.prcName; this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id; this.listForm["id"] = item.id;
// this.listForm.dataList = item.dataList; // this.listForm.dataList = item.dataList;
this.dataList = this.listForm.dataList[0].children this.dataList = this.listForm.dataList[0].children;
this.dataList.map(item => { this.dataList.map(item => {
this.$set(item, 'standName', this.listForm.dataList[0].standName) this.$set(item, "standName", this.listForm.dataList[0].standName);
this.$set(item, 'standEnName', this.listForm.dataList[0].standEnName) this.$set(item, "standEnName", this.listForm.dataList[0].standEnName);
this.$set(item, 'standYear', this.listForm.dataList[0].standYear) this.$set(item, "standYear", this.listForm.dataList[0].standYear);
this.$set(item, 'standSort', this.listForm.dataList[0].standSort) this.$set(item, "standSort", this.listForm.dataList[0].standSort);
this.$set(item, 'standNumber', this.listForm.dataList[0].standNumber) this.$set(item, "standNumber", this.listForm.dataList[0].standNumber);
}) });
this.total = this.listForm.dataList[0].children.length; this.total = this.listForm.dataList[0].children.length;
} else { } else {
this.listForm = item.form; this.listForm = item.form;
this.dataList = item.form.dataList[0].children this.dataList = item.form.dataList[0].children;
this.total = item.form.dataList[0].children.length; this.total = item.form.dataList[0].children.length;
} }
@@ -860,17 +921,17 @@ export default {
}); });
}, },
// 接受按钮 // 接受按钮
handleAccept(){ handleAccept() {
this.isSubmit = true this.isSubmit = true;
execTask({ execTask({
todoId: this.todoId // 当前节点ID todoId: this.todoId // 当前节点ID
}).then(res => { }).then(res => {
if (res.sign && res.sign === '0') { if (res.sign && res.sign === "0") {
this.$message.success('接收成功') this.$message.success("接收成功");
this.$router.push('/processCenter') this.$router.push("/processCenter");
} }
this.isSubmit = false this.isSubmit = false;
}) });
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
@@ -897,8 +958,8 @@ export default {
this.selectList = []; this.selectList = [];
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
this.selectList.push(data[i].id); this.selectList.push(data[i].id);
localStorage.setItem("selectList", JSON.stringify(this.selectList));
} }
}, },
getTree() { getTree() {
this.$http.get("SarInstitution/institution/institutionAndUser", {}, {}, res => { this.$http.get("SarInstitution/institution/institutionAndUser", {}, {}, res => {
@@ -382,21 +382,34 @@
</div> </div>
</el-drawer> </el-drawer>
<ProcessFooter <ProcessFooter
:show-save="submitShow" show-save
:show-transfer="submitShow" show-transfer
:show-affirm="submitShow" show-affirm
:show-submit="submitShow"
:show-confirm="acceptShow"
:submitLoading="isSubmit" :submitLoading="isSubmit"
:transfer-loading="isTransfer" :transfer-loading="isTransfer"
:saveLoading="saveLoading" :saveLoading="saveLoading"
@submit="handleSubmit" @submit="handleSubmit"
@transfer="handleTransfer" @transfer="handleTransfer"
@save="handleSave" @save="handleSave"
@accept="handleAccept"
:approval="true" :approval="true"
> >
</ProcessFooter> </ProcessFooter>
<!-- <ProcessFooter-->
<!-- :show-save="submitShow"-->
<!-- :show-transfer="submitShow"-->
<!-- :show-affirm="submitShow"-->
<!-- :show-submit="submitShow"-->
<!-- :show-confirm="acceptShow"-->
<!-- :submitLoading="isSubmit"-->
<!-- :transfer-loading="isTransfer"-->
<!-- :saveLoading="saveLoading"-->
<!-- @submit="handleSubmit"-->
<!-- @transfer="handleTransfer"-->
<!-- @save="handleSave"-->
<!-- @accept="handleAccept"-->
<!-- :approval="true"-->
<!-- >-->
<!-- </ProcessFooter>-->
<!-- 福田全公司选人解决方案 --> <!-- 福田全公司选人解决方案 -->
<Role-tree <Role-tree
check-box check-box
@@ -2,19 +2,20 @@
<template> <template>
<div id="accessStandardsAndRegulations" class="v-class"> <div id="accessStandardsAndRegulations" class="v-class">
<el-tabs v-model="tabValue" style="height: 100%;"> <el-tabs v-model="tabValue" style="height: 100%;">
<el-tab-pane v-for="(item,index) in list" :key="index" :label="item.label" :name="item.name"> <el-tab-pane label="国家/地区清单" name="listOfCountries" v-if="country">
<div v-if="tabValue === 'listOfCountries'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;"> <list-of-countries></list-of-countries>
<list-of-countries></list-of-countries> </el-tab-pane>
</div> <el-tab-pane label="车型类别清单" name="listProject" v-if="project">
<div v-else-if="tabValue === 'listProject'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;"> <list-project></list-project>
<list-project></list-project> </el-tab-pane>
</div> <el-tab-pane label="重点标准跟踪清单" name="listTracking" v-if="tracking">
<div v-else-if="tabValue === 'listOther'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;"> <list-tracking></list-tracking>
<list-other></list-other> </el-tab-pane>
</div> <el-tab-pane label="其他清单" name="listOther" v-if="other">
<div v-else-if="tabValue === 'localProductsOrProjectLibrary'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;"> <list-other></list-other>
<local-products-or-project-library></local-products-or-project-library> </el-tab-pane>
</div> <el-tab-pane label="项目清单" name="localProductsOrProjectLibrary" v-if="library">
<local-products-or-project-library></local-products-or-project-library>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
@@ -23,6 +24,7 @@
<script> <script>
import listOfCountries from "../accessStandardsAndRegulations/page/listOfCountries"; import listOfCountries from "../accessStandardsAndRegulations/page/listOfCountries";
import listProject from "../accessStandardsAndRegulations/page/listProject"; import listProject from "../accessStandardsAndRegulations/page/listProject";
import listTracking from "../accessStandardsAndRegulations/page/listTracking";
import listOther from "../accessStandardsAndRegulations/page/listOther"; import listOther from "../accessStandardsAndRegulations/page/listOther";
import localProductsOrProjectLibrary from "../localProductsOrProjectLibrary/index"; import localProductsOrProjectLibrary from "../localProductsOrProjectLibrary/index";
@@ -30,15 +32,22 @@ export default {
name: "AccessStandardsAndRegulations", name: "AccessStandardsAndRegulations",
data() { data() {
return { return {
country: false,
project: false,
tracking: false,
other: false,
library: false,
list: [], list: [],
tabValue: "listProject", tabValue: "listOfCountries",
menuName: ["国家/地区清单", "车型类别清单", "其他清单", "项目清单"] menuName: ["国家/地区清单", "车型类别清单", "重点标准跟踪清单", "其他清单", "项目清单"]
}; };
}, },
methods: {}, methods: {
},
components: { components: {
localProductsOrProjectLibrary, localProductsOrProjectLibrary,
listOfCountries, listOfCountries,
listTracking,
listProject, listProject,
listOther listOther
}, },
@@ -49,7 +58,7 @@ export default {
var list = []; var list = [];
const menuList = this.$store.getters.getMenuList; const menuList = this.$store.getters.getMenuList;
let menuData = []; let menuData = [];
let menuID = ["b05b562950cb6d0aef539fad30b7386a", "63e05705d0c8013162caa34f9fe52865", "a1170d77f4332e5f45ce520e63b00e15", "5a75523729b04102a565167004d640e9"]; let menuID = ["b05b562950cb6d0aef539fad30b7386a", "63e05705d0c8013162caa34f9fe52865","418123d180abf67bd2c46d5a694baaa5", "a1170d77f4332e5f45ce520e63b00e15", "5a75523729b04102a565167004d640e9"];
this.menuName.forEach(item => { this.menuName.forEach(item => {
for (let i = 0; i < menuList.length; i++) { for (let i = 0; i < menuList.length; i++) {
let entity = menuList[i]; let entity = menuList[i];
@@ -57,35 +66,20 @@ export default {
if (menuID.indexOf(entity.id) >= 0 && menuData.indexOf(entity.id) == -1) { if (menuID.indexOf(entity.id) >= 0 && menuData.indexOf(entity.id) == -1) {
menuData.push(entity.id); menuData.push(entity.id);
if (entity.id === "b05b562950cb6d0aef539fad30b7386a") { if (entity.id === "b05b562950cb6d0aef539fad30b7386a") {
list.push({ this.country = true
label: "国家/地区清单",
name: "listOfCountries"
});
continue;
} else if (entity.id === "63e05705d0c8013162caa34f9fe52865") { } else if (entity.id === "63e05705d0c8013162caa34f9fe52865") {
list.push({ this.project = true
label: "车型类别清单", }else if (entity.id === "418123d180abf67bd2c46d5a694baaa5") {
name: "listProject" this.tracking = true
});
continue;
}else if (entity.id === "5a75523729b04102a565167004d640e9") { }else if (entity.id === "5a75523729b04102a565167004d640e9") {
list.push({ this.other = true
label: "其他清单",
name: "listOther"
});
continue;
} else if (entity.id === "a1170d77f4332e5f45ce520e63b00e15") { } else if (entity.id === "a1170d77f4332e5f45ce520e63b00e15") {
list.push({ this.library = true
label: "项目清单",
name: "localProductsOrProjectLibrary"
});
continue;
} }
} }
} }
}); });
this.list = list; this.list = list
this.tabValue = this.list[0].name;
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
const toName = ["ListOfStandardsAndRegulationsDetails", "AccessStandardDetails", "LocalProductDetail", "OtherAddEit"]; const toName = ["ListOfStandardsAndRegulationsDetails", "AccessStandardDetails", "LocalProductDetail", "OtherAddEit"];
@@ -292,16 +292,16 @@ export default {
}, },
pageChange(page) { pageChange(page) {
this.sarSarAccessEOSearch.page = page; this.sarSarAccessEOSearch.page = page;
// this.searchSarAccess(); this.searchSarAccess();
}, },
pageSizeChange(pageSize) { pageSizeChange(pageSize) {
this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent; this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent;
// this.searchSarAccess(); this.searchSarAccess();
}, },
clearSearch() { clearSearch() {
this.sarSarAccessEOSearch.countryArea = ""; this.sarSarAccessEOSearch.countryArea = "";
this.sarSarAccessEOSearch.detailedListName = ""; this.sarSarAccessEOSearch.detailedListName = "";
// this.searchSarAccess(); this.searchSarAccess();
}, },
// 新增相关 // 新增相关
openModal(row, optType) { openModal(row, optType) {
@@ -286,16 +286,16 @@ export default {
}, },
pageChange(page) { pageChange(page) {
this.sarSarAccessEOSearch.page = page; this.sarSarAccessEOSearch.page = page;
// this.searchSarAccess(); this.searchSarAccess();
}, },
pageSizeChange(pageSize) { pageSizeChange(pageSize) {
this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent; this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent;
// this.searchSarAccess(); this.searchSarAccess();
}, },
clearSearch() { clearSearch() {
this.sarSarAccessEOSearch.detailedList = '' this.sarSarAccessEOSearch.detailedList = ''
this.sarSarAccessEOSearch.detailedListName = '' this.sarSarAccessEOSearch.detailedListName = ''
// this.searchSarAccess(); this.searchSarAccess();
}, },
// 新增相关 // 新增相关
openModal(row, optType) { openModal(row, optType) {
@@ -304,17 +304,17 @@ export default {
}, },
pageChange(page) { pageChange(page) {
this.sarSarAccessEOSearch.page = page; this.sarSarAccessEOSearch.page = page;
// this.searchSarAccess(); this.searchSarAccess();
}, },
pageSizeChange(pageSize) { pageSizeChange(pageSize) {
this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent; this.sarSarAccessEOSearch.pageSize = this.$store.getters.userInfo.configContent;
// this.searchSarAccess(); this.searchSarAccess();
}, },
//清空 //清空
clearSearch() { clearSearch() {
this.sarSarAccessEOSearch.projectName = '' this.sarSarAccessEOSearch.projectName = ''
this.sarSarAccessEOSearch.detailedListName = '' this.sarSarAccessEOSearch.detailedListName = ''
// this.searchSarAccess() this.searchSarAccess()
}, },
// 新增相关 // 新增相关
@@ -303,6 +303,7 @@ import eventHub from "@/common/eventHub";
import ProjectRelatedPersonnel from "@/components/CustomFormComponents/ProjectRelatedPersonnel"; import ProjectRelatedPersonnel from "@/components/CustomFormComponents/ProjectRelatedPersonnel";
import { dateFormat } from "@/common/date/index"; import { dateFormat } from "@/common/date/index";
import moment from "moment"; import moment from "moment";
import { solostarData } from "@/api/unqualProcess";
function checkFD(rules, value, callback) { function checkFD(rules, value, callback) {
this.value = value; this.value = value;
@@ -850,7 +851,11 @@ export default {
} }
], ],
threeOptions: [], threeOptions: [],
loading: false loading: false,
// 项目分类数组
notProjectData: [],
projectData: []
}; };
}, },
methods: { methods: {
@@ -880,7 +885,7 @@ export default {
this.energyKindOptions = res.data.ENERGYTYPES; this.energyKindOptions = res.data.ENERGYTYPES;
this.protypeOptions = res.data.PROTYPE; this.protypeOptions = res.data.PROTYPE;
this.probaseOptions = res.data.PROBASE; this.probaseOptions = res.data.PROBASE;
this.productTypeOptions = res.data.XMLB; // this.productTypeOptions = res.data.XMLB;
this.targetMarketOptions = res.data.SCXX; this.targetMarketOptions = res.data.SCXX;
}) })
}, },
@@ -1207,11 +1212,12 @@ export default {
}, res => { }, res => {
if (this.localProTableSearch.prodectCode === "Maintenance") { if (this.localProTableSearch.prodectCode === "Maintenance") {
this.localProTableList = res.data.Maintenance.records; this.localProTableList = res.data.Maintenance.records;
this.productTypeOptions = this.projectData
this.total = res.data.Maintenance.total; this.total = res.data.Maintenance.total;
} else if (this.localProTableSearch.prodectCode === "notMaintenance") { } else if (this.localProTableSearch.prodectCode === "notMaintenance") {
this.localProTableList = res.data.notMaintenance.records; this.localProTableList = res.data.notMaintenance.records;
this.productTypeOptions = this.notProjectData
this.total = res.data.notMaintenance.total; this.total = res.data.notMaintenance.total;
} }
// this.localProTableList.map((item) => { // this.localProTableList.map((item) => {
// this.xmztOptions.map((opr) => { // this.xmztOptions.map((opr) => {
@@ -1385,7 +1391,6 @@ export default {
}, },
// 分页点击后方法 // 分页点击后方法
pageChange(page) { pageChange(page) {
console.log(page);
this.page = page; this.page = page;
this.getLocalProductTable(); this.getLocalProductTable();
}, },
@@ -1538,10 +1543,26 @@ export default {
}); });
this.localProEO.productManager = userIdList.join(","); this.localProEO.productManager = userIdList.join(",");
this.localProEO.productManagerShow = userNameList.join(","); this.localProEO.productManagerShow = userNameList.join(",");
},
selectSort() {
solostarData().then(res=>{
res.data.MaintenanceProjectStatus.forEach((item, index)=>{
this.projectData.push({
label: item,
value: index
})
})
res.data.notMaintenanceProjectStatus.forEach((item, index)=>{
this.notProjectData.push({
label: item,
value: index
})
})
})
} }
}, },
created() { created() {
console.log(this.productTypeOptions) this.selectSort()
this.getDept().then(res => { this.getDept().then(res => {
this.getUser(res); this.getUser(res);
}, e => { }, e => {
@@ -1065,7 +1065,7 @@ export default {
} }
.pagination { .pagination {
position: unset; position: absolute!important;
} }
.el-steps.el-steps--simple { .el-steps.el-steps--simple {
@@ -50,6 +50,11 @@
}) })
}, },
handleNodeClick (node) { handleNodeClick (node) {
let json = {
id: '123',
name: '123',
}
}, },
handleEdgeClick (node) {}, handleEdgeClick (node) {},
renderGraph(row) { renderGraph(row) {
@@ -182,11 +187,8 @@
{ {
type: 'collapse-expand', type: 'collapse-expand',
onChange: function onChange(item, collapsed) { onChange: function onChange(item, collapsed) {
console.log(1);
const data = item.get('model'); const data = item.get('model');
const icon = item.get('group').find((element) => element.get('name') === 'collapse-icon'); const icon = item.get('group').find((element) => element.get('name') === 'collapse-icon');
console.log(data);
console.log(icon);
if (collapsed) { if (collapsed) {
icon.attr('symbol', G6.Marker.expand); icon.attr('symbol', G6.Marker.expand);
} else { } else {
@@ -197,7 +199,7 @@
}, },
shouldBegin: (e) => { shouldBegin: (e) => {
const target = e.target const target = e.target
const nodeType = target.cfg.nature const nodeType = target.cfg.name
if (nodeType === 'collapse-icon') return true; if (nodeType === 'collapse-icon') return true;
return false; return false;
} }
@@ -77,7 +77,9 @@
// } // }
// this.$message.success('节点被点击' + data.name) // this.$message.success('节点被点击' + data.name)
}, },
handleEdgeClick (node) {}, handleEdgeClick (node) {
console.log(4);
},
renderGraph() { renderGraph() {
G6.registerNode( G6.registerNode(
'tree-node', 'tree-node',
@@ -281,6 +283,7 @@
}, },
handleGraphDraw () {}, handleGraphDraw () {},
handleGraphNodeClickEvent(graph) { handleGraphNodeClickEvent(graph) {
console.log(1);
// 点击节点 // 点击节点
graph.on('node:click', (e) => { graph.on('node:click', (e) => {
// 先将所有当前是 click 状态的节点置为非 click 状态 // 先将所有当前是 click 状态的节点置为非 click 状态
@@ -294,6 +297,7 @@
}); });
}, },
handleGraphEdgeClickEvent(graph) { handleGraphEdgeClickEvent(graph) {
console.log(2);
// 点击边 // 点击边
graph.on('edge:click', (e) => { graph.on('edge:click', (e) => {
// 先将所有当前是 click 状态的边置为非 click 状态 // 先将所有当前是 click 状态的边置为非 click 状态
+72 -12
View File
@@ -5,7 +5,7 @@
<div class="standard-search-content"> <div class="standard-search-content">
<div style="position: absolute;left: 0;right: 0;top: 0;bottom: 0;"> <div style="position: absolute;left: 0;right: 0;top: 0;bottom: 0;">
<div class="content-left"> <div class="content-left">
<div class="search" style="padding: 40px;"> <div class="search" style="padding: 20px 0 0;">
<div class="search-box"> <div class="search-box">
<div class="home-input"> <div class="home-input">
<el-input <el-input
@@ -36,7 +36,7 @@
<ul :class="[key, {'is-close': condition.isClose}]"> <ul :class="[key, {'is-close': condition.isClose}]">
<li v-for="(conditionOpt, optIndex) in optionsFun(condition.options)" :key="optIndex + condition.title"> <li v-for="(conditionOpt, optIndex) in optionsFun(condition.options)" :key="optIndex + condition.title">
<span :class="{ 'selected': searchCondition[key].indexOf(conditionOpt.value) !== -1 }" @click="optChecked(key, conditionOpt.value)">{{ conditionOpt.label }} <span :class="{ 'selected': searchCondition[key].indexOf(conditionOpt.value) !== -1 }" @click="optChecked(key, conditionOpt.value)">{{ conditionOpt.label }}
<span v-if="conditionOpt.number !== null && conditionOpt.number !== undefined">(<font style="color: red">{{ conditionOpt.number}}</font>)</span> <span v-if="conditionOpt.number !== null && conditionOpt.number !== undefined && selectIndex !== 'All'">(<font style="color: red">{{ conditionOpt.number}}</font>)</span>
</span> </span>
</li> </li>
</ul> </ul>
@@ -268,7 +268,6 @@
</div> </div>
</div> </div>
<adc-back-top scroll-bind="standardSearch" windowScroll></adc-back-top> <adc-back-top scroll-bind="standardSearch" windowScroll></adc-back-top>
<!-- 分享 --> <!-- 分享 -->
<el-drawer :title="$t('m.share')" :visible.sync="drawerModal" size="300px" :styles="drawerModalstyles" @close="treeCancel"> <el-drawer :title="$t('m.share')" :visible.sync="drawerModal" size="300px" :styles="drawerModalstyles" @close="treeCancel">
<div class="demo-drawer-content"> <div class="demo-drawer-content">
@@ -739,6 +738,8 @@
* @date: 2018/12/19 11:38:21 * @date: 2018/12/19 11:38:21
*/ */
optChecked (key, value) { optChecked (key, value) {
console.log(value)
console.log(this.selectIndex)
if (value === 'All') { if (value === 'All') {
this.AllCheck = true this.AllCheck = true
// 点击全部-显示分页 // 点击全部-显示分页
@@ -775,12 +776,18 @@
index: 0 index: 0
} }
} }
let originOptions = this.searchOriginOptions
this.searchOptions.NYLXCLASS = originOptions.NYLXCLASS
this.searchOptions.NYLXCLASS.title = '能源类型'
this.searchOptions.NYLXCLASS.index = 1
// 适用车辆类型
this.searchOptions.CLLX = originOptions.CLLX
this.searchOptions.CLLX.index = 2
this.searchCondition.selectIndex = ['All'] this.searchCondition.selectIndex = ['All']
this.selectIndex = value
this.searchSarByInputKey() this.searchSarByInputKey()
this.$forceUpdate()
} else { } else {
this.AllPage = false
this.Allitems = []
this.AllCheck = false
let index = this.searchCondition[key].indexOf(value) let index = this.searchCondition[key].indexOf(value)
// 资源类型为单选且必选 // 资源类型为单选且必选
if (key !== 'selectIndex') { if (key !== 'selectIndex') {
@@ -876,6 +883,12 @@
this.searchCondition[key].splice(0, 1, value) this.searchCondition[key].splice(0, 1, value)
} }
} }
this.AllPage = this.selectIndex === 'All' ? true : false
this.Allitems = []
this.AllCheck = this.selectIndex === 'All' ? true : false
if (this.selectIndex === 'All'){
this.searchSarByInputKey()
}
} }
}, },
// 统计搜索条件结果个数 // 统计搜索条件结果个数
@@ -1257,6 +1270,12 @@
if (filterOptions.module) { if (filterOptions.module) {
filterOptions.module.options = [] filterOptions.module.options = []
} }
filterOptions.NYLXCLASS = originOptions.NYLXCLASS
filterOptions.NYLXCLASS.title = '能源类型'
filterOptions.NYLXCLASS.index = 1
// 适用车辆类型
filterOptions.CLLX = originOptions.CLLX
filterOptions.CLLX.index = 2
break break
} }
this.searchOptions = filterOptions this.searchOptions = filterOptions
@@ -1287,13 +1306,52 @@
if (this.keywords === undefined) { if (this.keywords === undefined) {
this.keywords = '' this.keywords = ''
} }
const Alllist = { const AllList = {}
selectIndex: 'fulltextserch', console.log(this.searchOptions)
selectValue: this.keywords, console.log(this.searchCondition)
page: this.pageAll, let searchCondition = this.searchCondition
pageSize: this.$store.getters.userInfo.configContent let searchKeys = Object.keys(this.searchOptions)
console.log(searchCondition)
console.log(searchKeys)
for (let key in searchCondition) {
if (searchKeys.indexOf(key) !== -1) {
if(key !== 'CLLX' && key !== 'NYLXCLASS'){
AllList[key] = searchCondition[key].join(',') === 'all' ? '' : searchCondition[key].join(',')
}else {
AllList[key] = searchCondition[key].join(',') === 'all' ? '' : searchCondition[key].join(',')
const list = AllList[key].split(",")
const listSum = []
list.forEach(item =>{
if(key === 'CLLX' && this.searchOptions.CLLX && this.searchOptions.CLLX.options){
const ids = this.searchOptions.CLLX.options
ids.forEach(data =>{
if(data.value === item){
listSum.push(data.label)
}
})
}else if(key === 'NYLXCLASS' && this.searchOptions.NYLXCLASS && this.searchOptions.NYLXCLASS.options){
const ids = this.searchOptions.NYLXCLASS.options
ids.forEach(data =>{
if(data.value === item){
listSum.push(data.label)
}
})
}
})
AllList[key] = listSum.join(',')
}
}
} }
this.$http.post('search/searchCenter/searchSarBykey', Alllist, { if(AllList[""]){
}
AllList.selectIndex = 'fulltextserch'
AllList.selectValue = this.keywords
AllList.page = this.pageAll
AllList.pageSize = this.$store.getters.userInfo.configContent
this.$http.post('search/searchCenter/searchSarBykey', AllList, {
_this: this, _this: this,
loading: 'resultLoading' loading: 'resultLoading'
}, res => { }, res => {
@@ -2562,6 +2620,8 @@
}) })
}) })
this.searchCondition['standSort'].splice(0, 1, 'all') this.searchCondition['standSort'].splice(0, 1, 'all')
this.searchCondition['NYLXCLASS'].splice(0, 1, 'all')
this.searchCondition['CLLX'].splice(0, 1, 'all')
} }
}, },
mounted () { mounted () {
+4 -3
View File
@@ -6,9 +6,10 @@
// 服务器地址 // 服务器地址
// const devIp = '39.98.140.126' // const devIp = '39.98.140.126'
// const devInterfacePORT = '10005' // const devInterfacePORT = '10005'
const devIp = '192.168.10.50' // const devIp = '192.168.10.249'
// const devIp = '62.234.136.153' const devIp = '62.234.136.153'
const devInterfacePORT = '9999' // const devInterfacePORT = '9999'
const devInterfacePORT = '8033'
// 配置 idm 认证 // 配置 idm 认证
const ssoLogin = 'http://sso.foton.com.cn/oauth2.0/authorize?client_id=app_slrs&response_type=code&redirect_uri=' const ssoLogin = 'http://sso.foton.com.cn/oauth2.0/authorize?client_id=app_slrs&response_type=code&redirect_uri='
// 配置 前端服务 // 配置 前端服务