添加草稿ibp管理

This commit is contained in:
fan 2023-05-30 11:23:52 +08:00
parent ac3457efbd
commit 57f65d45e3
5 changed files with 30 additions and 7 deletions

View File

@ -1948,6 +1948,16 @@ export const asyncRouter = [
path: 'publishIscs', path: 'publishIscs',
component: PublishISCS, component: PublishISCS,
hidden: true hidden: true
},
{ // ibp列表
path: 'ibp/home/:mapId',
component: IbpHome,
hidden: true
},
{
path: 'ibp/edit',
component: IbpDraw,
hidden: true
} }
] ]
}, },

View File

@ -2,6 +2,7 @@
<div class="joylink-card"> <div class="joylink-card">
<div class="scriptHeader"> <div class="scriptHeader">
<div class="scriptList">IBP盘列表</div> <div class="scriptList">IBP盘列表</div>
<el-button size="small" type="primary" class="createScript" style="margin-top: 5px" @click="goBack">返回</el-button>
<el-button size="small" type="primary" class="createScript" style="margin-top: 5px" @click="handleCreate">{{ $t('scriptRecord.scriptCreate') }}</el-button> <el-button size="small" type="primary" class="createScript" style="margin-top: 5px" @click="handleCreate">{{ $t('scriptRecord.scriptCreate') }}</el-button>
<el-button size="small" type="primary" class="createScript" @click="createByPublish">发布数据创建</el-button> <el-button size="small" type="primary" class="createScript" @click="createByPublish">发布数据创建</el-button>
</div> </div>
@ -142,7 +143,7 @@ export default {
// //
handleModify(index, row) { handleModify(index, row) {
const query = { mapId: this.$route.params.mapId, stationCode: row.stationCode, ibpId: row.id }; const query = { mapId: this.$route.params.mapId, stationCode: row.stationCode, ibpId: row.id };
this.$router.push({ path: `/design/ibp/edit`, query: query }); this.$router.push({ path: `/systemManagement/lineDataManage/ibp/edit`, query: query });
}, },
// //
editInfo(index, row) { editInfo(index, row) {
@ -184,6 +185,9 @@ export default {
}, },
createByPublish() { createByPublish() {
this.$refs.copyIbp.doShow(null); this.$refs.copyIbp.doShow(null);
},
goBack() {
this.$router.go(-1);
} }
} }
}; };

View File

@ -14,6 +14,7 @@
:value="item.value" :value="item.value"
/> />
</el-select> --> </el-select> -->
<el-button type="text" style="float: right; padding: 15px 0; margin-right: 5px;" @click="goBack">返回</el-button>
<el-button type="text" style="float: right; padding: 15px 0; margin-right: 5px;" @click="handleSave">{{ $t('ibp.save') }}</el-button> <el-button type="text" style="float: right; padding: 15px 0; margin-right: 5px;" @click="handleSave">{{ $t('ibp.save') }}</el-button>
</div> </div>
<el-tabs v-model="enabledTab" class="ibpEdit" type="card" @tab-click="handleTabClick"> <el-tabs v-model="enabledTab" class="ibpEdit" type="card" @tab-click="handleTabClick">
@ -140,6 +141,9 @@ export default {
deleteDataModel(model) { deleteDataModel(model) {
this.$store.dispatch('ibp/deleteIbpDevices', model); this.$store.dispatch('ibp/deleteIbpDevices', model);
}, },
goBack() {
this.$router.go(-1);
},
async handleSave() { async handleSave() {
if (this.$store.state.ibp.ibp.background) { if (this.$store.state.ibp.ibp.background) {
try { try {

View File

@ -13,7 +13,6 @@
<script> <script>
import IbpPlate from '@/views/ibp/ibpsystem/index'; import IbpPlate from '@/views/ibp/ibpsystem/index';
import IbpOperate from './ibpOperate/index'; import IbpOperate from './ibpOperate/index';
import localStore from 'storejs';
import { parser } from '@/ibp/utils/parser'; import { parser } from '@/ibp/utils/parser';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
@ -25,9 +24,8 @@ export default {
}, },
data() { data() {
return { return {
widthLeft: Number(localStore.get('LeftWidth')) || 450,
size: { size: {
width: this.$store.state.app.width - 521 - (Number(localStore.get('LeftWidth')) || 450), width: this.$store.state.app.width - 521,
height: this.$store.state.app.height - 60 height: this.$store.state.app.height - 60
} }
}; };
@ -40,12 +38,12 @@ export default {
}, },
watch: { watch: {
'$store.state.app.windowSizeCount': function() { '$store.state.app.windowSizeCount': function() {
this.size = { width: this.$store.state.app.width - 521 - this.widthLeft, height: this.$store.state.app.height - 60 }; this.size = { width: this.$store.state.app.width - 521, height: this.$store.state.app.height - 60 };
this.$store.dispatch('config/resize', { width: this.$store.state.app.width - 521 - this.widthLeft, height: this.$store.state.app.height - 60 }); this.$store.dispatch('config/resize', { width: this.$store.state.app.width - 521, height: this.$store.state.app.height - 60 });
} }
}, },
created() { created() {
this.$store.dispatch('config/resize', { width: this.$store.state.app.width - 521 - this.widthLeft, height: this.$store.state.app.height - 60 }); this.$store.dispatch('config/resize', { width: this.$store.state.app.width - 521, height: this.$store.state.app.height - 60 });
}, },
mounted() { mounted() {
this.$refs.ibpPlate.show(); this.$refs.ibpPlate.show();

View File

@ -205,6 +205,10 @@ export default {
name: '发布IBP管理', name: '发布IBP管理',
handleClick: this.publishIbpManage handleClick: this.publishIbpManage
}, },
{
name: '草稿IBP管理',
handleClick: this.draftIbpManage
},
{ {
name: '加载计划运行图管理', name: '加载计划运行图管理',
handleClick: this.runPlanCommonManage handleClick: this.runPlanCommonManage
@ -541,6 +545,9 @@ export default {
publishIbpManage(index, row) { publishIbpManage(index, row) {
this.$router.push({path: '/systemManagement/lineDataManage/publishIbp', query: {mapId: row.id, lineCode: row.lineCode}}); this.$router.push({path: '/systemManagement/lineDataManage/publishIbp', query: {mapId: row.id, lineCode: row.lineCode}});
}, },
draftIbpManage(index, row) {
this.$router.push({path: `/systemManagement/lineDataManage/ibp/home/${row.id}`, query: {lineCode: row.lineCode}});
},
runPlanCommonManage(index, row) { runPlanCommonManage(index, row) {
this.$router.push({path: '/systemManagement/lineDataManage/runPlanCommon', query: {mapId: row.id, lineCode: row.lineCode}}); this.$router.push({path: '/systemManagement/lineDataManage/runPlanCommon', query: {mapId: row.id, lineCode: row.lineCode}});
}, },