剧本条件暂提
This commit is contained in:
parent
09e5cac7b0
commit
8158eb7773
@ -126,3 +126,11 @@ export function deleteScriptAction(group, actionId) {
|
|||||||
method: 'delete'
|
method: 'delete'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
/** 修改剧本活动条件 */
|
||||||
|
export function updateActionCondition(group, actionId, data) {
|
||||||
|
return request({
|
||||||
|
url: `/api/scriptSimulation/${group}/${actionId}/updateCondition`,
|
||||||
|
method: 'put',
|
||||||
|
data
|
||||||
|
});
|
||||||
|
}
|
||||||
|
70
src/views/scriptManage/conditionManage.vue
Normal file
70
src/views/scriptManage/conditionManage.vue
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
v-dialogDrag
|
||||||
|
title="条件管理"
|
||||||
|
:visible.sync="dialogVisible"
|
||||||
|
width="500px"
|
||||||
|
:before-close="handleClose"
|
||||||
|
center
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
>
|
||||||
|
<el-table
|
||||||
|
:data="tableData"
|
||||||
|
style="width: 100%"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
prop="code"
|
||||||
|
label="触发列车"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="physicalCode"
|
||||||
|
label="到达区段"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="stop"
|
||||||
|
label="是否停车"
|
||||||
|
/>
|
||||||
|
</el-table>
|
||||||
|
<el-form :label-position="labelPosition" label-width="80px" :model="formModel">
|
||||||
|
<el-form-item label="名称">
|
||||||
|
<el-input v-model="formLabelAlign.name" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="活动区域">
|
||||||
|
<el-input v-model="formLabelAlign.region" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="活动形式">
|
||||||
|
<el-input v-model="formLabelAlign.type" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {updateActionCondition} from '@/api/script';
|
||||||
|
export default {
|
||||||
|
name: 'ConditionManage',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dialogVisible: false,
|
||||||
|
tableData: [],
|
||||||
|
formModel: {
|
||||||
|
code: '',
|
||||||
|
physicalCode: '',
|
||||||
|
stop: 1
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
doShow() {
|
||||||
|
this.dialogVisible = true;
|
||||||
|
},
|
||||||
|
handleClose() {
|
||||||
|
this.dialogVisible = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
@ -43,6 +43,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnGroup">
|
<div class="btnGroup">
|
||||||
|
<el-button type="primary" size="mini" @click="handleCondition(actionInfo.id)">触发条件</el-button>
|
||||||
<el-button v-if="actionInfo.visible && !actionInfo.isModify" type="primary" size="mini" style="margin-left:10px;" @click="modifyAction(actionInfo)">{{ $t('scriptRecord.modifyConversitionButton') }}</el-button>
|
<el-button v-if="actionInfo.visible && !actionInfo.isModify" type="primary" size="mini" style="margin-left:10px;" @click="modifyAction(actionInfo)">{{ $t('scriptRecord.modifyConversitionButton') }}</el-button>
|
||||||
<el-button v-if="actionInfo.visible && actionInfo.isModify" :loading="modifyTextLoading" type="danger" size="mini" style="margin-left:10px;" @click="confirmModify(actionInfo)">确定</el-button>
|
<el-button v-if="actionInfo.visible && actionInfo.isModify" :loading="modifyTextLoading" type="danger" size="mini" style="margin-left:10px;" @click="confirmModify(actionInfo)">确定</el-button>
|
||||||
<el-button v-if="actionInfo.visible && actionInfo.isModify" type="" size="mini" style="margin-left:10px;" @click="cancleModify(actionInfo)">取消</el-button>
|
<el-button v-if="actionInfo.visible && actionInfo.isModify" type="" size="mini" style="margin-left:10px;" @click="cancleModify(actionInfo)">取消</el-button>
|
||||||
@ -107,6 +108,9 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
loadInitData() {
|
loadInitData() {
|
||||||
this.loadOtherData(this.$route.query);
|
this.loadOtherData(this.$route.query);
|
||||||
|
},
|
||||||
|
handleCondition(actionId) {
|
||||||
|
|
||||||
},
|
},
|
||||||
covertData(memberList, element) {
|
covertData(memberList, element) {
|
||||||
const member = memberList.find(elem=>{ return elem.id == element.memberId; });
|
const member = memberList.find(elem=>{ return elem.id == element.memberId; });
|
||||||
|
Loading…
Reference in New Issue
Block a user