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