|
@@ -113,10 +113,11 @@
|
|
|
</div>
|
|
|
</Col>
|
|
|
<Col span="6">
|
|
|
-<!-- <div class="col-sub" @click="getRunTime">-->
|
|
|
- <div class="col-sub" style="cursor: not-allowed;">
|
|
|
+ <div class="col-sub" @click="getRunTime">
|
|
|
+<!-- <div class="col-sub" style="cursor: not-allowed;">-->
|
|
|
<Icon
|
|
|
type="ios-alarm"
|
|
|
+ color="#1874ff"
|
|
|
size="36"
|
|
|
/>
|
|
|
<span>运行时间</span>
|
|
@@ -200,7 +201,7 @@
|
|
|
</Form>
|
|
|
<div slot="footer">
|
|
|
<Button type="primary" v-show="starting" :loading="stoping" @click="stop">停止识别</Button>
|
|
|
- <Button type="primary" :loading="starting" @click="start">{{defaultTitle}}开始识别</Button>
|
|
|
+ <Button type="primary" :loading="starting" @click="start">{{defaultTitle}}</Button>
|
|
|
</div>
|
|
|
</Modal>
|
|
|
|
|
@@ -225,10 +226,10 @@
|
|
|
|
|
|
|
|
|
</Form>
|
|
|
- <div slot="footer">
|
|
|
+ <!-- <div slot="footer">
|
|
|
<Button type="primary" v-show="starting" :loading="stoping" @click="stop">停止识别</Button>
|
|
|
<Button type="primary" :loading="starting" @click="start">{{defaultTitle}}开始识别</Button>
|
|
|
- </div>
|
|
|
+ </div>-->
|
|
|
</Modal>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -244,7 +245,7 @@
|
|
|
data() {
|
|
|
return {
|
|
|
timeModal:false,
|
|
|
- defaultTitle:'',
|
|
|
+ defaultTitle:'开始识别',
|
|
|
sTime:['15', '30', '60', '120', '永远'],
|
|
|
distinguishTime: "0",
|
|
|
reloadModal: false,
|
|
@@ -451,18 +452,21 @@
|
|
|
start(){
|
|
|
this.starting = true
|
|
|
let num = this.sTime[this.distinguishTime]
|
|
|
- api.Get("/action/web_SetModIdentifyOn", {}).then((res) => {
|
|
|
+ api.Get("/action/web_SetModIdentifyOn", {timeSelect: this.distinguishTime}).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
if(this.distinguishTime != 4){
|
|
|
this.timer = window.setInterval((() =>{
|
|
|
num -- ;
|
|
|
if(num >= 0) {
|
|
|
- this.defaultTitle = num
|
|
|
+ this.defaultTitle = '识别时间剩余:' + num
|
|
|
} else {
|
|
|
+ this.defaultTitle = '开始识别'
|
|
|
this.starting = false
|
|
|
this.clearTimer();
|
|
|
}
|
|
|
}), 1000 )
|
|
|
+ } else {
|
|
|
+ this.defaultTitle = '正在识别'
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -479,7 +483,7 @@
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
}
|
|
|
- this.defaultTitle = ''
|
|
|
+ this.defaultTitle = '开始识别'
|
|
|
this.clearTimer();
|
|
|
this.stoping = false
|
|
|
this.starting = false
|
|
@@ -545,9 +549,9 @@
|
|
|
}
|
|
|
api.Get("/action/SetTime", param).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
-
|
|
|
+ this.$Message.success("操作成功。")
|
|
|
}
|
|
|
- this.getSysTime()
|
|
|
+ // this.getSysTime()
|
|
|
console.log(res)
|
|
|
}).catch((err) => {
|
|
|
console.log(err)
|