Commit 31fb7e2d authored by 丁小燕's avatar 丁小燕

demo项目登录页

parents
Pipeline #604 failed with stages
{
"presets": [
["env", {
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
}
}],
"stage-2"
],
"plugins": ["transform-vue-jsx", "transform-runtime"]
}
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
.DS_Store
node_modules/
/dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
// https://github.com/michael-ciniawsky/postcss-load-config
module.exports = {
"plugins": {
"postcss-import": {},
"postcss-url": {},
// to edit target browsers: use "browserslist" field in package.json
"autoprefixer": {}
}
}
# demo
> A Vue.js project
## Build Setup
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
```
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
'use strict'
require('./check-versions')()
process.env.NODE_ENV = 'production'
const ora = require('ora')
const rm = require('rimraf')
const path = require('path')
const chalk = require('chalk')
const webpack = require('webpack')
const config = require('../config')
const webpackConfig = require('./webpack.prod.conf')
const spinner = ora('building for production...')
spinner.start()
rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
if (err) throw err
webpack(webpackConfig, (err, stats) => {
spinner.stop()
if (err) throw err
process.stdout.write(stats.toString({
colors: true,
modules: false,
children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
chunks: false,
chunkModules: false
}) + '\n\n')
if (stats.hasErrors()) {
console.log(chalk.red(' Build failed with errors.\n'))
process.exit(1)
}
console.log(chalk.cyan(' Build complete.\n'))
console.log(chalk.yellow(
' Tip: built files are meant to be served over an HTTP server.\n' +
' Opening index.html over file:// won\'t work.\n'
))
})
})
'use strict'
const chalk = require('chalk')
const semver = require('semver')
const packageConfig = require('../package.json')
const shell = require('shelljs')
function exec (cmd) {
return require('child_process').execSync(cmd).toString().trim()
}
const versionRequirements = [
{
name: 'node',
currentVersion: semver.clean(process.version),
versionRequirement: packageConfig.engines.node
}
]
if (shell.which('npm')) {
versionRequirements.push({
name: 'npm',
currentVersion: exec('npm --version'),
versionRequirement: packageConfig.engines.npm
})
}
module.exports = function () {
const warnings = []
for (let i = 0; i < versionRequirements.length; i++) {
const mod = versionRequirements[i]
if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
warnings.push(mod.name + ': ' +
chalk.red(mod.currentVersion) + ' should be ' +
chalk.green(mod.versionRequirement)
)
}
}
if (warnings.length) {
console.log('')
console.log(chalk.yellow('To use this template, you must update following to modules:'))
console.log()
for (let i = 0; i < warnings.length; i++) {
const warning = warnings[i]
console.log(' ' + warning)
}
console.log()
process.exit(1)
}
}
'use strict'
const path = require('path')
const config = require('../config')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const packageConfig = require('../package.json')
exports.assetsPath = function (_path) {
const assetsSubDirectory = process.env.NODE_ENV === 'production'
? config.build.assetsSubDirectory
: config.dev.assetsSubDirectory
return path.posix.join(assetsSubDirectory, _path)
}
exports.cssLoaders = function (options) {
options = options || {}
const cssLoader = {
loader: 'css-loader',
options: {
sourceMap: options.sourceMap
}
}
const postcssLoader = {
loader: 'postcss-loader',
options: {
sourceMap: options.sourceMap
}
}
// generate loader string to be used with extract text plugin
function generateLoaders (loader, loaderOptions) {
const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
if (loader) {
loaders.push({
loader: loader + '-loader',
options: Object.assign({}, loaderOptions, {
sourceMap: options.sourceMap
})
})
}
// Extract CSS when that option is specified
// (which is the case during production build)
if (options.extract) {
return ExtractTextPlugin.extract({
use: loaders,
fallback: 'vue-style-loader'
})
} else {
return ['vue-style-loader'].concat(loaders)
}
}
// https://vue-loader.vuejs.org/en/configurations/extract-css.html
return {
css: generateLoaders(),
postcss: generateLoaders(),
less: generateLoaders('less'),
sass: generateLoaders('sass', { indentedSyntax: true }),
scss: generateLoaders('sass'),
stylus: generateLoaders('stylus'),
styl: generateLoaders('stylus')
}
}
// Generate loaders for standalone style files (outside of .vue)
exports.styleLoaders = function (options) {
const output = []
const loaders = exports.cssLoaders(options)
for (const extension in loaders) {
const loader = loaders[extension]
output.push({
test: new RegExp('\\.' + extension + '$'),
use: loader
})
}
return output
}
exports.createNotifierCallback = () => {
const notifier = require('node-notifier')
return (severity, errors) => {
if (severity !== 'error') return
const error = errors[0]
const filename = error.file && error.file.split('!').pop()
notifier.notify({
title: packageConfig.name,
message: severity + ': ' + error.name,
subtitle: filename || '',
icon: path.join(__dirname, 'logo.png')
})
}
}
'use strict'
const utils = require('./utils')
const config = require('../config')
const isProduction = process.env.NODE_ENV === 'production'
const sourceMapEnabled = isProduction
? config.build.productionSourceMap
: config.dev.cssSourceMap
module.exports = {
loaders: utils.cssLoaders({
sourceMap: sourceMapEnabled,
extract: isProduction
}),
cssSourceMap: sourceMapEnabled,
cacheBusting: config.dev.cacheBusting,
transformToRequire: {
video: ['src', 'poster'],
source: 'src',
img: 'src',
image: 'xlink:href'
}
}
'use strict'
const path = require('path')
const utils = require('./utils')
const config = require('../config')
const vueLoaderConfig = require('./vue-loader.conf')
function resolve (dir) {
return path.join(__dirname, '..', dir)
}
module.exports = {
context: path.resolve(__dirname, '../'),
entry: {
app: './src/main.js'
},
output: {
path: config.build.assetsRoot,
filename: '[name].js',
publicPath: process.env.NODE_ENV === 'production'
? config.build.assetsPublicPath
: config.dev.assetsPublicPath
},
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': resolve('src'),
}
},
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
options: vueLoaderConfig
},
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
},
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('img/[name].[hash:7].[ext]')
}
},
{
test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('media/[name].[hash:7].[ext]')
}
},
{
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
}
}
]
},
node: {
// prevent webpack from injecting useless setImmediate polyfill because Vue
// source contains it (although only uses it if it's native).
setImmediate: false,
// prevent webpack from injecting mocks to Node native modules
// that does not make sense for the client
dgram: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty',
child_process: 'empty'
}
}
'use strict'
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const path = require('path')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const portfinder = require('portfinder')
const HOST = process.env.HOST
const PORT = process.env.PORT && Number(process.env.PORT)
const devWebpackConfig = merge(baseWebpackConfig, {
module: {
rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
},
// cheap-module-eval-source-map is faster for development
devtool: config.dev.devtool,
// these devServer options should be customized in /config/index.js
devServer: {
clientLogLevel: 'warning',
historyApiFallback: {
rewrites: [
{ from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
],
},
hot: true,
contentBase: false, // since we use CopyWebpackPlugin.
compress: true,
host: HOST || config.dev.host,
port: PORT || config.dev.port,
open: config.dev.autoOpenBrowser,
overlay: config.dev.errorOverlay
? { warnings: false, errors: true }
: false,
publicPath: config.dev.assetsPublicPath,
proxy: config.dev.proxyTable,
quiet: true, // necessary for FriendlyErrorsPlugin
watchOptions: {
poll: config.dev.poll,
}
},
plugins: [
new webpack.DefinePlugin({
'process.env': require('../config/dev.env')
}),
new webpack.HotModuleReplacementPlugin(),
new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
new webpack.NoEmitOnErrorsPlugin(),
// https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
inject: true
}),
// copy custom static assets
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: config.dev.assetsSubDirectory,
ignore: ['.*']
}
])
]
})
module.exports = new Promise((resolve, reject) => {
portfinder.basePort = process.env.PORT || config.dev.port
portfinder.getPort((err, port) => {
if (err) {
reject(err)
} else {
// publish the new Port, necessary for e2e tests
process.env.PORT = port
// add port to devServer config
devWebpackConfig.devServer.port = port
// Add FriendlyErrorsPlugin
devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
compilationSuccessInfo: {
messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
},
onErrors: config.dev.notifyOnErrors
? utils.createNotifierCallback()
: undefined
}))
resolve(devWebpackConfig)
}
})
})
'use strict'
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const env = require('../config/prod.env')
const webpackConfig = merge(baseWebpackConfig, {
module: {
rules: utils.styleLoaders({
sourceMap: config.build.productionSourceMap,
extract: true,
usePostCSS: true
})
},
devtool: config.build.productionSourceMap ? config.build.devtool : false,
output: {
path: config.build.assetsRoot,
filename: utils.assetsPath('js/[name].[chunkhash].js'),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
},
plugins: [
// http://vuejs.github.io/vue-loader/en/workflow/production.html
new webpack.DefinePlugin({
'process.env': env
}),
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false
}
},
sourceMap: config.build.productionSourceMap,
parallel: true
}),
// extract css into its own file
new ExtractTextPlugin({
filename: utils.assetsPath('css/[name].[contenthash].css'),
// Setting the following option to `false` will not extract CSS from codesplit chunks.
// Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
// It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
// increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
allChunks: true,
}),
// Compress extracted CSS. We are using this plugin so that possible
// duplicated CSS from different components can be deduped.
new OptimizeCSSPlugin({
cssProcessorOptions: config.build.productionSourceMap
? { safe: true, map: { inline: false } }
: { safe: true }
}),
// generate dist index.html with correct asset hash for caching.
// you can customize output by editing /index.html
// see https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin({
filename: config.build.index,
template: 'index.html',
inject: true,
minify: {
removeComments: true,
collapseWhitespace: true,
removeAttributeQuotes: true
// more options:
// https://github.com/kangax/html-minifier#options-quick-reference
},
// necessary to consistently work with multiple chunks via CommonsChunkPlugin
chunksSortMode: 'dependency'
}),
// keep module.id stable when vendor modules does not change
new webpack.HashedModuleIdsPlugin(),
// enable scope hoisting
new webpack.optimize.ModuleConcatenationPlugin(),
// split vendor js into its own file
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
minChunks (module) {
// any required modules inside node_modules are extracted to vendor
return (
module.resource &&
/\.js$/.test(module.resource) &&
module.resource.indexOf(
path.join(__dirname, '../node_modules')
) === 0
)
}
}),
// extract webpack runtime and module manifest to its own file in order to
// prevent vendor hash from being updated whenever app bundle is updated
new webpack.optimize.CommonsChunkPlugin({
name: 'manifest',
minChunks: Infinity
}),
// This instance extracts shared chunks from code splitted chunks and bundles them
// in a separate chunk, similar to the vendor chunk
// see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
new webpack.optimize.CommonsChunkPlugin({
name: 'app',
async: 'vendor-async',
children: true,
minChunks: 3
}),
// copy custom static assets
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: config.build.assetsSubDirectory,
ignore: ['.*']
}
])
]
})
if (config.build.productionGzip) {
const CompressionWebpackPlugin = require('compression-webpack-plugin')
webpackConfig.plugins.push(
new CompressionWebpackPlugin({
asset: '[path].gz[query]',
algorithm: 'gzip',
test: new RegExp(
'\\.(' +
config.build.productionGzipExtensions.join('|') +
')$'
),
threshold: 10240,
minRatio: 0.8
})
)
}
if (config.build.bundleAnalyzerReport) {
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
webpackConfig.plugins.push(new BundleAnalyzerPlugin())
}
module.exports = webpackConfig
'use strict'
const merge = require('webpack-merge')
const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"'
})
'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
// Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
notifyOnErrors: true,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
/**
* Source Maps
*/
// https://webpack.js.org/configuration/devtool/#development
devtool: 'cheap-module-eval-source-map',
// If you have problems debugging vue-files in devtools,
// set this to false - it *may* help
// https://vue-loader.vuejs.org/en/options.html#cachebusting
cacheBusting: true,
cssSourceMap: true
},
build: {
// Template for index.html
index: path.resolve(__dirname, '../dist/index.html'),
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',
/**
* Source Maps
*/
productionSourceMap: true,
// https://webpack.js.org/configuration/devtool/#production
devtool: '#source-map',
// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.
// Before setting to `true`, make sure to:
// npm install --save-dev compression-webpack-plugin
productionGzip: false,
productionGzipExtensions: ['js', 'css'],
// Run the build command with an extra argument to
// View the bundle analyzer report after build finishes:
// `npm run build --report`
// Set to `true` or `false` to always turn it on or off
bundleAnalyzerReport: process.env.npm_config_report
}
}
'use strict'
module.exports = {
NODE_ENV: '"production"'
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>demo</title>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
This diff is collapsed.
{
"name": "demo",
"version": "1.0.0",
"description": "A Vue.js project",
"author": "丁小燕 <dingxiaoyan@tipdm.com>",
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "node build/build.js"
},
"dependencies": {
"element-ui": "^2.15.12",
"node-sass": "^4.14.1",
"sass-loader": "^7.1.0",
"vue": "^2.5.2",
"vue-router": "^3.0.1"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
"babel-core": "^6.22.1",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-loader": "^7.1.1",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0",
"chalk": "^2.0.1",
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^0.28.0",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^1.1.4",
"friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.30.1",
"node-notifier": "^5.1.2",
"optimize-css-assets-webpack-plugin": "^3.2.0",
"ora": "^1.2.0",
"portfinder": "^1.0.13",
"postcss-import": "^11.0.0",
"postcss-loader": "^2.0.8",
"postcss-url": "^7.2.1",
"rimraf": "^2.6.0",
"semver": "^5.3.0",
"shelljs": "^0.7.6",
"uglifyjs-webpack-plugin": "^1.1.1",
"url-loader": "^0.5.8",
"vue-loader": "^13.3.0",
"vue-style-loader": "^3.0.1",
"vue-template-compiler": "^2.5.2",
"webpack": "^3.6.0",
"webpack-bundle-analyzer": "^2.9.0",
"webpack-dev-server": "^2.9.1",
"webpack-merge": "^4.1.0"
},
"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
<template>
<div id="app">
<!-- <img src="./assets/logo.png"> -->
<router-view/>
</div>
</template>
<script>
export default {
name: 'App'
}
</script>
<style>
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
import { fetch } from '@/utils'
export function getLoginMessage(data) {
return fetch({
url: '/authentication/form',
method: 'POST',
headers: {
'Content-Type': 'multipart/form-data'
},
toast: false,
data: data
})
}
export function logout(token) {
return fetch({
// url: `/logout/${token}`,
url: `/logout`,
method: 'GET'
})
}
import { fetch } from '@/utils'
// 导入
export function debugExecute(data) {
return fetch({
url: '/debuge/execute',
method: 'POST',
data
})
}
// 导入
export function debugExecuteDb(data) {
return fetch({
url: '/debuge/executeDb',
method: 'POST',
data
})
}
// 导入
export function debugLog(id) {
return fetch({
url: '/debuge/getDebugeLog/' + id,
method: 'get'
})
}
// 导入
export function methodsWsdl(data) {
return fetch({
url: `/debuge/getWsdlInfo/${data.id}/${data.methods}/${data.types}/${data.type}`,
method: 'get'
})
}
import { fetch } from '@/utils'
import store from '@/store'
// 获取项目列表接口
export function queryProjectList(data) {
return fetch({
url: '/epapi/project/queryProject',
method: 'POST',
toast: false,
data
})
}
// 获取项目列表接口
export function queryProjectLevel(code) {
return fetch({
url: `/epapi/project/queryProjectLevel/${code}`,
method: 'GET'
})
}
// 项目阶段的wbs查询接口
export function queryProjectWbs(data) {
return fetch({
url: '/epapi/project/queryProjectWbs',
method: 'POST',
toast: false,
data
})
}
// 需求单列表接口
export function queryRequirementList(data) {
return fetch({
url: '/epapi/requirement/queryRequirementList',
method: 'POST',
toast: false,
data
})
}
// 新增需求单接口
export function saveRequirement(data) {
return fetch({
url: `/epapi/requirement/save?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 需求单详情接口
export function queryRequirementDetail(id) {
return fetch({
url: `/epapi/requirement/queryRequirementDetail/${id}`,
method: 'GET'
})
}
// 需求单取消接口
export function cancelRequirement(id) {
return fetch({
url: `/epapi/requirement/cancelRequirement/${id}?username=${store.state.app.userInfo.empuid}`,
method: 'GET'
})
}
// 任务分配接口
export function distribute(data) {
return fetch({
url: `/epapi/requirement/distribute`,
method: 'POST',
toast: false,
data
})
}
// 生成任务单接口
export function saveTask(data) {
return fetch({
url: `/epapi/task/save?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 获取采购组和人员接口
export function queryGroupUserList(data) {
return fetch({
url: '/epapi/common/queryGroupUserList',
method: 'POST',
toast: false,
data
})
}
// 审批接口
export function approved(data) {
return fetch({
url: `/epapi/common/approved?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 撤回作废验证接口
export function reCallInvalidVerify(data) {
return fetch({
url: '/epapi/requirement/reCallInvalidVerify',
method: 'POST',
toast: false,
data
})
}
// 撤回作废接口
export function reCallInvalidTask(data) {
return fetch({
url: '/epapi/requirement/reCallInvalidTask',
method: 'POST',
toast: false,
data
})
}
// 根据商品id查询任务单接口
export function queryDetailByRequirementNumber(rid, number) {
return fetch({
url: `/epapi/requirement/queryDetailByRequirementNumber/${rid}/${number}`,
method: 'GET'
})
}
import { fetch } from '@/utils'
// 所有询价列表
export function allList(data) {
return fetch({
url: '/inquiry/inquirylist',
method: 'GET',
params: data
})
}
// 询价中列表
export function offerList(data) {
return fetch({
url: '/inquiry/queryofferinquirylist',
method: 'GET',
params: data
})
}
// 询价已完成列表
export function resultList(data) {
return fetch({
url: '/inquiry/inquiryresultlist',
method: 'GET',
params: data
})
}
// 查看询价对应供应商列表接口
export function offerSupplierList(data) {
return fetch({
url: '/inquiry/offersupplierlist',
method: 'GET',
params: data
})
}
// 获取供应商类型、级别、注册资金
export function supplierTypelist(data) {
return fetch({
url: '/supplier/typelist',
method: 'GET',
params: data
})
}
// 新增询价提交或保存
export function inquirySubmit(data) {
return fetch({
url: '/inquiry/insertinquiry',
method: 'POST',
data: data
})
}
// 编辑询价提交或保存
export function updateSubmit(data) {
return fetch({
url: '/inquiry/updateinquiry',
method: 'POST',
data: data
})
}
// 获取编辑询价详情
export function getInquiryDetail(data) {
return fetch({
url: '/inquiry/queryinquirydetail',
method: 'GET',
params: data
})
}
// 提交询价
export function subInquiry(data) {
return fetch({
url: '/inquiry/submitinquiry',
method: 'GET',
params: data
})
}
// 删除询价
export function delInquiry(data) {
return fetch({
url: '/inquiry/deleteinquiryByinquirynum',
method: 'GET',
params: data
})
}
// 获取询价结果详情
export function getResultDetail(data) {
return fetch({
url: '/inquiry/inquiryresultdetail',
method: 'GET',
params: data
})
}
// 获取单个询价详情
export function getOffernumDetail(data) {
return fetch({
url: '/inquiry/inquirydetailByoffernum',
method: 'GET',
params: data
})
}
// 获取比价信息
export function getContrastPrice(data) {
return fetch({
url: '/inquiry/contrastprice',
method: 'GET',
params: data
})
}
// 提交定价接口
export function submitprice(data) {
return fetch({
url: '/inquiry/submitprice',
method: 'GET',
params: data
})
}
// 拒绝定价接口
export function refuseprice(data) {
return fetch({
url: '/inquiry/refuseprice',
method: 'GET',
params: data
})
}
import { fetch } from '@/utils'
// 查询全局变量 list
export function queryGlobalVariable(data) {
return fetch({
url: '/soa/globalvariable/query',
method: 'POST',
toast: false,
data
})
}
// 获取变量详情 detaile
export function getVariableDetail(id) {
return fetch({
url: `soa/globalvariable/get/${id}`,
method: 'GET',
toast: false
})
}
// 变量配置 保存 save
export function saveVariableDetail(data) {
return fetch({
url: '/soa/globalvariable/save',
method: 'POST',
toast: false,
data
})
}
// 代理服务 根据ID删除服务 delete
export function deleteVariable(id) {
return fetch({
url: `/soa/globalvariable/delete/${id}`,
method: 'DELETE'
})
}
// sql构建器
// sql构建器列表
export function querySqlBuilderList(data) {
return fetch({
url: '/soa/sqlBuilder/query',
method: 'POST',
toast: false,
data
})
}
// 获取存储过程
export function getProcedure(data) {
return fetch({
url: '/soa/sqlBuilder/getProcedure',
method: 'POST',
toast: false,
data
})
}
// 保存适配器配置信息
export function saveSqlBuilderDetail(data) {
return fetch({
url: '/soa/sqlBuilder/save',
method: 'POST',
toast: false,
data
})
}
// 适配器 根据ID删除适配器 delete
export function deleteSqlBuilder(id) {
return fetch({
url: `/soa/sqlBuilder/delete/${id}`,
method: 'DELETE'
})
}
// 获取表名
export function getSqlSheelList(data) {
return fetch({
url: '/soa/sqlBuilder/getTables',
method: 'POST',
toast: false,
data
})
}
// 获取库名
export function getSqlLibraryList(data) {
return fetch({
url: '/soa/sqlBuilder/getDataNames',
method: 'POST',
toast: false,
data
})
}
// 获取列名
export function getSqlColumnList(data) {
return fetch({
url: '/soa/sqlBuilder/getColumn',
method: 'POST',
toast: false,
data
})
}
// 根据ID获取SQL构建器信息
export function getSqlBuilderDetail(id) {
return fetch({
url: `soa/sqlBuilder/get/${id}`,
method: 'GET',
toast: false
})
}
// 根据id获取sql预览
export function createSql(data) {
return fetch({
url: '/soa/sqlBuilder/createSql',
method: 'POST',
toast: false,
data
})
}
// 根据页面配置生成sql
export function createSqlForm(data) {
return fetch({
url: '/soa/sqlBuilder/createSqlByConfig',
method: 'POST',
toast: false,
data
})
}
// 根据sql生成参数
export function createParams(data) {
return fetch({
url: '/soa/sqlBuilder/createParamsBySql',
method: 'POST',
toast: false,
data
})
}
// 执行sql
export function executSqlForm(data) {
return fetch({
url: '/soa/sqlBuilder/sqlExecut',
method: 'POST',
toast: false,
data
})
}
// 根据json报文生成Schema文件
export function jsonToSchema(data) {
return fetch({
url: '/soa/jsonSchema/jsonToJsonSchema',
method: 'POST',
toast: false,
data
})
}
// 根据id获取文件schema
export function getSchema(id, projectid) {
return fetch({
url: `/soa/sqlBuilder/generateSchemaFileById/${id}/${projectid}`,
method: 'POST'
})
}
// 解析定义文件
export function getFile(id) {
return fetch({
url: `/soa/resource/parseFile/${id}`,
method: 'GET'
})
}
This diff is collapsed.
import { fetch } from '@/utils'
import store from '@/store'
// 合同管理 ----------------------------start
// 合同列表
export function queryContractList(data) {
return fetch({
url: '/epapi/contract/queryInfo',
method: 'POST',
toast: false,
data
})
}
// 新增合同
export function saveContract(data) {
return fetch({
url: `/epapi/contract/saveContract?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 合同详情接口
export function getContractDetail(id) {
return fetch({
url: `/epapi/contract/getDetail/${id}`,
method: 'GET'
})
}
// 撤单/作废
export function revoke(id, status) {
return fetch({
url: `/epapi/contract/updateStatus/${id}/${status}?username=${store.state.app.userInfo.empuid}`,
method: 'GET'
})
}
// 上传扫描件
export function saveFile(data) {
return fetch({
url: `/epapi/contract/saveFile`,
method: 'POST',
toast: false,
data
})
}
// 弹框选择合同列表
export function queryContractInfo(data) {
return fetch({
url: `/epapi/contract/queryContractInfo`,
method: 'POST',
toast: false,
data
})
}
export function queryEnquiryContract(data) {
return fetch({
url: `/epapi/inquiry/createContract`,
method: 'POST',
toast: false,
data
})
}
// 合同管理 ----------------------------end
// 采购订单管理 ----------------------------start
// 查询收货地址列表接口
export function queryOrderList(data) {
return fetch({
url: '/epapi/order/queryOrderList',
method: 'POST',
toast: false,
data
})
}
// 订单信息详情
export function queryOrderDetail(id) {
return fetch({
url: `/epapi/order/queryOrder/${id}`,
method: 'GET'
})
}
// 保存订单信
export function saveOrder(data) {
return fetch({
url: `/epapi/order/save?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 订单状态修改
export function updateOrder(data) {
return fetch({
url: `/epapi/order/updateOrder`,
method: 'POST',
toast: false,
data
})
}
// 发货单详情
export function getDeliverDetail(id) {
return fetch({
url: `/epapi/deliver/getDetail/${id}`,
method: 'GET'
})
}
// 查询招标创建合同订单信息
export function queryTenderGoodsDetail(id) {
return fetch({
url: `/epapi/tender/queryTenderGoodsDetail/${id}`,
method: 'GET'
})
}
// 询价创建订单
export function queryEnquiryGoodsDetail(data) {
return fetch({
url: `/epapi/inquiry/createOrder`,
method: 'POST',
toast: false,
data
})
}
// 查看是否有发货信息
export function deliverTureOrFlase(id) {
return fetch({
url: `/epapi/deliver/tureOrFlase/${id}`,
method: 'GET'
})
}
// 采购订单管理 ----------------------------end
// 收货验货单 ----------------------------start
// 收货列表接口
export function receivingList(data) {
return fetch({
url: '/epapi/receiving/getInfo',
method: 'POST',
toast: false,
data
})
}
// 新增收货弹框选择订单信息列表 (商品) 接口
export function getListForDevList(data) {
return fetch({
url: '/epapi/order/getListForDeveiving',
method: 'POST',
toast: false,
data
})
}
// 订单信息列表接口
export function queryOrdersList(data) {
return fetch({
url: '/epapi/order/queryOrderList',
method: 'POST',
toast: false,
data
})
}
// 新增OR修改收货地址接口
export function saveReceiving(data) {
return fetch({
url: `/epapi/receiving/saveReceiving?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 新增OR修改收货地址接口
export function save(data) {
return fetch({
url: `/epsupplierapi/deliver/save?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 收货详情
export function getDetail(id) {
return fetch({
url: `/epapi/receiving/getDetial/${id}`,
method: 'GET'
})
}
// 收货作废
export function receivingToVoid(id, status) {
return fetch({
url: `/epapi/receiving/toVoid/${id}/${status}?username=${store.state.app.userInfo.empuid}`,
method: 'GET'
})
}
// 收货验货单 ----------------------------end
// 付款单 ----------------------------start
export function queryPaymentList(data) {
return fetch({
url: `/epapi/payment/queryPaymentList`,
method: 'POST',
toast: false,
data
})
}
// 新增框选择付款单信息接口
export function getListForDeveiving(data) {
return fetch({
url: '/epapi/payment/getListForDeveiving',
method: 'POST',
toast: false,
data
})
}
// 付款单新增和编写接口
export function savePayment(data) {
return fetch({
url: `/epapi/payment/savePayment?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 付款单详情接口
export function queryPaymentDetail(id) {
return fetch({
url: `/epapi/payment/queryPayment/${id}`,
method: 'GET'
})
}
// 付款单撤单作废
export function updatePayment(req, status) {
return fetch({
url: `/epapi/payment/updatePayment/${req}/${status}?username=${store.state.app.userInfo.empuid}`,
method: 'GET'
})
}
// 付款单 ----------------------------end
// 退货单 ----------------------------start
// 列表
export function queryReturnList(data) {
return fetch({
url: `/epapi/return/queryReturnList`,
method: 'POST',
toast: false,
data
})
}
// 新增退货单
export function saveReturn(data) {
return fetch({
url: `/epapi/return/save?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 退货单详情
export function queryReturnDetail(id) {
return fetch({
url: `/epapi/return/queryDetail/${id}`,
method: 'GET'
})
}
// 查询符合条件的收货单
export function queryReceiveReturnList(data) {
return fetch({
url: `/epapi/receiving/queryReceiveReturnList`,
method: 'POST',
toast: false,
data
})
}
// 确认
export function confirmReturn(id) {
return fetch({
url: `/epapi/return/confirm/${id}`,
method: 'GET'
})
}
// 作废
export function invalidReturn(id) {
return fetch({
url: `/epapi/return/invalid/${id}`,
method: 'GET'
})
}
// 退货单 ----------------------------end
// 换货单 ----------------------------start
// 列表
export function queryChangeList(data) {
return fetch({
url: `/epapi/change/queryChangeList`,
method: 'POST',
toast: false,
data
})
}
// 新增换货单
export function saveChange(data) {
return fetch({
url: `/epapi/change/save?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 换货单详情
export function queryChangeDetail(id) {
return fetch({
url: `/epapi/change/queryDetail/${id}`,
method: 'GET'
})
}
// 查询符合条件的收货单
export function queryReceiveChangeList(data) {
return fetch({
url: `/epapi/receiving/queryReceiveChangeList`,
method: 'POST',
toast: false,
data
})
}
// 确认
export function confirmChange(id) {
return fetch({
url: `/epapi/change/confirm/${id}`,
method: 'GET'
})
}
// 作废
export function invalidChange(id) {
return fetch({
url: `/epapi/change/invalid/${id}`,
method: 'GET'
})
}
// 换货单 ----------------------------end
import { fetch } from '@/utils'
import store from '@/store'
// 保存商品
export function saveGoods(data) {
return fetch({
url: `/epapi/goods/save?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 商品列表接口
export function queryGoodsList(data) {
return fetch({
url: '/epapi/goods/queryGoodsList',
method: 'POST',
toast: false,
data
})
}
// 商品列表接口
export function queryDetail(id) {
return fetch({
url: `/epapi/goods/queryDetail/${id}`,
method: 'GET'
})
}
// 上下架删除商品接口
export function upDownDelGoods(data) {
return fetch({
url: '/epapi/goods/upDownDelGoods',
method: 'POST',
toast: false,
data
})
}
// 目录转非目录接口
export function goodsTypeChange(id) {
return fetch({
url: `/epapi/goods/goodsTypeChange/${id}`,
method: 'GET'
})
}
// 目录商品解约和删除接口
export function disengageDeleteGoods(data) {
return fetch({
url: '/epapi/goods/disengageDeleteGoods',
method: 'POST',
toast: false,
data
})
}
// 价格记录列表接口
export function queryGoodsPriceList(data) {
return fetch({
url: '/epapi/goodsPrice/queryGoodsPriceList',
method: 'POST',
toast: false,
data
})
}
// 价格记录列表接口
export function queryGoodsPriceMinAvg(data) {
return fetch({
url: '/epapi/goodsPrice/queryGoodsPriceMinAvg',
method: 'POST',
toast: false,
data
})
}
import { fetch } from '@/utils'
import store from '@/store'
// 订单跟踪
export function getOrderCount() {
return fetch({
url: `/epapi/home/getOrderCount/${store.state.app.userInfo.empuid}`,
method: 'GET'
})
}
// 需求员采购需求单
export function getRequirementStatistical() {
return fetch({
url: `/epapi/home/getRequirementStatistical?empuid=${store.state.app.userInfo.empuid}`,
method: 'GET'
})
}
// 采购员采购需求单
export function getTaskStatistical() {
return fetch({
url: `/epapi/home/getTaskStatistical?empuid=${store.state.app.userInfo.empuid}`,
method: 'GET'
})
}
// 采购员寻源
export function getSourceStatistical() {
return fetch({
url: `/epapi/home/getSourceStatistical?empuid=${store.state.app.userInfo.empuid}`,
method: 'GET'
})
}
// 图表
export function getStatistical(data) {
return fetch({
url: `/epapi/home/getStatistical`,
method: 'POST',
toast: false,
data
})
}
// 首页头部数据统计
export function getCountStatistics() {
return fetch({
url: `soa/home/statistics/countStatistics`,
method: 'GET'
})
}
// 首页服务类型统计
export function getConnectorTypeStatistics() {
return fetch({
url: `/soa/home/statistics/connectorTypeStatistics`,
method: 'GET'
})
}
// 首页资源类型统计
export function getResourceTypeStatistics() {
return fetch({
url: `/soa/home/statistics/resourceTypeStatistics`,
method: 'GET'
})
}
// 首页常用项目
export function getProject(num) {
return fetch({
url: `/soa/home/statistics/getProject/${num}`,
method: 'GET'
})
}
// 首页常用服务
export function getProxyService(num) {
return fetch({
url: `/soa/home/statistics/getProxyService/${num}`,
method: 'GET'
})
}
import { fetch } from '@/utils'
/**
esbconsole/migration/exportData 这是导出资源的接口
post方式 数据格式如下:
[{
"id":"bas.esb.console.migrate.service.impl.ESBMigrateService", (这个ID和name是确定的)
"name":"ESB资源迁移",
"migrates":[{
"id": "proxyService", (这个就前端自己给了)
"name": "代理服务",
"query":{ (过滤对象如果不给的话,就会默认把所有的代理服务都导出来)
"filters":[{
"key":"id",
"value":"669123153632428032"
}]
}
}]
}]
**/
// 目前只导出,状态码和全局变量
// 导入导出 导出
export function exportData(data) {
return fetch({
url: '/migration/exportData',
method: 'POST',
toast: false,
data,
responseType: 'blob'
})
}
// 导入导出 导入
export function importData(data) {
return fetch({
url: '/migration/importData',
method: 'POST',
toast: false,
data
// responseType: 'blob'
})
}
// 导入导出 导入 oracle
export function importDatas(data) {
return fetch({
url: '/migration/importOracleData',
method: 'POST',
toast: false,
data
// responseType: 'blob'
})
}
export function exportData2() {
return fetch({
url: `/migration/listModules`,
method: 'GET'
})
}
// 项目列表 根据ID获取项目详情
export function getProjectListDetail(id) {
return fetch({
url: `/soa/project/get/${id}`,
method: 'GET'
})
}
// 项目列表 保存项目详情
export function saveProjectList(data) {
return fetch({
url: '/soa/project/save',
method: 'POST',
toast: false,
data
})
}
// 项目列表 根据ID删除项目
export function deleteProjectList(id) {
return fetch({
url: `/soa/project/delete/${id}`,
method: 'DELETE'
})
}
import { fetch } from '@/utils'
export const mapServer = {
getList (param) {
return fetch({
url: '/srvMap/qyery',
method: 'POST',
data: param
})
},
getlistdata (param) {
return fetch({
url: '/srvMap/selectSystem',
method: 'POST',
data: param
})
},
ServiceAtlas () {
return fetch({
url: '/ServiceAtlas/query',
method: 'GET',
})
},
getGraph (param) {
return fetch({
url: `/srvMap/getServiceMapByName/${param.name}/${param.domainname}`,
method: 'POST',
data: param
})
}
}
import { fetch } from '@/utils'
import store from '@/store'
// 计划单列表
export function queryPlanList(data) {
return fetch({
url: '/epapi/plan/queryPlanList',
method: 'POST',
toast: false,
data
})
}
// 计划单详情
export function queryPlanDetail(id) {
return fetch({
url: `/epapi/plan/queryPlanDetail/${id}`,
method: 'GET'
})
}
// 勾选指定行查询详情
export function queryDetailByPlanNumber(id, number) {
return fetch({
url: `/epapi/plan/queryDetailByPlanNumber/${id}/${number}`,
method: 'GET'
})
}
// 下发计划生成需求
export function saveRequirement(data) {
return fetch({
url: `/epapi/plan/saveRequirement?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 作废
export function invalidPlan(id) {
return fetch({
url: `/epapi/plan/invalidPlan/${id}?username=${store.state.app.userInfo.empuid}`,
method: 'GET'
})
}
import { fetch } from '@/utils'
// 项目列表 查询列表
export function queryProjectList(data) {
return fetch({
url: '/soa/project/query',
method: 'POST',
toast: false,
data
})
}
// 项目查询
export function exportDatas(data) {
return fetch({
url: '/migrateQuery/query',
method: 'POST',
data
})
}
// 项目列表 根据ID获取项目详情
export function getProjectListDetail(id) {
return fetch({
url: `/soa/project/get/${id}`,
method: 'GET'
})
}
// 项目列表 保存项目详情
export function saveProjectList(data) {
return fetch({
url: '/soa/project/save',
method: 'POST',
toast: false,
data
})
}
// 项目列表 根据ID删除项目
export function deleteProjectList(id) {
return fetch({
url: `/soa/project/delete/${id}`,
method: 'DELETE'
})
}
// 项目首页头部信息
export function getCountStatistics(id) {
return fetch({
url: `/soa/project/statistics/countStatistics/${id}`,
method: 'GET'
})
}
// 项目首页常用代理服务
export function getProxyService(id, num) {
return fetch({
url: `/soa/project/statistics/getProxyService/${id}/${num}`,
method: 'GET'
})
}
// 项目首页服务类型统计
export function getConnectorTypeStatistics(id) {
return fetch({
url: `/soa/project/statistics/connectorTypeStatistics/${id}`,
method: 'GET'
})
}
// 项目首页服务类型统计
export function getResourceTypeStatistics(id) {
return fetch({
url: `/soa/project/statistics/resourceTypeStatistics/${id}`,
method: 'GET'
})
}
import { fetch } from '@/utils'
// 项目保证金台账 ----------------------------start
export function queryTenderMargin(data) {
return fetch({
url: '/epapi/report/queryTenderMargin',
method: 'POST',
toast: false,
data
})
}
export function tenderMarginExport(data) {
return fetch({
url: '/epapi/report/tenderMarginExport',
method: 'POST',
toast: false,
data
})
}
// 项目保证金台账 ----------------------------end
// 供应商台账 ----------------------------start
export function querySupplierLedger(data) {
return fetch({
url: '/epapi/report/querySupplierLedger',
method: 'POST',
toast: false,
data
})
}
export function supplierLedgerExport(data) {
return fetch({
url: '/epapi/report/supplierLedgerExport',
method: 'POST',
toast: false,
data
})
}
// 供应商台账 ----------------------------end
// 项目台账 ----------------------------start
export function queryProjectParameter(data) {
return fetch({
url: '/epapi/report/queryProjectParameter',
method: 'POST',
toast: false,
data
})
}
export function projectParameterExport(data) {
return fetch({
url: '/epapi/report/projectParameterExport',
method: 'POST',
toast: false,
data
})
}
// 项目台账 ----------------------------end
// 订单付款明细 ----------------------------start
export function queryOrderPayment(data) {
return fetch({
url: '/epapi/report/queryOrderPayment',
method: 'POST',
toast: false,
data
})
}
export function orderPaymentExport(data) {
return fetch({
url: '/epapi/report/orderPaymentExport',
method: 'POST',
toast: false,
data
})
}
// 订单付款明细 ----------------------------end
// 采购需求执行情况 ----------------------------start
export function queryRequirementExecute(data) {
return fetch({
url: '/epapi/report/queryRequirementExecute',
method: 'POST',
toast: false,
data
})
}
export function requirementExecuteExport(data) {
return fetch({
url: '/epapi/report/requirementExecuteExport',
method: 'POST',
toast: false,
data
})
}
// 采购需求执行情况 ----------------------------end
// 采购发起招标统计 ----------------------------start
export function queryTenderSubmitContract(data) {
return fetch({
url: '/epapi/report/queryTenderSubmitContract',
method: 'POST',
toast: false,
data
})
}
export function tenderSubmitContractExport(data) {
return fetch({
url: '/epapi/report/tenderSubmitContractExport',
method: 'POST',
toast: false,
data
})
}
// 采购发起招标统计 ----------------------------end
// 部门&项目汇总表 ----------------------------start
export function queryDeptProject(data) {
return fetch({
url: '/epapi/report/queryDeptProject',
method: 'POST',
toast: false,
data
})
}
export function deptProjectExport(data) {
return fetch({
url: '/epapi/report/deptProjectExport',
method: 'POST',
toast: false,
data
})
}
// 部门&项目汇总表 ----------------------------end
// 部门&项目明细表 ----------------------------start
export function queryDeptProjectDetail(data) {
return fetch({
url: '/epapi/report/queryDeptProjectDetail',
method: 'POST',
toast: false,
data
})
}
export function deptProjectDetailExport(data) {
return fetch({
url: '/epapi/report/deptProjectDetailExport',
method: 'POST',
toast: false,
data
})
}
// 部门&项目明细表 ----------------------------end
import { fetch } from '@/utils'
import store from '@/store'
// 采购任务单 ----------------------------------------- start
// 任务单列表接口
export function queryTaskList(data) {
return fetch({
url: '/epapi/task/queryTaskList',
method: 'POST',
toast: false,
data
})
}
// 任务单列表接口
export function queryTaskDetail(id) {
return fetch({
url: `/epapi/task/queryTaskDetail/${id}`,
method: 'GET'
})
}
// 获取项目列表接口
export function queryProjectLevel(code) {
return fetch({
url: `/epapi/project/queryProjectLevel/${code}`,
method: 'GET'
})
}
// 项目阶段的wbs查询接口
export function queryProjectWbs(data) {
return fetch({
url: '/epapi/project/queryProjectWbs',
method: 'POST',
toast: false,
data
})
}
// 需求单列表接口
export function queryRequirementList(data) {
return fetch({
url: '/epapi/requirement/queryRequirementList',
method: 'POST',
toast: false,
data
})
}
// 新增需求单接口
export function saveRequirement(data) {
return fetch({
url: `/epapi/requirement/save?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 需求单详情接口
export function queryRequirementDetail(id) {
return fetch({
url: `/epapi/requirement/queryRequirementDetail/${id}`,
method: 'GET'
})
}
// 任务分配接口
export function distribute(data) {
return fetch({
url: `/epapi/requirement/distribute`,
method: 'POST',
toast: false,
data
})
}
// 生成任务单接口
export function saveTask(data) {
return fetch({
url: `/epapi/task/save?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 撤回验证接口
export function reCallVerify(data) {
return fetch({
url: '/epapi/task/reCallVerify',
method: 'POST',
toast: false,
data
})
}
// 撤回接口
export function reCallTask(data) {
return fetch({
url: '/epapi/task/reCallTask',
method: 'POST',
toast: false,
data
})
}
// 采购任务单 ----------------------------------------- end
// 询价 --------------------------------- start
// 新增/编辑询价接口
export function saveInquiry(data) {
return fetch({
url: '/epapi/inquiry/save',
method: 'POST',
toast: false,
data
})
}
// 获取询价列表接口
export function queryInquiryList(data) {
return fetch({
url: '/epapi/inquiry/queryList',
method: 'POST',
toast: false,
data
})
}
// 询价单详情接口
export function getInquiryInfo(id) {
return fetch({
url: `/epapi/inquiry/getInquiryInfoById/${id}`,
method: 'GET'
})
}
// 获取提交报价所需信息接口
export function getQuotationBaseInfo(id) {
return fetch({
url: `/epapi/inquiry/getQuotationById/${id}`,
method: 'GET'
})
}
// 提交报价
export function saveQuoiry(data) {
return fetch({
url: `/epapi/inquiry/saveQuoiry`,
method: 'POST',
toast: false,
data
})
}
// 获取报价列表接口
export function queryQuotationList(data) {
return fetch({
url: `/epapi/inquiry/queryQuotationList`,
method: 'POST',
toast: false,
data
})
}
// 获取报价详情接口
export function getQuotationInfo(id, supplierId) {
return fetch({
url: `/epapi/inquiry/getQuotationInfoById/${id}/${supplierId}`,
method: 'GET'
})
}
// 询价定价----------------------------
// 询价定价详情
export function queryPriceDetail(id) {
return fetch({
url: `/epapi/inquiry/queryPriceList/${id}`,
method: 'GET'
})
}
// 保存询价定价
export function savePrice(data) {
return fetch({
url: `/epapi/inquiry/savePrice`,
method: 'POST',
toast: false,
data
})
}
// 拒绝定价
export function refusalpricing(id) {
return fetch({
url: `/epapi/inquiry/refusalpricing/${id}`,
method: 'GET'
})
}
// 提交审核
export function submitAudit(data) {
return fetch({
url: `/epapi/inquiry/submitAudit?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 询价 --------------------------------- end
// 招标 --------------------------------- start
// 列表接口
export function queryTenderList(data) {
return fetch({
url: `/epapi/tender/queryTenderList`,
method: 'POST',
toast: false,
data
})
}
// 新增和修改分类接口
export function saveTender(data) {
return fetch({
url: `/epapi/tender/save?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
export function queryCurrentStage(id) {
return fetch({
url: `/epapi/tender/queryCurrentStage/${id}`,
method: 'GET'
})
}
// 详情接口
export function queryTenderDetail(currentStage, id) {
return fetch({
url: `/epapi/tender/queryTenderDetail/${currentStage}/${id}`,
method: 'GET'
})
}
// 第二步 资格审查
// 邀请供应商接口
export function saveApplySupplier(data) {
return fetch({
url: `/epapi/tender/saveApplySupplier`,
method: 'POST',
toast: false,
data
})
}
// 资格审查接口
export function saveQualify(data) {
return fetch({
url: `/epapi/tender/saveQualify`,
method: 'POST',
toast: false,
data
})
}
// 退回需求,调整采购方式接口
export function adjustBuyWay(id) {
return fetch({
url: `/epapi/tender/adjustBuyWay/${id}`,
method: 'GET'
})
}
// 第三步 招标书编制
// 招标书编制接口
export function saveWriteTender(data) {
return fetch({
url: `/epapi/tender/saveWriteTender?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 第四步 发放招标书
// 发放招标书接口
export function saveSubmitTender(id) {
return fetch({
url: `/epapi/tender/saveSubmitTender/${id}`,
method: 'GET'
})
}
// 第五步 发放招标书
// 供应商投标接口
export function saveSendTender(data) {
return fetch({
url: `/epapi/tender/saveSendTender`,
method: 'POST',
toast: false,
data
})
}
// 终止招标接口
export function endTender(flag, id) {
return fetch({
url: `/epapi/tender/endTender/${flag}/${id}`,
method: 'GET'
})
}
// 第六步 技术评标
// 技术评标接口
export function saveJudgeTender(data) {
return fetch({
url: `/epapi/tender/saveJudgeTender`,
method: 'POST',
toast: false,
data
})
}
// 第七步 商务议标
// 查看本轮报价验证接口
export function showCurrentPriceVerify(id) {
return fetch({
url: `/epapi/tender/showCurrentPriceVerify/${id}`,
method: 'GET'
})
}
// 下一轮验证
export function nextVerify(id, type) {
return fetch({
url: `/epapi/tender/nextVerify/${id}/${type}`,
method: 'GET'
})
}
// 查看本轮报价接口
export function showCurrentPrice(id) {
return fetch({
url: `/epapi/tender/showCurrentPrice/${id}`,
method: 'GET'
})
}
// 报价失误,重新报价接口
export function againPrice(data) {
return fetch({
url: `/epapi/tender/againPrice`,
method: 'POST',
toast: false,
data
})
}
// 淘汰接口
export function eliminateOffer(data) {
return fetch({
url: `/epapi/tender/eliminateOffer`,
method: 'POST',
toast: false,
data
})
}
// 发起下一轮报价接口
export function nextOfferPrice(id) {
return fetch({
url: `/epapi/tender/nextOfferPrice/${id}`,
method: 'GET'
})
}
// 终止报价,评标接口
export function endTenderOffer(id) {
return fetch({
url: `/epapi/tender/endTenderOffer/${id}`,
method: 'GET'
})
}
// 第八步 评标结果
// 评标结果接口
export function saveAssessment(data) {
return fetch({
url: `/epapi/tender/saveAssessment?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 第九步 招标结束
// 招标结束接口
export function saveEnd(data) {
return fetch({
url: `/epapi/tender/saveEnd?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 退回保证金接口
export function returnMoney(data) {
return fetch({
url: `/epapi/tender/returnMoney?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 导入目录商品接口
export function importGoods(suid) {
return fetch({
url: `/epapi/goods/importGoods/${suid}`,
method: 'GET'
})
}
// 招标 --------------------------------- end
// 根据商品id查询任务单接口
export function queryDetailByTaskNumber(tid, number) {
return fetch({
url: `/epapi/task/queryDetailByTaskNumber/${tid}/${number}`,
method: 'GET'
})
}
import { fetch } from '@/utils'
import store from '@/store'
// 弹框选择供应商列表接口
export function querySuplierInfo(data) {
return fetch({
url: '/epapi/supplier/querySuplierInfo',
method: 'POST',
toast: false,
data
})
}
// 获取供应商列表
export function getSupplierList(data) {
return fetch({
url: `/epapi/supplier/query?username=${store.state.app.userInfo.empuid}`,
method: 'POST',
toast: false,
data
})
}
// 供应商审批接口
export function approvalSupplier(data) {
return fetch({
url: '/epapi/supplier/saveProcessRecord',
method: 'POST',
toast: false,
data
})
}
// 获取审批列表接口
export function queryApprovalRecordList(data) {
return fetch({
url: '/epapi/supplier/queryApprovalRecordList',
method: 'POST',
toast: false,
data
})
}
// 禁用启用
export function enableOrDisableSupplier(data) {
return fetch({
url: '/epapi/supplier/enableOrDisableSupplier',
method: 'POST',
toast: false,
data
})
}
// 供应商评级
export function supplierGrade(data) {
return fetch({
url: '/epapi/supplier/supplierGrade',
method: 'POST',
toast: false,
data
})
}
// 重置密码
export function resetPassword(data) {
return fetch({
url: '/epapi/supplier/resetPassword',
method: 'POST',
toast: false,
data
})
}
// 导出
export function exportsuser(data) {
return fetch({
url: '/epapi/supplier/exportsuser',
method: 'POST',
toast: false,
data
})
}
// 获取供应商详情
export function getSupplierDetail(data) {
return fetch({
url: `/epapi/supplier/get`,
method: 'POST',
toast: false,
data
})
}
// 获取供应商供货记录
export function querySupplierOrderList(data) {
return fetch({
url: `/epapi/supplier/queryOrderList`,
method: 'POST',
toast: false,
data
})
}
// 公告列表接口
export function queryNoticeList(data) {
return fetch({
url: '/epapi/notice/query',
method: 'POST',
toast: false,
data
})
}
// 公告新增/编辑接口
export function saveNotice(data) {
return fetch({
url: '/epapi/notice/save',
method: 'POST',
toast: false,
data
})
}
// 公告查看详情接口
export function getNoticeDetail(id) {
return fetch({
url: `/epapi/notice/get/${id}`,
method: 'GET'
})
}
// 删除公告
export function deleteNotice(id) {
return fetch({
url: `/epapi/notice/delete/${id}`,
method: 'GET'
})
}
// 黑名单列表接口
export function queryBlacklist(data) {
return fetch({
url: '/epapi/supplier/querySupplierDefriendList',
method: 'POST',
toast: false,
data
})
}
// 拉黑接口
export function saveSupplierDefriend(data) {
return fetch({
url: '/epapi/supplier/saveSupplierDefriend',
method: 'POST',
toast: false,
data
})
}
// 拉黑接口
export function shiftOutBlacklist(data) {
return fetch({
url: '/epapi/supplier/updateSupplierDefriendStatus',
method: 'POST',
toast: false,
data
})
}
// 拒绝供应商列表接口
export function queryTenderRejectSupplier(data) {
return fetch({
url: '/epapi/tender/queryTenderRejectSupplier',
method: 'POST',
toast: false,
data
})
}
// 分页查询可报价的供应商列表
export function queryQuoteSupplierList(data) {
return fetch({
url: '/epapi/inquiry/querySupplierList',
method: 'POST',
toast: false,
data
})
}
// 待审核供应商列表
export function approvalSupplierList(data) {
return fetch({
url: '/epapi/approvalSupplier/queryInfo',
method: 'POST',
toast: false,
data
})
}
// 获取待审核供应商列表详情接口
export function getApprovalSupDetail(id) {
return fetch({
url: `/epapi/approvalSupplier/getTetails/${id}`,
method: 'GET'
})
}
// 待审核供应商审批接口
export function approvalSupSubmit(data) {
return fetch({
url: '/epapi/approvalSupplier/submit',
method: 'POST',
toast: false,
data
})
}
import { fetch } from '@/utils'
// ---------------------用户管理--------------------
// 获取员工管理用户列表
export function queryEmployeeList(data) {
return fetch({
url: `/epapi/common/queryEmployeeList`,
method: 'POST',
toast: false,
data
})
}
// ---------------------组织管理--------------------
// 获取所有的根树
export function getAllRootTree() {
return fetch({
url: `/epapi/common/getAllRootTree`,
method: 'GET'
})
}
// 获取组织树型接口
export function getAllRoot(data) {
return fetch({
url: `/epapi/common/getAllRoot`,
method: 'POST',
toast: false,
data
})
}
// 获取分类的直属子分类
export function getChildren(id) {
return fetch({
url: `/epapi/org/tree/getChildren/${id}`,
method: 'GET'
})
}
// ---------------------采购关系管理-------------------- start
// 获取采购关系列表接口
export function queryRelationList(data) {
return fetch({
url: `/epapi/orgusergoods/queryList`,
method: 'POST',
toast: false,
data
})
}
// 新增/修改采购关系
export function saveRelation(data) {
return fetch({
url: '/epapi/orgusergoods/save',
method: 'POST',
toast: false,
data
})
}
// 获取采购关系详情
export function getRelationDetail(id) {
return fetch({
url: `/epapi/orgusergoods/get/${id}`,
method: 'GET'
})
}
// 删除采购关系
export function deleteRelation(id) {
return fetch({
url: `/epapi/orgusergoods/delete/${id}`,
method: 'DELETE'
})
}
// ---------------------采购关系管理-------------------- end
// ---------------------角色管理-------------------- start
// 获取角色列表
export function queryAuthroleList(data) {
return fetch({
url: '/epapi/authority/role/query',
method: 'POST',
toast: false,
data
})
}
// 删除角色
export function deleteRole(id) {
return fetch({
url: `/epapi/authority/role/delete/${id}`,
method: 'DELETE'
})
}
// 授予用户角色
export function userAutoToRole(data) {
return fetch({
url: `/epapi/authority/user/assignUserToRole`,
method: 'POST',
toast: false,
data
})
}
// 给角色批量加用户接口
export function assignUsersToRole(data) {
return fetch({
url: `/epapi/common/assignUsersToRole`,
method: 'POST',
toast: false,
data
})
}
// 移除用户已授予的角色
export function removeUserFromRole(data) {
return fetch({
url: `/epapi/authority/user/removeUserFromRole`,
method: 'DELETE',
data
})
}
// 返回被授予指定角色的用户
export function findRoleUsers(id, data) {
return fetch({
url: `/epapi/authority/user/findRoleUsers/${id}`,
method: 'POST',
toast: false,
data
})
}
// 保存角色信息
export function saveRole(data) {
return fetch({
url: '/epapi/authority/role/save',
method: 'POST',
toast: false,
data
})
}
// 根据ID查询角色信息
export function assignPermissions(data) {
return fetch({
url: `/epapi/authority/role/assignPermissions`,
method: 'POST',
toast: false,
data
})
}
// 根据角色ID以及指定类型,获取角色所拥有的该组件的相关权限
export function findPermissions(id) {
return fetch({
url: `/epapi/authority/role/findPermissions/${id}/nav`,
method: 'GET'
})
}
// 移除角色的权限
export function removePermissions(data) {
return fetch({
url: `/epapi/authority/role/removePermissions`,
method: 'DELETE',
data
})
}
// 保存角色的权限
export function reAssignPermissions(data) {
return fetch({
url: `/epapi/authority/role/reAssignPermissions`,
method: 'POST',
toast: false,
data
})
}
// ---------------------角色管理-------------------- end
// ---------------------采购组织-------------------- start
// 采购组列表接口
export function queryProList(data) {
return fetch({
url: `/epapi/orgusergoods/queryProList`,
method: 'POST',
toast: false,
data
})
}
// 新增/修改采购关系
export function saveProOrg(data) {
return fetch({
url: `/epapi/orgusergoods/saveProOrg`,
method: 'POST',
toast: false,
data
})
}
// 删除采购组
export function deleteProOrg(id) {
return fetch({
url: `/epapi/orgusergoods/deleteProOrg/${id}`,
method: 'DELETE'
})
}
// 获取采购组下的人员列表接口
export function queryProUserList(data) {
return fetch({
url: `/epapi/orgusergoods/queryProUserList`,
method: 'POST',
toast: false,
data
})
}
// 向采购组添加人员
export function saveProUser(data) {
return fetch({
url: `/epapi/orgusergoods/saveProUser`,
method: 'POST',
toast: false,
data
})
}
// 采购组删除人员
export function deleteProUser(id) {
return fetch({
url: `/epapi/orgusergoods/deleteProUser/${id}`,
method: 'DELETE'
})
}
// ---------------------采购组织-------------------- end
// ---------------------供应商权限设置-------------------- start
// 查询供应商权限设置接口
export function querySuppermList(data) {
return fetch({
url: `/epapi/jurisdictionsettings/getInfo`,
method: 'POST',
toast: false,
data
})
}
// 查询供应商权限设置详情
export function querySuppermDetail(id) {
return fetch({
url: `/epapi/jurisdictionsettings/get/${id}`,
method: 'GET'
})
}
// 新增编辑
export function saveSupperm(data) {
return fetch({
url: `/epapi/jurisdictionsettings/saveOrUpdate`,
method: 'POST',
toast: false,
data
})
}
// 启用/禁用
export function enableOrProhibit(data) {
return fetch({
url: `/epapi/jurisdictionsettings/enableOrProhibit`,
method: 'POST',
toast: false,
data
})
}
// 启用/禁用
export function deleteSupperm(id) {
return fetch({
url: `/epapi/jurisdictionsettings/delete/${id}`,
method: 'GET'
})
}
// ---------------------供应商权限设置-------------------- end
// ---------------------收货地址-------------------- start
// 查询收货地址列表接口
export function queryAddresList(data) {
return fetch({
url: `/epapi/addres/queryAddresList`,
method: 'POST',
toast: false,
data
})
}
// 新增修改收货地址接口
export function saveAddres(data) {
return fetch({
url: `/epapi/addres/save`,
method: 'POST',
toast: false,
data
})
}
// 查询收货地址接口
export function queryAddresInfo(id) {
return fetch({
url: `/epapi/addres/queryAddres/${id}`,
method: 'GET'
})
}
// 查询收货地址接口
export function deleteAddres(id) {
return fetch({
url: `/epapi/addres/deleteAddres/${id}`,
method: 'DELETE'
})
}
// 用户ID获取地址信息
export function queryUserIdAddres(data) {
return fetch({
url: `/epapi/addres/queryUserIdAddres`,
method: 'POST',
toast: false,
data
})
}
// ---------------------收货地址-------------------- end
// ---------------------单据设定-------------------- start
// 单据设定页面
export function getOrderset(params) {
return fetch({
url: `/epapi/orderset/get`,
method: 'GET',
params
})
}
// 提交单据设定
export function saveOrderset(data) {
return fetch({
url: `/epapi/orderset/save`,
method: 'POST',
toast: false,
data
})
}
// 单据设定记录
export function queryOrdersetRecord(data) {
return fetch({
url: `/epapi/orderset/query`,
method: 'POST',
toast: false,
data
})
}
// ---------------------单据设定-------------------- end
// ---------------------导航配置-------------------- start
// 获取所有导航组
export function getAllGroups(id) {
return fetch({
url: `/epapi/navigation/get/${id}/default`,
method: 'GET'
})
}
// 根据id获取子导航组
export function getNavigations(id) {
return fetch({
url: `/epapi/navigation/getSubTree/${id}/default`,
method: 'GET'
})
}
// 根据ID获取导航组(无关权限)
export function getNavAll() {
return fetch({
url: `/epapi/navigation/getNavigations/0/default`,
method: 'GET'
})
}
// 更换PID
export function changepid(id, pid) {
return fetch({
url: `/epapi/navigationext/changepid/${id}/${pid}/default`,
method: 'GET'
})
}
// 根据id获取子导航组
export function getList(id) {
return fetch({
url: `/epapi/navigation/get/${id}`,
method: 'GET'
})
}
// 根据Id获取导航链接
export function getNavigationId(id) {
return fetch({
url: `/epapi/navigation/get/${id}`,
method: 'GET'
})
}
// 根据Id获取展示编辑页面
export function getNavigationIdShow(id) {
return fetch({
url: `/epapi/navigation/show/${id}`,
method: 'GET'
})
}
// 保存修改导航
export function saveNavigation(data) {
return fetch({
url: `/epapi/navigation/save`,
method: 'POST',
toast: false,
data
})
}
// 根据ID删除导航以及该导航的子项
export function deleteFull(id) {
return fetch({
url: `/epapi/navigation/deleteFull/${id}/default`,
method: 'DELETE'
})
}
// ---------------------导航配置-------------------- end
import { fetch } from '@/utils'
// 版本管理保存
export function versionSave(data) {
return fetch({
url: '/consoleversioncontrol/save',
method: 'POST',
toast: false,
data
})
}
// 版本管理回退
export function versionBackup(data) {
return fetch({
url: '/consoleversioncontrol/backup',
method: 'POST',
toast: false,
data
})
}
// 版本数据查询接口
export function versionQuery(data) {
return fetch({
url: '/versionControl/query',
method: 'POST',
toast: false,
data
})
}
// 查询用户
export function queryUser(data) {
return fetch({
url: '/user/v2/query',
method: 'POST',
toast: false,
data
})
}
// 保存用户
export function saveUser(data) {
return fetch({
url: '/user/v2/save',
method: 'POST',
toast: false,
data
})
}
// 添加用户
export function addUser(data) {
return fetch({
url: '/portal/account/new',
method: 'POST',
toast: false,
data
})
}
// 修改密码
export function resetPw(data) {
return fetch({
url: '/portal/security/pwd/reset',
method: 'PUT',
toast: false,
data
})
}
// 管理员密码重置为默认密码
export function adminResetPw(data) {
return fetch({
url: '/portal/security/pwd/reset/admin',
method: 'PUT',
toast: false,
data
})
}
// 密码重置为默认密码
// /portal/security/pwd/reset/default
// export function resetDefault (params) {
// return fetch({
// url: `/portal/security/pwd/reset/default`,
// method: 'put',
// params
// })
// }
// 根据id获取用户
export function getUserDetail(id) {
return fetch({
url: `/user/v2/get/${id}`,
method: 'GET'
})
}
// 根据id删除用户
export function deleteUser(id) {
return fetch({
url: `/user/v2/delete/${id}`,
method: 'DELETE'
})
}
// 查询角色
export function queryRole(data) {
return fetch({
url: '/authority/role/query',
method: 'POST',
toast: false,
data
})
}
// 保存角色
export function saveRole(data) {
return fetch({
url: '/authority/role/save',
method: 'POST',
toast: false,
data
})
}
// 删除角色
export function deleteRole(id) {
return fetch({
url: `/authority/role/delete/${id}`,
method: 'DELETE'
})
}
// 批量删除角色
export function batchDeleteRole(data) {
return fetch({
url: `/authority/role/batchDelete`,
method: 'DELETE',
data
})
}
// 移除角色的权限
export function removePermissions(data) {
return fetch({
url: `/authority/role/removePermissions`,
method: 'DELETE',
data
})
}
// 根据ID查询角色信息
export function getRoleMsg(id) {
return fetch({
url: `/authority/role/get/${id}/`,
method: 'GET'
})
}
// 根据ID查询角色信息
export function assignPermissions(data) {
return fetch({
url: `/authority/role/assignPermissions`,
method: 'POST',
data
})
}
// 根据
export function reAssignPermissions(data) {
return fetch({
url: `/authority/role/reAssignPermissions`,
method: 'POST',
data
})
}
// 根据角色ID以及指定类型,获取角色所拥有的该组件的相关权限
export function findPermissions(id) {
return fetch({
url: `/authority/role/findPermissions/${id}/nav`,
method: 'GET'
})
}
// 返回被授予指定角色的用户
export function findRoleUsers(id, data) {
return fetch({
url: `/authority/user/findRoleUsers/${id}`,
method: 'POST',
data
})
}
// 移除用户已授予的角色
export function removeUserFromRole(data) {
return fetch({
url: `/authority/user/removeUserFromRole`,
method: 'DELETE',
data
})
}
// 授予用户角色
export function userAutoToRole(data) {
return fetch({
url: `/authority/user/batchAssignUserToRole`,
method: 'POST',
data
})
}
// 批量移除角色中的用户
export function removeRoleUser(data) {
return fetch({
url: `/userModel/removeRoleUser`,
method: 'POST',
data
})
}
// 获取所有导航组
export function getAllGroups2(id) {
return fetch({
url: `/navigation/getAllGroups`,
method: 'GET'
})
}
// 根据ID获取导航组(无关权限)
export function getNavAll2(id) {
return fetch({
url: `/navigation/getNavigations/${id}/default`,
method: 'GET'
})
}
// 根据ID获取导航组
export function getUserAll3(id) {
return fetch({
url: `/navigation/getUserNavigations/0/${id}/default`,
method: 'GET'
})
}
// 根据ID获取导航组
export function getNavAll3(id) {
return fetch({
url: `/navigation/getCurrentUserNav/${id}/default`,
method: 'GET'
})
}
// 根据ID获取导航组
export function getSubTree(id) {
return fetch({
url: `/navigation/getSubTree/${id}/default`,
method: 'GET'
})
}
// 根据ID删除导航以及该导航的子项
export function deleteFull(id) {
return fetch({
url: `/navigation/deleteFull/${id}/default`,
method: 'DELETE'
})
}
// 更换PID
export function changepid(id, pid) {
return fetch({
url: `/navigationext/changepid/${id}/${pid}/default`,
method: 'GET'
})
}
// 根据Id获取展示编辑页面
export function getNavigationIdShow(id) {
return fetch({
url: `/bpm/navigation/show/${id}`,
method: 'GET'
})
}
// 保存修改导航
export function saveNavigation(data) {
return fetch({
url: `/navigation/save`,
method: 'POST',
data
})
}
// 根据id获取子导航组
export function getNavigations(id) {
return fetch({
url: `/navigation/getSubTree/${id}/default`,
method: 'GET'
})
}
// 根据Id将服务器从域中移除
export function removeServer(id) {
return fetch({
url: `/soa/server/remove/${id}`,
method: 'DELETE'
})
}
// 查找替换查找文件
export function findQuery(data) {
return fetch({
url: `soa/findReplace/query`,
method: 'POST',
data
})
}
// 获取所有环境变量分类
export function getVariables() {
return fetch({
url: `soa/findReplace/getType`,
method: 'GET'
})
}
// 替换文件
export function replaceRecord(data) {
return fetch({
url: `soa/findReplace/replace`,
method: 'POST',
data
})
}
\ No newline at end of file
import { fetch } from '@/utils'
import store from '@/store'
// export async function login(params) {
// // const res = await fetch({
// // url: '/loginuser',
// // method: 'GET',
// // params,
// // loading: true
// // }).catch(e => Promise.reject(e))
// // if (res.code === 0) {
// // store.commit('setUserInfo', res.content)
// // }
// // return Promise.resolve(res)
// // }
// export function getUserInfo (params) {
// return fetch({
// url: '/OauthLoginUser',
// method: 'GET',
// params
// })
// }
export function login(data) {
return fetch({
url: `/epapi/authentication/form`,
method: 'POST',
toast: false,
data,
headers: {
'Content-Type': 'multipart/form-data'
}
})
}
export function getTestUser(params) {
return fetch({
url: '/epapi/testUser/get',
method: 'GET',
params
})
}
// export function login (data) {
// return fetch({
// url: '/cas/oauth2.0/accessToken',
// method: 'POST',
// params: {
// grant_type: 'password',
// client_id: 'jiucaiyunoauthtest',
// ...data
// }
// })
// }
export function refeshUserInfo() {
return new Promise((resolve, reject) => {
fetch({
url: '/OauthLoginUser',
method: 'GET',
params: {
access_token: localStorage.getItem('token')
}
}).then(rt => {
if (rt.content.userid) {
store.commit('app/setUserInfo', rt.content)
resolve(rt)
} else {
localStorage.removeItem('token')
}
}).catch(e => {
localStorage.removeItem('token')
reject(e)
})
})
}
// 获取登录人信息接口
export function getUserInfo(params) {
return fetch({
url: `/epapi/common/getUserInfo`,
method: 'GET',
params
})
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!(function(t) { var e; var n; var o; var i; var c; var a; var d; var l = '<svg><symbol id="icon-jilu" viewBox="0 0 1024 1024"><path d="M810.7 138.7v746.7H213.3V138.7h597.4m0-74.7H213.3c-41.2 0-74.7 33.4-74.7 74.7v746.7c0 41.2 33.4 74.7 74.7 74.7h597.3c41.2 0 74.7-33.4 74.7-74.7V138.7c0-41.3-33.4-74.7-74.6-74.7z" ></path><path d="M586.7 549.3H325.3c-20.6 0-37.3-16.7-37.3-37.3 0-20.6 16.7-37.3 37.3-37.3h261.3c20.6 0 37.3 16.7 37.3 37.3 0.1 20.6-16.6 37.3-37.2 37.3zM698.7 736H325.3c-20.6 0-37.3-16.7-37.3-37.3 0-20.6 16.7-37.3 37.3-37.3h373.3c20.6 0 37.3 16.7 37.3 37.3 0.1 20.6-16.6 37.3-37.2 37.3z" ></path><path d="M325.3 325.3m-37.3 0a37.3 37.3 0 1 0 74.6 0 37.3 37.3 0 1 0-74.6 0Z" ></path><path d="M512 325.3m-37.3 0a37.3 37.3 0 1 0 74.6 0 37.3 37.3 0 1 0-74.6 0Z" ></path><path d="M698.7 325.3m-37.3 0a37.3 37.3 0 1 0 74.6 0 37.3 37.3 0 1 0-74.6 0Z" ></path></symbol></svg>'; var s = (e = document.getElementsByTagName('script'))[e.length - 1].getAttribute('data-injectcss'); if (s && !t.__iconfont__svg__cssinject__) { t.__iconfont__svg__cssinject__ = !0; try { document.write('<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>') } catch (t) { console && console.log(t) } } function r() { a || (a = !0, i()) }n = function() { var t; var e; var n; var o; var i; var c = document.createElement('div'); c.innerHTML = l, l = null, (t = c.getElementsByTagName('svg')[0]) && (t.setAttribute('aria-hidden', 'true'), t.style.position = 'absolute', t.style.width = 0, t.style.height = 0, t.style.overflow = 'hidden', e = t, (n = document.body).firstChild ? (o = e, (i = n.firstChild).parentNode.insertBefore(o, i)) : n.appendChild(e)) }, document.addEventListener ? ~['complete', 'loaded', 'interactive'].indexOf(document.readyState) ? setTimeout(n, 0) : (o = function() { document.removeEventListener('DOMContentLoaded', o, !1), n() }, document.addEventListener('DOMContentLoaded', o, !1)) : document.attachEvent && (i = n, c = t.document, a = !1, (d = function() { try { c.documentElement.doScroll('left') } catch (t) { return void setTimeout(d, 50) }r() })(), c.onreadystatechange = function() { c.readyState == 'complete' && (c.onreadystatechange = null, r()) }) }(window))
This diff is collapsed.
This diff is collapsed.
window._iconfont_svg_string_3634945='<svg><symbol id="icon-notification" viewBox="0 0 1099 1024"><path d="M674.75773686 595.1330521c-17.54183667-6.86419697-22.88065653-11.82167255-30.12619777 2.28806566-0.38134427 0.76268854-34.32098481 71.88339596-120.12344684 71.88339598-88.47187199 0-119.36075831-61.77777268-123.55554536-73.98078948-5.14814772-10.67763971-11.82167255-6.48285271-29.93552563-0.19067216-18.1138531 5.52949199-28.98216495 11.44032827-24.97805007 22.30864011 1.52537709 4.38545919 36.41837831 107.53908575 178.27844891 107.53908578 131.75444725 0 174.27433402-100.10287236 176.18105539-104.29765941C707.74401673 603.90397044 692.4902457 601.99724907 674.75773686 595.1330521zM523.36405943 8.62555606c-262.17418955 0-475.72698396 218.89161426-475.72698397 487.93000078 0 149.67762821 67.68860894 291.53769879 181.71054738 383.63234138L169.09522729 981.62547555c-10.48696758 17.92318096-11.63100043 41.56652605 1.52537709 57.3923135 11.24965614 13.72839391 24.21536151 14.87242676 38.32509971 14.87242675 6.29218054 0 15.44444316-2.09739353 21.73662371-4.76680345l174.84635043-79.89162576c36.79972261 10.67763971 80.0822979 15.44444316 117.8353812 15.44444316 262.17418955 0 475.72698396-218.89161426 475.72698394-487.93000078C999.09104337 227.51717029 785.53824898 8.62555606 523.36405943 8.62555606zM524.3174201 929.57198193c-35.46501764 0-71.12070742-4.76680346-105.63236439-13.91906608l-10.48696756-2.86008208-182.09189166 84.46775709c-2.47873778 0.9533607-5.91083627 1.14403283-7.62688551-0.95336069-0.9533607-1.71604925-0.76268854-4.5761313 0.76268856-7.05486909l79.70095361-127.36898813-20.78326303-14.10973818c-109.06446286-81.03565857-174.08366186-212.0274173-174.08366186-350.26471723 0-238.34017232 188.57474435-433.5884415 420.24139184-433.58844151s420.24139183 195.24826918 420.24139186 433.58844151C944.55881196 735.84908986 756.17473974 929.57198193 524.3174201 929.57198193z" fill="#ffffff" ></path></symbol><symbol id="icon-icon-project" viewBox="0 0 1024 1024"><path d="M337.109333 94.748444l-182.499555 760.888889 282.168889 75.605334 182.499555-760.888889-282.168889-75.605334zM359.793778 10.097778l282.168889 75.605333a87.637333 87.637333 0 0 1 61.980444 107.335111l-182.499555 760.888889a87.637333 87.637333 0 0 1-107.335112 61.966222l-282.168888-75.605333a87.637333 87.637333 0 0 1-61.980445-107.335111l182.499556-760.888889A87.637333 87.637333 0 0 1 359.793778 10.097778z" fill="#ffffff" ></path><path d="M375.381333 346.951111l84.650667 22.684445a43.818667 43.818667 0 0 0 22.684444-84.650667l-84.650666-22.684445a43.818667 43.818667 0 0 0-22.684445 84.650667zM337.578667 488.049778l84.650666 22.670222a43.818667 43.818667 0 0 0 22.684445-84.650667l-84.650667-22.684444a43.818667 43.818667 0 0 0-22.684444 84.664889zM744.547556 161.436444v817.976889a29.212444 29.212444 0 1 0 58.424888 0V161.422222a29.212444 29.212444 0 0 0-58.424888 0zM861.411556 161.436444v817.976889a14.606222 14.606222 0 1 0 29.212444 0V161.422222a14.606222 14.606222 0 1 0-29.212444 0zM919.836444 161.436444v817.976889a14.606222 14.606222 0 1 0 29.212445 0V161.422222a14.606222 14.606222 0 1 0-29.212445 0z" fill="#ffffff" ></path></symbol><symbol id="icon-qiyeyewu" viewBox="0 0 1024 1024"><path d="M64.234667 1023.744V575.978667h63.957333V128.192h127.936V0.256h639.68v575.722667h63.957333v447.765333H64.234667z m191.893333-831.573333H192.170667v383.808h63.957333V192.170667z m575.701333-127.936H320.106667v511.744h127.914666v127.914666h127.936v-127.936h255.872V64.234667z m63.978667 575.701333H639.936v127.936H384.064v-127.936H128.192v319.829333h767.616V639.936zM384.064 384.064h383.808v63.978667H384.064v-63.978667z m0-191.893333h383.808v63.957333H384.064V192.170667z" fill="#ffffff" ></path></symbol><symbol id="icon-ziyuan" viewBox="0 0 1024 1024"><path d="M991.304156 193.571721H376.154017a32.863256 32.863256 0 0 1-32.863256-32.863256 33.51814 33.51814 0 0 1 32.863256-32.863256h615.138232A32.851349 32.851349 0 0 1 1024.143598 160.708465a32.839442 32.839442 0 0 1-32.839442 32.863256z m0 350.279442H376.154017a32.863256 32.863256 0 0 1-32.863256-32.863256 33.51814 33.51814 0 0 1 32.863256-32.863256h615.138232a32.863256 32.863256 0 0 1 0.011907 65.726512z m0 350.946232H376.154017a33.51814 33.51814 0 0 1-32.863256-32.851348 32.863256 32.863256 0 0 1 32.863256-32.863256h615.138232a32.863256 32.863256 0 0 1 0.011907 65.714604zM104.079598 255.345116a33.482419 33.482419 0 0 1-23.659163-9.858976L9.442947 175.163535a33.530047 33.530047 0 0 1 0-46.663442 32.88707 32.88707 0 0 1 46.651535 0l47.985116 47.318326 99.899535-99.887628a32.827535 32.827535 0 0 1 46.651535 0 33.530047 33.530047 0 0 1 0 46.663442L127.083877 245.48614a32.863256 32.863256 0 0 1-23.004279 9.858976z m0 343.718698a33.530047 33.530047 0 0 1-23.659163-9.858977L9.442947 518.227349a32.863256 32.863256 0 0 1 0-46.008558 32.839442 32.839442 0 0 1 46.651535 0l47.985116 47.318325 99.899535-99.899535a32.863256 32.863256 0 0 1 46.651535 0 32.863256 32.863256 0 0 1 0 46.008559L127.083877 589.204837c-6.072558 6.191628-14.336 9.728-23.004279 9.858977z m0 357.518884a33.51814 33.51814 0 0 1-23.659163-7.227535L9.442947 875.746233a33.530047 33.530047 0 0 1 0-46.663442 33.506233 33.506233 0 0 1 46.663442 0l47.985116 47.973209 99.899535-100.554419a33.00614 33.00614 0 0 1 46.663442 46.663442L127.083877 949.343256a32.922791 32.922791 0 0 1-23.004279 7.239442z m0 0" fill="#ffffff" ></path></symbol><symbol id="icon-dailishezhi" viewBox="0 0 1024 1024"><path d="M485.034667 534.016c-125.508267 0-227.6352-102.126933-227.6352-227.6352 0-125.508267 102.126933-227.6352 227.6352-227.6352 125.508267 0 227.6352 102.126933 227.6352 227.6352 0 125.508267-102.126933 227.6352-227.6352 227.6352z m0-398.984533c-94.481067 0-171.349333 76.868267-171.349334 171.349333 0 94.481067 76.868267 171.349333 171.349334 171.349333s171.349333-76.868267 171.349333-171.349333c0-94.481067-76.868267-171.349333-171.349333-171.349333z" fill="#ffffff" ></path><path d="M196.471467 822.5792H140.1856c0-92.125867 35.874133-178.722133 101.000533-243.848533s151.722667-101.000533 243.848534-101.000534v56.285867c-159.095467 0-288.5632 129.4336-288.5632 288.5632z" fill="#ffffff" ></path><path d="M686.865067 808.618667c-74.24 0-134.656-60.416-134.656-134.656S612.625067 539.306667 686.865067 539.306667s134.656 60.416 134.656 134.656-60.416 134.656-134.656 134.656z m0-218.282667c-46.08 0-83.592533 37.512533-83.592534 83.592533s37.512533 83.592533 83.592534 83.592534 83.592533-37.512533 83.592533-83.592534-37.512533-83.592533-83.592533-83.592533z" fill="#ffffff" ></path><path d="M725.2992 564.155733h-74.4448c-2.935467 0-5.3248-2.389333-5.3248-5.3248v-38.5024c0-2.935467 2.389333-5.3248 5.3248-5.3248h74.4448c2.935467 0 5.3248 2.389333 5.3248 5.3248v38.5024c0.034133 2.935467-2.3552 5.3248-5.3248 5.3248zM610.850133 585.489067l-37.239466 64.477866c-1.467733 2.56-4.744533 3.413333-7.304534 1.9456l-33.348266-19.2512c-2.56-1.467733-3.413333-4.744533-1.9456-7.304533l37.239466-64.477867c1.467733-2.56 4.744533-3.413333 7.304534-1.9456l33.348266 19.2512c2.56 1.501867 3.447467 4.778667 1.9456 7.304534zM572.279467 695.534933l37.239466 64.477867c1.467733 2.56 0.6144 5.802667-1.9456 7.304533l-33.348266 19.2512c-2.56 1.467733-5.802667 0.6144-7.304534-1.9456l-37.239466-64.477866c-1.467733-2.56-0.6144-5.802667 1.9456-7.304534l33.348266-19.2512c2.56-1.501867 5.802667-0.6144 7.304534 1.9456zM648.260267 783.9744h74.4448c2.935467 0 5.3248 2.389333 5.3248 5.3248v38.5024c0 2.935467-2.389333 5.3248-5.3248 5.3248h-74.4448c-2.935467 0-5.3248-2.389333-5.3248-5.3248v-38.5024a5.290667 5.290667 0 0 1 5.3248-5.3248zM762.845867 762.368l37.239466-64.477867c1.467733-2.56 4.744533-3.413333 7.304534-1.9456l33.348266 19.2512c2.56 1.467733 3.413333 4.744533 1.9456 7.304534l-37.239466 64.477866c-1.467733 2.56-4.744533 3.413333-7.304534 1.9456l-33.348266-19.2512c-2.56-1.467733-3.413333-4.744533-1.9456-7.304533zM801.416533 652.356267l-37.239466-64.477867c-1.467733-2.56-0.6144-5.802667 1.9456-7.304533l33.348266-19.2512c2.56-1.467733 5.802667-0.6144 7.304534 1.9456l37.239466 64.477866c1.467733 2.56 0.6144 5.802667-1.9456 7.304534l-33.348266 19.2512c-2.56 1.467733-5.802667 0.6144-7.304534-1.9456z" fill="#ffffff" ></path></symbol></svg>',function(l){var t=(t=document.getElementsByTagName("script"))[t.length-1],e=t.getAttribute("data-injectcss"),t=t.getAttribute("data-disable-injectsvg");if(!t){var a,c,i,n,f,o=function(t,e){e.parentNode.insertBefore(t,e)};if(e&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(t){console&&console.log(t)}}a=function(){var t,e=document.createElement("div");e.innerHTML=l._iconfont_svg_string_3634945,(e=e.getElementsByTagName("svg")[0])&&(e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width=0,e.style.height=0,e.style.overflow="hidden",e=e,(t=document.body).firstChild?o(e,t.firstChild):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(a,0):(c=function(){document.removeEventListener("DOMContentLoaded",c,!1),a()},document.addEventListener("DOMContentLoaded",c,!1)):document.attachEvent&&(i=a,n=l.document,f=!1,s(),n.onreadystatechange=function(){"complete"==n.readyState&&(n.onreadystatechange=null,d())})}function d(){f||(f=!0,i())}function s(){try{n.documentElement.doScroll("left")}catch(t){return void setTimeout(s,50)}d()}}(window);
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment