[update 查看详情] 权限申请流程
This commit is contained in:
+126
-26
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<internal-detail-page :title="pageTitle" :content-padding="0" :loading="loading">
|
<internal-detail-page :title="pageTitle" :content-padding="0" :loading="loading">
|
||||||
<!-- 标题右侧tab -->
|
<!-- 标题右侧tab -->
|
||||||
<template v-slot:titleRightCustom>
|
<template v-slot:titleRightCustom v-if="!disabledAll">
|
||||||
<div class="table-operator-tab">
|
<div class="table-operator-tab">
|
||||||
<!-- 基础信息 -->
|
<!-- 基础信息 -->
|
||||||
<a class="switch-item" :class="switchValue === 'base' ? 'table-operator-tab-active' : ''"
|
<a class="switch-item" :class="switchValue === 'base' ? 'table-operator-tab-active' : ''"
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('processName')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('processName')">
|
||||||
<a-input :placeholder="$t('pleaseEnter') + $t('processName')"
|
<a-input :placeholder="$t('pleaseEnter') + $t('processName')"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
:disabled="disabled || processDisabled"
|
:disabled="disabled || processDisabled || disabledAll"
|
||||||
v-decorator="['prcName', validatorRules.processName]" />
|
v-decorator="['prcName', validatorRules.processName]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('expirationDate')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('expirationDate')">
|
||||||
<a-date-picker :placeholder="$t('pleaseSelect') + $t('expirationDate')"
|
<a-date-picker :placeholder="$t('pleaseSelect') + $t('expirationDate')"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:disabled="disabled || processDisabled"
|
:disabled="disabled || processDisabled || disabledAll"
|
||||||
value-format="YYYY-MM-DD hh:mm:ss"
|
value-format="YYYY-MM-DD hh:mm:ss"
|
||||||
v-decorator="['dueTime']" />
|
v-decorator="['dueTime']" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('processExplain')"
|
<a-textarea :placeholder="$t('pleaseEnter') + $t('processExplain')"
|
||||||
:maxLength="500"
|
:maxLength="500"
|
||||||
:rows="4"
|
:rows="4"
|
||||||
:disabled="disabled || processDisabled"
|
:disabled="disabled || processDisabled || disabledAll"
|
||||||
v-decorator="['prcMes']" />
|
v-decorator="['prcMes']" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
|
||||||
|
|
||||||
<!-- 标准表格 -->
|
<!-- 标准表格 -->
|
||||||
<base-info-table v-if="isInitiate" ref="baseInfoTable" :info="info" style="margin-bottom: 40px;"></base-info-table>
|
<base-info-table v-if="isInitiate" ref="baseInfoTable" :info="info" style="margin-bottom: 40px;" :disabled-all="disabledAll"></base-info-table>
|
||||||
<!-- 表单 -->
|
<!-- 表单 -->
|
||||||
<a-form :form="baseInfoForm">
|
<a-form :form="baseInfoForm">
|
||||||
<a-row>
|
<a-row>
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
<a-form-item :labelCol="labelColBaseInfo" :wrapperCol="wrapperColBaseInfo" :label="$t('workCenter.permissionApplicationProcess.applicant')">
|
<a-form-item :labelCol="labelColBaseInfo" :wrapperCol="wrapperColBaseInfo" :label="$t('workCenter.permissionApplicationProcess.applicant')">
|
||||||
<a-input :placeholder="$t('pleaseEnter') + $t('workCenter.permissionApplicationProcess.applicant')"
|
<a-input :placeholder="$t('pleaseEnter') + $t('workCenter.permissionApplicationProcess.applicant')"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
:disabled="disabled"
|
:disabled="disabled || disabledAll"
|
||||||
v-decorator="['userDictText', validatorRules.applicant]" />
|
v-decorator="['userDictText', validatorRules.applicant]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<!-- 申请权限 -->
|
<!-- 申请权限 -->
|
||||||
<a-form-item :labelCol="longLabelColBaseInfo" :wrapperCol="longWrapperColBaseInfo" :label="$t('workCenter.permissionApplicationProcess.applyForPermission')">
|
<a-form-item :labelCol="longLabelColBaseInfo" :wrapperCol="longWrapperColBaseInfo" :label="$t('workCenter.permissionApplicationProcess.applyForPermission')">
|
||||||
<base-info-table v-if="!isInitiate" :disabled="!isInitiate" ref="applyPermissionTable"></base-info-table>
|
<base-info-table v-if="!isInitiate" :disabled="!isInitiate" :disabled-all="disabledAll" ref="applyPermissionTable"></base-info-table>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<!-- 授权到期日期 -->
|
<!-- 授权到期日期 -->
|
||||||
<a-form-item :labelCol="labelColBaseInfo" :wrapperCol="wrapperColBaseInfo" :label="$t('workCenter.permissionApplicationProcess.authExpirationDate')">
|
<a-form-item :labelCol="labelColBaseInfo" :wrapperCol="wrapperColBaseInfo" :label="$t('workCenter.permissionApplicationProcess.authExpirationDate')">
|
||||||
<j-date date-format="YYYY-MM-DD" style="width: 100%" showType="day" :disabled="disabled" :disabled-date="expirationDisabledDate"
|
<j-date date-format="YYYY-MM-DD" style="width: 100%" showType="day" :disabled="disabled || disabledAll" :disabled-date="expirationDisabledDate"
|
||||||
:placeholder="$t('pleaseSelect') + $t('workCenter.permissionApplicationProcess.authExpirationDate')"
|
:placeholder="$t('pleaseSelect') + $t('workCenter.permissionApplicationProcess.authExpirationDate')"
|
||||||
v-decorator="['expirationDate', validatorRules.authExpirationDate]" />
|
v-decorator="['expirationDate', validatorRules.authExpirationDate]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
<a-textarea :placeholder="$t('pleaseSelect') + $t('workCenter.permissionApplicationProcess.applicationDescription')"
|
<a-textarea :placeholder="$t('pleaseSelect') + $t('workCenter.permissionApplicationProcess.applicationDescription')"
|
||||||
:maxLength="500"
|
:maxLength="500"
|
||||||
:rows="4"
|
:rows="4"
|
||||||
:disabled="disabled"
|
:disabled="disabled || disabledAll"
|
||||||
v-decorator="['applyDetail', validatorRules.applicationDescription]" />
|
v-decorator="['applyDetail', validatorRules.applicationDescription]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -107,12 +107,13 @@
|
|||||||
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('remarks')">
|
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('remarks')">
|
||||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('remarks')"
|
<a-textarea :placeholder="$t('pleaseEnter') + $t('remarks')"
|
||||||
:maxLength="500"
|
:maxLength="500"
|
||||||
|
:disabled="disabledAll"
|
||||||
:rows="4"
|
:rows="4"
|
||||||
v-decorator="['commitText', validatorRules.remarks]" />
|
v-decorator="['commitText', validatorRules.remarks]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<!--附件-->
|
<!--附件-->
|
||||||
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('businessSupport.questionAnswer.attach')">
|
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('businessSupport.questionAnswer.attach')">
|
||||||
<j-upload v-decorator="['commitFile']" return-id multiple />
|
<j-upload v-decorator="['commitFile']" return-id multiple :disabled="disabledAll" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -126,7 +127,7 @@
|
|||||||
</process-detail-list>
|
</process-detail-list>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="detail-page-bottom-operate-box">
|
<div class="detail-page-bottom-operate-box" v-if="!disabledAll">
|
||||||
<!--转办-->
|
<!--转办-->
|
||||||
<a-button v-if="btn.includes('transfer')" type="primary" :loading="loading" @click="handleTurnTo" ghost icon="arrow-up">{{ $t('turnTo') }}</a-button>
|
<a-button v-if="btn.includes('transfer')" type="primary" :loading="loading" @click="handleTurnTo" ghost icon="arrow-up">{{ $t('turnTo') }}</a-button>
|
||||||
<!--保存-->
|
<!--保存-->
|
||||||
@@ -152,12 +153,12 @@ import PersonnelInfo from '@comp/PersonnelInfo'
|
|||||||
import BaseInfoTable from '@views/workCenter/permissionApplicationProcess/modules/BaseInfoTable'
|
import BaseInfoTable from '@views/workCenter/permissionApplicationProcess/modules/BaseInfoTable'
|
||||||
import UserSelectModal from '@comp/selection/UserSelectModal'
|
import UserSelectModal from '@comp/selection/UserSelectModal'
|
||||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||||
import { ApprovalOpinions, PermissionApply, ProcessKey } from '@/enums/commonEnums'
|
import { ApprovalOpinions, PermissionApply, ProcessKey, ProcessType } from '@/enums/commonEnums'
|
||||||
import {
|
import {
|
||||||
approvalPermissionApply, checkPermissionApply, getPermissionApplyDataById,
|
approvalPermissionApply, checkPermissionApply, getLookData, getPermissionApplyDataById,
|
||||||
getPermissionApplyDetail,
|
getPermissionApplyDetail,
|
||||||
getPermissionApplyProjectId, rejectPermissionApply,
|
getPermissionApplyProjectId, rejectPermissionApply,
|
||||||
savePermissionApply, startPermissionApply,
|
savePermissionApply, saveSnapShot, startPermissionApply,
|
||||||
transferPermissionApply
|
transferPermissionApply
|
||||||
} from '@api/workCenter'
|
} from '@api/workCenter'
|
||||||
import { cloneDeep } from 'lodash'
|
import { cloneDeep } from 'lodash'
|
||||||
@@ -172,6 +173,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
switchValue: 'base',
|
switchValue: 'base',
|
||||||
|
disabledAll: false, // 禁用全部
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
sm: { span: 4 }
|
sm: { span: 4 }
|
||||||
@@ -271,7 +273,8 @@ export default {
|
|||||||
// standardApproval
|
// standardApproval
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
const { projectId, nodeId, taskName } = this.$route.query
|
const { projectId, nodeId, taskName, isLook } = this.$route.query
|
||||||
|
this.disabledAll = isLook === '1'
|
||||||
// 发起、草稿进来没有nodeId,就默认发起节点
|
// 发起、草稿进来没有nodeId,就默认发起节点
|
||||||
this.currentNode = nodeId || PermissionApply.initiate.value
|
this.currentNode = nodeId || PermissionApply.initiate.value
|
||||||
this.currentNodeName = taskName || PermissionApply.initiate.text
|
this.currentNodeName = taskName || PermissionApply.initiate.text
|
||||||
@@ -282,6 +285,11 @@ export default {
|
|||||||
// 同意按钮
|
// 同意按钮
|
||||||
this.btn = ['agree']
|
this.btn = ['agree']
|
||||||
}
|
}
|
||||||
|
// 快照回显
|
||||||
|
if (this.$route.query.snapshotId) {
|
||||||
|
this.loadSnapshotPage()
|
||||||
|
return
|
||||||
|
}
|
||||||
// 查询人员信息
|
// 查询人员信息
|
||||||
this.getPersonInfoStructure(this.processKey, () => {
|
this.getPersonInfoStructure(this.processKey, () => {
|
||||||
this.initPersonInfoData(this.isInitiate)
|
this.initPersonInfoData(this.isInitiate)
|
||||||
@@ -457,6 +465,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const params = {}
|
const params = {}
|
||||||
|
if (this.$refs.baseInfoTable) {
|
||||||
|
params.lawsEnterpriseStandardList = this.$refs.baseInfoTable.dataSource || []
|
||||||
|
}
|
||||||
|
if (this.$refs.applyPermissionTable) {
|
||||||
|
params.lawsEnterpriseStandardList = this.$refs.applyPermissionTable.dataSource || []
|
||||||
|
}
|
||||||
// 收集所有表单信息
|
// 收集所有表单信息
|
||||||
let formDataList = []
|
let formDataList = []
|
||||||
if (isValidate) {
|
if (isValidate) {
|
||||||
@@ -476,6 +490,8 @@ export default {
|
|||||||
// 保存清空校验
|
// 保存清空校验
|
||||||
this.approvalInfoForm.validateFields(['commitText'], { force: true }, () => {})
|
this.approvalInfoForm.validateFields(['commitText'], { force: true }, () => {})
|
||||||
}
|
}
|
||||||
|
// 保存一下所有表单收集的数据用于快照回显
|
||||||
|
params.formDataList = formDataList
|
||||||
// 收集人员信息
|
// 收集人员信息
|
||||||
const personInfo = this.getPersonInfo(isValidate && !flag)
|
const personInfo = this.getPersonInfo(isValidate && !flag)
|
||||||
if (!personInfo) {
|
if (!personInfo) {
|
||||||
@@ -518,7 +534,9 @@ export default {
|
|||||||
// 业务数据,用于强制撤回后回显
|
// 业务数据,用于强制撤回后回显
|
||||||
draftData: Object.assign({}, params.processEsPermissionApply, {
|
draftData: Object.assign({}, params.processEsPermissionApply, {
|
||||||
lawsEnterpriseStandardList: this.$refs.baseInfoTable.dataSource
|
lawsEnterpriseStandardList: this.$refs.baseInfoTable.dataSource
|
||||||
})
|
}),
|
||||||
|
// 将流程数据保存json,后续进行快照回显
|
||||||
|
prcData: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -528,6 +546,72 @@ export default {
|
|||||||
}
|
}
|
||||||
return params
|
return params
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 保存快照信息
|
||||||
|
*/
|
||||||
|
saveSnapShotInfo (prcParams) {
|
||||||
|
// 没有taskId就不保存
|
||||||
|
if (!this.$route.query.taskId) {
|
||||||
|
return Promise.resolve({ success: true })
|
||||||
|
}
|
||||||
|
const { processAll = {}, processApprovalRecord = {} } = prcParams
|
||||||
|
const params = Object.assign({}, {
|
||||||
|
taskId: this.$route.query.taskId,
|
||||||
|
pcrType: ProcessType.PERMISSION_APPLY.value,
|
||||||
|
// 流程信息
|
||||||
|
prcName: processAll.prcName,
|
||||||
|
processDueDate: processAll.dueTime,
|
||||||
|
processDescription: processAll.prcMes,
|
||||||
|
// 流程审批信息
|
||||||
|
handleText: processApprovalRecord.commitText,
|
||||||
|
handleFile: processApprovalRecord.commitFile,
|
||||||
|
// 流程json字符串存储全部信息
|
||||||
|
infoJsonStr: JSON.stringify({
|
||||||
|
// 人员信息
|
||||||
|
personInfo: this.$refs.personnelInfo.getDataObj(),
|
||||||
|
// 流程信息
|
||||||
|
prcData: prcParams
|
||||||
|
})
|
||||||
|
})
|
||||||
|
return saveSnapShot(params)
|
||||||
|
},
|
||||||
|
// 回显快照页面
|
||||||
|
loadSnapshotPage () {
|
||||||
|
const { snapshotId } = this.$route.query
|
||||||
|
if (!snapshotId) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.loading = true
|
||||||
|
getLookData({ snapshotId }).then(res => {
|
||||||
|
const result = res.result || {}
|
||||||
|
const jsonData = JSON.parse(result.infoJsonStr || '{}')
|
||||||
|
const prcData = jsonData.prcData || {}
|
||||||
|
this.info = prcData
|
||||||
|
this.processInfoForm && this.processInfoForm.setFieldsValue({
|
||||||
|
prcName: prcData.processAll.prcName,
|
||||||
|
dueTime: prcData.processAll.dueTime,
|
||||||
|
prcMes: prcData.processAll.prcMes
|
||||||
|
})
|
||||||
|
this.approvalInfoForm && this.approvalInfoForm.setFieldsValue({
|
||||||
|
commitText: prcData.processApprovalRecord.commitText,
|
||||||
|
commitFile: prcData.processApprovalRecord.commitFile
|
||||||
|
})
|
||||||
|
this.formInfo = prcData.processEsPermissionApply || {}
|
||||||
|
this.$nextTick(() => {
|
||||||
|
// 发起节点的表格和审批节点的表格,哪个存在回显哪个的数据
|
||||||
|
this.$refs.baseInfoTable && this.$refs.baseInfoTable.setData(prcData.lawsEnterpriseStandardList)
|
||||||
|
this.$refs.applyPermissionTable && this.$refs.applyPermissionTable.setData(prcData.lawsEnterpriseStandardList)
|
||||||
|
this.baseInfoForm.setFieldsValue({
|
||||||
|
expirationDate: this.formInfo.expirationDate,
|
||||||
|
userDictText: this.formInfo.userDictText,
|
||||||
|
standardNumbers: this.formInfo.standardNumbers,
|
||||||
|
applyDetail: this.formInfo.applyDetail
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 转办弹框
|
* 转办弹框
|
||||||
*/
|
*/
|
||||||
@@ -626,19 +710,27 @@ export default {
|
|||||||
handleAgree (isSubmitBtn) {
|
handleAgree (isSubmitBtn) {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.getPageParams().then(res => {
|
this.getPageParams().then(params => {
|
||||||
// 同意和提交一直传true
|
// 同意和提交一直传true
|
||||||
res.map.pass = true
|
params.map.pass = true
|
||||||
// 不是提交按钮
|
// 不是提交按钮
|
||||||
if (isSubmitBtn !== true) {
|
if (isSubmitBtn !== true) {
|
||||||
// 没有填写注释,就默认同意
|
// 没有填写注释,就默认同意
|
||||||
if (!res.processApprovalRecord.commitText) {
|
if (!params.processApprovalRecord.commitText) {
|
||||||
res.processApprovalRecord.commitText = '同意'
|
params.processApprovalRecord.commitText = '同意'
|
||||||
}
|
}
|
||||||
// 审批意见
|
// 审批意见
|
||||||
res.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
|
params.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
|
||||||
}
|
}
|
||||||
return approvalPermissionApply(res)
|
// 保存快照,成功了就调接口,失败了就提示
|
||||||
|
console.log(params)
|
||||||
|
return this.saveSnapShotInfo(params).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
return approvalPermissionApply(params)
|
||||||
|
} else {
|
||||||
|
return res
|
||||||
|
}
|
||||||
|
})
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
@@ -647,6 +739,7 @@ export default {
|
|||||||
this.$message.warn(res.message)
|
this.$message.warn(res.message)
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
console.log(err)
|
||||||
if (err && err.message && tabList.includes(err.message)) {
|
if (err && err.message && tabList.includes(err.message)) {
|
||||||
this.switchChange(err.message)
|
this.switchChange(err.message)
|
||||||
}
|
}
|
||||||
@@ -677,11 +770,18 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.getPageParams().then(res => {
|
this.getPageParams().then(params => {
|
||||||
res.map.pass = false
|
params.map.pass = false
|
||||||
// 审批意见
|
// 审批意见
|
||||||
res.processApprovalRecord.commitFlag = ApprovalOpinions.REJECT.value
|
params.processApprovalRecord.commitFlag = ApprovalOpinions.REJECT.value
|
||||||
return rejectPermissionApply(res)
|
// 保存快照,成功了就调接口,失败了就提示
|
||||||
|
return this.saveSnapShotInfo(params).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
return rejectPermissionApply(params)
|
||||||
|
} else {
|
||||||
|
return res
|
||||||
|
}
|
||||||
|
})
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="table-operator" v-if="!disabled">
|
<div class="table-operator" v-if="!disabled && !disabledAll">
|
||||||
<!-- 新增 -->
|
<!-- 新增 -->
|
||||||
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
|
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
<!-- 操作 -->
|
<!-- 操作 -->
|
||||||
<template slot="action" slot-scope="{text, record, index}">
|
<template slot="action" slot-scope="{text, record, index}">
|
||||||
<a @click="handleDelete(index)" >{{ $t('delete') }}</a>
|
<a @click="handleDelete(index)" :disabled="disabledAll">{{ $t('delete') }}</a>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</j-table>
|
</j-table>
|
||||||
@@ -46,6 +46,10 @@ export default {
|
|||||||
name: 'BaseInfoTable',
|
name: 'BaseInfoTable',
|
||||||
components: { StandardSelection, JTable },
|
components: { StandardSelection, JTable },
|
||||||
props: {
|
props: {
|
||||||
|
disabledAll: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
disabled: {
|
disabled: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
|||||||
Reference in New Issue
Block a user