所有js页日志

This commit is contained in:
Vergil
2020-02-11 11:10:09 +08:00
parent 72675987b6
commit 8cc1acc245
199 changed files with 4301 additions and 3 deletions

View File

@@ -1,10 +1,14 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
// 初始化机床项目
export function initProject() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: 'PDM_项目名称_查询数据'
}
@@ -16,6 +20,8 @@ export function searchgroup(num) {
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: 'PDM_组件名称_查询数据',
param: '机床流水号=' + num
@@ -27,6 +33,8 @@ export function searchgroupName(num) {
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: 'PDM_组件名称_查询数据_查询名称',
param: '组件流水号=' + num
@@ -38,6 +46,8 @@ export function getFileData(MachineDrawValue) {
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: 'PDM_机床总图_查询数据',
param: `机床流水号=${MachineDrawValue}`
@@ -50,6 +60,8 @@ export function searchTable1(machineNumberValue, check2) {
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_机床信息_查询数据',
param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue
@@ -62,6 +74,8 @@ export function searchTable2(machineNumberValue, type) {
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间管理_工作计划_查询数据',
param: '机床流水号=' + machineNumberValue + '&计划类型=' + type
@@ -73,6 +87,8 @@ export function deletedata(num) {
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间管理_工作计划_删除数据',
param: '计划流水号=' + num
@@ -84,6 +100,8 @@ export function editData(num, group, groupName, Name, time) {
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间管理_工作计划_编辑数据',
param: '计划流水号=' + num + '&组件流水号=' + group + '&组号=' + groupName + '&任务名称=' + Name + '&计划工时=' + time
@@ -95,6 +113,8 @@ export function addData(num, type) {
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间管理_工作计划_增加数据',
param: '机床流水号=' + num + '&计划类型=' + type