提交 d347e3b6 authored 作者: mmz's avatar mmz

test

上级 a4973226
# pro_1
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
......@@ -5,11 +5,8 @@
* @Date: 2022-03-10 10:42:39
*/
// 服务地址
// let https = ""; //打包
// let https = "http://192.168.102.133:9090"; //李童
// let https = "http://192.168.102.105:8990"; //陈兆奇
let https = "http://192.168.102.144:8990/"; //陈兆奇
let https = ""; //打包
// let https = "http://192.168.102.170:8990/"; //陈兆奇
// 请求目标服务器域名配置
const DOMAIN_NAME = {
default: https,
......
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title>人工智能</title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong
>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
properly without JavaScript enabled. Please enable it to
continue.</strong
>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
......
*{box-sizing:border-box;padding:0;margin:0}@font-face{font-family:Regular;src:url(../fonts/SourceHanSansCN-Regular.1335002f.ttf);font-weight:400;font-style:normal}@font-face{font-family:Medium;src:url(../fonts/SourceHanSansCN-Medium.4abbfb49.otf);font-weight:400;font-style:normal}#app,body,html{width:100%;height:100%}.el-empty[data-v-45a70382]{padding-top:7.5rem}.home[data-v-45a70382]{width:100%;height:67.5rem;padding-bottom:2.5rem}.header[data-v-45a70382]{width:100%;height:3.9375rem;background:#4b6fd6;color:#fff;line-height:3.9375rem;padding-left:1.875rem}.header[data-v-45a70382],.information[data-v-45a70382]{font-size:1.875rem;font-family:Source Han Sans CN-Medium}.information[data-v-45a70382]{margin-top:3rem;text-align:center}.information>div[data-v-45a70382]{color:#707070}.information>div>span[data-v-45a70382]{color:#4b6fd6}.information>div[data-v-45a70382]:first-child{margin-bottom:1.375rem}.pic-information[data-v-45a70382]{width:100%;margin-top:2.3125rem;display:flex;justify-content:center}.pic-information>.pic-box[data-v-45a70382]{width:45%}.pic-information>.pic-box[data-v-45a70382]:first-child{margin-right:2.5rem}.pic-information>.pic-box>.pp[data-v-45a70382]{width:100%;height:38.125rem;border:.0625rem solid #707070}.pic-information>.pic-box>.pic-option[data-v-45a70382]{width:100%;text-align:center;margin-top:2.625rem}.pic-information>.pic-box>.pic-option>.choose-box1[data-v-45a70382]{margin-right:10.1875rem}.pic-information>.pic-box>.pic-option>.choose-box>input[data-v-45a70382]{width:1.125rem;height:1.125rem}.pic-information>.pic-box>.pic-option>.choose-box>span[data-v-45a70382]{font-size:1.875rem;margin-left:.625rem;color:#4b6fd6;font-family:Source Han Sans CN-Medium}.pic-information>.pic-box>.pic-option>.choose-box:last-child>span[data-v-45a70382]{color:#707070}.next-btn[data-v-45a70382]{width:100%;text-align:center;margin-top:4.1875rem}.nBtn[data-v-45a70382]{width:13.25rem;height:3.25rem;background:#4b6fd6;border:none;font-size:1.875rem;color:#fff;font-family:Source Han Sans CN-Regular;cursor:pointer;border-radius:0}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>人工智能</title><link href="css/app.20f0af79.css" rel="preload" as="style"><link href="css/chunk-vendors.e26d9049.css" rel="preload" as="style"><link href="js/app.d5623581.js" rel="preload" as="script"><link href="js/chunk-vendors.08e2c661.js" rel="preload" as="script"><link href="css/chunk-vendors.e26d9049.css" rel="stylesheet"><link href="css/app.20f0af79.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but pro_1 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/chunk-vendors.08e2c661.js"></script><script src="js/app.d5623581.js"></script></body></html>
\ No newline at end of file
(function(t){function e(e){for(var s,c,r=e[0],o=e[1],l=e[2],u=0,h=[];u<r.length;u++)c=r[u],Object.prototype.hasOwnProperty.call(i,c)&&i[c]&&h.push(i[c][0]),i[c]=0;for(s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s]);d&&d(e);while(h.length)h.shift()();return n.push.apply(n,l||[]),a()}function a(){for(var t,e=0;e<n.length;e++){for(var a=n[e],s=!0,r=1;r<a.length;r++){var o=a[r];0!==i[o]&&(s=!1)}s&&(n.splice(e--,1),t=c(c.s=a[0]))}return t}var s={},i={app:0},n=[];function c(e){if(s[e])return s[e].exports;var a=s[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,c),a.l=!0,a.exports}c.m=t,c.c=s,c.d=function(t,e,a){c.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},c.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.t=function(t,e){if(1&e&&(t=c(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(c.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)c.d(a,s,function(e){return t[e]}.bind(null,s));return a},c.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return c.d(e,"a",e),e},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},c.p="";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],o=r.push.bind(r);r.push=e,r=r.slice();for(var l=0;l<r.length;l++)e(r[l]);var d=o;n.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},2395:function(t,e,a){},"43cf":function(t,e,a){},"56d7":function(t,e,a){"use strict";a.r(e);a("e260"),a("e6cf"),a("cca6"),a("a79d");var s=a("a026"),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app"}},[a("router-view")],1)},n=[],c={created:function(){}},r=c,o=(a("7c55"),a("2877")),l=Object(o["a"])(r,i,n,!1,null,null,null),d=l.exports,u=a("8c4f"),h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"home"},[t._m(0),a("div",{staticClass:"information"},[a("div",[t._v(" 类型: "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.Casedata.type,expression:"Casedata.type"}]},[t._v(t._s(t._f("checkData")(t.Casedata.type)))]),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.Casedata.type,expression:"!Casedata.type"}]},[t._v("暂无")])]),a("div",[t._v(" 问题描述: "),a("span",[t._v(t._s(t.Casedata.des?t.Casedata.des:"暂无"))])])]),a("div",{staticClass:"pic-information"},[a("div",{staticClass:"pic-box"},[a("div",{staticClass:"left-pic pp"},[this.leftUrl?a("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{fit:"contain",src:t.BaseUrl.default+this.leftUrl}}):a("el-empty",{attrs:{"image-size":200}})],1),a("div",{staticClass:"pic-option"},[a("label",{staticClass:"choose-box1 choose-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.check1,expression:"check1"}],attrs:{type:"radio",id:"1",name:"choose",value:"1",disabled:!t.check1},domProps:{checked:t._q(t.check1,"1")},on:{change:[function(e){t.check1="1"},t.change1]}}),a("span",{staticClass:"normal"},[t._v("正常")])]),a("label",{staticClass:"choose-box2 choose-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.check1,expression:"check1"}],attrs:{type:"radio",id:"2",name:"choose",value:"2",disabled:!t.check1},domProps:{checked:t._q(t.check1,"2")},on:{change:[function(e){t.check1="2"},t.change1]}}),a("span",{staticClass:"abnormal"},[t._v("异常")])])])]),a("div",{staticClass:"pic-box"},[a("div",{staticClass:"right-pic pp"},[this.rightUrl?a("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{fit:"contain",src:t.BaseUrl.default+this.rightUrl}}):a("el-empty",{attrs:{"image-size":200}})],1),a("div",{staticClass:"pic-option"},[a("label",{staticClass:"choose-box1 choose-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.check2,expression:"check2"}],attrs:{type:"radio",id:"1",name:"choose2",value:"1",disabled:!t.check2},domProps:{checked:t._q(t.check2,"1")},on:{change:[function(e){t.check2="1"},t.change2]}}),a("span",{staticClass:"normal"},[t._v("正常")])]),a("label",{staticClass:"choose-box2 choose-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.check2,expression:"check2"}],attrs:{type:"radio",id:"2",name:"choose2",value:"2",disabled:!t.check2},domProps:{checked:t._q(t.check2,"2")},on:{change:[function(e){t.check2="2"},t.change2]}}),a("span",{staticClass:"abnormal"},[t._v("异常")])])])])]),a("div",{staticClass:"next-btn"},[a("el-button",{staticClass:"nBtn",attrs:{type:"primary",disabled:t.btnDisabled},on:{click:t.nextCase}},[t._v(" 下一个 ")])],1)])},p=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"header"},[a("span",[t._v("人工智能")])])}],f={name:"Home",data:function(){return{leftUrl:"",rightUrl:"",check1:"",check2:"",Casedata:[],btnDisabled:!0}},created:function(){this.getDataLast()},filters:{checkData:function(t){var e="";switch(t){case 100101:e="暴露垃圾";break;case 100103:e="便道桩";break;case 100102:e="道路积水";break;case 100104:e="护树设施";break}return e}},methods:{change1:function(){this.Casedata.pictureDataList.length>=2?this.Casedata.pictureDataList[this.Casedata.pictureDataList.length-2].status=this.check1:this.Casedata.pictureDataList[this.Casedata.pictureDataList.length-1].status=this.check1},change2:function(){this.Casedata.pictureDataList.length>=2&&(this.Casedata.pictureDataList[this.Casedata.pictureDataList.length-1].status=this.check2)},nextCase:function(){var t=this;0!==this.Casedata.length?this.$axios.saveDataLast(this.Casedata).then((function(e){200==e.data.code&&(t.$message({message:e.data.data,type:"success"}),t.getDataLast())})):this.$message({message:"已是最后一个",type:"warning"})},getDataLast:function(){var t=this;this.$axios.getDataLast().then((function(e){var a;200==e.data.code&&e.data.data.length>0?(t.Casedata=e.data.data[0],t.btnDisabled=!1,clearTimeout(a),t.Casedata.pictureDataList.length>=2?(t.check1=t.Casedata.pictureDataList[t.Casedata.pictureDataList.length-2].status,t.leftUrl=t.Casedata.pictureDataList[t.Casedata.pictureDataList.length-2].picUrl,t.check2=t.Casedata.pictureDataList[t.Casedata.pictureDataList.length-1].status,t.rightUrl=t.Casedata.pictureDataList[t.Casedata.pictureDataList.length-1].picUrl):(t.check1=t.Casedata.pictureDataList[t.Casedata.pictureDataList.length-1].status,t.check2="",t.leftUrl=t.Casedata.pictureDataList[t.Casedata.pictureDataList.length-1].picUrl,t.rightUrl="")):(t.$message({message:"暂无数据",type:"warning"}),a=setTimeout((function(){t.getDataLast()}),6e3),t.Casedata=[],t.check1="",t.check2="",t.btnDisabled=!0,t.leftUrl="",t.rightUrl="")}))}}},m=f,v=(a("9367"),Object(o["a"])(m,h,p,!1,null,"45a70382",null)),g=v.exports;s["default"].use(u["a"]);var b=[{path:"/",redirect:"/home"},{path:"/home",component:g}],C=new u["a"]({mode:"hash",base:"",routes:b}),k=C,y=a("2f62");s["default"].use(y["a"]);var D=new y["a"].Store({state:{},mutations:{},actions:{},modules:{}}),L=(a("d3b7"),a("bc3a")),w=a.n(L),x="",_={default:x},U=_;w.a.interceptors.request.use((function(t){return"post"===t.method||"put"===t.method||t.method,t}),(function(t){return Promise.reject(t)})),w.a.interceptors.response.use((function(t){return t}),(function(t){return console.log(t),Promise.reject(t)}));var j=function(t,e){var a=e.method,s=void 0===a?"get":a,i=e.timeout,n=void 0===i?18e4:i,c=e.data,r=void 0===c?{}:c,o=e.params,l=void 0===o?{}:o,d=e.headers,u=void 0===d?{"Content-Type":"application/json"}:d,h=e.dataType,p=void 0===h?"json":h,f={method:s,timeout:n,url:t,baseURL:U.default,data:r,params:l,headers:u,dataType:p};return w()(f)},O={getDataLast:function(){return j("/getDataLast",{method:"get"})},saveDataLast:function(t){return j("/saveDataLast",{method:"post",data:t})}},P=O,$=a("5c96"),S=a.n($);a("0fae"),a("fb0c");s["default"].use(S.a),s["default"].prototype.$axios=P,s["default"].prototype.BaseUrl=U,s["default"].config.productionTip=!1,new s["default"]({router:k,store:D,render:function(t){return t(d)}}).$mount("#app")},"7c55":function(t,e,a){"use strict";a("2395")},9367:function(t,e,a){"use strict";a("43cf")},fb0c:function(t,e){var a=16;function s(){var t=document.documentElement.clientWidth/1920;document.documentElement.style.fontSize=a*Math.min(t,2)+"px"}s(),window.onresize=function(){s()}}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论