添加草稿ibp管理
This commit is contained in:
parent
ac3457efbd
commit
57f65d45e3
@ -1948,6 +1948,16 @@ export const asyncRouter = [
|
||||
path: 'publishIscs',
|
||||
component: PublishISCS,
|
||||
hidden: true
|
||||
},
|
||||
{ // ibp列表
|
||||
path: 'ibp/home/:mapId',
|
||||
component: IbpHome,
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: 'ibp/edit',
|
||||
component: IbpDraw,
|
||||
hidden: true
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -2,6 +2,7 @@
|
||||
<div class="joylink-card">
|
||||
<div class="scriptHeader">
|
||||
<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" @click="createByPublish">发布数据创建</el-button>
|
||||
</div>
|
||||
@ -142,7 +143,7 @@ export default {
|
||||
// 进入绘图数据
|
||||
handleModify(index, row) {
|
||||
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) {
|
||||
@ -184,6 +185,9 @@ export default {
|
||||
},
|
||||
createByPublish() {
|
||||
this.$refs.copyIbp.doShow(null);
|
||||
},
|
||||
goBack() {
|
||||
this.$router.go(-1);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -14,6 +14,7 @@
|
||||
:value="item.value"
|
||||
/>
|
||||
</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>
|
||||
</div>
|
||||
<el-tabs v-model="enabledTab" class="ibpEdit" type="card" @tab-click="handleTabClick">
|
||||
@ -140,6 +141,9 @@ export default {
|
||||
deleteDataModel(model) {
|
||||
this.$store.dispatch('ibp/deleteIbpDevices', model);
|
||||
},
|
||||
goBack() {
|
||||
this.$router.go(-1);
|
||||
},
|
||||
async handleSave() {
|
||||
if (this.$store.state.ibp.ibp.background) {
|
||||
try {
|
||||
|
@ -13,7 +13,6 @@
|
||||
<script>
|
||||
import IbpPlate from '@/views/ibp/ibpsystem/index';
|
||||
import IbpOperate from './ibpOperate/index';
|
||||
import localStore from 'storejs';
|
||||
import { parser } from '@/ibp/utils/parser';
|
||||
import { mapGetters } from 'vuex';
|
||||
|
||||
@ -25,9 +24,8 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
widthLeft: Number(localStore.get('LeftWidth')) || 450,
|
||||
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
|
||||
}
|
||||
};
|
||||
@ -40,12 +38,12 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
'$store.state.app.windowSizeCount': function() {
|
||||
this.size = { 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 - 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, height: this.$store.state.app.height - 60 });
|
||||
}
|
||||
},
|
||||
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() {
|
||||
this.$refs.ibpPlate.show();
|
||||
|
@ -205,6 +205,10 @@ export default {
|
||||
name: '发布IBP管理',
|
||||
handleClick: this.publishIbpManage
|
||||
},
|
||||
{
|
||||
name: '草稿IBP管理',
|
||||
handleClick: this.draftIbpManage
|
||||
},
|
||||
{
|
||||
name: '加载计划运行图管理',
|
||||
handleClick: this.runPlanCommonManage
|
||||
@ -541,6 +545,9 @@ export default {
|
||||
publishIbpManage(index, row) {
|
||||
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) {
|
||||
this.$router.push({path: '/systemManagement/lineDataManage/runPlanCommon', query: {mapId: row.id, lineCode: row.lineCode}});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user