|
@@ -2,19 +2,19 @@ import request from '@/utils/request'
|
|
|
import constant from '@/constant'
|
|
import constant from '@/constant'
|
|
|
|
|
|
|
|
function pageList(formData){
|
|
function pageList(formData){
|
|
|
- return request.post(constant.serverUrl + "/base/watch/pageList", formData);
|
|
|
|
|
|
|
+ return request.post(constant.serverUrl + "/base/watchInfo/pageList", formData);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function create(){
|
|
function create(){
|
|
|
- return request.get(constant.serverUrl + "/base/watch/create");
|
|
|
|
|
|
|
+ return request.get(constant.serverUrl + "/base/watchInfo/create");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function edit(id){
|
|
function edit(id){
|
|
|
- return request.get(constant.serverUrl + "/base/watch/edit/" + id);
|
|
|
|
|
|
|
+ return request.get(constant.serverUrl + "/base/watchInfo/edit/" + id);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function add(formModel){
|
|
function add(formModel){
|
|
|
- return request.post(constant.serverUrl + "/base/watch/add", formModel,{
|
|
|
|
|
|
|
+ return request.post(constant.serverUrl + "/base/watchInfo/add", formModel,{
|
|
|
headers: {
|
|
headers: {
|
|
|
"Content-Type": "application/json"
|
|
"Content-Type": "application/json"
|
|
|
}
|
|
}
|
|
@@ -22,7 +22,7 @@ function add(formModel){
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function update(formModel){
|
|
function update(formModel){
|
|
|
- return request.post(constant.serverUrl + "/base/watch/update", formModel,{
|
|
|
|
|
|
|
+ return request.post(constant.serverUrl + "/base/watchInfo/update", formModel,{
|
|
|
headers: {
|
|
headers: {
|
|
|
"Content-Type": "application/json"
|
|
"Content-Type": "application/json"
|
|
|
}
|
|
}
|
|
@@ -30,11 +30,11 @@ function update(formModel){
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function remove(id){
|
|
function remove(id){
|
|
|
- return request.post(constant.serverUrl + "/base/watch/delete/" + id);
|
|
|
|
|
|
|
+ return request.post(constant.serverUrl + "/base/watchInfo/delete/" + id);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function batchRemove(idList){
|
|
function batchRemove(idList){
|
|
|
- return request.post(constant.serverUrl + "/base/watch/batchDelete",idList,{
|
|
|
|
|
|
|
+ return request.post(constant.serverUrl + "/base/watchInfo/batchDelete",idList,{
|
|
|
headers: {
|
|
headers: {
|
|
|
"Content-Type": "application/json"
|
|
"Content-Type": "application/json"
|
|
|
}
|
|
}
|