This commit is contained in:
李想 2025-04-16 14:18:29 +08:00
commit b673c48d92
457 changed files with 151669 additions and 39182 deletions

View File

@ -8,7 +8,7 @@ charset = utf-8
# 缩进风格可选space、tab
indent_style = space
# 缩进的空格数
indent_size = 4
indent_size = 2
# 结尾换行符可选lf、cr、crlf
end_of_line = lf
# 在文件结尾插入新行

View File

@ -8,24 +8,34 @@ module.exports = {
env: {
browser: true,
node: true,
es6: true,
es6: true
},
extends: ['plugin:vue/recommended', 'eslint:recommended'],
overrides: [
{
env: {
node: true
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script'
}
}
],
// add your custom rules here
//it is base on https://github.com/vuejs/eslint-config-vue
// it is base on https://github.com/vuejs/eslint-config-vue
rules: {
"vue/max-attributes-per-line": [2, {
"singleline": 10,
"multiline": {
"max": 1,
"allowFirstLine": false
'vue/max-attributes-per-line': [2, {
'singleline': 10,
'multiline': {
'max': 1,
'allowFirstLine': false
}
}],
"vue/singleline-html-element-content-newline": "off",
"vue/multiline-html-element-content-newline":"off",
"vue/name-property-casing": ["error", "PascalCase"],
"vue/no-v-html": "off",
'vue/singleline-html-element-content-newline': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/name-property-casing': ['error', 'PascalCase'],
'vue/no-v-html': 'off',
'accessor-pairs': 2,
'arrow-spacing': [2, {
'before': true,
@ -48,7 +58,7 @@ module.exports = {
'curly': [2, 'multi-line'],
'dot-location': [2, 'property'],
'eol-last': 2,
'eqeqeq': ["error", "always", {"null": "ignore"}],
'eqeqeq': ['error', 'always', { 'null': 'ignore' }],
'generator-star-spacing': [2, {
'before': true,
'after': true

21
.prettierrc.js Normal file
View File

@ -0,0 +1,21 @@
module.exports = {
printWidth: 150,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: true,
quoteProps: 'as-needed',
jsxSingleQuote: false,
trailingComma: 'es5',
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'always',
rangeStart: 0,
rangeEnd: Infinity,
requirePragma: false,
insertPragma: false,
proseWrap: 'preserve',
htmlWhitespaceSensitivity: 'css',
vueIndentScriptAndStyle: false,
endOfLine: 'auto'
}

View File

@ -9,6 +9,7 @@
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"format": "prettier --write 'src/**/*.{vue,ts,tsx,js,jsx,css,less,scss,json,md}'",
"lint": "eslint --ext .js,.vue src"
},
"husky": {
@ -98,6 +99,7 @@
"connect": "3.6.6",
"eslint": "7.15.0",
"eslint-plugin-vue": "7.2.0",
"prettier": "^3.4.2",
"lint-staged": "10.5.3",
"runjs": "4.4.2",
"sass": "1.32.13",

View File

@ -1,22 +1,22 @@
<template>
<div id="app" style="background-color:#0e2e87" v-if="$route.meta.bigScreen">
<div id="app" style="background-color: #0e2e87" v-if="$route.meta.bigScreen">
<router-view />
</div>
<div id="app" v-else>
<div id="app" v-else>
<router-view />
</div>
</template>
<script>
export default {
name: 'App',
metaInfo() {
return {
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
titleTemplate: title => {
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
},
}
}
}
export default {
name: 'App',
metaInfo() {
return {
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
titleTemplate: (title) => {
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE;
},
};
},
};
</script>

View File

@ -1,53 +1,53 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询基地信息列表
export function listBaseinfo(query) {
return request({
url: '/agriculture/baseinfo/list',
method: 'get',
params: query
})
params: query,
});
}
// 根据角色查询基地信息列表
export function selectBaseinfoListByRoles() {
return request({
url: '/agriculture/baseinfo/selectBaseinfoListByRoles',
method: 'get'
})
}
return request({
url: '/agriculture/baseinfo/selectBaseinfoListByRoles',
method: 'get',
});
}
// 根据角色查询基地信息列表(表格)
export function selectBaseinfoListByRolesForTable(query) {
return request({
url: '/agriculture/baseinfo/selectBaseinfoListByRolesForTable',
method: 'get',
params:query
})
}
return request({
url: '/agriculture/baseinfo/selectBaseinfoListByRolesForTable',
method: 'get',
params: query,
});
}
// 查询基地信息详细
export function getBaseinfo(baseId) {
return request({
url: '/agriculture/baseinfo/' + baseId,
method: 'get'
})
method: 'get',
});
}
// 查询基地信息详细
export function getBaseinfoByDeptId(baseId) {
return request({
url: '/agriculture/baseinfo/getBaseinfoByDeptId/' + baseId,
method: 'get'
})
}
return request({
url: '/agriculture/baseinfo/getBaseinfoByDeptId/' + baseId,
method: 'get',
});
}
// 新增基地信息
export function addBaseinfo(data) {
return request({
url: '/agriculture/baseinfo',
method: 'post',
data: data
})
data: data,
});
}
// 修改基地信息
@ -55,14 +55,14 @@ export function updateBaseinfo(data) {
return request({
url: '/agriculture/baseinfo',
method: 'put',
data: data
})
data: data,
});
}
// 删除基地信息
export function delBaseinfo(baseId) {
return request({
url: '/agriculture/baseinfo/' + baseId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,29 +1,29 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询作物批次列表
export function listBatch(query) {
return request({
url: '/agriculture/batch/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询自己的作物批次列表
export function listBatchOfMine(query) {
return request({
url: '/agriculture/batch/listOfMine',
method: 'get',
params: query
})
}
return request({
url: '/agriculture/batch/listOfMine',
method: 'get',
params: query,
});
}
// 查询作物批次详细
export function getBatch(batchId) {
return request({
url: '/agriculture/batch/' + batchId,
method: 'get'
})
method: 'get',
});
}
// 新增作物批次
@ -31,8 +31,8 @@ export function addBatch(data) {
return request({
url: '/agriculture/batch',
method: 'post',
data: data
})
data: data,
});
}
// 修改作物批次
@ -40,14 +40,14 @@ export function updateBatch(data) {
return request({
url: '/agriculture/batch',
method: 'put',
data: data
})
data: data,
});
}
// 删除作物批次
export function delBatch(batchId) {
return request({
url: '/agriculture/batch/' + batchId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,28 +1,28 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询批次任务列表
export function listBatchTask(query) {
return request({
url: '/agriculture/batchTask/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询批次任务列表
export function listBatchTaskOfMine(query) {
return request({
url: '/agriculture/batchTask/listOfMine',
method: 'get',
params: query
})
}
return request({
url: '/agriculture/batchTask/listOfMine',
method: 'get',
params: query,
});
}
// 查询批次任务详细
export function getBatchTask(taskId) {
return request({
url: '/agriculture/batchTask/' + taskId,
method: 'get'
})
method: 'get',
});
}
// 新增批次任务
@ -30,8 +30,8 @@ export function addBatchTask(data) {
return request({
url: '/agriculture/batchTask',
method: 'post',
data: data
})
data: data,
});
}
// 修改批次任务
@ -39,14 +39,14 @@ export function updateBatchTask(data) {
return request({
url: '/agriculture/batchTask',
method: 'put',
data: data
})
data: data,
});
}
// 删除批次任务
export function delBatchTask(taskId) {
return request({
url: '/agriculture/batchTask/' + taskId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询人工工时列表
export function listCostEmployee(query) {
return request({
url: '/agriculture/costEmployee/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询人工工时详细
export function getCostEmployee(costId) {
return request({
url: '/agriculture/costEmployee/' + costId,
method: 'get'
})
method: 'get',
});
}
// 新增人工工时
@ -22,8 +22,8 @@ export function addCostEmployee(data) {
return request({
url: '/agriculture/costEmployee',
method: 'post',
data: data
})
data: data,
});
}
// 修改人工工时
@ -31,14 +31,14 @@ export function updateCostEmployee(data) {
return request({
url: '/agriculture/costEmployee',
method: 'put',
data: data
})
data: data,
});
}
// 删除人工工时
export function delCostEmployee(costId) {
return request({
url: '/agriculture/costEmployee/' + costId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询机械工时列表
export function listCostMachine(query) {
return request({
url: '/agriculture/costMachine/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询机械工时详细
export function getCostMachine(costId) {
return request({
url: '/agriculture/costMachine/' + costId,
method: 'get'
})
method: 'get',
});
}
// 新增机械工时
@ -22,8 +22,8 @@ export function addCostMachine(data) {
return request({
url: '/agriculture/costMachine',
method: 'post',
data: data
})
data: data,
});
}
// 修改机械工时
@ -31,14 +31,14 @@ export function updateCostMachine(data) {
return request({
url: '/agriculture/costMachine',
method: 'put',
data: data
})
data: data,
});
}
// 删除机械工时
export function delCostMachine(costId) {
return request({
url: '/agriculture/costMachine/' + costId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询农资用量列表
export function listCostMaterial(query) {
return request({
url: '/agriculture/costMaterial/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询农资用量详细
export function getCostMaterial(costId) {
return request({
url: '/agriculture/costMaterial/' + costId,
method: 'get'
})
method: 'get',
});
}
// 新增农资用量
@ -22,8 +22,8 @@ export function addCostMaterial(data) {
return request({
url: '/agriculture/costMaterial',
method: 'post',
data: data
})
data: data,
});
}
// 修改农资用量
@ -31,14 +31,14 @@ export function updateCostMaterial(data) {
return request({
url: '/agriculture/costMaterial',
method: 'put',
data: data
})
data: data,
});
}
// 删除农资用量
export function delCostMaterial(costId) {
return request({
url: '/agriculture/costMaterial/' + costId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,36 +1,33 @@
import request from '@/utils/request'
import request from '@/utils/request';
export function selectBaseInfo(baseId) {
return request({
url: '/agriculture/statistics/selectBaseInfo/'+baseId,
method: 'get'
})
return request({
url: '/agriculture/statistics/selectBaseInfo/' + baseId,
method: 'get',
});
}
export function selectDeviceInfo(baseId) {
return request({
url: '/agriculture/statistics/selectDeviceInfo/'+baseId,
method: 'get'
})
return request({
url: '/agriculture/statistics/selectDeviceInfo/' + baseId,
method: 'get',
});
}
export function selectDeviceLog(baseId) {
return request({
url: '/agriculture/statistics/selectDeviceLog/'+baseId,
method: 'get'
})
return request({
url: '/agriculture/statistics/selectDeviceLog/' + baseId,
method: 'get',
});
}
export function selectTaskInfo(baseId) {
return request({
url: '/agriculture/statistics/selectTaskInfo/'+baseId,
method: 'get'
})
return request({
url: '/agriculture/statistics/selectTaskInfo/' + baseId,
method: 'get',
});
}
export function selectBatchInfo(baseId) {
return request({
url: '/agriculture/statistics/selectBatchInfo/'+baseId,
method: 'get'
})
return request({
url: '/agriculture/statistics/selectBatchInfo/' + baseId,
method: 'get',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询雇员列表
export function listEmployee(query) {
return request({
url: '/agriculture/employee/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询雇员详细
export function getEmployee(employeeId) {
return request({
url: '/agriculture/employee/' + employeeId,
method: 'get'
})
method: 'get',
});
}
// 新增雇员
@ -22,8 +22,8 @@ export function addEmployee(data) {
return request({
url: '/agriculture/employee',
method: 'post',
data: data
})
data: data,
});
}
// 修改雇员
@ -31,14 +31,14 @@ export function updateEmployee(data) {
return request({
url: '/agriculture/employee',
method: 'put',
data: data
})
data: data,
});
}
// 删除雇员
export function delEmployee(employeeId) {
return request({
url: '/agriculture/employee/' + employeeId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询种质列表
export function listGermplasm(query) {
return request({
url: '/agriculture/germplasm/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询种质详细
export function getGermplasm(germplasmId) {
return request({
url: '/agriculture/germplasm/' + germplasmId,
method: 'get'
})
method: 'get',
});
}
// 新增种质
@ -22,8 +22,8 @@ export function addGermplasm(data) {
return request({
url: '/agriculture/germplasm',
method: 'post',
data: data
})
data: data,
});
}
// 修改种质
@ -31,14 +31,14 @@ export function updateGermplasm(data) {
return request({
url: '/agriculture/germplasm',
method: 'put',
data: data
})
data: data,
});
}
// 删除种质
export function delGermplasm(germplasmId) {
return request({
url: '/agriculture/germplasm/' + germplasmId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询种质介绍列表
export function listIntro(query) {
return request({
url: '/agriculture/intro/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询种质介绍详细
export function getIntro(introId) {
return request({
url: '/agriculture/intro/' + introId,
method: 'get'
})
method: 'get',
});
}
// 新增种质介绍
@ -22,8 +22,8 @@ export function addIntro(data) {
return request({
url: '/agriculture/intro',
method: 'post',
data: data
})
data: data,
});
}
// 修改种质介绍
@ -31,14 +31,14 @@ export function updateIntro(data) {
return request({
url: '/agriculture/intro',
method: 'put',
data: data
})
data: data,
});
}
// 删除种质介绍
export function delIntro(introId) {
return request({
url: '/agriculture/intro/' + introId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询地块列表
export function listLand(query) {
return request({
url: '/agriculture/land/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询地块详细
export function getLand(landId) {
return request({
url: '/agriculture/land/' + landId,
method: 'get'
})
method: 'get',
});
}
// 新增地块
@ -22,8 +22,8 @@ export function addLand(data) {
return request({
url: '/agriculture/land',
method: 'post',
data: data
})
data: data,
});
}
// 修改地块
@ -31,14 +31,14 @@ export function updateLand(data) {
return request({
url: '/agriculture/land',
method: 'put',
data: data
})
data: data,
});
}
// 删除地块
export function delLand(landId) {
return request({
url: '/agriculture/land/' + landId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询批次任务日志列表
export function listLog(query) {
return request({
url: '/agriculture/log/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询批次任务日志详细
export function getLog(logId) {
return request({
url: '/agriculture/log/' + logId,
method: 'get'
})
method: 'get',
});
}
// 新增批次任务日志
@ -22,8 +22,8 @@ export function addLog(data) {
return request({
url: '/agriculture/log',
method: 'post',
data: data
})
data: data,
});
}
// 修改批次任务日志
@ -31,14 +31,14 @@ export function updateLog(data) {
return request({
url: '/agriculture/log',
method: 'put',
data: data
})
data: data,
});
}
// 删除批次任务日志
export function delLog(logId) {
return request({
url: '/agriculture/log/' + logId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询机械信息列表
export function listMachineInfo(query) {
return request({
url: '/agriculture/machineInfo/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询机械信息详细
export function getMachineInfo(machineId) {
return request({
url: '/agriculture/machineInfo/' + machineId,
method: 'get'
})
method: 'get',
});
}
// 新增机械信息
@ -22,8 +22,8 @@ export function addMachineInfo(data) {
return request({
url: '/agriculture/machineInfo',
method: 'post',
data: data
})
data: data,
});
}
// 修改机械信息
@ -31,14 +31,14 @@ export function updateMachineInfo(data) {
return request({
url: '/agriculture/machineInfo',
method: 'put',
data: data
})
data: data,
});
}
// 删除机械信息
export function delMachineInfo(machineId) {
return request({
url: '/agriculture/machineInfo/' + machineId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询机械类别列表
export function listMachineType(query) {
return request({
url: '/agriculture/machineType/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询机械类别详细
export function getMachineType(machineTypeId) {
return request({
url: '/agriculture/machineType/' + machineTypeId,
method: 'get'
})
method: 'get',
});
}
// 新增机械类别
@ -22,8 +22,8 @@ export function addMachineType(data) {
return request({
url: '/agriculture/machineType',
method: 'post',
data: data
})
data: data,
});
}
// 修改机械类别
@ -31,14 +31,14 @@ export function updateMachineType(data) {
return request({
url: '/agriculture/machineType',
method: 'put',
data: data
})
data: data,
});
}
// 删除机械类别
export function delMachineType(machineTypeId) {
return request({
url: '/agriculture/machineType/' + machineTypeId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询农资信息列表
export function listMaterialInfo(query) {
return request({
url: '/agriculture/materialInfo/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询农资信息详细
export function getMaterialInfo(materialId) {
return request({
url: '/agriculture/materialInfo/' + materialId,
method: 'get'
})
method: 'get',
});
}
// 新增农资信息
@ -22,8 +22,8 @@ export function addMaterialInfo(data) {
return request({
url: '/agriculture/materialInfo',
method: 'post',
data: data
})
data: data,
});
}
// 修改农资信息
@ -31,14 +31,14 @@ export function updateMaterialInfo(data) {
return request({
url: '/agriculture/materialInfo',
method: 'put',
data: data
})
data: data,
});
}
// 删除农资信息
export function delMaterialInfo(materialId) {
return request({
url: '/agriculture/materialInfo/' + materialId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询农资类别列表
export function listMaterialType(query) {
return request({
url: '/agriculture/materialType/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询农资类别详细
export function getMaterialType(materialTypeId) {
return request({
url: '/agriculture/materialType/' + materialTypeId,
method: 'get'
})
method: 'get',
});
}
// 新增农资类别
@ -22,8 +22,8 @@ export function addMaterialType(data) {
return request({
url: '/agriculture/materialType',
method: 'post',
data: data
})
data: data,
});
}
// 修改农资类别
@ -31,14 +31,14 @@ export function updateMaterialType(data) {
return request({
url: '/agriculture/materialType',
method: 'put',
data: data
})
data: data,
});
}
// 删除农资类别
export function delMaterialType(materialTypeId) {
return request({
url: '/agriculture/materialType/' + materialTypeId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询种植方法列表
export function listMethod(query) {
return request({
url: '/agriculture/method/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询种植方法详细
export function getMethod(methodId) {
return request({
url: '/agriculture/method/' + methodId,
method: 'get'
})
method: 'get',
});
}
// 新增种植方法
@ -22,8 +22,8 @@ export function addMethod(data) {
return request({
url: '/agriculture/method',
method: 'post',
data: data
})
data: data,
});
}
// 修改种植方法
@ -31,14 +31,14 @@ export function updateMethod(data) {
return request({
url: '/agriculture/method',
method: 'put',
data: data
})
data: data,
});
}
// 删除种植方法
export function delMethod(methodId) {
return request({
url: '/agriculture/method/' + methodId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询标准作业任务列表
export function listStandardJob(query) {
return request({
url: '/agriculture/standardJob/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询标准作业任务详细
export function getStandardJob(jobId) {
return request({
url: '/agriculture/standardJob/' + jobId,
method: 'get'
})
method: 'get',
});
}
// 新增标准作业任务
@ -22,8 +22,8 @@ export function addStandardJob(data) {
return request({
url: '/agriculture/standardJob',
method: 'post',
data: data
})
data: data,
});
}
// 修改标准作业任务
@ -31,14 +31,14 @@ export function updateStandardJob(data) {
return request({
url: '/agriculture/standardJob',
method: 'put',
data: data
})
data: data,
});
}
// 删除标准作业任务
export function delStandardJob(jobId) {
return request({
url: '/agriculture/standardJob/' + jobId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询批次任务工人列表
export function listTaskEmployee(query) {
return request({
url: '/agriculture/taskEmployee/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询批次任务工人详细
export function getTaskEmployee(id) {
return request({
url: '/agriculture/taskEmployee/' + id,
method: 'get'
})
method: 'get',
});
}
// 新增批次任务工人
@ -22,8 +22,8 @@ export function addTaskEmployee(data) {
return request({
url: '/agriculture/taskEmployee',
method: 'post',
data: data
})
data: data,
});
}
// 修改批次任务工人
@ -31,22 +31,22 @@ export function updateTaskEmployee(data) {
return request({
url: '/agriculture/taskEmployee',
method: 'put',
data: data
})
data: data,
});
}
// 根据id删除批次任务工人
export function delTaskEmployee(id) {
return request({
url: '/agriculture/taskEmployee/' + id,
method: 'delete'
})
method: 'delete',
});
}
// 根据taskId和employeeId删除批次任务工人
export function delTaskEmployeeByTaskIdAndEmployeeId(taskId,employeeId) {
export function delTaskEmployeeByTaskIdAndEmployeeId(taskId, employeeId) {
return request({
url: '/agriculture/taskEmployee/' + taskId+'/'+employeeId,
method: 'delete'
})
url: '/agriculture/taskEmployee/' + taskId + '/' + employeeId,
method: 'delete',
});
}

View File

@ -1,59 +1,58 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 配置种植单元
export function cfgUnit(data) {
return request({
url: '/agriculture/unit/cfg',
method: 'POST',
data
})
data,
});
}
//获取种植单元
export function getUnit(landId) {
return request({
url: '/agriculture/unit/getUnit/'+landId,
method: 'GET',
})
return request({
url: '/agriculture/unit/getUnit/' + landId,
method: 'GET',
});
}
//获取设备
export function selectDeviceList(landId) {
return request({
url: '/agriculture/unit/selectDeviceList/'+landId,
method: 'GET',
})
return request({
url: '/agriculture/unit/selectDeviceList/' + landId,
method: 'GET',
});
}
//获取监控
export function selectCameraList(landId) {
return request({
url: '/agriculture/unit/selectCameraList/'+landId,
method: 'GET',
})
return request({
url: '/agriculture/unit/selectCameraList/' + landId,
method: 'GET',
});
}
//获取种植批次
export function selectBatchList(landId) {
return request({
url: '/agriculture/unit/selectBatchList/'+landId,
method: 'GET',
})
return request({
url: '/agriculture/unit/selectBatchList/' + landId,
method: 'GET',
});
}
//获取场景
export function selectSceneList(landId) {
return request({
url: '/agriculture/unit/selectSceneList/'+landId,
method: 'GET',
})
return request({
url: '/agriculture/unit/selectSceneList/' + landId,
method: 'GET',
});
}
//获取告警日志
export function selectAlertLogList(query) {
return request({
url: '/agriculture/unit/selectAlertLogList/',
method: 'GET',
params: query
})
return request({
url: '/agriculture/unit/selectAlertLogList/',
method: 'GET',
params: query,
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询设备告警列表
export function listAlert(query) {
return request({
url: '/iot/alert/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询设备告警详细
export function getAlert(alertId) {
return request({
url: '/iot/alert/' + alertId,
method: 'get'
})
method: 'get',
});
}
// 新增设备告警
@ -22,8 +22,8 @@ export function addAlert(data) {
return request({
url: '/iot/alert',
method: 'post',
data: data
})
data: data,
});
}
// 修改设备告警
@ -31,14 +31,14 @@ export function updateAlert(data) {
return request({
url: '/iot/alert',
method: 'put',
data: data
})
data: data,
});
}
// 删除设备告警
export function delAlert(alertId) {
return request({
url: '/iot/alert/' + alertId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询设备告警列表
export function listAlertLog(query) {
return request({
url: '/iot/alertLog/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询设备告警详细
export function getAlertLog(alertLogId) {
return request({
url: '/iot/alertLog/' + alertLogId,
method: 'get'
})
method: 'get',
});
}
// 新增设备告警
@ -22,8 +22,8 @@ export function addAlertLog(data) {
return request({
url: '/iot/alertLog',
method: 'post',
data: data
})
data: data,
});
}
// 修改设备告警
@ -31,14 +31,14 @@ export function updateAlertLog(data) {
return request({
url: '/iot/alertLog',
method: 'put',
data: data
})
data: data,
});
}
// 删除设备告警
export function delAlertLog(alertLogId) {
return request({
url: '/iot/alertLog/' + alertLogId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询产品授权码列表
export function listAuthorize(query) {
return request({
url: '/iot/authorize/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询产品授权码详细
export function getAuthorize(authorizeId) {
return request({
url: '/iot/authorize/' + authorizeId,
method: 'get'
})
method: 'get',
});
}
// 新增产品授权码
@ -22,8 +22,8 @@ export function addAuthorize(data) {
return request({
url: '/iot/authorize',
method: 'post',
data: data
})
data: data,
});
}
//根据数量批量新增产品授权码
@ -31,22 +31,22 @@ export function addProductAuthorizeByNum(data) {
return request({
url: '/iot/authorize/addProductAuthorizeByNum',
method: 'post',
data: data
})
data: data,
});
}
// 修改产品授权码
export function updateAuthorize(data) {
return request({
url: '/iot/authorize',
method: 'put',
data: data
})
data: data,
});
}
// 删除产品授权码
export function delAuthorize(authorizeId) {
return request({
url: '/iot/authorize/' + authorizeId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询产品分类列表
export function listCategory(query) {
return request({
url: '/iot/category/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询产品分类详细
export function getCategory(categoryId) {
return request({
url: '/iot/category/' + categoryId,
method: 'get'
})
method: 'get',
});
}
// 新增产品分类
@ -22,8 +22,8 @@ export function addCategory(data) {
return request({
url: '/iot/category',
method: 'post',
data: data
})
data: data,
});
}
// 修改产品分类
@ -31,14 +31,14 @@ export function updateCategory(data) {
return request({
url: '/iot/category',
method: 'put',
data: data
})
data: data,
});
}
// 删除产品分类
export function delCategory(categoryId) {
return request({
url: '/iot/category/' + categoryId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询监控设备通道信息列表
export function listChannel(query) {
return request({
url: '/sip/channel/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询监控设备通道信息详细
export function getChannel(channelId) {
return request({
url: '/sip/channel/' + channelId,
method: 'get'
})
method: 'get',
});
}
// 新增监控设备通道信息
@ -22,100 +22,100 @@ export function addChannel(createNum, data) {
return request({
url: '/sip/channel/' + createNum,
method: 'post',
data: data
})
data: data,
});
}
// 向设备新增监控设备通道信息
export function addChannelToDevice(createNum, data) {
return request({
url: '/sip/channel/addToDevice/' + createNum,
method: 'post',
data: data
})
}
return request({
url: '/sip/channel/addToDevice/' + createNum,
method: 'post',
data: data,
});
}
// 修改监控设备通道信息
export function updateChannel(data) {
return request({
url: '/sip/channel',
method: 'put',
data: data
})
data: data,
});
}
// 删除监控设备通道信息
export function delChannel(channelId) {
return request({
url: '/sip/channel/' + channelId,
method: 'delete'
})
method: 'delete',
});
}
// 开始播放
export function startPlay(deviceId, channelId) {
return request({
url: '/sip/player/play/' + deviceId + "/" + channelId,
method: 'get'
})
url: '/sip/player/play/' + deviceId + '/' + channelId,
method: 'get',
});
}
export function stopPlay(deviceId, channelId, streamId) {
return request({
url: '/sip/player/playstop/' + deviceId + "/" + channelId + "/" + streamId,
method: 'get'
})
url: '/sip/player/playstop/' + deviceId + '/' + channelId + '/' + streamId,
method: 'get',
});
}
// 获取流信息
export function getStreaminfo(deviceId, channelId) {
return request({
url: '/sip/player/playstream/' + deviceId + "/" + channelId,
method: 'get'
})
url: '/sip/player/playstream/' + deviceId + '/' + channelId,
method: 'get',
});
}
export function playback(deviceId, channelId, query) {
return request({
url: '/sip/player/playback/' + deviceId + "/" + channelId,
url: '/sip/player/playback/' + deviceId + '/' + channelId,
method: 'get',
params: query
})
params: query,
});
}
export function playbackStop(deviceId, channelId, streamId) {
return request({
url: '/sip/player/playbackStop/' + deviceId + "/" + channelId + "/" + streamId,
method: 'get'
})
url: '/sip/player/playbackStop/' + deviceId + '/' + channelId + '/' + streamId,
method: 'get',
});
}
export function playbackPause(deviceId, channelId, streamId) {
return request({
url: '/sip/player/playbackPause/' + deviceId + "/" + channelId + "/" + streamId,
method: 'get'
})
url: '/sip/player/playbackPause/' + deviceId + '/' + channelId + '/' + streamId,
method: 'get',
});
}
export function playbackReplay(deviceId, channelId, streamId) {
return request({
url: '/sip/player/playbackReplay/' + deviceId + "/" + channelId + "/" + streamId,
method: 'get'
})
url: '/sip/player/playbackReplay/' + deviceId + '/' + channelId + '/' + streamId,
method: 'get',
});
}
export function playbackSeek(deviceId, channelId, streamId, query) {
return request({
url: '/sip/player/playbackSeek/' + deviceId + "/" + channelId + "/" + streamId,
url: '/sip/player/playbackSeek/' + deviceId + '/' + channelId + '/' + streamId,
method: 'get',
params: query
})
params: query,
});
}
export function playbackSpeed(deviceId, channelId, streamId, query) {
return request({
url: '/sip/player/playbackSpeed/' + deviceId + "/" + channelId + "/" + streamId,
url: '/sip/player/playbackSpeed/' + deviceId + '/' + channelId + '/' + streamId,
method: 'get',
params: query
})
params: query,
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询云云对接列表
export function listClientDetails(query) {
return request({
url: '/iot/clientDetails/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询云云对接详细
export function getClientDetails(clientId) {
return request({
url: '/iot/clientDetails/' + clientId,
method: 'get'
})
method: 'get',
});
}
// 新增云云对接
@ -22,8 +22,8 @@ export function addClientDetails(data) {
return request({
url: '/iot/clientDetails',
method: 'post',
data: data
})
data: data,
});
}
// 修改云云对接
@ -31,14 +31,14 @@ export function updateClientDetails(data) {
return request({
url: '/iot/clientDetails',
method: 'put',
data: data
})
data: data,
});
}
// 删除云云对接
export function delClientDetails(clientId) {
return request({
url: '/iot/clientDetails/' + clientId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,97 +1,96 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询设备列表
export function listDevice(query) {
return request({
url: '/iot/device/list',
method: 'get',
params: query
})
return request({
url: '/iot/device/list',
method: 'get',
params: query,
});
}
//摄像头列表
export function listCamera(query){
return request({
url:'/iot/device/list',
method:'get',
params:{
isCamera:1,
...query
}
})
export function listCamera(query) {
return request({
url: '/iot/device/list',
method: 'get',
params: {
isCamera: 1,
...query,
},
});
}
// 查询设备详细
export function getDevice(deviceId) {
return request({
url: '/iot/device/' + deviceId,
method: 'get'
})
return request({
url: '/iot/device/' + deviceId,
method: 'get',
});
}
// 根据设备编号查询设备详细
export function getDeviceBySerialNumber(serialNumber) {
return request({
url: '/iot/device/getDeviceBySerialNumber/' + serialNumber,
method: 'get'
})
return request({
url: '/iot/device/getDeviceBySerialNumber/' + serialNumber,
method: 'get',
});
}
// 查询设备运行状态详细
export function getDeviceRunningStatus(deviceId) {
return request({
url: '/iot/device/runningStatus/' + deviceId,
method: 'get'
})
return request({
url: '/iot/device/runningStatus/' + deviceId,
method: 'get',
});
}
// 查询设备运行状态单层模型
export function getDeviceRunningStatusSingle(deviceId,removeNotRecord) {
return request({
url: '/iot/device/runningStatusSingle/' + deviceId+'/'+removeNotRecord,
method: 'get'
})
export function getDeviceRunningStatusSingle(deviceId, removeNotRecord) {
return request({
url: '/iot/device/runningStatusSingle/' + deviceId + '/' + removeNotRecord,
method: 'get',
});
}
// 新增设备
export function addDevice(data) {
return request({
url: '/iot/device',
method: 'post',
data: data
})
return request({
url: '/iot/device',
method: 'post',
data: data,
});
}
// 修改设备
export function updateDevice(data) {
return request({
url: '/iot/device',
method: 'put',
data: data
})
return request({
url: '/iot/device',
method: 'put',
data: data,
});
}
// 删除设备
export function delDevice(deviceId) {
return request({
url: '/iot/device/' + deviceId,
method: 'delete'
})
return request({
url: '/iot/device/' + deviceId,
method: 'delete',
});
}
// 生成设备编号
export function generatorDeviceNum() {
return request({
url: '/iot/device/generator',
method: 'get'
})
return request({
url: '/iot/device/generator',
method: 'get',
});
}
// 生成设备编号
export function importDevice(data) {
return request({
url: '/iot/device/import',
method: 'post',
data: data
})
return request({
url: '/iot/device/import',
method: 'post',
data: data,
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询定时任务调度列表
export function listJob(query) {
return request({
url: '/iot/job/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询定时任务调度详细
export function getJob(jobId) {
return request({
url: '/iot/job/' + jobId,
method: 'get'
})
method: 'get',
});
}
// 新增定时任务调度
@ -22,8 +22,8 @@ export function addJob(data) {
return request({
url: '/iot/job',
method: 'post',
data: data
})
data: data,
});
}
// 修改定时任务调度
@ -31,41 +31,40 @@ export function updateJob(data) {
return request({
url: '/iot/job',
method: 'put',
data: data
})
data: data,
});
}
// 删除定时任务调度
export function delJob(jobId) {
return request({
url: '/iot/job/' + jobId,
method: 'delete'
})
method: 'delete',
});
}
// 任务状态修改
export function changeJobStatus(jobId, status) {
const data = {
jobId,
status
}
status,
};
return request({
url: '/iot/job/changeStatus',
method: 'put',
data: data
})
data: data,
});
}
// 定时任务立即执行一次
export function runJob(jobId, jobGroup) {
const data = {
jobId,
jobGroup
}
jobGroup,
};
return request({
url: '/iot/job/run',
method: 'put',
data: data
})
}
data: data,
});
}

View File

@ -1,22 +1,18 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询设备定时任务日志列表
export function listLog(query) {
return request({
url: '/iot/deviceJobLog/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询设备定时任务日志详细
export function getLog(jobLogId) {
return request({
url: '/iot/deviceJobLog/' + jobLogId,
method: 'get'
})
method: 'get',
});
}

View File

@ -1,12 +1,12 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询设备日志列表
export function listDeviceLog(query) {
return request({
url: '/iot/deviceLog/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询设备监测数据
@ -14,16 +14,16 @@ export function listMonitor(query) {
return request({
url: '/iot/deviceLog/monitor',
method: 'get',
params: query
})
params: query,
});
}
// 查询设备日志详细
export function getDeviceLog(logId) {
return request({
url: '/iot/deviceLog/' + logId,
method: 'get'
})
method: 'get',
});
}
// 新增设备日志
@ -31,8 +31,8 @@ export function addDeviceLog(data) {
return request({
url: '/iot/deviceLog',
method: 'post',
data: data
})
data: data,
});
}
// 修改设备日志
@ -40,14 +40,14 @@ export function updateDeviceLog(data) {
return request({
url: '/iot/deviceLog',
method: 'put',
data: data
})
data: data,
});
}
// 删除设备日志
export function delDeviceLog(logId) {
return request({
url: '/iot/deviceLog/' + logId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询设备用户列表
export function listDeviceUser(query) {
return request({
url: '/iot/deviceUser/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询设备用户详细
export function getDeviceUser(deviceId, userId) {
return request({
url: '/iot/deviceUser/' + deviceId + '/' + userId,
method: 'get'
})
method: 'get',
});
}
// 新增设备用户
@ -22,8 +22,8 @@ export function addDeviceUser(data) {
return request({
url: '/iot/deviceUser',
method: 'post',
data: data
})
data: data,
});
}
// 新增多个设备用户
@ -31,8 +31,8 @@ export function addDeviceUsers(data) {
return request({
url: '/iot/deviceUser/addDeviceUsers',
method: 'post',
data: data
})
data: data,
});
}
// 修改设备用户
@ -40,8 +40,8 @@ export function updateDeviceUser(data) {
return request({
url: '/iot/deviceUser',
method: 'put',
data: data
})
data: data,
});
}
// 删除设备用户
@ -49,6 +49,6 @@ export function delDeviceUser(device) {
return request({
url: '/iot/deviceUser',
method: 'delete',
data: device
})
data: device,
});
}

View File

@ -1,378 +1,371 @@
import axios from 'axios'
import axios from 'axios';
const username = process.env.VUE_APP_EMQX_API_USER_NAME;
const password = process.env.VUE_APP_EMQX_API_PASSWORD;
// 集群下所有客户端列表
export function listMqttClient(query) {
var url = "/api/v4/clients";
export function listMqttClient(query) {
var url = '/api/v4/clients';
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
params: query
})
params: query,
});
}
// 集群下所有订阅信息
export function listMqttSubscribe(query) {
var url = "/api/v4/subscriptions";
export function listMqttSubscribe(query) {
var url = '/api/v4/subscriptions';
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
params: query
})
params: query,
});
}
// 集群下所有主题/路由信息
export function listMqttTopic(query) {
var url = "/api/v4/routes";
export function listMqttTopic(query) {
var url = '/api/v4/routes';
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
params: query
})
params: query,
});
}
// 集群下所有插件信息
export function listMqttPlugin() {
var url = "/api/v4/plugins";
export function listMqttPlugin() {
var url = '/api/v4/plugins';
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
// 加载指定节点的指定插件
export function loadMqttPlugin(node,plugin) {
var url = "/api/v4/nodes/"+node+"/plugins/"+plugin+"/load";
export function loadMqttPlugin(node, plugin) {
var url = '/api/v4/nodes/' + node + '/plugins/' + plugin + '/load';
return axios({
method: 'put',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
// 卸载指定节点的指定插件
export function unloadMqttPlugin(node,plugin) {
var url = "/api/v4/nodes/"+node+"/plugins/"+plugin+"/unload";
export function unloadMqttPlugin(node, plugin) {
var url = '/api/v4/nodes/' + node + '/plugins/' + plugin + '/unload';
return axios({
method: 'put',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
// 集群下所有监听器信息
export function listMqttListener() {
var url = "/api/v4/listeners";
export function listMqttListener() {
var url = '/api/v4/listeners';
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
// 集群下所有统计指标数据
export function statisticMqtt() {
var url = "/api/v4/metrics";
export function statisticMqtt() {
var url = '/api/v4/metrics';
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
// 集群下所有状态数据
export function getMqttStats() {
var url = "/api/v4/stats";
export function getMqttStats() {
var url = '/api/v4/stats';
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
//断开客户端连接
export function eliminateClient(clientId){
var url = "/api/v4/clients/"+clientId;
export function eliminateClient(clientId) {
var url = '/api/v4/clients/' + clientId;
return axios({
method: 'delete',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
//查看客户端详情
export function getClientDetails(clientId){
var url = "/api/v4/clients/"+clientId;
export function getClientDetails(clientId) {
var url = '/api/v4/clients/' + clientId;
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
//查看集群下指定客户端的订阅信息
export function getSubscriptionsByClientId(clientId){
var url = "/api/v4/subscriptions/"+clientId;
export function getSubscriptionsByClientId(clientId) {
var url = '/api/v4/subscriptions/' + clientId;
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
//取消该客户端订阅
export function unsubscribe(query){
var url = "/api/v4/mqtt/unsubscribe";
export function unsubscribe(query) {
var url = '/api/v4/mqtt/unsubscribe';
return axios({
method: 'post',
url: url,
auth: {
username: username,
password: password
password: password,
},
params: query
})
params: query,
});
}
//添加该客户端订阅
export function addSubscribe(query){
var url = "/api/v4/mqtt/subscribe";
export function addSubscribe(query) {
var url = '/api/v4/mqtt/subscribe';
return axios({
method: 'post',
url: url,
auth: {
username: username,
password: password
password: password,
},
params: query
})
params: query,
});
}
//获取所有规则引擎的动作
export function getRules(ruleid){
let url = "";
if(typeof(ruleid) == 'undefined' || ruleid == '' ||ruleid == null){
url = "/api/v4/rules";
}else{
url = "/api/v4/rules/"+ruleid;
export function getRules(ruleid) {
let url = '';
if (typeof ruleid == 'undefined' || ruleid == '' || ruleid == null) {
url = '/api/v4/rules';
} else {
url = '/api/v4/rules/' + ruleid;
}
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
//删除规则
export function deleteRule(ruleid){
var url = "/api/v4/rules/"+ruleid;
export function deleteRule(ruleid) {
var url = '/api/v4/rules/' + ruleid;
return axios({
method: 'delete',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
//获取资源列表或详情
export function getResources(resourceid){
let url = "";
if(typeof(resourceid) == 'undefined' || resourceid == '' ||resourceid == null){
url = "/api/v4/resources";
}else{
url = "/api/v4/resources/"+resourceid;
export function getResources(resourceid) {
let url = '';
if (typeof resourceid == 'undefined' || resourceid == '' || resourceid == null) {
url = '/api/v4/resources';
} else {
url = '/api/v4/resources/' + resourceid;
}
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
//获取资源状态
export function getResourcesStatus(resourceid){
let url = "/api/v4/resources/"+resourceid;
export function getResourcesStatus(resourceid) {
let url = '/api/v4/resources/' + resourceid;
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
//连接资源
export function getConnectResource(resourceid){
let url = "/api/v4/resources/"+resourceid;
export function getConnectResource(resourceid) {
let url = '/api/v4/resources/' + resourceid;
return axios({
method: 'post',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
//删除资源
export function deleteResource(resourceid){
let url = "/api/v4/resources/"+resourceid;
export function deleteResource(resourceid) {
let url = '/api/v4/resources/' + resourceid;
return axios({
method: 'delete',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
//获取资源类型
export function getResourcesType(){
let url = "/api/v4/resource_types";
export function getResourcesType() {
let url = '/api/v4/resource_types';
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
//资源测试连接
export function getResourcesConnect(query){
let url = "/api/v4/resources?test=true";
export function getResourcesConnect(query) {
let url = '/api/v4/resources?test=true';
return axios({
method: 'post',
url: url,
auth: {
username: username,
password: password
password: password,
},
data: query
})
data: query,
});
}
//新增资源
export function saveResources(query){
let url = "/api/v4/resources";
export function saveResources(query) {
let url = '/api/v4/resources';
return axios({
method: 'post',
url: url,
auth: {
username: username,
password: password
password: password,
},
data: query
})
data: query,
});
}
//获取规则消息类型
export function getRulesEvent(){
let url = "/api/v4/rule_events";
export function getRulesEvent() {
let url = '/api/v4/rule_events';
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
//获取响应动作类型
export function getActionsEvent(){
let url = "/api/v4/actions";
export function getActionsEvent() {
let url = '/api/v4/actions';
return axios({
method: 'get',
url: url,
auth: {
username: username,
password: password
password: password,
},
})
});
}
//新增规则引擎
export function saveRule(query){
let url = "/api/v4/rules";
export function saveRule(query) {
let url = '/api/v4/rules';
return axios({
method: 'post',
url: url,
auth: {
username: username,
password: password
password: password,
},
data: query
})
data: query,
});
}
//测试规则引擎
export function testConnectRule(query){
let url = "/api/v4/rules?test=true";
export function testConnectRule(query) {
let url = '/api/v4/rules?test=true';
return axios({
method: 'post',
url: url,
auth: {
username: username,
password: password
password: password,
},
data: query
})
data: query,
});
}

View File

@ -1,28 +1,28 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询产品固件列表
export function listFirmware(query) {
return request({
url: '/iot/firmware/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询设备最新固件
export function getLatestFirmware(deviceId) {
return request({
url: '/iot/firmware/getLatest/' + deviceId,
method: 'get'
})
method: 'get',
});
}
// 查询产品固件详细
export function getFirmware(firmwareId) {
return request({
url: '/iot/firmware/' + firmwareId,
method: 'get'
})
method: 'get',
});
}
// 新增产品固件
@ -30,8 +30,8 @@ export function addFirmware(data) {
return request({
url: '/iot/firmware',
method: 'post',
data: data
})
data: data,
});
}
// 修改产品固件
@ -39,14 +39,14 @@ export function updateFirmware(data) {
return request({
url: '/iot/firmware',
method: 'put',
data: data
})
data: data,
});
}
// 删除产品固件
export function delFirmware(firmwareId) {
return request({
url: '/iot/firmware/' + firmwareId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,30 +1,27 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询产品布局列表
export function listLayout(query) {
return request({
url: '/iot/layout/list',
method: 'get',
params: query
})
params: query,
});
}
// 新增产品布局
export function addLayout(data) {
return request({
url: '/iot/layout',
method: 'post',
data: data
})
data: data,
});
}
// 删除产品布局
export function delLayout(productId) {
return request({
url: '/iot/layout/' + productId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询设备日志列表
export function listLog(query) {
return request({
url: '/iot/log/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询设备日志详细
export function getLog(deviceLogId) {
return request({
url: '/iot/log/' + deviceLogId,
method: 'get'
})
method: 'get',
});
}
// 新增设备日志
@ -22,8 +22,8 @@ export function addLog(data) {
return request({
url: '/iot/log',
method: 'post',
data: data
})
data: data,
});
}
// 修改设备日志
@ -31,14 +31,14 @@ export function updateLog(data) {
return request({
url: '/iot/log',
method: 'put',
data: data
})
data: data,
});
}
// 删除设备日志
export function delLog(deviceLogId) {
return request({
url: '/iot/log/' + deviceLogId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询流媒体服务器配置列表
export function listmediaServer(query) {
return request({
url: '/sip/mediaserver/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询流媒体服务器配置详细
export function getmediaServer() {
return request({
url: '/sip/mediaserver/',
method: 'get'
})
method: 'get',
});
}
// 新增流媒体服务器配置
@ -22,8 +22,8 @@ export function addmediaServer(data) {
return request({
url: '/sip/mediaserver',
method: 'post',
data: data
})
data: data,
});
}
// 修改流媒体服务器配置
@ -31,14 +31,14 @@ export function updatemediaServer(data) {
return request({
url: '/sip/mediaserver',
method: 'put',
data: data
})
data: data,
});
}
// 删除流媒体服务器配置
export function delmediaServer(id) {
return request({
url: '/sip/mediaserver/' + id,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询物模型列表
export function listModel(query) {
return request({
url: '/iot/model/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询物模型详细
export function getModel(modelId) {
return request({
url: '/iot/model/' + modelId,
method: 'get'
})
method: 'get',
});
}
// 新增物模型
@ -22,8 +22,8 @@ export function addModel(data) {
return request({
url: '/iot/model',
method: 'post',
data: data
})
data: data,
});
}
// 导入通用物模型
@ -31,8 +31,8 @@ export function importModel(data) {
return request({
url: '/iot/model/import',
method: 'post',
data: data
})
data: data,
});
}
// 修改物模型
@ -40,22 +40,22 @@ export function updateModel(data) {
return request({
url: '/iot/model',
method: 'put',
data: data
})
data: data,
});
}
// 删除物模型
export function delModel(modelId) {
return request({
url: '/iot/model/' + modelId,
method: 'delete'
})
method: 'delete',
});
}
// 根据产品ID获取缓存的物模型
export function cacheJsonThingsModel(productId){
export function cacheJsonThingsModel(productId) {
return request({
url: '/iot/model/cache/' + productId,
method: 'get'
})
method: 'get',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询新闻资讯列表
export function listNews(query) {
return request({
url: '/iot/news/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询新闻资讯详细
export function getNews(newsId) {
return request({
url: '/iot/news/' + newsId,
method: 'get'
})
method: 'get',
});
}
// 新增新闻资讯
@ -22,8 +22,8 @@ export function addNews(data) {
return request({
url: '/iot/news',
method: 'post',
data: data
})
data: data,
});
}
// 修改新闻资讯
@ -31,14 +31,14 @@ export function updateNews(data) {
return request({
url: '/iot/news',
method: 'put',
data: data
})
data: data,
});
}
// 删除新闻资讯
export function delNews(newsId) {
return request({
url: '/iot/news/' + newsId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询新闻分类列表
export function listNewsCategory(query) {
return request({
url: '/iot/newsCategory/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询新闻分类详细
export function getNewsCategory(categoryId) {
return request({
url: '/iot/newsCategory/' + categoryId,
method: 'get'
})
method: 'get',
});
}
// 新增新闻分类
@ -22,8 +22,8 @@ export function addNewsCategory(data) {
return request({
url: '/iot/newsCategory',
method: 'post',
data: data
})
data: data,
});
}
// 修改新闻分类
@ -31,14 +31,14 @@ export function updateNewsCategory(data) {
return request({
url: '/iot/newsCategory',
method: 'put',
data: data
})
data: data,
});
}
// 删除新闻分类
export function delNewsCategory(categoryId) {
return request({
url: '/iot/newsCategory/' + categoryId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询第三方登录平台控制列表
export function listPlatform(query) {
return request({
url: '/iot/platform/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询第三方登录平台控制详细
export function getPlatform(socialPlatformId) {
return request({
url: '/iot/platform/' + socialPlatformId,
method: 'get'
})
method: 'get',
});
}
// 新增第三方登录平台控制
@ -22,8 +22,8 @@ export function addPlatform(data) {
return request({
url: '/iot/platform',
method: 'post',
data: data
})
data: data,
});
}
// 修改第三方登录平台控制
@ -31,38 +31,38 @@ export function updatePlatform(data) {
return request({
url: '/iot/platform',
method: 'put',
data: data
})
data: data,
});
}
// 删除第三方登录平台控制
export function delPlatform(socialPlatformId) {
return request({
url: '/iot/platform/' + socialPlatformId,
method: 'delete'
})
method: 'delete',
});
}
//解除绑定
export function unbind(socialUserId){
export function unbind(socialUserId) {
return request({
url: '/iot/social/unbind/' + socialUserId,
method: 'get'
})
method: 'get',
});
}
//绑定跳转
export function bind(platform){
export function bind(platform) {
return request({
url: '/iot/social/bind/' + platform,
method: 'get'
})
method: 'get',
});
}
//绑定
export function bindUser(bindId){
export function bindUser(bindId) {
return request({
url: '/iot/social/bindId/' + bindId,
method: 'get'
})
method: 'get',
});
}

View File

@ -1,12 +1,12 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询产品列表
export function listProduct(query) {
return request({
url: '/iot/product/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询产品列表
@ -14,15 +14,15 @@ export function listShortProduct() {
return request({
url: '/iot/product/shortList',
method: 'get',
})
});
}
// 查询产品详细
export function getProduct(productId) {
return request({
url: '/iot/product/' + productId,
method: 'get'
})
method: 'get',
});
}
// 新增产品
@ -30,8 +30,8 @@ export function addProduct(data) {
return request({
url: '/iot/product',
method: 'post',
data: data
})
data: data,
});
}
// 修改产品
@ -39,16 +39,16 @@ export function updateProduct(data) {
return request({
url: '/iot/product',
method: 'put',
data: data
})
data: data,
});
}
// 获取产品下设备的数量
export function deviceCount(productId) {
return request({
url: '/iot/product/deviceCount/' + productId,
method: 'get'
})
method: 'get',
});
}
// 更新产品状态
@ -56,22 +56,22 @@ export function changeProductStatus(data) {
return request({
url: '/iot/product/status/',
method: 'put',
data:data
})
data: data,
});
}
// 删除产品
export function delProduct(productId) {
return request({
url: '/iot/product/' + productId,
method: 'delete'
})
method: 'delete',
});
}
// 生成AESkey
export function generateAesKey(productId,authorizeId) {
return request({
url: '/iot/product/generateAesKey/' + productId+'/'+authorizeId,
method: 'get'
})
}
export function generateAesKey(productId, authorizeId) {
return request({
url: '/iot/product/generateAesKey/' + productId + '/' + authorizeId,
method: 'get',
});
}

View File

@ -1,11 +1,9 @@
import request from '@/utils/request'
import request from '@/utils/request';
export function getDevRecord(deviceId,channelId,query) {
export function getDevRecord(deviceId, channelId, query) {
return request({
url: '/sip/record/devquery/' + deviceId + "/" + channelId,
url: '/sip/record/devquery/' + deviceId + '/' + channelId,
method: 'get',
params: query
})
params: query,
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询规则引擎列表
export function listRule(query) {
return request({
url: '/iot/rule/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询规则引擎详细
export function getRule(ruleId) {
return request({
url: '/iot/rule/' + ruleId,
method: 'get'
})
method: 'get',
});
}
// 新增规则引擎
@ -22,8 +22,8 @@ export function addRule(data) {
return request({
url: '/iot/rule',
method: 'post',
data: data
})
data: data,
});
}
// 修改规则引擎
@ -31,30 +31,30 @@ export function updateRule(data) {
return request({
url: '/iot/rule',
method: 'put',
data: data
})
data: data,
});
}
// 删除规则引擎
export function delRule(ruleId) {
return request({
url: '/iot/rule/' + ruleId,
method: 'delete'
})
method: 'delete',
});
}
//测试规则
export function testRule(data){
return request({
url: '/iot/rule/testRule',
method: 'post',
data: data
})
export function testRule(data) {
return request({
url: '/iot/rule/testRule',
method: 'post',
data: data,
});
}
// 复制一份规则
export function copyOne(ruleId) {
return request({
url: '/iot/rule/copyOne/' + ruleId,
method: 'get'
})
}
return request({
url: '/iot/rule/copyOne/' + ruleId,
method: 'get',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询场景联动列表
export function listScene(query) {
return request({
url: '/iot/scene/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询场景联动详细
export function getScene(sceneId) {
return request({
url: '/iot/scene/' + sceneId,
method: 'get'
})
method: 'get',
});
}
// 新增场景联动
@ -22,8 +22,8 @@ export function addScene(data) {
return request({
url: '/iot/scene',
method: 'post',
data: data
})
data: data,
});
}
// 修改场景联动
@ -31,14 +31,14 @@ export function updateScene(data) {
return request({
url: '/iot/scene',
method: 'put',
data: data
})
data: data,
});
}
// 删除场景联动
export function delScene(sceneId) {
return request({
url: '/iot/scene/' + sceneId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询sip系统配置列表
export function listSipconfig(query) {
return request({
url: '/sip/sipconfig/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询sip系统配置详细
export function getSipconfig(productId,isDefault) {
export function getSipconfig(productId, isDefault) {
return request({
url: '/sip/sipconfig/' + productId+'/'+isDefault,
method: 'get'
})
url: '/sip/sipconfig/' + productId + '/' + isDefault,
method: 'get',
});
}
// 新增sip系统配置
@ -22,8 +22,8 @@ export function addSipconfig(data) {
return request({
url: '/sip/sipconfig',
method: 'post',
data: data
})
data: data,
});
}
// 修改sip系统配置
@ -31,23 +31,23 @@ export function updateSipconfig(data) {
return request({
url: '/sip/sipconfig',
method: 'put',
data: data
})
data: data,
});
}
// 删除sip系统配置
export function delSipconfig(id) {
return request({
url: '/sip/sipconfig/' + id,
method: 'delete'
})
method: 'delete',
});
}
export function delSipconfigByProductId(productId) {
return request({
url: '/sip/sipconfig/product/' + productId,
method: 'delete'
})
method: 'delete',
});
}
// 删除sip系统配置
@ -55,6 +55,6 @@ export function setDefaultSipconfig(data) {
return request({
url: '/sip/sipconfig/defaultconfig',
method: 'post',
data: data
})
data: data,
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询监控设备列表
export function listSipDevice(query) {
return request({
url: '/sip/device/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询监控设备详细
export function getSipDevice(deviceId) {
return request({
url: '/sip/device/' + deviceId,
method: 'get'
})
method: 'get',
});
}
// 新增监控设备
@ -22,8 +22,8 @@ export function addSipDevice(data) {
return request({
url: '/sip/device',
method: 'post',
data: data
})
data: data,
});
}
// 修改监控设备
@ -31,37 +31,37 @@ export function updateSipDevice(data) {
return request({
url: '/sip/device',
method: 'put',
data: data
})
data: data,
});
}
// 删除监控设备
export function delSipDevice(deviceId) {
return request({
url: '/sip/device/' + deviceId,
method: 'delete'
})
method: 'delete',
});
}
export function delSipDeviceBySipId(sipId) {
return request({
url: '/sip/device/sipid/' + sipId,
method: 'delete'
})
method: 'delete',
});
}
export function ptzdirection(deviceId,channelId,data) {
export function ptzdirection(deviceId, channelId, data) {
return request({
url: '/sip/ptz/direction/'+ deviceId + "/" + channelId,
url: '/sip/ptz/direction/' + deviceId + '/' + channelId,
method: 'post',
data: data
})
data: data,
});
}
export function ptzscale(deviceId,channelId,data) {
export function ptzscale(deviceId, channelId, data) {
return request({
url: '/sip/ptz/scale/'+ deviceId + "/" + channelId,
url: '/sip/ptz/scale/' + deviceId + '/' + channelId,
method: 'post',
data: data
})
data: data,
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询通用物模型列表
export function listTemplate(query) {
return request({
url: '/iot/template/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询通用物模型详细
export function getTemplate(templateId) {
return request({
url: '/iot/template/' + templateId,
method: 'get'
})
method: 'get',
});
}
// 新增通用物模型
@ -22,8 +22,8 @@ export function addTemplate(data) {
return request({
url: '/iot/template',
method: 'post',
data: data
})
data: data,
});
}
// 修改通用物模型
@ -31,14 +31,14 @@ export function updateTemplate(data) {
return request({
url: '/iot/template',
method: 'put',
data: data
})
data: data,
});
}
// 删除通用物模型
export function delTemplate(templateId) {
return request({
url: '/iot/template/' + templateId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,9 +1,9 @@
import request from '@/utils/request'
import axios from 'axios'
import { Message } from 'element-ui'
import { saveAs } from 'file-saver'
import { getToken } from '@/utils/auth'
import { blobValidate } from "@/utils/ruoyi";
import request from '@/utils/request';
import axios from 'axios';
import { Message } from 'element-ui';
import { saveAs } from 'file-saver';
import { getToken } from '@/utils/auth';
import { blobValidate } from '@/utils/ruoyi';
const baseURL = process.env.VUE_APP_BASE_API;
@ -12,11 +12,11 @@ export function register(data) {
return request({
url: '/iot/tool/register',
headers: {
isToken: false
isToken: false,
},
method: 'post',
data: data
})
data: data,
});
}
// 查询用户列表
@ -24,6 +24,6 @@ export function listUser(query) {
return request({
url: '/iot/tool/userList',
method: 'get',
params: query
})
params: query,
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询界面可视化配置列表
export function listViewConfig(query) {
return request({
url: '/iot/viewConfig/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询界面可视化配置详细
export function getViewConfig(viewId) {
return request({
url: '/iot/viewConfig/' + viewId,
method: 'get'
})
method: 'get',
});
}
// 新增界面可视化配置
@ -22,8 +22,8 @@ export function addViewConfig(data) {
return request({
url: '/iot/viewConfig',
method: 'post',
data: data
})
data: data,
});
}
// 修改界面可视化配置
@ -31,14 +31,14 @@ export function updateViewConfig(data) {
return request({
url: '/iot/viewConfig',
method: 'put',
data: data
})
data: data,
});
}
// 删除界面可视化配置
export function delViewConfig(viewId) {
return request({
url: '/iot/viewConfig/' + viewId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,11 +1,11 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询萤石系统配置详细
export function getYs(productId) {
return request({
url: '/iot/ys/' + productId,
method: 'get'
})
method: 'get',
});
}
// 新增萤石系统配置
@ -13,8 +13,8 @@ export function addYs(data) {
return request({
url: '/iot/ys',
method: 'post',
data: data
})
data: data,
});
}
// 修改萤石系统配置
@ -22,15 +22,15 @@ export function updateYs(data) {
return request({
url: '/iot/ys',
method: 'put',
data: data
})
data: data,
});
}
//获取萤石云设备列表
export function getDeviceList(data){
return request({
url:"/iot/ys/getDeviceList",
method:'post',
data:data
})
export function getDeviceList(data) {
return request({
url: '/iot/ys/getDeviceList',
method: 'post',
data: data,
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询萤石云设备通道列表
export function listYsChannel(query) {
return request({
url: '/iot/channel/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询萤石云设备通道详细
export function getYsChannel(channelId) {
return request({
url: '/iot/channel/' + channelId,
method: 'get'
})
method: 'get',
});
}
// 新增萤石云设备通道
@ -22,8 +22,8 @@ export function addYsChannel(data) {
return request({
url: '/iot/channel',
method: 'post',
data: data
})
data: data,
});
}
// 修改萤石云设备通道
@ -31,14 +31,14 @@ export function updateYsChannel(data) {
return request({
url: '/iot/channel',
method: 'put',
data: data
})
data: data,
});
}
// 删除萤石云设备通道
export function delYsChannel(channelId) {
return request({
url: '/iot/channel/' + channelId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,4 +1,4 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 登录方法
export function login(username, password, code, uuid) {
@ -6,16 +6,16 @@ export function login(username, password, code, uuid) {
username,
password,
code,
uuid
}
uuid,
};
return request({
url: '/login',
headers: {
isToken: false
isToken: false,
},
method: 'post',
data: data
})
data: data,
});
}
// 注册方法
@ -23,27 +23,27 @@ export function register(data) {
return request({
url: '/register',
headers: {
isToken: false
isToken: false,
},
method: 'post',
data: data
})
data: data,
});
}
// 获取用户详细信息
export function getInfo() {
return request({
url: '/getInfo',
method: 'get'
})
method: 'get',
});
}
// 退出方法
export function logout() {
return request({
url: '/logout',
method: 'post'
})
method: 'post',
});
}
// 获取验证码
@ -51,11 +51,11 @@ export function getCodeImg() {
return request({
url: '/captchaImage',
headers: {
isToken: false
isToken: false,
},
method: 'get',
timeout: 20000
})
timeout: 20000,
});
}
// 查看是否存在bindId
@ -63,7 +63,7 @@ export function checkBindId(bindId) {
return request({
url: '/auth/checkBindId/' + bindId,
method: 'get',
})
});
}
// 查看是否存在errorId
@ -71,7 +71,7 @@ export function getErrorMsg(errorId) {
return request({
url: '/auth/getErrorMsg/' + errorId,
method: 'get',
})
});
}
// 登录方法
@ -81,16 +81,16 @@ export function bindLogin(username, password, code, uuid, bindId) {
password,
code,
uuid,
bindId
}
bindId,
};
return request({
url: '/auth/bind/login',
headers: {
isToken: false
isToken: false,
},
method: 'post',
data: data
})
data: data,
});
}
// 注册方法
@ -98,11 +98,11 @@ export function bindRegister(data) {
return request({
url: '/auth/bind/register',
headers: {
isToken: false
isToken: false,
},
method: 'post',
data: data
})
data: data,
});
}
//跳转登录
@ -110,5 +110,5 @@ export function redirectLogin(loginId) {
return request({
url: '/auth/login/' + loginId,
method: 'get',
})
});
}

View File

@ -1,9 +1,9 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 获取路由
export const getRouters = () => {
return request({
url: '/getRouters',
method: 'get'
})
}
method: 'get',
});
};

View File

@ -1,9 +1,9 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询缓存详细
export function getCache() {
return request({
url: '/monitor/cache',
method: 'get'
})
method: 'get',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询定时任务调度列表
export function listJob(query) {
return request({
url: '/monitor/job/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询定时任务调度详细
export function getJob(jobId) {
return request({
url: '/monitor/job/' + jobId,
method: 'get'
})
method: 'get',
});
}
// 新增定时任务调度
@ -22,8 +22,8 @@ export function addJob(data) {
return request({
url: '/monitor/job',
method: 'post',
data: data
})
data: data,
});
}
// 修改定时任务调度
@ -31,41 +31,40 @@ export function updateJob(data) {
return request({
url: '/monitor/job',
method: 'put',
data: data
})
data: data,
});
}
// 删除定时任务调度
export function delJob(jobId) {
return request({
url: '/monitor/job/' + jobId,
method: 'delete'
})
method: 'delete',
});
}
// 任务状态修改
export function changeJobStatus(jobId, status) {
const data = {
jobId,
status
}
status,
};
return request({
url: '/monitor/job/changeStatus',
method: 'put',
data: data
})
data: data,
});
}
// 定时任务立即执行一次
export function runJob(jobId, jobGroup) {
const data = {
jobId,
jobGroup
}
jobGroup,
};
return request({
url: '/monitor/job/run',
method: 'put',
data: data
})
}
data: data,
});
}

View File

@ -1,26 +1,26 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询调度日志列表
export function listJobLog(query) {
return request({
url: '/monitor/jobLog/list',
method: 'get',
params: query
})
params: query,
});
}
// 删除调度日志
export function delJobLog(jobLogId) {
return request({
url: '/monitor/jobLog/' + jobLogId,
method: 'delete'
})
method: 'delete',
});
}
// 清空调度日志
export function cleanJobLog() {
return request({
url: '/monitor/jobLog/clean',
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,26 +1,26 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询登录日志列表
export function list(query) {
return request({
url: '/monitor/logininfor/list',
method: 'get',
params: query
})
params: query,
});
}
// 删除登录日志
export function delLogininfor(infoId) {
return request({
url: '/monitor/logininfor/' + infoId,
method: 'delete'
})
method: 'delete',
});
}
// 清空登录日志
export function cleanLogininfor() {
return request({
url: '/monitor/logininfor/clean',
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,18 +1,18 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询在线用户列表
export function list(query) {
return request({
url: '/monitor/online/list',
method: 'get',
params: query
})
params: query,
});
}
// 强退用户
export function forceLogout(tokenId) {
return request({
url: '/monitor/online/' + tokenId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,26 +1,26 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询操作日志列表
export function list(query) {
return request({
url: '/monitor/operlog/list',
method: 'get',
params: query
})
params: query,
});
}
// 删除操作日志
export function delOperlog(operId) {
return request({
url: '/monitor/operlog/' + operId,
method: 'delete'
})
method: 'delete',
});
}
// 清空操作日志
export function cleanOperlog() {
return request({
url: '/monitor/operlog/clean',
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,9 +1,9 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 获取服务信息
export function getServer() {
return request({
url: '/monitor/server',
method: 'get'
})
}
method: 'get',
});
}

View File

@ -1,28 +1,28 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询参数列表
export function listConfig(query) {
return request({
url: '/system/config/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询参数详细
export function getConfig(configId) {
return request({
url: '/system/config/' + configId,
method: 'get'
})
method: 'get',
});
}
// 根据参数键名查询参数值
export function getConfigKey(configKey) {
return request({
url: '/system/config/configKey/' + configKey,
method: 'get'
})
method: 'get',
});
}
// 新增参数配置
@ -30,8 +30,8 @@ export function addConfig(data) {
return request({
url: '/system/config',
method: 'post',
data: data
})
data: data,
});
}
// 修改参数配置
@ -39,22 +39,22 @@ export function updateConfig(data) {
return request({
url: '/system/config',
method: 'put',
data: data
})
data: data,
});
}
// 删除参数配置
export function delConfig(configId) {
return request({
url: '/system/config/' + configId,
method: 'delete'
})
method: 'delete',
});
}
// 刷新参数缓存
export function refreshCache() {
return request({
url: '/system/config/refreshCache',
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,44 +1,44 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询部门列表
export function listDept(query) {
return request({
url: '/system/dept/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询部门列表(排除节点)
export function listDeptExcludeChild(deptId) {
return request({
url: '/system/dept/list/exclude/' + deptId,
method: 'get'
})
method: 'get',
});
}
// 查询部门详细
export function getDept(deptId) {
return request({
url: '/system/dept/' + deptId,
method: 'get'
})
method: 'get',
});
}
// 查询部门下拉树结构
export function treeselect() {
return request({
url: '/system/dept/treeselect',
method: 'get'
})
method: 'get',
});
}
// 根据角色ID查询部门树结构
export function roleDeptTreeselect(roleId) {
return request({
url: '/system/dept/roleDeptTreeselect/' + roleId,
method: 'get'
})
method: 'get',
});
}
// 新增部门
@ -46,8 +46,8 @@ export function addDept(data) {
return request({
url: '/system/dept',
method: 'post',
data: data
})
data: data,
});
}
// 修改部门
@ -55,14 +55,14 @@ export function updateDept(data) {
return request({
url: '/system/dept',
method: 'put',
data: data
})
data: data,
});
}
// 删除部门
export function delDept(deptId) {
return request({
url: '/system/dept/' + deptId,
method: 'delete'
})
}
method: 'delete',
});
}

View File

@ -1,28 +1,28 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询字典数据列表
export function listData(query) {
return request({
url: '/system/dict/data/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询字典数据详细
export function getData(dictCode) {
return request({
url: '/system/dict/data/' + dictCode,
method: 'get'
})
method: 'get',
});
}
// 根据字典类型查询字典数据信息
export function getDicts(dictType) {
return request({
url: '/system/dict/data/type/' + dictType,
method: 'get'
})
method: 'get',
});
}
// 新增字典数据
@ -30,8 +30,8 @@ export function addData(data) {
return request({
url: '/system/dict/data',
method: 'post',
data: data
})
data: data,
});
}
// 修改字典数据
@ -39,14 +39,14 @@ export function updateData(data) {
return request({
url: '/system/dict/data',
method: 'put',
data: data
})
data: data,
});
}
// 删除字典数据
export function delData(dictCode) {
return request({
url: '/system/dict/data/' + dictCode,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询字典类型列表
export function listType(query) {
return request({
url: '/system/dict/type/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询字典类型详细
export function getType(dictId) {
return request({
url: '/system/dict/type/' + dictId,
method: 'get'
})
method: 'get',
});
}
// 新增字典类型
@ -22,8 +22,8 @@ export function addType(data) {
return request({
url: '/system/dict/type',
method: 'post',
data: data
})
data: data,
});
}
// 修改字典类型
@ -31,30 +31,30 @@ export function updateType(data) {
return request({
url: '/system/dict/type',
method: 'put',
data: data
})
data: data,
});
}
// 删除字典类型
export function delType(dictId) {
return request({
url: '/system/dict/type/' + dictId,
method: 'delete'
})
method: 'delete',
});
}
// 刷新字典缓存
export function refreshCache() {
return request({
url: '/system/dict/type/refreshCache',
method: 'delete'
})
method: 'delete',
});
}
// 获取字典选择框列表
export function optionselect() {
return request({
url: '/system/dict/type/optionselect',
method: 'get'
})
}
method: 'get',
});
}

View File

@ -1,36 +1,36 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询菜单列表
export function listMenu(query) {
return request({
url: '/system/menu/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询菜单详细
export function getMenu(menuId) {
return request({
url: '/system/menu/' + menuId,
method: 'get'
})
method: 'get',
});
}
// 查询菜单下拉树结构
export function treeselect() {
return request({
url: '/system/menu/treeselect',
method: 'get'
})
method: 'get',
});
}
// 根据角色ID查询菜单下拉树结构
export function roleMenuTreeselect(roleId) {
return request({
url: '/system/menu/roleMenuTreeselect/' + roleId,
method: 'get'
})
method: 'get',
});
}
// 新增菜单
@ -38,8 +38,8 @@ export function addMenu(data) {
return request({
url: '/system/menu',
method: 'post',
data: data
})
data: data,
});
}
// 修改菜单
@ -47,14 +47,14 @@ export function updateMenu(data) {
return request({
url: '/system/menu',
method: 'put',
data: data
})
data: data,
});
}
// 删除菜单
export function delMenu(menuId) {
return request({
url: '/system/menu/' + menuId,
method: 'delete'
})
}
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询公告列表
export function listNotice(query) {
return request({
url: '/system/notice/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询公告详细
export function getNotice(noticeId) {
return request({
url: '/system/notice/' + noticeId,
method: 'get'
})
method: 'get',
});
}
// 新增公告
@ -22,8 +22,8 @@ export function addNotice(data) {
return request({
url: '/system/notice',
method: 'post',
data: data
})
data: data,
});
}
// 修改公告
@ -31,14 +31,14 @@ export function updateNotice(data) {
return request({
url: '/system/notice',
method: 'put',
data: data
})
data: data,
});
}
// 删除公告
export function delNotice(noticeId) {
return request({
url: '/system/notice/' + noticeId,
method: 'delete'
})
}
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询岗位列表
export function listPost(query) {
return request({
url: '/system/post/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询岗位详细
export function getPost(postId) {
return request({
url: '/system/post/' + postId,
method: 'get'
})
method: 'get',
});
}
// 新增岗位
@ -22,8 +22,8 @@ export function addPost(data) {
return request({
url: '/system/post',
method: 'post',
data: data
})
data: data,
});
}
// 修改岗位
@ -31,14 +31,14 @@ export function updatePost(data) {
return request({
url: '/system/post',
method: 'put',
data: data
})
data: data,
});
}
// 删除岗位
export function delPost(postId) {
return request({
url: '/system/post/' + postId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询角色列表
export function listRole(query) {
return request({
url: '/system/role/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询角色详细
export function getRole(roleId) {
return request({
url: '/system/role/' + roleId,
method: 'get'
})
method: 'get',
});
}
// 新增角色
@ -22,8 +22,8 @@ export function addRole(data) {
return request({
url: '/system/role',
method: 'post',
data: data
})
data: data,
});
}
// 修改角色
@ -31,8 +31,8 @@ export function updateRole(data) {
return request({
url: '/system/role',
method: 'put',
data: data
})
data: data,
});
}
// 角色数据权限
@ -40,29 +40,29 @@ export function dataScope(data) {
return request({
url: '/system/role/dataScope',
method: 'put',
data: data
})
data: data,
});
}
// 角色状态修改
export function changeRoleStatus(roleId, status) {
const data = {
roleId,
status
}
status,
};
return request({
url: '/system/role/changeStatus',
method: 'put',
data: data
})
data: data,
});
}
// 删除角色
export function delRole(roleId) {
return request({
url: '/system/role/' + roleId,
method: 'delete'
})
method: 'delete',
});
}
// 查询角色已授权用户列表
@ -70,8 +70,8 @@ export function allocatedUserList(query) {
return request({
url: '/system/role/authUser/allocatedList',
method: 'get',
params: query
})
params: query,
});
}
// 查询角色未授权用户列表
@ -79,8 +79,8 @@ export function unallocatedUserList(query) {
return request({
url: '/system/role/authUser/unallocatedList',
method: 'get',
params: query
})
params: query,
});
}
// 取消用户授权角色
@ -88,8 +88,8 @@ export function authUserCancel(data) {
return request({
url: '/system/role/authUser/cancel',
method: 'put',
data: data
})
data: data,
});
}
// 批量取消用户授权角色
@ -97,8 +97,8 @@ export function authUserCancelAll(data) {
return request({
url: '/system/role/authUser/cancelAll',
method: 'put',
params: data
})
params: data,
});
}
// 授权用户选择
@ -106,6 +106,6 @@ export function authUserSelectAll(data) {
return request({
url: '/system/role/authUser/selectAll',
method: 'put',
params: data
})
}
params: data,
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询App升级列表
export function listUpgrade(query) {
return request({
url: '/system/upgrade/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询App升级详细
export function getUpgrade(recordId) {
return request({
url: '/system/upgrade/' + recordId,
method: 'get'
})
method: 'get',
});
}
// 新增App升级
@ -22,8 +22,8 @@ export function addUpgrade(data) {
return request({
url: '/system/upgrade',
method: 'post',
data: data
})
data: data,
});
}
// 修改App升级
@ -31,15 +31,14 @@ export function updateUpgrade(data) {
return request({
url: '/system/upgrade',
method: 'put',
data: data
})
data: data,
});
}
// 删除App升级
export function delUpgrade(recordId) {
return request({
url: '/system/upgrade/' + recordId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,29 +1,29 @@
import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";
import request from '@/utils/request';
import { praseStrEmpty } from '@/utils/ruoyi';
// 查询用户列表
export function listUser(query) {
return request({
url: '/system/user/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询基地用户列表
export function listBaseUser() {
return request({
url: '/system/user/baseUserList',
method: 'get'
})
}
return request({
url: '/system/user/baseUserList',
method: 'get',
});
}
// 查询用户详细
export function getUser(userId) {
return request({
url: '/system/user/' + praseStrEmpty(userId),
method: 'get'
})
method: 'get',
});
}
// 新增用户
@ -31,8 +31,8 @@ export function addUser(data) {
return request({
url: '/system/user',
method: 'post',
data: data
})
data: data,
});
}
// 修改用户
@ -40,50 +40,50 @@ export function updateUser(data) {
return request({
url: '/system/user',
method: 'put',
data: data
})
data: data,
});
}
// 删除用户
export function delUser(userId) {
return request({
url: '/system/user/' + userId,
method: 'delete'
})
method: 'delete',
});
}
// 用户密码重置
export function resetUserPwd(userId, password) {
const data = {
userId,
password
}
password,
};
return request({
url: '/system/user/resetPwd',
method: 'put',
data: data
})
data: data,
});
}
// 用户状态修改
export function changeUserStatus(userId, status) {
const data = {
userId,
status
}
status,
};
return request({
url: '/system/user/changeStatus',
method: 'put',
data: data
})
data: data,
});
}
// 查询用户个人信息
export function getUserProfile() {
return request({
url: '/system/user/profile',
method: 'get'
})
method: 'get',
});
}
// 修改用户个人信息
@ -91,21 +91,21 @@ export function updateUserProfile(data) {
return request({
url: '/system/user/profile',
method: 'put',
data: data
})
data: data,
});
}
// 用户密码重置
export function updateUserPwd(oldPassword, newPassword) {
const data = {
oldPassword,
newPassword
}
newPassword,
};
return request({
url: '/system/user/profile/updatePwd',
method: 'put',
params: data
})
params: data,
});
}
// 用户头像上传
@ -113,16 +113,16 @@ export function uploadAvatar(data) {
return request({
url: '/system/user/profile/avatar',
method: 'post',
data: data
})
data: data,
});
}
// 查询授权角色
export function getAuthRole(userId) {
return request({
url: '/system/user/authRole/' + userId,
method: 'get'
})
method: 'get',
});
}
// 保存授权角色
@ -130,6 +130,6 @@ export function updateAuthRole(data) {
return request({
url: '/system/user/authRole',
method: 'put',
params: data
})
params: data,
});
}

View File

@ -1,28 +1,28 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询生成表数据
export function listTable(query) {
return request({
url: '/tool/gen/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询db数据库列表
export function listDbTable(query) {
return request({
url: '/tool/gen/db/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询表详细信息
export function getGenTable(tableId) {
return request({
url: '/tool/gen/' + tableId,
method: 'get'
})
method: 'get',
});
}
// 修改代码生成信息
@ -30,8 +30,8 @@ export function updateGenTable(data) {
return request({
url: '/tool/gen',
method: 'put',
data: data
})
data: data,
});
}
// 导入表
@ -39,38 +39,38 @@ export function importTable(data) {
return request({
url: '/tool/gen/importTable',
method: 'post',
params: data
})
params: data,
});
}
// 预览生成代码
export function previewTable(tableId) {
return request({
url: '/tool/gen/preview/' + tableId,
method: 'get'
})
method: 'get',
});
}
// 删除表数据
export function delTable(tableId) {
return request({
url: '/tool/gen/' + tableId,
method: 'delete'
})
method: 'delete',
});
}
// 生成代码(自定义路径)
export function genCode(tableName) {
return request({
url: '/tool/gen/genCode/' + tableName,
method: 'get'
})
method: 'get',
});
}
// 同步数据库
export function synchDb(tableName) {
return request({
url: '/tool/gen/synchDb/' + tableName,
method: 'get'
})
method: 'get',
});
}

View File

@ -1,37 +1,37 @@
import request from '@/utils/request'
import request from '@/utils/request';
//生成溯源码
export function generateCode(data){
return request({
url: '/trace/code/generate',
method: 'post',
data: data
})
export function generateCode(data) {
return request({
url: '/trace/code/generate',
method: 'post',
data: data,
});
}
// 查询溯源码列表
export function listCode(query) {
return request({
url: '/trace/code/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询异常溯源码列表
export function alertListCode(query) {
return request({
url: '/trace/code/alertList',
method: 'get',
params: query
})
}
return request({
url: '/trace/code/alertList',
method: 'get',
params: query,
});
}
// 查询溯源码详细
export function getCode(codeId) {
return request({
url: '/trace/code/' + codeId,
method: 'get'
})
method: 'get',
});
}
// 新增溯源码
@ -39,8 +39,8 @@ export function addCode(data) {
return request({
url: '/trace/code',
method: 'post',
data: data
})
data: data,
});
}
// 修改溯源码
@ -48,14 +48,14 @@ export function updateCode(data) {
return request({
url: '/trace/code',
method: 'put',
data: data
})
data: data,
});
}
// 删除溯源码
export function delCode(codeId) {
return request({
url: '/trace/code/' + codeId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,48 +1,48 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询所有溯源数据
export function selectRecord(baseId) {
return request({
url: '/trace/statistics/selectRecord/'+baseId,
method: 'get'
})
return request({
url: '/trace/statistics/selectRecord/' + baseId,
method: 'get',
});
}
//按月分组溯源记录
export function selectRecordGroupByMonth(baseId) {
return request({
url: '/trace/statistics/selectRecordGroupByMonth/'+baseId,
method: 'get'
})
return request({
url: '/trace/statistics/selectRecordGroupByMonth/' + baseId,
method: 'get',
});
}
// 朔源扫码TOps
export function selectRecordGroupBySellpro(baseId) {
return request({
url: '/trace/statistics/selectRecordGroupBySellpro/'+baseId,
method: 'get'
})
}
return request({
url: '/trace/statistics/selectRecordGroupBySellpro/' + baseId,
method: 'get',
});
}
//溯源报表上面的六个数据
//溯源报表上面的六个数据
export function selectTraceInfo(baseId) {
return request({
url: '/trace/statistics/selectTraceInfo/'+baseId,
method: 'get'
})
return request({
url: '/trace/statistics/selectTraceInfo/' + baseId,
method: 'get',
});
}
// 朔源统计分析
export function selectRecordStatistics(baseId) {
return request({
url: '/trace/statistics/selectRecordStatistics/'+baseId,
method: 'get'
})
}
return request({
url: '/trace/statistics/selectRecordStatistics/' + baseId,
method: 'get',
});
}
// 按城市分组查询溯源次数
export function selectRecordGroupByCity(baseId) {
return request({
url: '/trace/statistics/selectRecordGroupByCity/'+baseId,
method: 'get'
})
}
// 按城市分组查询溯源次数
export function selectRecordGroupByCity(baseId) {
return request({
url: '/trace/statistics/selectRecordGroupByCity/' + baseId,
method: 'get',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询溯源码查询记录列表
export function listRecord(query) {
return request({
url: '/trace/record/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询溯源码查询记录详细
export function getRecord(recordId) {
return request({
url: '/trace/record/' + recordId,
method: 'get'
})
method: 'get',
});
}
// 新增溯源码查询记录
@ -22,8 +22,8 @@ export function addRecord(data) {
return request({
url: '/trace/record/add',
method: 'post',
data: data
})
data: data,
});
}
// 修改溯源码查询记录
@ -31,16 +31,14 @@ export function updateRecord(data) {
return request({
url: '/trace/record',
method: 'put',
data: data
})
data: data,
});
}
// 删除溯源码查询记录
export function delRecord(recordId) {
return request({
url: '/trace/record/' + recordId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询溯源产品列表
export function listSellpro(query) {
return request({
url: '/trace/sellpro/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询溯源产品详细
export function getSellpro(sellproId) {
return request({
url: '/trace/sellpro/' + sellproId,
method: 'get'
})
method: 'get',
});
}
// 新增溯源产品
@ -22,8 +22,8 @@ export function addSellpro(data) {
return request({
url: '/trace/sellpro',
method: 'post',
data: data
})
data: data,
});
}
// 修改溯源产品
@ -31,24 +31,24 @@ export function updateSellpro(data) {
return request({
url: '/trace/sellpro',
method: 'put',
data: data
})
data: data,
});
}
// 删除溯源产品
export function delSellpro(sellproId) {
return request({
url: '/trace/sellpro/' + sellproId,
method: 'delete'
})
method: 'delete',
});
}
// 生成溯源码
export function generateCode(data){
return request({
url:'/trace/sellpro/generateCode',
method:'post',
data,
timeout:60000
})
export function generateCode(data) {
return request({
url: '/trace/sellpro/generateCode',
method: 'post',
data,
timeout: 60000,
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询店铺列表
export function listShop(query) {
return request({
url: '/trace/shop/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询店铺详细
export function getShop(shopId) {
return request({
url: '/trace/shop/' + shopId,
method: 'get'
})
method: 'get',
});
}
// 新增店铺
@ -22,8 +22,8 @@ export function addShop(data) {
return request({
url: '/trace/shop',
method: 'post',
data: data
})
data: data,
});
}
// 修改店铺
@ -31,14 +31,14 @@ export function updateShop(data) {
return request({
url: '/trace/shop',
method: 'put',
data: data
})
data: data,
});
}
// 删除店铺
export function delShop(shopId) {
return request({
url: '/trace/shop/' + shopId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询溯源人员列表
export function listStaff(query) {
return request({
url: '/trace/staff/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询溯源人员详细
export function getStaff(staffId) {
return request({
url: '/trace/staff/' + staffId,
method: 'get'
})
method: 'get',
});
}
// 新增溯源人员
@ -22,8 +22,8 @@ export function addStaff(data) {
return request({
url: '/trace/staff',
method: 'post',
data: data
})
data: data,
});
}
// 修改溯源人员
@ -31,14 +31,14 @@ export function updateStaff(data) {
return request({
url: '/trace/staff',
method: 'put',
data: data
})
data: data,
});
}
// 删除溯源人员
export function delStaff(staffId) {
return request({
url: '/trace/staff/' + staffId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询溯源码模版列表
export function listTraceCodeTemplate(query) {
return request({
url: '/trace/traceCodeTemplate/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询溯源码模版详细
export function getTraceCodeTemplate(templateId) {
return request({
url: '/trace/traceCodeTemplate/' + templateId,
method: 'get'
})
method: 'get',
});
}
// 新增溯源码模版
@ -22,8 +22,8 @@ export function addTraceCodeTemplate(data) {
return request({
url: '/trace/traceCodeTemplate',
method: 'post',
data: data
})
data: data,
});
}
// 修改溯源码模版
@ -31,14 +31,14 @@ export function updateTraceCodeTemplate(data) {
return request({
url: '/trace/traceCodeTemplate',
method: 'put',
data: data
})
data: data,
});
}
// 删除溯源码模版
export function delTraceCodeTemplate(templateId) {
return request({
url: '/trace/traceCodeTemplate/' + templateId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询溯源模版列表
export function listTraceTemplate(query) {
return request({
url: '/trace/traceTemplate/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询溯源模版详细
export function getTraceTemplate(templateId) {
return request({
url: '/trace/traceTemplate/' + templateId,
method: 'get'
})
method: 'get',
});
}
// 新增溯源模版
@ -22,8 +22,8 @@ export function addTraceTemplate(data) {
return request({
url: '/trace/traceTemplate',
method: 'post',
data: data
})
data: data,
});
}
// 修改溯源模版
@ -31,24 +31,22 @@ export function updateTraceTemplate(data) {
return request({
url: '/trace/traceTemplate',
method: 'put',
data: data
})
data: data,
});
}
// 删除溯源模版
export function delTraceTemplate(templateId) {
return request({
url: '/trace/traceTemplate/' + templateId,
method: 'delete'
})
method: 'delete',
});
}
// 更具溯源码查询溯源页面模版
export function getTraceTemplateByTraceCode(traceCode) {
return request({
url: '/trace/traceTemplate/getTraceTemplateByTraceCode/' + traceCode,
method: 'get'
})
}
return request({
url: '/trace/traceTemplate/getTraceTemplateByTraceCode/' + traceCode,
method: 'get',
});
}

View File

@ -1,56 +1,53 @@
import request from '@/utils/request';
const controller = '/trace/traceWebSite'
const controller = '/trace/traceWebSite';
// 新增溯源记录接口
export function addRecord(data) {
return request({
url: controller+'/addRecord',
method: 'post',
data: data
})
return request({
url: controller + '/addRecord',
method: 'post',
data: data,
});
}
// 获取溯源码详情
export function getTraceTemplateByTemplateId(templateId) {
return request({
url: controller+'/getTraceTemplateByTemplateId/' + templateId,
method: 'get'
})
return request({
url: controller + '/getTraceTemplateByTemplateId/' + templateId,
method: 'get',
});
}
// 根据溯源码获取溯源页面模版
export function getTraceTemplateByTraceCode(traceCode) {
return request({
url: controller+'/getTraceTemplateByTraceCode/' + traceCode,
method: 'get'
})
return request({
url: controller + '/getTraceTemplateByTraceCode/' + traceCode,
method: 'get',
});
}
// 根据traceCode获取溯源码信息
export function getCodeByTraceCode(traceCode) {
return request({
url: controller+'/getCodeByTraceCode/' + traceCode,
method: 'get'
})
return request({
url: controller + '/getCodeByTraceCode/' + traceCode,
method: 'get',
});
}
//根据溯源记录实体查询溯源记录列表
export function getRecordList(query){
return request({
url:controller+'/getRecordList',
method:'get',
params:query
});
export function getRecordList(query) {
return request({
url: controller + '/getRecordList',
method: 'get',
params: query,
});
}
//修改溯源码状态
export function updateCodeStatus(data){
return request({
url:controller+'/updateTraceCodeStatus',
method:'post',
data
});
export function updateCodeStatus(data) {
return request({
url: controller + '/updateTraceCodeStatus',
method: 'post',
data,
});
}

View File

@ -1,20 +1,20 @@
import request from '@/utils/request'
import request from '@/utils/request';
// 查询溯源版本列表
export function listVersion(query) {
return request({
url: '/trace/version/list',
method: 'get',
params: query
})
params: query,
});
}
// 查询溯源版本详细
export function getVersion(versionId) {
return request({
url: '/trace/version/' + versionId,
method: 'get'
})
method: 'get',
});
}
// 新增溯源版本
@ -22,8 +22,8 @@ export function addVersion(data) {
return request({
url: '/trace/version',
method: 'post',
data: data
})
data: data,
});
}
// 修改溯源版本
@ -31,14 +31,14 @@ export function updateVersion(data) {
return request({
url: '/trace/version',
method: 'put',
data: data
})
data: data,
});
}
// 删除溯源版本
export function delVersion(versionId) {
return request({
url: '/trace/version/' + versionId,
method: 'delete'
})
method: 'delete',
});
}

View File

@ -1,10 +1,10 @@
@import "./modules/reset.scss";
@import "./modules/variables.scss";
@import './modules/reset.scss';
@import './modules/variables.scss';
// @import './theme/index.css';
// @import '../iconfont//iconfont.css';
[class*=" blq-icon-"],
[class^=blq-icon-] {
[class*=' blq-icon-'],
[class^='blq-icon-'] {
font-family: iconfont !important;
speak: none;
font-style: normal;
@ -15,7 +15,7 @@
vertical-align: middle;
display: inline-block;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale
-moz-osx-font-smoothing: grayscale;
}
*,
@ -26,7 +26,7 @@
.clearfix {
&::after {
content: "";
content: '';
display: table;
height: 0;
line-height: 0;
@ -72,14 +72,11 @@
height: 8px;
}
&::-webkit-scrollbar-thumb:hover {
background-color: rgba(14, 59, 150, .8);
background-color: rgba(14, 59, 150, 0.8);
}
}
.orderNum {
// min-width: 22px;
// height: 22px;
@ -97,7 +94,7 @@
width: 253px;
height: 14px;
background: transparent;
border: 1px solid rgba(255, 255, 255, .53);
border: 1px solid rgba(255, 255, 255, 0.53);
border-radius: 4px;
color: #fff;
padding: 6px 10px;
@ -116,21 +113,19 @@
.el-input__inner {
padding: 6px 10px;
border: 1px solid rgba(255, 255, 255, .53);
border: 1px solid rgba(255, 255, 255, 0.53);
background-color: transparent;
font-size: 14px;
line-height: 1;
color: #fff;
&:hover{
border-color: rgba(255, 255, 255, .8);
&:hover {
border-color: rgba(255, 255, 255, 0.8);
}
&:focus {
outline: none;
border-color: #31abe3;
}
}
}
.yh-big-button {
@ -152,7 +147,6 @@
}
}
//浮动
.float-r {
float: right;
@ -201,12 +195,12 @@
}
&::-webkit-scrollbar-thumb:hover {
background-color: rgba(14, 59, 150, .8);
background-color: rgba(14, 59, 150, 0.8);
}
.ve-table-content {
&::after {
content: "";
content: '';
position: absolute;
top: 0;
right: 0px;
@ -214,10 +208,8 @@
height: 100%;
background-color: $border-color;
z-index: 20;
}
}
}
&.ve-table-border-around {
@ -229,8 +221,8 @@
box-sizing: border-box;
th.ve-table-header-th {
background: #04004E;
color: #FFF;
background: #04004e;
color: #fff;
border-color: $border-color;
box-sizing: border-box;
line-height: 1;
@ -238,13 +230,12 @@
}
.ve-table-container table.ve-table-content tbody.ve-table-body {
tr.ve-table-body-tr td.ve-table-body-td,
tr.ve-table-expand-tr td.ve-table-body-td,
tr.ve-table-body-tr td.ve-table-expand-td,
tr.ve-table-expand-tr td.ve-table-expand-td {
background: transparent;
color: #FFF;
color: #fff;
border-color: $border-color;
box-sizing: border-box;
}
@ -256,26 +247,20 @@
}
&.ve-table-row-hover tr.ve-table-body-tr:hover td {
background-color: rgba(0, 0, 0, .22);
background-color: rgba(0, 0, 0, 0.22);
box-sizing: border-box;
}
}
.ve-table-container .ve-table-border-x th,
.ve-table-container .ve-table-border-x td {
border-color: $border-color;
box-sizing: border-box;
}
}
//颜色
@each $colorkey,
$color in $colors {
@each $colorkey, $color in $colors {
.text-#{$colorkey} {
color: $color;
}
@ -293,23 +278,20 @@ $color in $colors {
}
//flex
@each $key,
$value in $flex-jc {
@each $key, $value in $flex-jc {
.jc-#{$key} {
justify-content: $value;
}
}
@each $key,
$value in $flex-ai {
@each $key, $value in $flex-ai {
.ai-#{$key} {
align-items: $value;
}
}
//字体
@each $fontkey,
$fontvalue in $font-sizes {
@each $fontkey, $fontvalue in $font-sizes {
.fs-#{$fontkey} {
font-size: $fontvalue * $base-font-size;
}
@ -318,20 +300,16 @@ $fontvalue in $font-sizes {
//.mt-1 => margin top
//spacing
@each $typekey,
$type in $spacing-types {
@each $typekey, $type in $spacing-types {
//.m-1
@each $sizekey,
$size in $spacing-sizes {
@each $sizekey, $size in $spacing-sizes {
.#{$typekey}-#{$sizekey} {
#{$type}: $size * $spacing-base-size;
}
}
//.mx-1
@each $sizekey,
$size in $spacing-sizes {
@each $sizekey, $size in $spacing-sizes {
.#{$typekey}x-#{$sizekey} {
#{$type}-left: $size * $spacing-base-size;
#{$type}-right: $size * $spacing-base-size;
@ -344,11 +322,8 @@ $type in $spacing-types {
}
//.mt-1
@each $directionkey,
$direction in $spacing-directions {
@each $sizekey,
$size in $spacing-sizes {
@each $directionkey, $direction in $spacing-directions {
@each $sizekey, $size in $spacing-sizes {
.#{$typekey}#{$directionkey}-#{$sizekey} {
#{$type}-#{$direction}: $size * $spacing-base-size;
}
@ -358,4 +333,4 @@ $type in $spacing-types {
.#{$typekey} {
#{$type}: 0;
}
}
}

View File

@ -152,9 +152,13 @@ body {
border-bottom: solid 3px #000 !important;
border-left: solid 2px #000 !important;
border-right: solid 2px #000 !important;
background-color: rgba(255, 255, 255, .4);
background-color: rgba(255, 255, 255, 0.4);
font-size: 10px;
text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
text-shadow:
-1px -1px 0 #fff,
1px -1px 0 #fff,
-1px 1px 0 #fff,
1px 1px 0 #fff;
}
.olControlScaleLine {
@ -162,13 +166,15 @@ body {
}
/*清除浮动*/
.clearfix:after {
content: ".";
content: '.';
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clearfix {display: inline-block;}
.clearfix {
display: inline-block;
}
/* 点击搜索框获取焦点 placeholder消失-开始 */
/* WebKit browsers */
@ -176,21 +182,18 @@ body {
// color: transparent;
// }
// /* Mozilla Firefox 4 to 18 */
// input:focus:-moz-placeholder {
// color: transparent;
// }
// /* Mozilla Firefox 19+ */
// input:focus::-moz-placeholder {
// color: transparent;
// }
// /* Internet Explorer 10+ */
// input:focus:-ms-input-placeholder {

View File

@ -1,17 +1,17 @@
// 颜色
$colors: (
"primary": #1A5CD7,
"info-1": #4394e4,
"info": #4b67af,
"white": #ffffff,
"light": #f9f9f9,
"grey-1": #999999,
"grey": #666666,
"dark-1": #5f5f5f,
"dark": #222222,
"black-1": #171823,
"black": #000000,
"icon": #5cd9e8
'primary': #1a5cd7,
'info-1': #4394e4,
'info': #4b67af,
'white': #ffffff,
'light': #f9f9f9,
'grey-1': #999999,
'grey': #666666,
'dark-1': #5f5f5f,
'dark': #222222,
'black-1': #171823,
'black': #000000,
'icon': #5cd9e8,
);
// 字体大小
@ -19,19 +19,19 @@ $base-font-size: 0.2rem;
$font-sizes: (
xxs: 0.1,
//8px
xs: 0.125,
xs: 0.125,
//10px
sm: 0.2875,
sm: 0.2875,
//12px
md: 0.1625,
md: 0.1625,
//13px
lg: 0.175,
lg: 0.175,
//14px
xl: 0.2,
xl: 0.2,
//16px
xxl: 0.225,
xxl: 0.225,
//18px
xxxl: 0.25 //20px,,,,
xxxl: 0.25, //20px,,,,
);
// 宽高

View File

@ -1,69 +1,69 @@
.flex {
display: flex;
display: flex;
}
.flex-direction {
flex-direction: column;
flex-direction: column;
}
.flex-wrap {
flex-wrap: wrap;
flex-wrap: wrap;
}
.align-start {
align-items: flex-start;
align-items: flex-start;
}
.align-end {
align-items: flex-end;
align-items: flex-end;
}
.align-center {
align-items: center;
align-items: center;
}
.align-stretch {
align-items: stretch;
align-items: stretch;
}
.self-start {
align-self: flex-start;
align-self: flex-start;
}
.self-center {
align-self: flex-center;
align-self: flex-center;
}
.self-end {
align-self: flex-end;
align-self: flex-end;
}
.self-stretch {
align-self: stretch;
align-self: stretch;
}
.align-stretch {
align-items: stretch;
align-items: stretch;
}
.justify-start {
justify-content: flex-start;
justify-content: flex-start;
}
.justify-end {
justify-content: flex-end;
justify-content: flex-end;
}
.justify-center {
justify-content: center;
justify-content: center;
}
.justify-between {
justify-content: space-between;
justify-content: space-between;
}
.justify-around {
justify-content: space-around;
justify-content: space-around;
}
@for $i from 0 through 12 {
.rdx-flex-#{$i} {
@ -113,44 +113,79 @@
padding-#{$long}: $i + px !important;
}
//自定义左右内边距
.rdx-p-lr-#{$i} {
padding-left:$i + px !important;
padding-right:$i + px !important;
}
//自定义上下内边距
.rdx-p-tb-#{$i} {
padding-top:$i + px !important;
padding-bottom:$i + px !important;
}
//自定义左右内边距
.rdx-p-lr-#{$i} {
padding-left: $i + px !important;
padding-right: $i + px !important;
}
//自定义上下内边距
.rdx-p-tb-#{$i} {
padding-top: $i + px !important;
padding-bottom: $i + px !important;
}
}
}
}
i{font-style: normal;}
.position-re{position: relative;}
.position-ab{position: absolute; z-index: 9;}
.position-fixed{position: fixed; background: rgba(92, 116, 143, 0.45); width: 100%; height: 100%; left: 0px; top: 0px; z-index: 10;}
.round{border-radius: 50%;}
.font-strong{font-weight: bold;}
i {
font-style: normal;
}
.position-re {
position: relative;
}
.position-ab {
position: absolute;
z-index: 9;
}
.position-fixed {
position: fixed;
background: rgba(92, 116, 143, 0.45);
width: 100%;
height: 100%;
left: 0px;
top: 0px;
z-index: 10;
}
.round {
border-radius: 50%;
}
.font-strong {
font-weight: bold;
}
// .color-del{color:$del-color}
// .color-primary{color: $primary-color;}
.color-remark{color: #666666;}
.color-9{color: #999999;}
.color-green{color: #38a800;}
.bg-white{background-color: white;}
.line-bottom{border-bottom: 1px solid #eeeeee;}
.button-pointer{cursor: pointer;}
.box-shadow-item{box-shadow: 0px 0px 4px 0px rgba(45, 45, 46, 0.1);}
.search-form .search-form-item label {text-align: right; padding-right: 6px;}
.color-remark {
color: #666666;
}
.color-9 {
color: #999999;
}
.color-green {
color: #38a800;
}
.bg-white {
background-color: white;
}
.line-bottom {
border-bottom: 1px solid #eeeeee;
}
.button-pointer {
cursor: pointer;
}
.box-shadow-item {
box-shadow: 0px 0px 4px 0px rgba(45, 45, 46, 0.1);
}
.search-form .search-form-item label {
text-align: right;
padding-right: 6px;
}
.break-all{
.break-all {
word-break: break-all;
}
.blocks{
.blocks {
width: 100%;
height: 100%;
}
.cursor-pointer{
.cursor-pointer {
cursor: pointer;
}

File diff suppressed because one or more lines are too long

View File

@ -8,18 +8,21 @@ $del-color: #ff1839;
$content-background: #f3f5fa;
$table-header-background: #d8eaff;
$primary-color-rgba: rgba($color: $primary-color,
$primary-color-rgba: rgba(
$color: $primary-color,
$alpha: 0.1,
);
//表格上面button按钮颜色
$table-header-button: #18d1ff;
// 阴影
$primary-shadow: 0 2px 4px rgba(0, 0, 0, 0.12),
0 0 6px rgba(0, 0, 0, 0.04);
$primary-shadow:
0 2px 4px rgba(0, 0, 0, 0.12),
0 0 6px rgba(0, 0, 0, 0.04);
$primary-shadow-light: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
$baidu-shadow: 1px 2px 1px rgba(0, 0, 0, 0.15);
$gaode-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2),
0 2px 6px 0 rgba(0, 0, 0, 0.19);
$gaode-shadow:
0 2px 6px 0 rgba(0, 0, 0, 0.2),
0 2px 6px 0 rgba(0, 0, 0, 0.19);
// box-shadow: 0 2px 6px 0 rgb(114 124 245 / 50%);
@ -46,5 +49,3 @@ $default-zindex: 99;
-webkit-line-clamp: $num;
-webkit-box-orient: vertical;
}

View File

@ -15,4 +15,4 @@
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
} */
} */

View File

@ -1,8 +1,9 @@
@font-face {
font-family: "iconfont"; /* Project id 2995337 */
src: url('iconfont.woff2?t=1638871675242') format('woff2'),
url('iconfont.woff?t=1638871675242') format('woff'),
url('iconfont.ttf?t=1638871675242') format('truetype');
font-family: 'iconfont'; /* Project id 2995337 */
src:
url('iconfont.woff2?t=1638871675242') format('woff2'),
url('iconfont.woff?t=1638871675242') format('woff'),
url('iconfont.ttf?t=1638871675242') format('truetype');
}
/* .iconfont {
@ -14,10 +15,9 @@
} */
.blq-icon-shezhi01:before {
content: "\e610";
content: '\e610';
}
.blq-icon-shezhi02:before {
content: "\e611";
content: '\e611';
}

View File

@ -1,9 +1,9 @@
import Vue from 'vue'
import SvgIcon from '@/components/SvgIcon'// svg component
import Vue from 'vue';
import SvgIcon from '@/components/SvgIcon'; // svg component
// register globally
Vue.component('svg-icon', SvgIcon)
Vue.component('svg-icon', SvgIcon);
const req = require.context('./svg', false, /\.svg$/)
const requireAll = requireContext => requireContext.keys().map(requireContext)
requireAll(req)
const req = require.context('./svg', false, /\.svg$/);
const requireAll = (requireContext) => requireContext.keys().map(requireContext);
requireAll(req);

View File

@ -14,31 +14,31 @@
}
.blue-btn {
@include colorBtn($blue)
@include colorBtn($blue);
}
.light-blue-btn {
@include colorBtn($light-blue)
@include colorBtn($light-blue);
}
.red-btn {
@include colorBtn($red)
@include colorBtn($red);
}
.pink-btn {
@include colorBtn($pink)
@include colorBtn($pink);
}
.green-btn {
@include colorBtn($green)
@include colorBtn($green);
}
.tiffany-btn {
@include colorBtn($tiffany)
@include colorBtn($tiffany);
}
.yellow-btn {
@include colorBtn($yellow)
@include colorBtn($yellow);
}
.pan-btn {

View File

@ -6,7 +6,7 @@
}
.el-upload {
input[type="file"] {
input[type='file'] {
display: none !important;
}
}
@ -69,7 +69,7 @@
// dropdown
.el-dropdown-menu {
a {
display: block
display: block;
}
}
@ -83,10 +83,6 @@
box-sizing: content-box;
}
.el-menu--collapse
> div
> .el-submenu
> .el-submenu__title
.el-submenu__icon-arrow {
.el-menu--collapse > div > .el-submenu > .el-submenu__title .el-submenu__icon-arrow {
display: none;
}
}

View File

@ -17,12 +17,12 @@ $--button-font-weight: 400;
$--border-color-light: #dfe4ed;
$--border-color-lighter: #e6ebf5;
$--table-border:1px solid#dfe6ec;
$--table-border: 1px solid#dfe6ec;
/* icon font path, required */
$--font-path: '~element-ui/lib/theme-chalk/fonts';
@import "~element-ui/packages/theme-chalk/src/index";
@import '~element-ui/packages/theme-chalk/src/index';
// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass

View File

@ -10,7 +10,14 @@ body {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
font-family:
Helvetica Neue,
Helvetica,
PingFang SC,
Hiragino Sans GB,
Microsoft YaHei,
Arial,
sans-serif;
}
label {
@ -40,8 +47,6 @@ html {
padding: 4px 0;
}
a:focus,
a:active {
outline: none;
@ -92,7 +97,7 @@ div:focus {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
content: ' ';
clear: both;
height: 0;
}
@ -106,7 +111,8 @@ aside {
display: block;
line-height: 32px;
font-size: 16px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-family:
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
color: #2c3e50;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@ -126,30 +132,30 @@ aside {
padding: 20px;
}
.app-container-sm{
padding:6px;
.app-container-sm {
padding: 6px;
}
.app-container-gray{
.app-container-gray {
min-height: inherit;
background: #f3f3f3;
}
.card-margin-bottom{
.card-margin-bottom {
margin-bottom: 6px;
}
.card-padding-bottom{
.card-padding-bottom {
padding-bottom: 100px;
}
.form-item-right{
.form-item-right {
float: right;
}
.form-minus-bottom{
.form-minus-bottom {
margin-bottom: -20px;
}
.big-box-padding{
.big-box-padding {
padding: 6px;
}
@ -163,7 +169,7 @@ aside {
}
.text-center {
text-align: center
text-align: center;
}
.sub-navbar {

View File

@ -1,478 +1,477 @@
@import '@/assets/styles/element-variables.scss'; // ruoyi css
/** flex */
.flex {
display: flex;
}
.inline-flex{
display: inline-flex;
}
.fdc {
flex-direction: column;
}
.jcc {
justify-content: center;
}
.aic {
align-items: center;
}
.aib {
align-items:baseline;
}
.aie{
align-items: flex-end;
}
.jcsa {
justify-content: space-around;
}
.jcsb{
justify-content: space-between;
}
.jcc {
justify-content:center;
}
.jce{
justify-content: end;
}
.fwr{
flex-wrap: wrap;
}
.flex1 { //1 1 0% 即项目的初始大小不考虑完全由flex-grow和flex-shrink来决定最终大小
flex: 1;
}
.flex2 { //2 1 0% 即项目的初始大小不考虑完全由flex-grow和flex-shrink来决定最终大小
flex: 2;
}
.flexnone{//0 0 auto 作用是让flex容器中的子项保持其原始大小既不会增大来填充额外的空间也不会缩小来适应不足的空间
flex: none;
}
.flexauto{//1 1 auto 根据计算来放大或者缩小
flex: auto;
}
.flex {
display: flex;
}
.inline-flex {
display: inline-flex;
}
.fdc {
flex-direction: column;
}
.jcc {
justify-content: center;
}
.aic {
align-items: center;
}
.aib {
align-items: baseline;
}
.aie {
align-items: flex-end;
}
.jcsa {
justify-content: space-around;
}
.jcsb {
justify-content: space-between;
}
.jcc {
justify-content: center;
}
.jce {
justify-content: end;
}
.fwr {
flex-wrap: wrap;
}
.flex1 {
//1 1 0% 即项目的初始大小不考虑完全由flex-grow和flex-shrink来决定最终大小
flex: 1;
}
.flex2 {
//2 1 0% 即项目的初始大小不考虑完全由flex-grow和flex-shrink来决定最终大小
flex: 2;
}
.flexnone {
//0 0 auto 作用是让flex容器中的子项保持其原始大小既不会增大来填充额外的空间也不会缩小来适应不足的空间
flex: none;
}
.flexauto {
//1 1 auto 根据计算来放大或者缩小
flex: auto;
}
//height
.hb{
height: calc(100vh - 84px);
}
@for $i from 0 through 2000{
$m:$i * 1px;
.hbm#{$i}{
height:calc(100vh - 84px - #{$m}) !important;
}
}
@for $i from 0 through 100{
.h#{$i} {
height: round(percentage($i/100)) !important;
}
.hb {
height: calc(100vh - 84px);
}
.height-auto{
height: auto !important;
@for $i from 0 through 2000 {
$m: $i * 1px;
.hbm#{$i} {
height: calc(100vh - 84px - #{$m}) !important;
}
}
@for $i from 0 through 2000{
.height-#{$i}{
height:(1px * $i) !important
}
@for $i from 0 through 100 {
.h#{$i} {
height: round(percentage($i/100)) !important;
}
}
.height-auto {
height: auto !important;
}
@for $i from 0 through 2000 {
.height-#{$i} {
height: (1px * $i) !important;
}
}
//width
@for $i from 0 through 100{
.w#{$i} {
width: round(percentage($i/100)) !important;
}
}
@for $i from 0 through 2000{
.width-#{$i}{
width:(1px * $i) !important
@for $i from 0 through 100 {
.w#{$i} {
width: round(percentage($i/100)) !important;
}
}
.width-auto{
width: auto !important;
@for $i from 0 through 2000 {
.width-#{$i} {
width: (1px * $i) !important;
}
}
@for $i from 0 through 100{
.width-#{$i}vh{
width:(1vh * $i) !important
}
.width-auto {
width: auto !important;
}
@for $i from 0 through 100 {
.width-#{$i}vh {
width: (1vh * $i) !important;
}
}
//margin
@for $i from 0 through 100{
.margin-#{$i}{
margin:(1px * $i) !important
}
.margin-tb-#{$i}{
margin:(1px * $i) 0 !important
}
.margin-lr-#{$i}{
margin:0 (1px * $i) !important
}
.margin-left-#{$i}{
margin-left:(1px * $i) !important
}
.margin-right-#{$i}{
margin-right:(1px * $i) !important
}
.margin-top-#{$i}{
margin-top:(1px * $i) !important
}
.margin-bottom-#{$i}{
margin-bottom:(1px * $i) !important
}
}
.margin-center{
margin:0 auto !important;
}
@for $i from 0 through 100 {
.margin-#{$i} {
margin: (1px * $i) !important;
}
.margin-tb-#{$i} {
margin: (1px * $i) 0 !important;
}
.margin-lr-#{$i} {
margin: 0 (1px * $i) !important;
}
.margin-left-#{$i} {
margin-left: (1px * $i) !important;
}
.margin-right-#{$i} {
margin-right: (1px * $i) !important;
}
.margin-top-#{$i} {
margin-top: (1px * $i) !important;
}
.margin-bottom-#{$i} {
margin-bottom: (1px * $i) !important;
}
}
.margin-center {
margin: 0 auto !important;
}
//padding
@for $i from 0 through 100{
.padding-#{$i}{
padding:(1px * $i) !important
}
.padding-tb-#{$i}{
padding-top:(1px * $i) !important;
padding-bottom:(1px * $i) !important;
}
.padding-lr-#{$i}{
padding-left:(1px * $i) !important;
padding-right:(1px * $i) !important;
}
.padding-left-#{$i}{
padding-left:(1px * $i) !important
}
.padding-right-#{$i}{
padding-right:(1px * $i) !important
}
.padding-top-#{$i}{
padding-top:(1px * $i) !important
}
.padding-bottom-#{$i}{
padding-bottom:(1px * $i) !important
}
}
@for $i from 0 through 100 {
.padding-#{$i} {
padding: (1px * $i) !important;
}
.padding-tb-#{$i} {
padding-top: (1px * $i) !important;
padding-bottom: (1px * $i) !important;
}
.padding-lr-#{$i} {
padding-left: (1px * $i) !important;
padding-right: (1px * $i) !important;
}
.padding-left-#{$i} {
padding-left: (1px * $i) !important;
}
.padding-right-#{$i} {
padding-right: (1px * $i) !important;
}
.padding-top-#{$i} {
padding-top: (1px * $i) !important;
}
.padding-bottom-#{$i} {
padding-bottom: (1px * $i) !important;
}
}
//font
.font-weight-bold{
font-weight:bold;
}
@for $i from 100 through 900{
.font-weight-#{$i}{
font-weight:$i !important
}
.font-weight-bold {
font-weight: bold;
}
@for $i from 0 through 100{
.font-size-#{$i}{
font-size:(1px * $i) !important
}
@for $i from 100 through 900 {
.font-weight-#{$i} {
font-weight: $i !important;
}
.font-color-primary{
color:$--color-primary !important;
}
@for $i from 0 through 100 {
.font-size-#{$i} {
font-size: (1px * $i) !important;
}
.font-color-primary-hover:hover{
color:$--color-primary !important;
cursor: pointer;
}
.font-color-success{
color:$--color-success !important;
}
.font-color-warning{
color:$--color-warning !important;
}
.font-color-danger{
color:$--color-danger !important;
}
//基础黑色
.font-color-000{
color:#000;
}
//基础白色
.font-color-fff{
color:#fff;
}
//主要文字
.font-color-l1{
color:#303133;
}
.font-color-l2{
color:#606266;
}
.font-color-l3{
color:#909399
}
.font-color-l4{
color:#C0C4CC;
}
.font-color-999{
color:#999;
}
//font-style
}
.font-color-primary {
color: $--color-primary !important;
}
.font-color-primary-hover:hover {
color: $--color-primary !important;
cursor: pointer;
}
.font-color-success {
color: $--color-success !important;
}
.font-color-warning {
color: $--color-warning !important;
}
.font-color-danger {
color: $--color-danger !important;
}
//基础黑色
.font-color-000 {
color: #000;
}
//基础白色
.font-color-fff {
color: #fff;
}
//主要文字
.font-color-l1 {
color: #303133;
}
.font-color-l2 {
color: #606266;
}
.font-color-l3 {
color: #909399;
}
.font-color-l4 {
color: #c0c4cc;
}
.font-color-999 {
color: #999;
}
//font-style
.font-style-italic{
font-style:italic !important;
}
//bgcolor
.background-none{
background:none !important;
}
.background-color-primary{
background-color:$--color-primary;
}
.background-color-success{
background-color:$--color-success;
}
.background-color-warning{
background-color:$--color-warning;
}
.background-color-danger{
background-color:$--color-danger;
}
.background-color-fff{
background-color: #fff;
}
.background-color-000{
background-color: #000;
}
.background-color-f3f3f3{
background-color: #f3f3f3;
}
.background-color-transparent{
background-color: transparent !important;
}
.background-color-l1{
background-color:#303133;
}
.background-color-l2{
background-color:#606266;
}
.background-color-l3{
background-color:#909399
}
.background-color-l4{
background-color:#C0C4CC;
}
.background-color-l5{
background-color:#efeff0;
}
.background-color-l6{
background-color:#fafafa;
}
.background-color-999{
background-color:#999;
.font-style-italic {
font-style: italic !important;
}
//cursor
.cursor-pointer{
cursor: pointer;
}
//bgcolor
.background-none {
background: none !important;
}
.background-color-primary {
background-color: $--color-primary;
}
.background-color-success {
background-color: $--color-success;
}
.background-color-warning {
background-color: $--color-warning;
}
.background-color-danger {
background-color: $--color-danger;
}
.background-color-fff {
background-color: #fff;
}
.background-color-000 {
background-color: #000;
}
.background-color-f3f3f3 {
background-color: #f3f3f3;
}
.background-color-transparent {
background-color: transparent !important;
}
.background-color-l1 {
background-color: #303133;
}
.background-color-l2 {
background-color: #606266;
}
.background-color-l3 {
background-color: #909399;
}
.background-color-l4 {
background-color: #c0c4cc;
}
.background-color-l5 {
background-color: #efeff0;
}
.background-color-l6 {
background-color: #fafafa;
}
.background-color-999 {
background-color: #999;
}
//cursor
.cursor-pointer {
cursor: pointer;
}
//浮动
.float-left{
float:left;
}
.float-right{
float:right;
}
//overfolw
.overflow-auto{
overflow: auto;
}
//浮动
.float-left {
float: left;
}
.float-right {
float: right;
}
//overfolw
.overflow-auto {
overflow: auto;
}
//line-height
.line-height-normal{
line-height: normal !important;
}
@for $i from 0 through 100{
.line-height-#{$i}{
line-height:(1px * $i) !important
//line-height
.line-height-normal {
line-height: normal !important;
}
@for $i from 0 through 100 {
.line-height-#{$i} {
line-height: (1px * $i) !important;
}
}
//display
.display-block{
.display-block {
display: block !important;
}
.display-inline{
display: inline !important;
}
.display-inline-block{
.display-inline {
display: inline !important;
}
.display-inline-block {
display: inline-block !important;
}
//border-radius
@for $i from 0 through 100{
.border-radius-#{$i}{
border-radius:(1px * $i) !important
@for $i from 0 through 100 {
.border-radius-#{$i} {
border-radius: (1px * $i) !important;
}
.border-top-radius-#{$i}{
border-top-left-radius:(1px * $i) !important;
border-top-right-radius:(1px * $i) !important;
.border-top-radius-#{$i} {
border-top-left-radius: (1px * $i) !important;
border-top-right-radius: (1px * $i) !important;
}
.border-bottom-radius-#{$i}{
border-bottom-left-radius:(1px * $i) !important;
border-bottom-right-radius:(1px * $i) !important
.border-bottom-radius-#{$i} {
border-bottom-left-radius: (1px * $i) !important;
border-bottom-right-radius: (1px * $i) !important;
}
.border-left-radius-#{$i}{
border-top-left-radius:(1px * $i) !important;
border-bottom-left-radius:(1px * $i) !important;
.border-left-radius-#{$i} {
border-top-left-radius: (1px * $i) !important;
border-bottom-left-radius: (1px * $i) !important;
}
.border-right-radius-#{$i}{
border-top-right-radius:(1px * $i) !important;
border-bottom-right-radius:(1px * $i) !important;
.border-right-radius-#{$i} {
border-top-right-radius: (1px * $i) !important;
border-bottom-right-radius: (1px * $i) !important;
}
.border-top-left-radius-#{$i} {
border-top-left-radius: (1px * $i) !important;
}
.border-top-right-radius-#{$i} {
border-top-right-radius: (1px * $i) !important;
}
.border-bottom-left-radius-#{$i} {
border-bottom-left-radius: (1px * $i) !important;
}
.border-bottom-right-radius-#{$i} {
border-bottom-right-radius: (1px * $i) !important;
}
.border-top-left-radius-#{$i}{
border-top-left-radius:(1px * $i) !important
}
.border-top-right-radius-#{$i}{
border-top-right-radius:(1px * $i) !important
}
.border-bottom-left-radius-#{$i}{
border-bottom-left-radius:(1px * $i) !important
}
.border-bottom-right-radius-#{$i}{
border-bottom-right-radius:(1px * $i) !important
}
}
//border
.border-none{
border:none;
.border-none {
border: none;
}
.border-primary{
border:1px solid $--color-primary;
.border-primary {
border: 1px solid $--color-primary;
}
.border-d8d8d8{
border:1px solid #d8d8d8;
.border-d8d8d8 {
border: 1px solid #d8d8d8;
}
.border-left-d8d8d8{
border-left:1px solid #d8d8d8;
.border-left-d8d8d8 {
border-left: 1px solid #d8d8d8;
}
.border-bottom-d8d8d8{
border-bottom:1px solid #d8d8d8;
.border-bottom-d8d8d8 {
border-bottom: 1px solid #d8d8d8;
}
.border-right-d8d8d8{
border-right:1px solid #d8d8d8;
.border-right-d8d8d8 {
border-right: 1px solid #d8d8d8;
}
.border-right-d8d8d8{
border-bottom:1px solid #d8d8d8;
.border-right-d8d8d8 {
border-bottom: 1px solid #d8d8d8;
}
.border-eee{
border:1px solid #eee;
.border-eee {
border: 1px solid #eee;
}
.border-left-eee{
border-left:1px solid #eee;
.border-left-eee {
border-left: 1px solid #eee;
}
.border-bottom-eee{
border-bottom:1px solid #eee;
.border-bottom-eee {
border-bottom: 1px solid #eee;
}
.border-right-eee{
border-right:1px solid #eee;
.border-right-eee {
border-right: 1px solid #eee;
}
.border-right-eee{
border-bottom:1px solid #eee;
.border-right-eee {
border-bottom: 1px solid #eee;
}
.border-l1{
border:1px solid #303133;
.border-l1 {
border: 1px solid #303133;
}
.border-left-l1{
border-left:1px solid #303133;
.border-left-l1 {
border-left: 1px solid #303133;
}
.border-bottom-l1{
border-bottom:1px solid #303133;
.border-bottom-l1 {
border-bottom: 1px solid #303133;
}
.border-right-l1{
border-right:1px solid #303133;
.border-right-l1 {
border-right: 1px solid #303133;
}
.border-right-l1{
border-bottom:1px solid #303133;
.border-right-l1 {
border-bottom: 1px solid #303133;
}
.border-l2{
border:1px solid #606266;
.border-l2 {
border: 1px solid #606266;
}
.border-left-l2{
border-left:1px solid #606266;
.border-left-l2 {
border-left: 1px solid #606266;
}
.border-bottom-l2{
border-bottom:1px solid #606266;
.border-bottom-l2 {
border-bottom: 1px solid #606266;
}
.border-right-l2{
border-right:1px solid #606266;
.border-right-l2 {
border-right: 1px solid #606266;
}
.border-right-l2{
border-bottom:1px solid #606266;
.border-right-l2 {
border-bottom: 1px solid #606266;
}
.border-l3{
border:1px solid #909399;
.border-l3 {
border: 1px solid #909399;
}
.border-left-l3{
border-left:1px solid #909399;
.border-left-l3 {
border-left: 1px solid #909399;
}
.border-bottom-l3{
border-bottom:1px solid #909399;
.border-bottom-l3 {
border-bottom: 1px solid #909399;
}
.border-right-l3{
border-right:1px solid #909399;
.border-right-l3 {
border-right: 1px solid #909399;
}
.border-right-l3{
border-bottom:1px solid #909399;
.border-right-l3 {
border-bottom: 1px solid #909399;
}
.border-l4{
border:1px solid #C0C4CC;
.border-l4 {
border: 1px solid #c0c4cc;
}
.border-left-l4{
border-left:1px solid #C0C4CC;
.border-left-l4 {
border-left: 1px solid #c0c4cc;
}
.border-bottom-l4{
border-bottom:1px solid #C0C4CC;
.border-bottom-l4 {
border-bottom: 1px solid #c0c4cc;
}
.border-right-l4{
border-right:1px solid #C0C4CC;
.border-right-l4 {
border-right: 1px solid #c0c4cc;
}
.border-right-l4{
border-bottom:1px solid #C0C4CC;
.border-right-l4 {
border-bottom: 1px solid #c0c4cc;
}
//闪烁
/* 定义闪烁效果 */
@keyframes blink {
from {
opacity: 1;
}
to {
opacity: 0;
}
from {
opacity: 1;
}
.blink {
animation: blink 1s linear infinite;
to {
opacity: 0;
}
}
.blink {
animation: blink 1s linear infinite;
}
//box-sizing
.box-sizing-border-box{
box-sizing: border-box;
.box-sizing-border-box {
box-sizing: border-box;
}
.box-sizing-border-box{
box-sizing:content-box
.box-sizing-border-box {
box-sizing: content-box;
}
//position
.position-absolute{
position: absolute !important;
.position-absolute {
position: absolute !important;
}
@for $i from 0 through 2000{
.bottom-#{$i}{
bottom:(1px * $i) !important
}
.top-#{$i}{
top:(1px * $i) !important
}
.left-#{$i}{
left:(1px * $i) !important
}
.right-#{$i}{
right:(1px * $i) !important
}
@for $i from 0 through 2000 {
.bottom-#{$i} {
bottom: (1px * $i) !important;
}
.top-#{$i} {
top: (1px * $i) !important;
}
.left-#{$i} {
left: (1px * $i) !important;
}
.right-#{$i} {
right: (1px * $i) !important;
}
}

Some files were not shown because too many files have changed in this diff Show More