| | |
| | | autoLogin(){ |
| | | this.login_loading = true |
| | | axiosInstancePy.get('/autologin').then(response =>{ |
| | | console.log('登陆结果为:',response.data); |
| | | ElMessage.success(response.data) |
| | | this.login_loading = false |
| | | }) |
| | |
| | | this.loading = true; |
| | | // 得到反馈信息 所有数据 |
| | | axiosInstancePy.post('/getData', form).then((response) => { |
| | | console.log(response.data); |
| | | if(response.data == '-1'){ |
| | | this.loading = false; |
| | | // ElMessage.warning('请先点击登陆') |
| | |
| | | this.result = this.result + item + '\n'; |
| | | }); |
| | | |
| | | // response.data.allData.forEach(item=>{ |
| | | // this.allData =this.allData+item+'\n' |
| | | // this.allData =this.allData+'\n' |
| | | // }); |
| | | |
| | | this.allData = response.data.allData; |
| | | this.duplicateData = response.data.duplicate; |
| | | console.log('重复的数据为:', this.duplicateData); |
| | | this.newData = response.data.newData; |
| | | console.log('新数据条数为:',this.newData.length); |
| | | this.loading = false; |
| | | |
| | | this.displayData = this.arrToObject(this.duplicateData); |
| | | console.log('转换后的对象数组为:',this.displayData); |
| | | |
| | | this.result=this.result+'\n重复的数量为:'+this.duplicateData.length |
| | | }); |
| | |
| | | } |
| | | this.openFullScreen() |
| | | axiosInstancePy.post('/store', {'allData':this.allData}).then((response) => { |
| | | console.log(response.data); |
| | | ElMessage.success(response.data) |
| | | this.loadingToMysql.close() |
| | | }) |
| | |
| | | axiosInstancePy |
| | | .post('/store', { 'allData': this.newData }) |
| | | .then((response) => { |
| | | console.log(response.data); |
| | | ElMessage.success(response.data) |
| | | this.loadingToMysql.close() |
| | | }); |
| | |
| | | axiosInstancePy |
| | | .post('/store', { 'allData': this.newData }) |
| | | .then((response) => { |
| | | console.log(response.data); |
| | | ElMessage.success(response.data) |
| | | this.loadingToMysql.close() |
| | | }); |
| | |
| | | </div> |
| | | |
| | | <el-card> |
| | | <!-- <ShopNameSelect @submit-shops="(n)=>selectedShopNames=n"></ShopNameSelect> --> |
| | | |
| | | <ShopNameCheckBox |
| | | @submit-shops="(n) => (form.selectedShopNames = n)" |
| | | ></ShopNameCheckBox> |
| | | <!-- {{ selectedShopNames }} --> |
| | | |
| | | </el-card> |
| | | |
| | | |
| | |
| | | placeholder="爬取结果" |
| | | autosize |
| | | ></el-input> |
| | | <!-- rows="6" --> |
| | | |
| | | </div> |
| | | |
| | | |
| | |
| | | <el-empty v-show="isNoData" :image-size="150" /> |
| | | </div> |
| | | |
| | | <!-- <div class="result-textarea"> |
| | | <span >重复数量为:{{ duplicateData.length }}</span> |
| | | </div> --> |
| | | |
| | | |
| | | <div class="store-button" > |
| | | <el-button |
| | |
| | | margin-top: 20px; |
| | | width: 50%; |
| | | } |
| | | // .result-textarea-textarea { |
| | | // // width: 50%; |
| | | // } |
| | | |
| | | .progress-percentage { |
| | | width: 50%; |
| | | margin-top: 20px; |