Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
942850bd
authored
May 24, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
6abf6968
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
17 deletions
src/components/menu.vue
src/main.js
src/views/List/inquireDetail.vue
src/views/Store/list.vue
view/app.bf99e032390bab33979d.js → view/app.4d1840f356f89f287c80.js
view/index.html
view/js/12.js
view/js/14.js
src/components/menu.vue
View file @
942850bd
...
...
@@ -239,6 +239,7 @@
methods
:
{
getData
()
{
var
userInfo_
=
sessionStorage
.
getItem
(
'userInfox'
);
if
(
userInfo_
)
{
this
.
userinfo
=
JSON
.
parse
(
userInfo_
);
}
else
{
...
...
src/main.js
View file @
942850bd
...
...
@@ -102,7 +102,7 @@ router.beforeEach((to, from, next) => {
}
else
{
let
token
=
Util
.
getCookie
(
'token'
)
||
''
;
if
(
!
token
)
{
alert
(
0
)
sessionStorage
.
removeItem
(
'userInfox'
)
var
path_
=
window
.
location
.
hash
path_
=
path_
.
substr
(
1
)
window
.
location
.
href
=
'/#/login?referer='
+
encodeURI
(
path_
);
...
...
src/views/List/inquireDetail.vue
View file @
942850bd
...
...
@@ -124,7 +124,7 @@
<div
class=
"boxxrth2021"
>
<p
class=
"clr"
v-for=
"item in scope.row.hk_ladder_price"
>
<span
class=
"fl"
>
{{
item
.
purchases
}}
+
</span>
<span
class=
"fl"
>
¥
{{
item
.
price
}}
</span>
<span
class=
"fl"
>
$
{{
item
.
price
}}
</span>
</p>
</div>
</div>
...
...
@@ -253,7 +253,7 @@
<el-input
v-model=
"ruleForm.moq"
placeholder=
"请输入起订量"
:value=
"ruleForm.moq"
></el-input>
</el-form-item>
<el-form-item
label=
"报价有效期"
prop=
"expire_time"
>
<el-date-picker
type=
"date"
placeholder=
"选择报价有效期"
v-model=
"ruleForm.expire_time"
></el-date-picker>
<el-date-picker
type=
"date"
placeholder=
"选择报价有效期"
v
alue-format=
"yyyy-MM-dd"
v
-model=
"ruleForm.expire_time"
></el-date-picker>
</el-form-item>
</div>
</div>
...
...
@@ -295,13 +295,13 @@
Dialog
,
Pagination
,
Autocomplete
,
Loading
,
//
Loading,
Tooltip
}
from
'element-ui'
Vue
.
prototype
.
$message
=
Message
Vue
.
use
(
Button
).
use
(
Form
).
use
(
Select
).
use
(
Option
).
use
(
Input
).
use
(
FormItem
).
use
(
Dialog
).
use
(
Autocomplete
).
use
(
Loading
)
.
use
(
Tooltip
);
Vue
.
use
(
DatePicker
).
use
(
Dropdown
).
use
(
DropdownMenu
).
use
(
DropdownItem
).
use
(
TableColumn
).
use
(
Table
).
use
(
Pagination
)
;
Vue
.
use
(
Button
).
use
(
Form
).
use
(
Select
).
use
(
Option
).
use
(
Input
).
use
(
FormItem
).
use
(
Dialog
).
use
(
Autocomplete
).
use
(
Tooltip
)
// .use(Loading
);
Vue
.
use
(
DatePicker
).
use
(
Dropdown
).
use
(
DropdownMenu
).
use
(
DropdownItem
).
use
(
TableColumn
).
use
(
Table
).
use
(
Pagination
)
export
default
{
name
:
"InquireDetail"
,
...
...
@@ -320,6 +320,7 @@
isModify
:
false
,
tableData
:
[],
historyList
:
[],
submitState
:
0
,
ruleForm
:
{
inquiry_id
:
''
,
inquiry_sn
:
''
,
...
...
@@ -534,10 +535,12 @@
},
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
this
.
submitState
){
return
}
if
(
valid
)
{
let
loadingInstance
=
Loading
.
service
({
background
:
'rgba(0, 0, 0, 0)'
});
// let loadingInstance = Loading.service({
// background: 'rgba(0, 0, 0, 0)'
// });
this
.
submitState
=
1
;
this
.
$http
(
'post'
,
"/api/quote/save"
,
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
err_code
==
0
)
{
this
.
$message
(
'操作成功'
);
...
...
@@ -554,16 +557,19 @@
}
else
{
this
.
$message
(
res
.
err_msg
);
}
loadingInstance
.
close
();
// loadingInstance.close();
this
.
submitState
=
0
;
})
}
else
{
this
.
$message
(
res
.
err_msg
);
loadingInstance
.
close
();
this
.
submitState
=
0
;
//loadingInstance.close();
}
}).
catch
(
err
=>
{
loadingInstance
.
close
();
this
.
submitState
=
0
;
//loadingInstance.close();
});
}
else
{
console
.
log
(
this
.
ruleForm
.
delivery_time
);
...
...
src/views/Store/list.vue
View file @
942850bd
...
...
@@ -94,7 +94,7 @@
<div
class=
"boxxrth2021"
>
<p
class=
"clr"
v-for=
"item in scope.row.hk_ladder_price"
>
<span
class=
"fl"
>
{{
item
.
purchases
}}
+
</span>
<span
class=
"fl"
>
¥
{{
item
.
price
}}
</span>
<span
class=
"fl"
>
$
{{
item
.
price
}}
</span>
</p>
</div>
...
...
view/app.
bf99e032390bab33979d
.js
→
view/app.
4d1840f356f89f287c80
.js
View file @
942850bd
...
...
@@ -1197,7 +1197,7 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n
/***/
(
function
(
module
,
exports
,
__webpack_require__
)
{
"use strict"
;
eval
(
"\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _App = _interopRequireDefault(__webpack_require__(/*! ./App.vue */ \"./src/App.vue\"));\n\nvar _router = _interopRequireDefault(__webpack_require__(/*! ./router */ \"./src/router/index.js\"));\n\nvar _filters = _interopRequireDefault(__webpack_require__(/*! ./filters */ \"./src/filters/index.js\"));\n\nvar _directive = _interopRequireDefault(__webpack_require__(/*! ./directive */ \"./src/directive/index.js\"));\n\nvar _index = __webpack_require__(/*! ./ajax/index.js */ \"./src/ajax/index.js\");\n\nvar _axios = _interopRequireDefault(__webpack_require__(/*! axios */ \"./node_modules/axios/index.js\"));\n\nvar _loading = __webpack_require__(/*! ./ajax/loading */ \"./src/ajax/loading.js\");\n\nvar _tool = _interopRequireDefault(__webpack_require__(/*! ./tool */ \"./src/tool/index.js\"));\n\n__webpack_require__(/*! @/assets/css/public/common.min.css */ \"./src/assets/css/public/common.min.css\");\n\n__webpack_require__(/*! @/assets/css/font/iconfont.css */ \"./src/assets/css/font/iconfont.css\");\n\n//本地环境开启提示信息\n_vue.default.config.productionTip = false; //加载全局样式\n\n//加载过滤器\nObject.keys(_filters.default).forEach(key => _vue.default.filter(key, _filters.default[key])); //加载自定义指令\n\n_vue.default.use(_directive.default); //处理顶部导航TAB\n\n\n_router.default.afterEach((to, from, next) => {\n if (to.path == \"/\" || to.path == \"/login\" || to.path == '/notfound') {\n return;\n }\n\n let tabOldArr = sessionStorage.getItem('tabs');\n let tabOldJson;\n let tabNewJson = [];\n\n if (tabOldArr) {\n tabOldJson = JSON.parse(tabOldArr);\n\n for (var i = 0; i < tabOldJson.length; i++) {\n tabNewJson.push(JSON.stringify(tabOldJson[i]));\n }\n\n if (tabNewJson.indexOf(JSON.stringify({\n path: to.path,\n title: to.meta.title,\n query: to.query\n })) == -1) {\n tabOldJson.push({\n path: to.path,\n title: to.meta.title,\n query: to.query\n });\n }\n } else {\n tabOldJson = [{\n path: to.path,\n title: to.meta.title,\n query: to.query\n }];\n }\n\n if (tabOldJson) {\n sessionStorage.setItem('tabs', JSON.stringify(tabOldJson));\n }\n});\n\n_axios.default.interceptors.request.use(config => {\n if (config.loading) {\n (0, _loading.showLoading)();\n }\n\n return config;\n}, err => {\n return Promise.reject(err);\n});\n\n_axios.default.interceptors.response.use(res => {\n (0, _loading.hideLoading)();\n\n if (res.data.err_code == 101) {\n //token验证失败\n var path_ = window.location.hash;\n path_ = path_.substr(1);\n console.log(path_);\n window.location.href = '/#/login?referer=' + encodeURI(path_);\n }\n\n return res.data;\n}, error => {\n // Message('网络出现问题,请检查网络');\n (0, _loading.hideLoading)();\n return Promise.reject(new Error(error));\n}); //挂载到VUE原型上封装后的http请求\n\n\n_vue.default.prototype.$http = _index.http; //路由页面回跳处理 mate里面参数 back:true 开启登录态回跳\n\n_router.default.beforeEach((to, from, next) => {\n if (to.path == \"/login\" || to.path == '/notfound') {\n next();\n } else {\n let token = _tool.default.getCookie('token') || '';\n\n if (!token) {\n
alert(0
);\n var path_ = window.location.hash;\n path_ = path_.substr(1);\n window.location.href = '/#/login?referer=' + encodeURI(path_);\n history.go(0);\n } else {\n next();\n }\n }\n});\n\nnew _vue.default({\n router: _router.default,\n render: h => h(_App.default)\n}).$mount(\"#app\");\n\n//# sourceURL=webpack:///./src/main.js?"
);
eval
(
"\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _App = _interopRequireDefault(__webpack_require__(/*! ./App.vue */ \"./src/App.vue\"));\n\nvar _router = _interopRequireDefault(__webpack_require__(/*! ./router */ \"./src/router/index.js\"));\n\nvar _filters = _interopRequireDefault(__webpack_require__(/*! ./filters */ \"./src/filters/index.js\"));\n\nvar _directive = _interopRequireDefault(__webpack_require__(/*! ./directive */ \"./src/directive/index.js\"));\n\nvar _index = __webpack_require__(/*! ./ajax/index.js */ \"./src/ajax/index.js\");\n\nvar _axios = _interopRequireDefault(__webpack_require__(/*! axios */ \"./node_modules/axios/index.js\"));\n\nvar _loading = __webpack_require__(/*! ./ajax/loading */ \"./src/ajax/loading.js\");\n\nvar _tool = _interopRequireDefault(__webpack_require__(/*! ./tool */ \"./src/tool/index.js\"));\n\n__webpack_require__(/*! @/assets/css/public/common.min.css */ \"./src/assets/css/public/common.min.css\");\n\n__webpack_require__(/*! @/assets/css/font/iconfont.css */ \"./src/assets/css/font/iconfont.css\");\n\n//本地环境开启提示信息\n_vue.default.config.productionTip = false; //加载全局样式\n\n//加载过滤器\nObject.keys(_filters.default).forEach(key => _vue.default.filter(key, _filters.default[key])); //加载自定义指令\n\n_vue.default.use(_directive.default); //处理顶部导航TAB\n\n\n_router.default.afterEach((to, from, next) => {\n if (to.path == \"/\" || to.path == \"/login\" || to.path == '/notfound') {\n return;\n }\n\n let tabOldArr = sessionStorage.getItem('tabs');\n let tabOldJson;\n let tabNewJson = [];\n\n if (tabOldArr) {\n tabOldJson = JSON.parse(tabOldArr);\n\n for (var i = 0; i < tabOldJson.length; i++) {\n tabNewJson.push(JSON.stringify(tabOldJson[i]));\n }\n\n if (tabNewJson.indexOf(JSON.stringify({\n path: to.path,\n title: to.meta.title,\n query: to.query\n })) == -1) {\n tabOldJson.push({\n path: to.path,\n title: to.meta.title,\n query: to.query\n });\n }\n } else {\n tabOldJson = [{\n path: to.path,\n title: to.meta.title,\n query: to.query\n }];\n }\n\n if (tabOldJson) {\n sessionStorage.setItem('tabs', JSON.stringify(tabOldJson));\n }\n});\n\n_axios.default.interceptors.request.use(config => {\n if (config.loading) {\n (0, _loading.showLoading)();\n }\n\n return config;\n}, err => {\n return Promise.reject(err);\n});\n\n_axios.default.interceptors.response.use(res => {\n (0, _loading.hideLoading)();\n\n if (res.data.err_code == 101) {\n //token验证失败\n var path_ = window.location.hash;\n path_ = path_.substr(1);\n console.log(path_);\n window.location.href = '/#/login?referer=' + encodeURI(path_);\n }\n\n return res.data;\n}, error => {\n // Message('网络出现问题,请检查网络');\n (0, _loading.hideLoading)();\n return Promise.reject(new Error(error));\n}); //挂载到VUE原型上封装后的http请求\n\n\n_vue.default.prototype.$http = _index.http; //路由页面回跳处理 mate里面参数 back:true 开启登录态回跳\n\n_router.default.beforeEach((to, from, next) => {\n if (to.path == \"/login\" || to.path == '/notfound') {\n next();\n } else {\n let token = _tool.default.getCookie('token') || '';\n\n if (!token) {\n
sessionStorage.removeItem('userInfox'
);\n var path_ = window.location.hash;\n path_ = path_.substr(1);\n window.location.href = '/#/login?referer=' + encodeURI(path_);\n history.go(0);\n } else {\n next();\n }\n }\n});\n\nnew _vue.default({\n router: _router.default,\n render: h => h(_App.default)\n}).$mount(\"#app\");\n\n//# sourceURL=webpack:///./src/main.js?"
);
/***/
}),
...
...
view/index.html
View file @
942850bd
...
...
@@ -6,12 +6,12 @@
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<link
rel=
"icon"
href=
"http://yunxin.liexindev.net/favicon.ico"
>
<title>
cloudsystem
</title>
<link
href=
"http://yunxin.liexindev.net/js/0.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/1.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/10.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/11.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/12.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/13.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/14.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/15.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/16.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/17.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/18.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/19.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/2.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/20.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/21.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/22.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/23.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/24.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/25.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/3.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/4.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/5.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/6.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/7.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/8.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/9.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/app.
bf99e032390bab33979d
.js"
rel=
"preload"
as=
"script"
></head>
<link
href=
"http://yunxin.liexindev.net/js/0.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/1.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/10.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/11.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/12.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/13.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/14.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/15.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/16.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/17.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/18.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/19.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/2.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/20.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/21.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/22.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/23.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/24.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/25.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/3.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/4.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/5.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/6.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/7.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/8.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/9.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/app.
4d1840f356f89f287c80
.js"
rel=
"preload"
as=
"script"
></head>
<body>
<noscript>
<strong>
网络异常,请稍后加载
</strong>
</noscript>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
<script
type=
"text/javascript"
src=
"http://yunxin.liexindev.net/app.
bf99e032390bab33979d
.js"
></script></body>
<script
type=
"text/javascript"
src=
"http://yunxin.liexindev.net/app.
4d1840f356f89f287c80
.js"
></script></body>
</html>
view/js/12.js
View file @
942850bd
This diff could not be displayed because it is too large.
view/js/14.js
View file @
942850bd
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment