Browse Source

配方添加删除

master
maochaoying 2 years ago
parent
commit
19e748acfb
  1. 8
      .env
  2. 9
      src/components/Audit.vue
  3. 2
      src/components/Formula.vue
  4. 3
      src/store/modules/websocket.js

8
.env

@ -1,5 +1,5 @@
# VITE_BASE_WS1_URL=ws://192.168.8.10:19001/
# VITE_BASE_WS2_URL=ws://192.168.8.10:19002/
VITE_BASE_WS1_URL=ws://192.168.8.10:19001/
VITE_BASE_WS2_URL=ws://192.168.8.10:19002/
VITE_BASE_WS1_URL=ws://127.0.0.1:19001/
VITE_BASE_WS2_URL=ws://127.0.0.1:19002/
# VITE_BASE_WS1_URL=ws://127.0.0.1:19001/
# VITE_BASE_WS2_URL=ws://127.0.0.1:19002/

9
src/components/Audit.vue

@ -18,9 +18,9 @@
:key="item?.id"
>
<div class="username">{{ item?.uid }}</div>
<div class="oper">{{ item?.behaviorZH }}</div>
<div class="oper">{{ `${item?.behaviorZH}${item?.behaviorinfo}` }}</div>
<div class="time">
{{ moment(item?.date).format('YYYY-MM-DD HH:mm:ss') }}
{{ item?.date }}
</div>
</div>
<svg
@ -79,6 +79,7 @@ onMounted(() => {
<style lang="scss" scoped>
.audit_container {
margin-bottom: 19px;
overflow: hidden;
height: 580px;
box-sizing: border-box;
background: #ffffff;
@ -123,14 +124,14 @@ onMounted(() => {
text-align: center;
}
.oper {
width: 550px;
width: 600px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
}
.time {
width: 200px;
width: 230px;
overflow: hidden;
text-align: center;
white-space: nowrap;

2
src/components/Formula.vue

@ -163,7 +163,7 @@ const addNewPre = () => {
}
onMounted(() => {
// webSocketStore.sendCommandMsg(getAllFormulaJSON)
webSocketStore.sendCommandMsg(getAllFormulaJSON)
})
</script>

3
src/store/modules/websocket.js

@ -183,7 +183,8 @@ export const useWebSocketStore = defineStore({
break
case 'getAllFormula':
const { formula } = JSON.parse(ev.data) || {}
formulaStore.updateFormulaList(formula || [])
const { formulas } = formula || {}
formulaStore.updateFormulaList(formulas || [])
break
case 'getUserBehaviorRecordDescJson':
const { records } = JSON.parse(ev.data) || {}

Loading…
Cancel
Save