Merge branch 'dev_20231201_feizhi' into 'master'
Dev 20231201 feizhi See merge request laws-foton-slrs/foton-laws-system-front!129
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'vue/singleline-html-element-content-newline': 'error', // 单行元素内容之前和之后需要换行
|
'vue/singleline-html-element-content-newline': 'off', // 单行元素内容之前和之后不需要换行
|
||||||
'vue/multiline-html-element-content-newline': 'error', // 多行元素内容之前和之后需要换行
|
'vue/multiline-html-element-content-newline': 'error', // 多行元素内容之前和之后需要换行
|
||||||
'vue/html-indent': ['error', 2], // 缩进 2 个空格
|
'vue/html-indent': ['error', 2], // 缩进 2 个空格
|
||||||
'vue/html-closing-bracket-newline': ['error', { // 强制或禁止在自闭合标签之前换行
|
'vue/html-closing-bracket-newline': ['error', { // 强制或禁止在自闭合标签之前换行
|
||||||
|
|||||||
@@ -22,19 +22,19 @@
|
|||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
<Basic :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">过程稿件</template>
|
<template slot="title">过程稿件</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<ProcessFile :form="form" :disabled="disabled"></ProcessFile>
|
<ProcessFile :form="form" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">适用范围</template>
|
<template slot="title">适用范围</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Range :form="form" :dict="dict" :disabled="disabled"></Range>
|
<Range :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">关联信息</template>
|
<template slot="title">关联信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Info :form="form" :dict="dict" :disabled="disabled"></Info>
|
<Info :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<!--<ProcessTitle>-->
|
<!--<ProcessTitle>-->
|
||||||
<!-- <template slot="title">文件汇总</template>-->
|
<!-- <template slot="title">文件汇总</template>-->
|
||||||
<!--</ProcessTitle>-->
|
<!--</ProcessTitle>-->
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">意见信息</template>
|
<template slot="title">意见信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.infoList"></TermInfo>
|
<TermInfo :data="form.infoList" />
|
||||||
<div class="prc-content-border">
|
<div class="prc-content-border">
|
||||||
<UploadFormItem
|
<UploadFormItem
|
||||||
label="汇总评审意见文件"
|
label="汇总评审意见文件"
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
:names.sync="form.summaryFileName"
|
:names.sync="form.summaryFileName"
|
||||||
view
|
view
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
></UploadFormItem>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">培训文件</template>
|
<template slot="title">培训文件</template>
|
||||||
@@ -64,75 +64,73 @@
|
|||||||
:names.sync="form.madelSubName"
|
:names.sync="form.madelSubName"
|
||||||
view
|
view
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
></UploadFormItem>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明"></ReceiptDescription>
|
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '2'">
|
<template v-if="active === '2'">
|
||||||
<RoleInfo :roleForm="roleForm"></RoleInfo>
|
<RoleInfo :role-form="roleForm" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '3'">
|
<template v-if="active === '3'">
|
||||||
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
|
<PhoneHistortTable :prc-num="this.$route.query.prcNum" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '4'">
|
<template v-if="active === '4'">
|
||||||
<div style="height: 100%">
|
<div style="height: 100%">
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">条款信息</template>
|
<template slot="title">条款信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.modelData"></TermInfo>
|
<TermInfo :data="form.modelData" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '5'">
|
<template v-if="active === '5'">
|
||||||
<Score :form="form" :standSort="form.standSort" :standName="form.standName"></Score>
|
<Score :form="form" :stand-sort="form.standSort" :stand-name="form.standName" />
|
||||||
</template>
|
</template>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit2
|
show-submit2
|
||||||
show-transfer
|
show-transfer
|
||||||
:submitLoading="footerLoading"
|
:submit-loading="footerLoading"
|
||||||
@submit2="handle2"
|
@submit2="handle2"
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@over2="handle1"
|
@over2="handle2"
|
||||||
>
|
/>
|
||||||
</ProcessFooter>
|
|
||||||
<!-- 福田全公司选人解决方案 -->
|
<!-- 福田全公司选人解决方案 -->
|
||||||
<phoneRoleTree
|
<phoneRoleTree
|
||||||
check-box
|
check-box
|
||||||
:is-title="drawerTitle"
|
:is-title="drawerTitle"
|
||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
|
:node-list="nodeList"
|
||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
:nodeList="nodeList"
|
/>
|
||||||
></phoneRoleTree>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
|
||||||
import {getEvaluationIndex} from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
|
|
||||||
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
||||||
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
||||||
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
|
import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
|
||||||
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
import Basic from "./components/Basic";
|
import Basic from './components/Basic';
|
||||||
import ProcessFile from "./components/ProcessFile";
|
import ProcessFile from './components/ProcessFile';
|
||||||
import Range from "./components/Range";
|
import Range from './components/Range';
|
||||||
import Info from "./components/Info";
|
import Info from './components/Info';
|
||||||
import RoleInfo from "./components/RoleInfo";
|
import RoleInfo from './components/RoleInfo';
|
||||||
import FileSummary from "./components/FileSummary";
|
import FileSummary from './components/FileSummary';
|
||||||
import TermInfo from "./components/TermInfo";
|
import TermInfo from './components/TermInfo';
|
||||||
import Score from "./components/Score";
|
import Score from './components/Score';
|
||||||
|
|
||||||
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step2",
|
name: 'Step2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
PhoneHistortTable,
|
PhoneHistortTable,
|
||||||
@@ -233,7 +231,7 @@ export default {
|
|||||||
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(this.form.approvalOpinion === 1) {
|
if(this.form.approvalOpinion === 1) {
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success('操作成功')
|
this.$message.success('操作成功')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,19 +22,19 @@
|
|||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
<Basic :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">过程稿件</template>
|
<template slot="title">过程稿件</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<ProcessFile :form="form" :disabled="disabled"></ProcessFile>
|
<ProcessFile :form="form" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">适用范围</template>
|
<template slot="title">适用范围</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Range :form="form" :dict="dict" :disabled="disabled"></Range>
|
<Range :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">关联信息</template>
|
<template slot="title">关联信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Info :form="form" :dict="dict" :disabled="disabled"></Info>
|
<Info :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<!--<ProcessTitle>-->
|
<!--<ProcessTitle>-->
|
||||||
<!-- <template slot="title">文件汇总</template>-->
|
<!-- <template slot="title">文件汇总</template>-->
|
||||||
<!--</ProcessTitle>-->
|
<!--</ProcessTitle>-->
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">意见信息</template>
|
<template slot="title">意见信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.infoList"></TermInfo>
|
<TermInfo :data="form.infoList" />
|
||||||
<div class="prc-content-border">
|
<div class="prc-content-border">
|
||||||
<UploadFormItem
|
<UploadFormItem
|
||||||
label="汇总评审意见文件"
|
label="汇总评审意见文件"
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
:names.sync="form.summaryFileName"
|
:names.sync="form.summaryFileName"
|
||||||
view
|
view
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
></UploadFormItem>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">培训文件</template>
|
<template slot="title">培训文件</template>
|
||||||
@@ -64,75 +64,73 @@
|
|||||||
:names.sync="form.madelSubName"
|
:names.sync="form.madelSubName"
|
||||||
view
|
view
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
></UploadFormItem>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明"></ReceiptDescription>
|
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '2'">
|
<template v-if="active === '2'">
|
||||||
<RoleInfo :roleForm="roleForm"></RoleInfo>
|
<RoleInfo :role-form="roleForm" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '3'">
|
<template v-if="active === '3'">
|
||||||
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
|
<PhoneHistortTable :prc-num="this.$route.query.prcNum" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '4'">
|
<template v-if="active === '4'">
|
||||||
<div style="height: 100%">
|
<div style="height: 100%">
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">条款信息</template>
|
<template slot="title">条款信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.modelData"></TermInfo>
|
<TermInfo :data="form.modelData" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '5'">
|
<template v-if="active === '5'">
|
||||||
<Score :form="form" :standSort="form.standSort" :standName="form.standName"></Score>
|
<Score :form="form" :stand-sort="form.standSort" :stand-name="form.standName" />
|
||||||
</template>
|
</template>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit2
|
show-submit2
|
||||||
show-transfer
|
show-transfer
|
||||||
:submitLoading="footerLoading"
|
:submit-loading="footerLoading"
|
||||||
@submit2="handle2"
|
@submit2="handle2"
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@over2="handle1"
|
@over2="handle2"
|
||||||
>
|
/>
|
||||||
</ProcessFooter>
|
|
||||||
<!-- 福田全公司选人解决方案 -->
|
<!-- 福田全公司选人解决方案 -->
|
||||||
<phoneRoleTree
|
<phoneRoleTree
|
||||||
check-box
|
check-box
|
||||||
:is-title="drawerTitle"
|
:is-title="drawerTitle"
|
||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
|
:node-list="nodeList"
|
||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
:nodeList="nodeList"
|
/>
|
||||||
></phoneRoleTree>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
|
||||||
import {getEvaluationIndex} from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
|
|
||||||
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
||||||
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
||||||
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
|
import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
|
||||||
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
import Basic from "./components/Basic";
|
import Basic from './components/Basic';
|
||||||
import ProcessFile from "./components/ProcessFile";
|
import ProcessFile from './components/ProcessFile';
|
||||||
import Range from "./components/Range";
|
import Range from './components/Range';
|
||||||
import Info from "./components/Info";
|
import Info from './components/Info';
|
||||||
import RoleInfo from "./components/RoleInfo";
|
import RoleInfo from './components/RoleInfo';
|
||||||
import FileSummary from "./components/FileSummary";
|
import FileSummary from './components/FileSummary';
|
||||||
import TermInfo from "./components/TermInfo";
|
import TermInfo from './components/TermInfo';
|
||||||
import Score from "./components/Score";
|
import Score from './components/Score';
|
||||||
|
|
||||||
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step2",
|
name: 'Step2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
PhoneHistortTable,
|
PhoneHistortTable,
|
||||||
@@ -203,10 +201,10 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getStandInfoByReviseStatus () {
|
getStandInfoByReviseStatus () {
|
||||||
let date = new Date();
|
const date = new Date();
|
||||||
let year = date.getFullYear();
|
const year = date.getFullYear();
|
||||||
if(this.form.reviseStatus === '2') {
|
if(this.form.reviseStatus === '2') {
|
||||||
let index1 = this.form.DTQBBHBUSS.split(',')[0].lastIndexOf('-') // 7
|
const index1 = this.form.DTQBBHBUSS.split(',')[0].lastIndexOf('-') // 7
|
||||||
this.standYear = this.form.DTQBBHBUSS.split(',')[0].slice(index1 + 1) // 2023 x
|
this.standYear = this.form.DTQBBHBUSS.split(',')[0].slice(index1 + 1) // 2023 x
|
||||||
if(this.standYear.indexOf(' ') > 0) {
|
if(this.standYear.indexOf(' ') > 0) {
|
||||||
const _index = this.standYear.indexOf(' ')
|
const _index = this.standYear.indexOf(' ')
|
||||||
@@ -218,49 +216,48 @@ export default {
|
|||||||
|
|
||||||
this.standSort = this.form.standSort
|
this.standSort = this.form.standSort
|
||||||
this.form.standYear = year
|
this.form.standYear = year
|
||||||
if((this.standYear+'').slice(0,4) != year){
|
if((`${ this.standYear }`).slice(0, 4) != year) {
|
||||||
this.form.standYear = year
|
this.form.standYear = year
|
||||||
}else{
|
}else{
|
||||||
if((this.standYear+'').slice(0,4) == (this.form.standYear + '').slice(0,4)){
|
if((`${ this.standYear }`).slice(0, 4) == (`${ this.form.standYear }`).slice(0, 4)) {
|
||||||
this.form.standYear = this.standYear + ' X'
|
this.form.standYear = `${ this.standYear } X`
|
||||||
}else{
|
}else{
|
||||||
this.form.standYear = this.standYear
|
this.form.standYear = this.standYear
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.form.standYear == this.standYear) {
|
if(this.form.standYear == this.standYear) {
|
||||||
this.form.standYear = this.form.standYear + ' X'
|
this.form.standYear = `${ this.form.standYear } X`
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.form.standNum.includes(',')) {
|
if (this.form.standNum.includes(',')) {
|
||||||
// 多个代替企标编号 调接口获取企标顺序号
|
// 多个代替企标编号 调接口获取企标顺序号
|
||||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss1_'+this.form.reviseStatus,standSort:this.form.standSort,taskId: this.taskIds}, {
|
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus', { reviseStatus: `buss1_${ this.form.reviseStatus }`, standSort: this.form.standSort, taskId: this.taskIds }, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.form.standNum = res.data + ''
|
this.form.standNum = `${ res.data }`
|
||||||
this.form.standNum = this.form.standNum.replace(/^0+/,"")
|
this.form.standNum = this.form.standNum.replace(/^0+/, '')
|
||||||
this.form.standNum = this.form.standNum.padStart(3, '0')
|
this.form.standNum = this.form.standNum.padStart(3, '0')
|
||||||
this.standNum = this.form.standNum // 保存初始顺序号
|
this.standNum = this.form.standNum // 保存初始顺序号
|
||||||
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : `-${ this.form.standYear }` )
|
||||||
this.standCode = this.form.standCode
|
this.standCode = this.form.standCode
|
||||||
this.formKey++
|
this.formKey++
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.form.standNum = this.form.standNum.replace(/^0+/,"")
|
this.form.standNum = this.form.standNum.replace(/^0+/, '')
|
||||||
this.form.standNum = this.form.standNum.padStart(3, '0')
|
this.form.standNum = this.form.standNum.padStart(3, '0')
|
||||||
|
|
||||||
this.standNum = this.form.standNum // 保存初始顺序号
|
this.standNum = this.form.standNum // 保存初始顺序号
|
||||||
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : `-${ this.form.standYear }` )
|
||||||
|
|
||||||
this.standCode = this.form.standCode
|
this.standCode = this.form.standCode
|
||||||
this.formKey++
|
this.formKey++
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (this.form.reviseStatus === '3') {
|
} else if (this.form.reviseStatus === '3') {
|
||||||
this.standCode = this.form.standCode
|
this.standCode = this.form.standCode
|
||||||
// ---
|
// ---
|
||||||
let index1 = this.form.standCode.lastIndexOf('-') // 7
|
const index1 = this.form.standCode.lastIndexOf('-') // 7
|
||||||
this.standYear = this.form.standCode.slice(index1 + 1) // 2023 x
|
this.standYear = this.form.standCode.slice(index1 + 1) // 2023 x
|
||||||
if(this.standYear.indexOf(' ') > 0) {
|
if(this.standYear.indexOf(' ') > 0) {
|
||||||
const _index = this.standYear.indexOf(' ')
|
const _index = this.standYear.indexOf(' ')
|
||||||
@@ -270,12 +267,12 @@ export default {
|
|||||||
this.standYear = this.standYear.slice(0, _index) // 2023
|
this.standYear = this.standYear.slice(0, _index) // 2023
|
||||||
}
|
}
|
||||||
|
|
||||||
let noYearStand = this.form.standCode.slice(0, index1) // 'Q-F 101'
|
const noYearStand = this.form.standCode.slice(0, index1) // 'Q-F 101'
|
||||||
this.standNum = noYearStand.replace(this.form.standSort, '').trim() // '101'
|
this.standNum = noYearStand.replace(this.form.standSort, '').trim() // '101'
|
||||||
|
|
||||||
this.standSort = this.form.standSort
|
this.standSort = this.form.standSort
|
||||||
|
|
||||||
this.standNum = this.standNum.replace(/^0+/,"")
|
this.standNum = this.standNum.replace(/^0+/, '')
|
||||||
this.standNum = this.standNum.padStart(3, '0')
|
this.standNum = this.standNum.padStart(3, '0')
|
||||||
|
|
||||||
this.form.standNum = this.standNum
|
this.form.standNum = this.standNum
|
||||||
@@ -283,31 +280,29 @@ export default {
|
|||||||
|
|
||||||
this.form.standYear = this.standYear
|
this.form.standYear = this.standYear
|
||||||
|
|
||||||
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : `-${ this.form.standYear }` )
|
||||||
} else {
|
} else {
|
||||||
this.form.standYear = year
|
this.form.standYear = year
|
||||||
|
|
||||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss1_'+this.form.reviseStatus,standSort:this.form.standSort,taskId: this.taskIds}, {
|
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus', { reviseStatus: `buss1_${ this.form.reviseStatus }`, standSort: this.form.standSort, taskId: this.taskIds }, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
const standSn = res.data
|
const standSn = res.data
|
||||||
this.form.standSn = standSn
|
this.form.standSn = standSn
|
||||||
this.form.standNumber = standSn
|
this.form.standNumber = standSn
|
||||||
this.form.standNum = standSn + ''
|
this.form.standNum = `${ standSn }`
|
||||||
|
|
||||||
this.form.standNum = this.form.standNum.replace(/^0+/,"")
|
this.form.standNum = this.form.standNum.replace(/^0+/, '')
|
||||||
this.form.standNum = this.form.standNum.padStart(3, '0')
|
this.form.standNum = this.form.standNum.padStart(3, '0')
|
||||||
|
|
||||||
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : `-${ this.form.standYear }` )
|
||||||
this.standSort = this.form.standSort
|
this.standSort = this.form.standSort
|
||||||
this.standCode = this.form.standCode
|
this.standCode = this.form.standCode
|
||||||
|
|
||||||
|
|
||||||
this.formKey++
|
this.formKey++
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
handle2 () {
|
handle2 () {
|
||||||
this.$message({
|
this.$message({
|
||||||
@@ -342,7 +337,7 @@ export default {
|
|||||||
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(this.form.approvalOpinion === 1) {
|
if(this.form.approvalOpinion === 1) {
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success('操作成功')
|
this.$message.success('操作成功')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,19 +23,19 @@
|
|||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
<Basic :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">过程稿件</template>
|
<template slot="title">过程稿件</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<ProcessFile :form="form" :disabled="disabled"></ProcessFile>
|
<ProcessFile :form="form" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">适用范围</template>
|
<template slot="title">适用范围</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Range :form="form" :dict="dict" :disabled="disabled"></Range>
|
<Range :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">关联信息</template>
|
<template slot="title">关联信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Info :form="form" :dict="dict" :disabled="disabled"></Info>
|
<Info :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<!--<ProcessTitle>-->
|
<!--<ProcessTitle>-->
|
||||||
<!-- <template slot="title">文件汇总</template>-->
|
<!-- <template slot="title">文件汇总</template>-->
|
||||||
<!--</ProcessTitle>-->
|
<!--</ProcessTitle>-->
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">意见信息</template>
|
<template slot="title">意见信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.infoList"></TermInfo>
|
<TermInfo :data="form.infoList" />
|
||||||
<div class="prc-content-border">
|
<div class="prc-content-border">
|
||||||
<UploadFormItem
|
<UploadFormItem
|
||||||
label="汇总评审意见文件"
|
label="汇总评审意见文件"
|
||||||
@@ -52,27 +52,27 @@
|
|||||||
:names.sync="form.summaryFileName"
|
:names.sync="form.summaryFileName"
|
||||||
view
|
view
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
></UploadFormItem>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明"></ReceiptDescription>
|
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '2'">
|
<template v-if="active === '2'">
|
||||||
<RoleInfo :roleForm="roleForm"></RoleInfo>
|
<RoleInfo :role-form="roleForm" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '3'">
|
<template v-if="active === '3'">
|
||||||
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
|
<PhoneHistortTable :prc-num="this.$route.query.prcNum" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '4'">
|
<template v-if="active === '4'">
|
||||||
<div style="height: 100%">
|
<div style="height: 100%">
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">条款信息</template>
|
<template slot="title">条款信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.modelData"></TermInfo>
|
<TermInfo :data="form.modelData" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '5'">
|
<template v-if="active === '5'">
|
||||||
<Score :form="form" :standSort="form.standSort" :standName="form.standName"></Score>
|
<Score :form="form" :stand-sort="form.standSort" :stand-name="form.standName" />
|
||||||
</template>
|
</template>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -80,48 +80,46 @@
|
|||||||
show-submit
|
show-submit
|
||||||
show-over2
|
show-over2
|
||||||
show-transfer
|
show-transfer
|
||||||
:submitLoading="footerLoading"
|
:submit-loading="footerLoading"
|
||||||
@submit="handle2"
|
@submit="handle2"
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@over2="handle1"
|
@over2="handle2"
|
||||||
>
|
/>
|
||||||
</ProcessFooter>
|
|
||||||
<!-- 福田全公司选人解决方案 -->
|
<!-- 福田全公司选人解决方案 -->
|
||||||
<phoneRoleTree
|
<phoneRoleTree
|
||||||
check-box
|
check-box
|
||||||
:is-title="drawerTitle"
|
:is-title="drawerTitle"
|
||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
|
:node-list="nodeList"
|
||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
:nodeList="nodeList"
|
/>
|
||||||
></phoneRoleTree>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
|
||||||
import {getEvaluationIndex} from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
|
|
||||||
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
||||||
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
||||||
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
|
import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
|
||||||
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
import Basic from "./components/Basic";
|
import Basic from './components/Basic';
|
||||||
import ProcessFile from "./components/ProcessFile";
|
import ProcessFile from './components/ProcessFile';
|
||||||
import Range from "./components/Range";
|
import Range from './components/Range';
|
||||||
import Info from "./components/Info";
|
import Info from './components/Info';
|
||||||
import RoleInfo from "./components/RoleInfo";
|
import RoleInfo from './components/RoleInfo';
|
||||||
import FileSummary from "./components/FileSummary";
|
import FileSummary from './components/FileSummary';
|
||||||
import TermInfo from "./components/TermInfo";
|
import TermInfo from './components/TermInfo';
|
||||||
import Score from "./components/Score";
|
import Score from './components/Score';
|
||||||
|
|
||||||
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step2",
|
name: 'Step2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
PhoneHistortTable,
|
PhoneHistortTable,
|
||||||
@@ -215,7 +213,7 @@ export default {
|
|||||||
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(this.form.approvalOpinion === 1) {
|
if(this.form.approvalOpinion === 1) {
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success('操作成功')
|
this.$message.success('操作成功')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,19 +23,19 @@
|
|||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
<Basic :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">过程稿件</template>
|
<template slot="title">过程稿件</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<ProcessFile :form="form" :disabled="disabled"></ProcessFile>
|
<ProcessFile :form="form" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">适用范围</template>
|
<template slot="title">适用范围</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Range :form="form" :dict="dict" :disabled="disabled"></Range>
|
<Range :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">关联信息</template>
|
<template slot="title">关联信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Info :form="form" :dict="dict" :disabled="disabled"></Info>
|
<Info :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<!--<ProcessTitle>-->
|
<!--<ProcessTitle>-->
|
||||||
<!-- <template slot="title">文件汇总</template>-->
|
<!-- <template slot="title">文件汇总</template>-->
|
||||||
<!--</ProcessTitle>-->
|
<!--</ProcessTitle>-->
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">意见信息</template>
|
<template slot="title">意见信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.infoList"></TermInfo>
|
<TermInfo :data="form.infoList" />
|
||||||
<div class="prc-content-border">
|
<div class="prc-content-border">
|
||||||
<UploadFormItem
|
<UploadFormItem
|
||||||
label="汇总评审意见文件"
|
label="汇总评审意见文件"
|
||||||
@@ -52,27 +52,27 @@
|
|||||||
:names.sync="form.summaryFileName"
|
:names.sync="form.summaryFileName"
|
||||||
view
|
view
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
></UploadFormItem>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明"></ReceiptDescription>
|
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '2'">
|
<template v-if="active === '2'">
|
||||||
<RoleInfo :roleForm="roleForm"></RoleInfo>
|
<RoleInfo :role-form="roleForm" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '3'">
|
<template v-if="active === '3'">
|
||||||
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
|
<PhoneHistortTable :prc-num="this.$route.query.prcNum" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '4'">
|
<template v-if="active === '4'">
|
||||||
<div style="height: 100%">
|
<div style="height: 100%">
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">条款信息</template>
|
<template slot="title">条款信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.modelData"></TermInfo>
|
<TermInfo :data="form.modelData" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '5'">
|
<template v-if="active === '5'">
|
||||||
<Score :form="form" :standSort="form.standSort" :standName="form.standName"></Score>
|
<Score :form="form" :stand-sort="form.standSort" :stand-name="form.standName" />
|
||||||
</template>
|
</template>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -80,48 +80,46 @@
|
|||||||
show-submit2
|
show-submit2
|
||||||
show-over2
|
show-over2
|
||||||
show-transfer
|
show-transfer
|
||||||
:submitLoading="footerLoading"
|
:submit-loading="footerLoading"
|
||||||
@submit2="handle2"
|
@submit2="handle2"
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@over2="handle1"
|
@over2="handle2"
|
||||||
>
|
/>
|
||||||
</ProcessFooter>
|
|
||||||
<!-- 福田全公司选人解决方案 -->
|
<!-- 福田全公司选人解决方案 -->
|
||||||
<phoneRoleTree
|
<phoneRoleTree
|
||||||
check-box
|
check-box
|
||||||
:is-title="drawerTitle"
|
:is-title="drawerTitle"
|
||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
|
:node-list="nodeList"
|
||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
:nodeList="nodeList"
|
/>
|
||||||
></phoneRoleTree>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
|
||||||
import {getEvaluationIndex} from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
|
|
||||||
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
||||||
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
||||||
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
|
import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
|
||||||
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
import Basic from "./components/Basic";
|
import Basic from './components/Basic';
|
||||||
import ProcessFile from "./components/ProcessFile";
|
import ProcessFile from './components/ProcessFile';
|
||||||
import Range from "./components/Range";
|
import Range from './components/Range';
|
||||||
import Info from "./components/Info";
|
import Info from './components/Info';
|
||||||
import RoleInfo from "./components/RoleInfo";
|
import RoleInfo from './components/RoleInfo';
|
||||||
import FileSummary from "./components/FileSummary";
|
import FileSummary from './components/FileSummary';
|
||||||
import TermInfo from "./components/TermInfo";
|
import TermInfo from './components/TermInfo';
|
||||||
import Score from "./components/Score";
|
import Score from './components/Score';
|
||||||
|
|
||||||
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step2",
|
name: 'Step2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
PhoneHistortTable,
|
PhoneHistortTable,
|
||||||
@@ -222,7 +220,7 @@ export default {
|
|||||||
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(this.form.approvalOpinion === 1) {
|
if(this.form.approvalOpinion === 1) {
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success('操作成功')
|
this.$message.success('操作成功')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="root">
|
<div class="root">
|
||||||
<div id="mountNode" ref="mountNode"></div>
|
<div id="mountNode" ref="mountNode" />
|
||||||
<DialogTable ref="DialogTableRef"></DialogTable>
|
<DialogTable ref="DialogTableRef" />
|
||||||
<loading :loading="loading">加载中...</loading>
|
<loading :loading="loading">
|
||||||
|
加载中...
|
||||||
|
</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import G6 from '@antv/g6';
|
import G6 from '@antv/g6';
|
||||||
|
|
||||||
import DialogTable from "./components/DialogTable";
|
import DialogTable from './components/DialogTable';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "systemSearch",
|
name: 'SystemSearch',
|
||||||
components: {
|
components: {
|
||||||
DialogTable
|
DialogTable
|
||||||
},
|
},
|
||||||
@@ -194,7 +196,6 @@ export default {
|
|||||||
'polyline',
|
'polyline',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
const graph = new G6.TreeGraph({
|
const graph = new G6.TreeGraph({
|
||||||
container: 'mountNode', // String | HTMLElement,必须,在 Step 1 中创建的容器 id 或容器本身
|
container: 'mountNode', // String | HTMLElement,必须,在 Step 1 中创建的容器 id 或容器本身
|
||||||
width: this.$refs.mountNode.scrollWidth, // Number,必须,图的宽度
|
width: this.$refs.mountNode.scrollWidth, // Number,必须,图的宽度
|
||||||
@@ -315,10 +316,20 @@ export default {
|
|||||||
// graph.fitView()
|
// graph.fitView()
|
||||||
graph.fitCenter()
|
graph.fitCenter()
|
||||||
// graph.focusItem(this.data.id)
|
// graph.focusItem(this.data.id)
|
||||||
|
// 添加事件监听
|
||||||
this.initGraphEvent(graph)
|
this.initGraphEvent(graph)
|
||||||
|
// 监听窗口尺寸变化
|
||||||
|
window.addEventListener('resize', () => {
|
||||||
|
// 获取新的窗口尺寸
|
||||||
|
const newWidth = this.$refs.mountNode.offsetWidth;
|
||||||
|
const newHeight = this.$refs.mountNode.offsetHeight
|
||||||
|
|
||||||
|
// 更新 G6 图表的尺寸
|
||||||
|
graph.changeSize(newWidth, newHeight);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
setCollapse () {
|
setCollapse () {
|
||||||
G6.Util.traverseTree(this.data, function (item) {
|
G6.Util.traverseTree(this.data, (item) => {
|
||||||
if (item.level >= 2) {
|
if (item.level >= 2) {
|
||||||
// collapsed为true时默认收起
|
// collapsed为true时默认收起
|
||||||
item.collapsed = true
|
item.collapsed = true
|
||||||
|
|||||||
Reference in New Issue
Block a user