Skip to content

Commit

Permalink
v2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cxh1205 committed Apr 3, 2022
1 parent 7ab5f19 commit 9e87e4e
Show file tree
Hide file tree
Showing 11 changed files with 470 additions and 139 deletions.
2 changes: 1 addition & 1 deletion format.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
HOST_PAGE = "http://localhost:40115"
HOST = "127.0.0.1"
PORT = 40115
VERSION = "v2.3.2"
VERSION = "v2.4.0"


class Excel_List:
Expand Down
16 changes: 12 additions & 4 deletions static/analysis.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<script src="vue.global.prod.js"></script>
<script src="axios.min.js"></script>
<script src="noty.min.js"></script>
<script src="index.js"></script>
<link rel="stylesheet" href="noty.css">
<link rel="stylesheet" href="mint.css">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="favicon.ico">
<title>数据分析</title>
Expand Down Expand Up @@ -69,15 +73,15 @@
<th>多交</th>
</tr>
<tr v-for="i in remain">
<td @click="mes=i;copy()" class="raw">{{remain[i]}}</td>
<td @click="mes=i;copy()" class="raw">{{i}}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td>
<div @click="submit" class="button">改名</div>
<div @click="submit" class="button submit">改名</div>
<div @click="back" class="button">返回</div>
</td>
</tr>
Expand Down Expand Up @@ -135,8 +139,12 @@
},
submit() {
axios.post('Rename').then((res) => {
console.log(res.data)
alert(res.data['msg'])
if (res.data['code'] == 0) {
notify(res.data['msg'], 'success')
}
else{
notify(res.data['msg'], 'error')
}
})
},
back() {
Expand Down
15 changes: 11 additions & 4 deletions static/excel.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<script src="vue.global.prod.js"></script>
<script src="axios.min.js"></script>
<script src="noty.min.js"></script>
<script src="index.js"></script>
<link rel="stylesheet" href="noty.css">
<link rel="stylesheet" href="mint.css">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="favicon.ico">
<title>填写excel路径</title>
Expand All @@ -29,7 +33,7 @@
</tr>
<tr>
<td>
<div @click="submit" class="button">提交</div>
<div @click="submit" class="button submit">提交</div>
</td>
</tr>
</table>
Expand All @@ -46,10 +50,13 @@
"path": this.message.replace(/\\/g, "/")
})
.then((res) => {
console.log(res.data)
alert(res.data['msg'])
if (res.data['code'] == 0) {
window.location.href = window.location.origin + "/GetKeyWord";
notify(res.data['msg'], 'success')
setTimeout(() => {
window.location.href = window.location.origin + "/GetKeyWord";
}, 1000)
} else {
notify(res.data['msg'], 'error')
}
})

Expand Down
18 changes: 13 additions & 5 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<script src="vue.global.prod.js"></script>
<script src="axios.min.js"></script>
<script src="noty.min.js"></script>
<script src="index.js"></script>
<link rel="stylesheet" href="noty.css">
<link rel="stylesheet" href="mint.css">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="favicon.ico">
<title>选取命名格式</title>
Expand Down Expand Up @@ -194,7 +198,7 @@
</tr>
<tr>
<td>
<div @click="submit" class="button">提交</div>
<div @click="submit" class="button submit">提交</div>
</td>
</tr>

Expand All @@ -207,7 +211,7 @@
keys: [],
examples: [],
sep: '',
picked: [0, '-', 0],
picked: [0, '', 0],
path: "",
same: true,
}
Expand Down Expand Up @@ -236,10 +240,14 @@
"execute": this.picked
}).then((res) => {
console.log(res.data)
alert(res.data['msg'])

if (res.data['code'] == 0) {
window.location.href = window.location.origin + "/Analysis"
notify(res.data['msg'], 'success')
setTimeout(() => {
window.location.href = window.location.origin + "/Analysis"
}, 1000)
} else {
notify(res.data['msg'], 'error')
}

})
Expand All @@ -249,7 +257,7 @@
},
increse() {
if (this.picked.length > 12) {
alert('哥,不至于!')
notify('哥,不至于!', 'warning')
} else {
this.picked.push(this.sep, 0)
}
Expand Down
17 changes: 17 additions & 0 deletions static/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
function notify(text, type) {
new Noty({
text: text,
theme: 'mint',
type: type,
timeout: type=='success'?1000:5000,
progressBar: true,
closeWith: ['click'],
}).show();
}

document.onkeydown = function(e){

if(e.key == 'Enter'){
document.querySelector('.button.submit').click();
}
}
Loading

0 comments on commit 9e87e4e

Please sign in to comment.