当前位置: 首页 > news >正文

工控机做网站服务器自己的淘宝网站怎么建设

工控机做网站服务器,自己的淘宝网站怎么建设,网站备案文件吗,网站建设用什么科目应用场景 基本用法使用v-model双向绑定值#xff0c;进行开关控制 例子1:需求#xff1a; **点击switch#xff0c;出弹窗#xff0c;点击弹窗保存按钮调接口成功后再赋值#xff08;row.orderButtonValue“1”#xff09;打开switch开的状态变颜色。 在vue 中使用 :va…应用场景 基本用法使用v-model双向绑定值进行开关控制 例子1:需求 **点击switch出弹窗点击弹窗保存按钮调接口成功后再赋值row.orderButtonValue“1”打开switch开的状态变颜色。 在vue 中使用 :value动态的绑定值。 在Vue中冒号(:)被称为v-bind指令的缩写。v-bind指令是Vue中非常强大的一个指令它用于动态绑定数据到HTML标签的属性中。简而言之冒号就是v-bind指令的语法糖。 说白了冒号是用来告诉Vue我要绑定数据到这个属性里属性的名称就是冒号后面的部分 ** el-table-column proporderButtonValue label指令 min-width100 aligncentertemplate slot-scopescopeel-switchv-showscope.row.orderButton 1changechangeClick(scope.row, scope.$index):valuescope.row.orderButtonValueactive-value1//打开为 字符串1inactive-value0//关闭 字符串0active-color#67C8FFinactive-color#CCCCCC{{ scope.row.orderButtonValue }}/el-switch/template/el-table-columndiv classdialogel-dialogclassparams_dialogtitle提示:visible.synctextDialogVisiblewidth30%centerp classtext descsvg-iconicon-classel-warningstylewidth: 16px; height: 16px; margin-right: 18px; color: #ff6c00/{{ orderVariableNameDesc }}/pp classtext con是否确认?/pdiv slotfooter classdialog-footerel-button typeprimary stylewidth: 76px; height: 36px clicktextSaveClick保存/el-buttonel-buttonclicktextCancelBtnstyleborder: 1px solid #4683ff;background-color: #011948;color: #4683ff;width: 76px;height: 36px;取消/el-button/div/el-dialog/div//指令按钮changeClick(row, index) {let rowPlcValue row.orderButtonValue;//row.orderButtonValue 接口返回值//启动弹窗if (rowPlcValue 0) {this.orderVariableNameDesc row.orderVariableNameDesc;this.textDialogVisible true;this.switchIndex index;return;}if (rowPlcValue 1) {this.tableData.splice(index, 1, this.tableData[index]);}if (row.testOperator debug_onLine) {//调试中--可打开 isAddressShow现场使能按钮if ((row.orderButtonValue 0 this.isAddressShow true) ||(row.orderButtonValue null this.isAddressShow true)) {let params {//传参数...};//write接口getWriteInfo(params).then(res {if (res.code 200) {//指令接口let params {//传参数...};getOrderButtonInfo(params).then(res {res.data.forEach(item {this.tableData.forEach(v {//表格if (item.debugContentId v.id item.orderButtonValue 1) {v.orderButtonValue 1;//switch打开} else if (item.debugContentId v.id item.orderButtonValue 0) {v.orderButtonValue 0;//switch关闭}});});});}});} else if (row.orderButtonValue 1 this.isAddressShow true) {//调试中--可关闭let params {//传参数...};getWriteInfo(params).then(res {if (res.code 200) {//指令接口let params {//传参数...};getOrderButtonInfo(params).then(res {res.data.forEach(item {this.tableData.forEach(v {//表格if (item.debugContentId v.id item.orderButtonValue 1) {v.orderButtonValue 1;} else if (item.debugContentId v.id item.orderButtonValue 0) {v.orderButtonValue 0;}});});});}});} else {this.$message.warning(请先点击现场手动调试使能);}} else if (row.orderButtonValue 1 row.testOperator ! debug_onLine this.isAddressShow true) {//可关闭let params {//传参数...};getWriteInfo(params).then(res {if (res.code 200) {console.log(write接口);//指令接口let params {//传参数...};getOrderButtonInfo(params).then(res {res.data.forEach(item {this.tableData.forEach(v {//表格if (item.debugContentId v.id item.orderButtonValue 1) {v.orderButtonValue 1;} else if (item.debugContentId v.id item.orderButtonValue 0) {v.orderButtonValue 0;}});});});}});} else {this.$message.warning(请先点击现场手动调试使能);}},//指令弹窗-----保存textSaveClick() {let params {//传参数...};this.textDialogVisible false;this.tableData[this.switchIndex].orderButtonValue 1;this.tableData.splice(this.switchIndex, 1, this.tableData[this.switchIndex]);getWriteInfo(params).then(res {if (res.code 200) {//指令接口let params {//传参数....};getOrderButtonInfo(params).then(res {console.log(res.data, 1057);});}});},例子2 div classleft-linkspan classleft-title link-btn通信连接/spanel-switch:valuelinkValueactive-color#4683FFinactive-color#CCCCCCchangeswitchClick/el-switch/div//通信连接switchClick() {if (this.linkValue false) {if (this.isValueNum 2) {this.linkValue true;let params {//传参数...};//打开通信hubConnectInfo(params).then(res {if (res.code 200) {this.$message.success(res.message);this.slaveId res.data.slaveId;this.slaveIdCopy res.data.slaveId;this.acquireInfo(res.data.slaveId);this.$emit(switchType, true);}});} else {this.$message.error(请先打开串口号!);}} else if (this.linkValue true) {this.linkValue false;//关闭通信offDebugInfo().then(res {if (res.code 200) {clearInterval(this.timer);this.timer null;this.$emit(switchType, false);//关闭机器把调桨控制值清颜色恢复默认this.clearColorValue();}});}},
http://www.hkea.cn/news/14489167/

相关文章:

  • 网站建设的感想登录手机wordpress
  • 企业网站推广网站注册qq空间网站
  • 保安公司网站如何做企业老板培训课程
  • 阿里巴巴网站本土化建设wordpress制作上传图片
  • 网站建设福网站设计主色学校
  • 广东微信网站制作费用网站服务器的重要性
  • 网站域名是啥镇江营销型建站公叿
  • 垂直网站导航是谁做的天津手机网站制作
  • 咖啡公司网站建设策划书crm资源管理系统
  • 丹阳网站建设咨询网站打开后显示建设中
  • 上海网站建设平台教你做吃的网站
  • 联想服务器怎么建设第二个网站马尾网站建设
  • 公司名称被大量网站收录电商网站开发难点
  • 做外贸站推广做爰片的网站
  • 室内设计网站界面wordpress 手机端APP
  • 做网站都能赚钱吗有的网站在浏览器打不开怎么办
  • 网站建设费用写创意自己做网站推广试玩
  • 电子商务网站建设实验指导网站建设总结 优帮云
  • 设计相关网站西安模板网站建设
  • 海口网站建设做网站中国建设网平台
  • 腾龙官方网站做号软件设计网站的步骤
  • 做效果图去哪个网站接活电商设计招聘
  • 农产品网站建设策划html总结心得体会小短篇
  • 一个域名一个ip做多个网站广州建设工程中心网站
  • 网站制作厦门公司网站 模板 下载
  • 网上网站开发村级网站建站
  • 佛山做外贸网站案例百度搜索收录
  • 企业网站必须备案吗以下属于网站seo的内容是
  • 无需下载国外黄冈网站推广directadmin备份网站
  • 广州建设高端网站怎么用ps做网站首页图片尺寸