[update] 市场法规清单点击发布调publish接口确认是否可以发布
This commit is contained in:
@@ -152,7 +152,7 @@ const marketRegulationDetailCopy = (params) => postAction('/laws/marketStandardD
|
||||
const marketRegulationDetailAdd = (params) => postAction('/laws/marketStandardDetail/add', params)
|
||||
// 市场法规清单-清单列表-编辑
|
||||
const marketRegulationDetailEdit = (params) => postAction('/laws/marketStandardDetail/edit', params)
|
||||
// 市场法规清单-发布-暂时的 todo,测试状态变更是否正确
|
||||
// 市场法规清单-发布-看该清单是否可以发布
|
||||
const marketRegulationDetailPublish = (params) => postAction('/laws/marketStandard/publish', params)
|
||||
|
||||
export {
|
||||
|
||||
+23
-10
@@ -126,6 +126,7 @@ import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||
import { ListState } from '../../../enums/commonEnums'
|
||||
import { getFormDictTreeList } from '../../../api/api'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { marketRegulationDetailPublish } from '../../../api/standardRegulationLibraryApi'
|
||||
|
||||
export default {
|
||||
name: 'MarketRegulationsList',
|
||||
@@ -294,11 +295,17 @@ export default {
|
||||
this.$message.warning(this.$t('standardRegulationLibrary.marketRegulationsList.pleaseSelectCorrectData'))
|
||||
return
|
||||
}
|
||||
// 跳转市场清单发布流程
|
||||
this.$router.push({
|
||||
path: '/workCenter/MarketListReleaseProcess',
|
||||
query: {
|
||||
marketRegulationId: this.selectedRowKeys[0]
|
||||
marketRegulationDetailPublish({ id: this.selectedRowKeys[0] }).then(res => {
|
||||
if (res.success) {
|
||||
// 跳转市场清单发布流程
|
||||
this.$router.push({
|
||||
path: '/workCenter/MarketListReleaseProcess',
|
||||
query: {
|
||||
marketRegulationId: this.selectedRowKeys[0]
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -333,11 +340,17 @@ export default {
|
||||
},
|
||||
// 发布
|
||||
handlePublish (record) {
|
||||
// 跳转市场清单发布流程
|
||||
this.$router.push({
|
||||
path: '/workCenter/MarketListReleaseProcess',
|
||||
query: {
|
||||
marketRegulationId: record.id
|
||||
marketRegulationDetailPublish({ id: record.id }).then(res => {
|
||||
if (res.success) {
|
||||
// 跳转市场清单发布流程
|
||||
this.$router.push({
|
||||
path: '/workCenter/MarketListReleaseProcess',
|
||||
query: {
|
||||
marketRegulationId: record.id
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user