1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
| import axios from 'axios'
|
| export default {
| /**
| * 查询线程信心
| * 无参
| */
| search() {
| return axios({
| method: 'post',
| url: 'Process_surveyAction!searchAll',
| data: null
| });
| },
| /**
| * 校验秘密啊
| *
| * @return {String} 密码
| */
| checkPwd(pwd) {
| return axios({
| method: 'post',
| url: 'Process_surveyAction!judgeRestart',
| data: 'json='+pwd
| });
| },
| /**
| * 更新线程状态
| *
| * @param {Object} data 线程信息
| * 参数:json:{ServerName:'',ServerFlag:0}
| */
| updateState(data) {
| return axios({
| method: 'post',
| url: 'Process_surveyAction!updateFlag',
| data: 'json='+JSON.stringify(data)
| });
| },
| /**
| * 更新线程的信息
| *
| * @param {Object} data 线程信息
| * 参数:json:{num: '',note: '', OutTime:'',}
| *
| */
| update(data) {
| return axios({
| method: 'post',
| url: 'Process_surveyAction!updateAll',
| data: 'json='+JSON.stringify(data)
| });
| },
| }
|
|