diff --git a/src/store/modules/scriptRecord.js b/src/store/modules/scriptRecord.js index c42264c2c..14bd652de 100644 --- a/src/store/modules/scriptRecord.js +++ b/src/store/modules/scriptRecord.js @@ -4,84 +4,19 @@ const scriptRecord = { namespaced: true, state: { - deviceConditionList: [], //任务目标列表 - memberList:[], //角色列表, - script:[], //剧本列表, - memberName:"", //角色名称, - behaviorName:"", //动作名称 mapLocation: {}, //地图定位 }, getters: { - deviceConditionList: (state) => { - return state.deviceConditionList; - }, - memberList:(state)=>{ - return state.memberList; - }, - script:(state)=>{ - return state.script; - }, - memberName:(state)=>{ - return state.memberName; - }, - behaviorName:(state)=>{ - return state.behaviorName; - }, mapLocation:(state)=>{ return state.mapLocation; } }, mutations: { - setDeviceCondition: (state, deviceConditionList) => { - state.deviceConditionList = deviceConditionList; - }, - setMemberList: (state, memberList) => { - state.memberList = memberList; - }, - setScript:(state, script) => { - state.script = script; - }, - setMemberName:(state, memberName) => { - state.memberName = memberName; - }, - setBehaviorName:(state, behaviorName) => { - state.behaviorName = behaviorName; - }, setMapLocation:(state, mapLocation) => { state.mapLocation = mapLocation; }, }, actions: { - /** - * 设置任务目标列表 - */ - updateDeviceCondition: ({ commit }, deviceConditionList) => { - commit('setDeviceCondition', deviceConditionList); - }, - /** - * 设置角色列表 - */ - updateMemberList: ({ commit }, memberList) => { - commit('setMemberList', memberList); - }, - /** - * 设置剧本列表 - */ - updateScript: ({ commit }, script) => { - commit('setScript', script); - }, - /** - * 设置角色名称 - */ - updateMemberName:({ commit }, memberName) => { - commit('setMemberName', memberName); - }, - /** - * 设置动作名称 - */ - updateBehaviorName:({ commit }, behaviorName) => { - commit('setBehaviorName', behaviorName); - }, /** * 设置地图定位 */ diff --git a/src/views/display/scriptRecord/addAction.vue b/src/views/display/scriptRecord/addAction.vue index e680938f3..776480db3 100644 --- a/src/views/display/scriptRecord/addAction.vue +++ b/src/views/display/scriptRecord/addAction.vue @@ -6,9 +6,9 @@ - + @@ -82,7 +82,7 @@ actionVO:{ memberId:"", targetId:"", - time:0, + // time:0, reply:"", type:"Conversation", deviceCommand:"", @@ -208,10 +208,11 @@ } }, initActionData(){ + // debugger; this.modalData.actionVO.memberId=""; this.modalData.actionVO.targetId=""; this.modalData.actionVO.type="Conversation"; - this.modalData.actionVO.time=0; + // this.modalData.actionVO.time=0; this.modalData.actionVO.reply=""; this.modalData.param.startStation=""; this.isConversitionAdd=true; @@ -277,7 +278,7 @@ this.modalData.actionVO.id=data.id; this.modalData.actionVO.memberId=data.memberId; this.modalData.actionVO.type=data.type; - this.modalData.actionVO.time=data.time; + // this.modalData.actionVO.time=data.time; if(data.type=="Conversation") { this.modalData.actionVO.targetId=data.targetId; diff --git a/src/views/display/scriptRecord/addBehavior.vue b/src/views/display/scriptRecord/addBehavior.vue deleted file mode 100644 index 32a6811f4..000000000 --- a/src/views/display/scriptRecord/addBehavior.vue +++ /dev/null @@ -1,316 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/display/scriptRecord/deviceCondition.vue b/src/views/display/scriptRecord/deviceCondition.vue deleted file mode 100644 index 8c4764167..000000000 --- a/src/views/display/scriptRecord/deviceCondition.vue +++ /dev/null @@ -1,173 +0,0 @@ - - diff --git a/src/views/display/scriptRecord/getAction.vue b/src/views/display/scriptRecord/getAction.vue index b2cf0f2e9..9401ed438 100644 --- a/src/views/display/scriptRecord/getAction.vue +++ b/src/views/display/scriptRecord/getAction.vue @@ -5,6 +5,7 @@
+
@@ -23,7 +24,7 @@
- + + +
+ - - + \ No newline at end of file diff --git a/src/views/scriptManage/category/tree.vue b/src/views/scriptManage/category/tree.vue index 195c933e9..c61109954 100644 --- a/src/views/scriptManage/category/tree.vue +++ b/src/views/scriptManage/category/tree.vue @@ -1,15 +1,16 @@