Browse Source

修改ws

lwx_v6
超级管理员 1 year ago
parent
commit
fd01405b40
  1. 3
      package.json
  2. 4
      src/components/DesignForm/formControlPropertiNew.vue
  3. 3
      src/components/DesignForm/public/form/formItem.vue
  4. 7
      src/views/sysworkflow/codepage/page.vue

3
package.json

@ -80,7 +80,8 @@
"vue-router": "^4.2.0",
"vue3-dnd": "^2.1.0",
"vuedraggable": "^4.1.0",
"vuedraggable-es": "^4.1.1"
"vuedraggable-es": "^4.1.1",
"websocket": "^1.0.35"
},
"devDependencies": {
"@commitlint/cli": "^17.6.3",

4
src/components/DesignForm/formControlPropertiNew.vue

@ -4492,7 +4492,9 @@ const radioChangeSet = (val:any) => {
@change="formidChangedOptionsValue3"
/>
</div>
<div style="display:flex" v-if="typeof(controlData.control.optionsValue3Formid)!='undefined' && typeof(asfasfFieldTreeOptionsValue3)!='undefined' && controlData.control.optionsValue3Formid!=''"><span style="font-size: larger;margin-left: 35px;margin-right: 15px;">请选择字段</span>
<div style="display:flex" v-if="typeof(controlData.control.optionsValue3Formid)!='undefined' && typeof(asfasfFieldTreeOptionsValue3)!='undefined' && controlData.control.optionsValue3Formid!=''">
<span style="font-size: larger;margin-left: 35px;margin-right: 15px;">请选择字段</span>
<!--

3
src/components/DesignForm/public/form/formItem.vue

@ -307,7 +307,8 @@ const getAxiosOptions = debounce((data?: any) => {
})
watch(
() => props.data.control.optionsValue3Field,
() => {
(val:any) => {
console.log("监听--optionsValue3Field-》",val)
getAxiosOptions()
}
)

7
src/views/sysworkflow/codepage/page.vue

@ -18,7 +18,7 @@ onUnmounted(() => {
});
function connect() {
ws.value = new WebSocket('ws://120.0.0.1:14250');
ws.value = new WebSocket('ws://127.0.0.1:17777/ws/regist');
ws.value.onopen = function(event) {
console.log('WebSocket 连接已打开', event);
@ -32,8 +32,9 @@ function connect() {
console.log('收到消息', event.data);
};
ws.value.onclose = function() {
console.log('WebSocket 连接已关闭');
ws.value.onclose = function(err) {
console.log('WebSocket 连接已关闭',err);
setTimeout(connect, 3000);
};
}

Loading…
Cancel
Save