[update] 法规合规评估流程
This commit is contained in:
@@ -136,6 +136,8 @@ const editStandardMasterPlan = (params) => postAction('/laws/StandardMasterPlan/
|
|||||||
|
|
||||||
// 市场法规清单-基础信息-根据id查询
|
// 市场法规清单-基础信息-根据id查询
|
||||||
const getMarketRegulationListById = (params) => getAction('/laws/marketStandard/detail', params)
|
const getMarketRegulationListById = (params) => getAction('/laws/marketStandard/detail', params)
|
||||||
|
// 市场法规清单-基础信息-根据id查询(无权限)
|
||||||
|
const getMarketRegulationListByIdNoPerm = (params) => getAction('/laws/marketStandard/queryById', params)
|
||||||
// 市场法规清单-基础信息-新增
|
// 市场法规清单-基础信息-新增
|
||||||
const marketRegulationListAdd = (params) => postAction('/laws/marketStandard/add', params)
|
const marketRegulationListAdd = (params) => postAction('/laws/marketStandard/add', params)
|
||||||
// 市场法规清单-基础信息-编辑
|
// 市场法规清单-基础信息-编辑
|
||||||
@@ -232,6 +234,7 @@ export {
|
|||||||
|
|
||||||
// 市场法规清单
|
// 市场法规清单
|
||||||
getMarketRegulationListById,
|
getMarketRegulationListById,
|
||||||
|
getMarketRegulationListByIdNoPerm,
|
||||||
marketRegulationListAdd,
|
marketRegulationListAdd,
|
||||||
marketRegulationListEdit,
|
marketRegulationListEdit,
|
||||||
marketRegulationDetailListById,
|
marketRegulationDetailListById,
|
||||||
|
|||||||
@@ -219,6 +219,7 @@ module.exports = {
|
|||||||
resourceNotFound: 'Sorry, the resource was not found!',
|
resourceNotFound: 'Sorry, the resource was not found!',
|
||||||
networkTimeout: 'Network Timeout',
|
networkTimeout: 'Network Timeout',
|
||||||
unauthorized: 'Unauthorized, please log in again',
|
unauthorized: 'Unauthorized, please log in again',
|
||||||
|
tableDataDisabledClear: 'The table requires at least one piece of data',
|
||||||
// 树右键
|
// 树右键
|
||||||
treeRight: {
|
treeRight: {
|
||||||
addFolder: 'Create New Folder',
|
addFolder: 'Create New Folder',
|
||||||
|
|||||||
@@ -236,6 +236,7 @@ module.exports = {
|
|||||||
resourceNotFound: '很抱歉,资源未找到!',
|
resourceNotFound: '很抱歉,资源未找到!',
|
||||||
networkTimeout: '网络超时',
|
networkTimeout: '网络超时',
|
||||||
unauthorized: '未授权,请重新登录',
|
unauthorized: '未授权,请重新登录',
|
||||||
|
tableDataDisabledClear: '表格至少需要一条数据',
|
||||||
// 标准字段
|
// 标准字段
|
||||||
standardField: {
|
standardField: {
|
||||||
standardEnglishName: '标准英文名称',
|
standardEnglishName: '标准英文名称',
|
||||||
|
|||||||
+11
-1
@@ -43,7 +43,7 @@
|
|||||||
<template v-slot:splitFileSource="{record}" class="action-span-cell">
|
<template v-slot:splitFileSource="{record}" class="action-span-cell">
|
||||||
<!-- 通过添加标准新增的 -->
|
<!-- 通过添加标准新增的 -->
|
||||||
<j-dict-select-tag v-if="record.addType === AddType.SELECT_STANDARD.value"
|
<j-dict-select-tag v-if="record.addType === AddType.SELECT_STANDARD.value"
|
||||||
style="width: '100%'"
|
style="width: 100%"
|
||||||
v-model="record.splitFileSource"
|
v-model="record.splitFileSource"
|
||||||
dict-code="decomposition_single_source"
|
dict-code="decomposition_single_source"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
@@ -693,6 +693,11 @@ export default {
|
|||||||
this.selectionRows = []
|
this.selectionRows = []
|
||||||
},
|
},
|
||||||
batchDel () {
|
batchDel () {
|
||||||
|
if (this.selectedRowKeys.length === this.dataList.length) {
|
||||||
|
// 说明数据全选中了,提示表格数据不可以全部删除
|
||||||
|
this.$message.warning(this.$t('tableDataDisabledClear'))
|
||||||
|
return
|
||||||
|
}
|
||||||
if (this.selectedRowKeys.length <= 0) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.$message.warning(this.$t('selectARecord'))
|
this.$message.warning(this.$t('selectARecord'))
|
||||||
} else {
|
} else {
|
||||||
@@ -715,6 +720,11 @@ export default {
|
|||||||
this.ipagination = pagination
|
this.ipagination = pagination
|
||||||
},
|
},
|
||||||
handleDelete (uid) {
|
handleDelete (uid) {
|
||||||
|
if (this.dataList.length <= 1) {
|
||||||
|
// 说明剩最后一条数据了,提示表格数据不可以全部删除
|
||||||
|
this.$message.warning(this.$t('tableDataDisabledClear'))
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
title: this.$t('confirmDeletion'),
|
title: this.$t('confirmDeletion'),
|
||||||
content: this.$t('areYouSure'),
|
content: this.$t('areYouSure'),
|
||||||
|
|||||||
Reference in New Issue
Block a user