11
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -6,7 +6,7 @@
|
|||||||
<meta name="renderer" content="webkit">
|
<meta name="renderer" content="webkit">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
<title><%= webpackConfig.name %></title>
|
<title>西南交大信息学院官网后台管理系统</title>
|
||||||
<style>
|
<style>
|
||||||
html,
|
html,
|
||||||
body,
|
body,
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 509 KiB After Width: | Height: | Size: 2.1 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 2.2 KiB |
@@ -141,7 +141,7 @@ export default {
|
|||||||
handleUploadSuccess(res, file) {
|
handleUploadSuccess(res, file) {
|
||||||
this.$message.success("提交成功!");
|
this.$message.success("提交成功!");
|
||||||
this.$emit("input", res.url);
|
this.$emit("input", res.url);
|
||||||
this.$emit("changeAddress",res.fileName);
|
this.$emit("change",res.fileName);
|
||||||
},
|
},
|
||||||
// 删除文件
|
// 删除文件
|
||||||
handleDelete(index) {
|
handleDelete(index) {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: 'EBTS',
|
title: 'SIST官网管理系统',
|
||||||
logo: logoImg
|
logo: logoImg
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
<div class="dashboard-editor-container">
|
<div class="dashboard-editor-container">
|
||||||
|
|
||||||
<panel-group @handleSetLineChartData="handleSetLineChartData" />
|
<panel-group @handleSetLineChartData="handleSetLineChartData" />
|
||||||
@@ -27,6 +30,9 @@
|
|||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -1,51 +1,71 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="login">
|
<div class="login">
|
||||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules">
|
||||||
<h3 class="title">EBTS</h3>
|
<div style="margin-bottom: 40px;">
|
||||||
<el-form-item prop="username">
|
<img style="height: 40px;" src="@/assets/logo/loginlogo.png" alt="">
|
||||||
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
|
</div>
|
||||||
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
<div class="login-form">
|
||||||
</el-input>
|
<h3 class="title">西南交大信息学院官网后台管理系统</h3>
|
||||||
</el-form-item>
|
<el-form-item prop="username">
|
||||||
<el-form-item prop="password">
|
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
|
||||||
<el-input
|
<svg slot="prefix" t="1642860611068" class="icon el-input__icon input-icon" viewBox="0 0 1024 1024"
|
||||||
v-model="loginForm.password"
|
version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="988" width="200" height="200">
|
||||||
type="password"
|
<path
|
||||||
auto-complete="off"
|
d="M657.408 567.808c89.088-49.152 149.504-144.384 149.504-253.952 0-160.256-130.048-289.792-289.792-289.792S227.328 154.112 227.328 314.368c0 109.056 60.416 204.288 149.504 253.952-187.904 59.392-323.584 235.008-323.584 442.368h57.856c0-224.256 181.76-406.016 406.016-406.016s406.016 181.76 406.016 406.016h57.856c0-207.872-135.68-383.488-323.584-442.88zM285.184 314.368C285.184 185.856 389.12 81.92 517.12 81.92s231.936 103.936 231.936 231.936-103.936 232.448-231.936 232.448-231.936-103.936-231.936-231.936z"
|
||||||
placeholder="密码"
|
p-id="989"></path>
|
||||||
@keyup.enter.native="handleLogin"
|
</svg>
|
||||||
>
|
</el-input>
|
||||||
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
|
</el-form-item>
|
||||||
</el-input>
|
<el-form-item prop="password">
|
||||||
</el-form-item>
|
<el-input
|
||||||
<el-form-item prop="code">
|
v-model="loginForm.password"
|
||||||
<el-input
|
type="password"
|
||||||
v-model="loginForm.code"
|
auto-complete="off"
|
||||||
auto-complete="off"
|
placeholder="密码"
|
||||||
placeholder="验证码"
|
@keyup.enter.native="handleLogin"
|
||||||
style="width: 63%"
|
>
|
||||||
@keyup.enter.native="handleLogin"
|
<svg slot="prefix" t="1642860660377" class="icon el-input__icon input-icon" viewBox="0 0 1024 1024"
|
||||||
>
|
version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1123" width="200" height="200">
|
||||||
<svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
|
<path
|
||||||
</el-input>
|
d="M527.36 561.152c-46.592 0-84.48 37.888-84.48 84.48 0 33.792 19.968 62.464 48.128 75.776v93.184c0 19.968 16.384 36.352 36.352 36.352 19.968 0 36.352-16.384 36.352-36.352V721.92c28.672-13.824 48.128-42.496 48.128-75.776 0-47.104-37.376-84.992-84.48-84.992z m350.72-169.472H153.088c-39.936 0-72.704 32.256-72.704 72.704v483.328c0 39.936 32.256 72.704 72.704 72.704h724.992c39.936 0 72.704-32.256 72.704-72.704V464.384c-0.512-40.448-32.768-72.704-72.704-72.704z m0 507.392c0 39.936-8.192 48.128-48.128 48.128H201.216c-39.936 0-48.128-8.192-48.128-48.128v-386.56c0-39.936 8.192-48.128 48.128-48.128H829.44c39.936 0 48.128 8.192 48.128 48.128v386.56zM173.056 355.328c19.968 0 36.352-15.872 36.864-35.84 32.768-138.24 157.184-241.664 305.664-241.664 116.224 0 217.088 62.976 271.36 156.672 5.632 12.8 18.432 21.504 33.28 21.504 19.968 0 36.352-16.384 36.352-36.352 0-7.68-2.56-15.36-6.656-20.992C782.848 83.456 658.432 5.12 515.584 5.12c-186.88 0-342.528 128.512-378.88 304.64 0 1.024-0.512 1.536-0.512 2.048 0 1.024-0.512 1.536-0.512 2.56v3.584c0 20.992 16.896 37.376 37.376 37.376z"
|
||||||
<div class="login-code">
|
p-id="1124"></path>
|
||||||
<img :src="codeUrl" @click="getCode" class="login-code-img"/>
|
</svg>
|
||||||
</div>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-checkbox v-model="loginForm.rememberMe" style="margin:0px 0px 25px 0px;">记住密码</el-checkbox>
|
<el-form-item prop="code">
|
||||||
<el-form-item style="width:100%;">
|
<el-input
|
||||||
<el-button
|
v-model="loginForm.code"
|
||||||
:loading="loading"
|
auto-complete="off"
|
||||||
size="medium"
|
placeholder="验证码"
|
||||||
type="primary"
|
style="width: 63%"
|
||||||
plain
|
@keyup.enter.native="handleLogin"
|
||||||
style="width:100%;"
|
>
|
||||||
@click.native.prevent="handleLogin"
|
<svg slot="prefix" t="1642860586781" class="icon el-input__icon input-icon" viewBox="0 0 1024 1024"
|
||||||
>
|
version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="853" width="200" height="200">
|
||||||
<span v-if="!loading">登 录</span>
|
<path
|
||||||
<span v-else>登 录 中...</span>
|
d="M517.094527 1024c-153.345274 0-438.129353-228.234826-438.129353-444.242786V167.60995c0-10.189055 8.151244-17.830846 18.849751-18.340298l24.963184-0.509453c1.018905 0 98.324378-2.037811 198.686568-41.775124C423.864677 66.228856 490.093532 19.359204 491.112438 18.849751l14.774129-10.189054c3.056716-2.037811 7.132338-3.566169 11.20796-3.56617 4.075622 0 8.151244 1.018905 11.207961 3.56617l14.774129 10.698507c0.509453 0.509453 67.247761 47.379104 170.157214 88.135323 100.362189 39.737313 197.667662 41.775124 198.686567 41.775125l24.453731 0.509452c10.189055 0 18.849751 8.151244 18.849752 18.340299v412.147264c0 215.498507-284.78408 443.733333-438.129354 443.733333z m370.881592-808.501493c-37.699502-3.056716-117.174129-12.736318-199.196019-45.341293-84.569154-33.114428-146.212935-70.304478-171.685573-87.116418-25.472637 16.302488-87.116418 54.00199-171.685572 87.116418-82.021891 32.604975-160.987065 42.284577-199.19602 45.341293v364.258707c0 169.138308 248.103483 376.485572 370.881592 376.485572 47.379104 0 140.099502-38.718408 230.78209-123.287562 87.625871-81.512438 140.099502-176.270647 140.099502-253.19801V215.498507z m-406.03383 433.544279c-6.113433 6.622886-14.774129 10.189055-23.944279 10.189055-9.170149 0-17.321393-3.566169-23.944279-10.189055l-101.381094-101.890547a33.827662 33.827662 0 0 1 0-47.888557c13.245771-13.245771 34.133333-13.245771 47.379104-0.509453l0.509453 0.509453 77.436816 77.946268 195.120398-196.648756c12.736318-13.245771 34.133333-13.245771 47.379104-0.509453l0.509453 0.509453c13.245771 13.245771 13.245771 34.642786 0 47.888557l-219.064676 220.593035z"
|
||||||
</el-button>
|
p-id="854"></path>
|
||||||
</el-form-item>
|
</svg>
|
||||||
|
</el-input>
|
||||||
|
<div class="login-code">
|
||||||
|
<img :src="codeUrl" @click="getCode" class="login-code-img"/>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-checkbox v-model="loginForm.rememberMe" style="margin:0px 0px 25px 0px;">记住密码</el-checkbox>
|
||||||
|
<el-form-item style="width:100%;">
|
||||||
|
<el-button
|
||||||
|
:loading="loading"
|
||||||
|
size="medium"
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
style="width:100%;"
|
||||||
|
@click.native.prevent="handleLogin"
|
||||||
|
>
|
||||||
|
<span v-if="!loading">登 录</span>
|
||||||
|
<span v-else>登 录 中...</span>
|
||||||
|
</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
<!-- 底部 -->
|
<!-- 底部 -->
|
||||||
<div class="el-login-footer">
|
<div class="el-login-footer">
|
||||||
@@ -55,9 +75,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getCodeImg } from "@/api/login";
|
import {getCodeImg} from "@/api/login";
|
||||||
import Cookies from "js-cookie";
|
import Cookies from "js-cookie";
|
||||||
import { encrypt, decrypt } from '@/utils/jsencrypt'
|
import {encrypt, decrypt} from '@/utils/jsencrypt'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Login",
|
name: "Login",
|
||||||
@@ -66,22 +86,20 @@ export default {
|
|||||||
codeUrl: "",
|
codeUrl: "",
|
||||||
cookiePassword: "",
|
cookiePassword: "",
|
||||||
loginForm: {
|
loginForm: {
|
||||||
username: "superadmin",
|
username: "",
|
||||||
password: "926425",
|
password: "",
|
||||||
// username: "admin",
|
|
||||||
// password: "HCY@2020",
|
|
||||||
rememberMe: false,
|
rememberMe: false,
|
||||||
code: "",
|
code: "",
|
||||||
uuid: ""
|
uuid: ""
|
||||||
},
|
},
|
||||||
loginRules: {
|
loginRules: {
|
||||||
username: [
|
username: [
|
||||||
{ required: true, trigger: "blur", message: "用户名不能为空" }
|
{required: true, trigger: "blur", message: "用户名不能为空"}
|
||||||
],
|
],
|
||||||
password: [
|
password: [
|
||||||
{ required: true, trigger: "blur", message: "密码不能为空" }
|
{required: true, trigger: "blur", message: "密码不能为空"}
|
||||||
],
|
],
|
||||||
code: [{ required: true, trigger: "change", message: "验证码不能为空" }]
|
code: [{required: true, trigger: "change", message: "验证码不能为空"}]
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
redirect: undefined
|
redirect: undefined
|
||||||
@@ -89,7 +107,7 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route: {
|
$route: {
|
||||||
handler: function(route) {
|
handler: function (route) {
|
||||||
this.redirect = route.query && route.query.redirect;
|
this.redirect = route.query && route.query.redirect;
|
||||||
},
|
},
|
||||||
immediate: true
|
immediate: true
|
||||||
@@ -121,9 +139,9 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
if (this.loginForm.rememberMe) {
|
if (this.loginForm.rememberMe) {
|
||||||
Cookies.set("username", this.loginForm.username, { expires: 30 });
|
Cookies.set("username", this.loginForm.username, {expires: 30});
|
||||||
Cookies.set("password", encrypt(this.loginForm.password), { expires: 30 });
|
Cookies.set("password", encrypt(this.loginForm.password), {expires: 30});
|
||||||
Cookies.set('rememberMe', this.loginForm.rememberMe, { expires: 30 });
|
Cookies.set('rememberMe', this.loginForm.rememberMe, {expires: 30});
|
||||||
} else {
|
} else {
|
||||||
Cookies.remove("username");
|
Cookies.remove("username");
|
||||||
Cookies.remove("password");
|
Cookies.remove("password");
|
||||||
@@ -132,7 +150,7 @@ export default {
|
|||||||
this.$store
|
this.$store
|
||||||
.dispatch("Login", this.loginForm)
|
.dispatch("Login", this.loginForm)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$router.push({ path: this.redirect || "/" });
|
this.$router.push({path: this.redirect || "/monitor/server"});
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
@@ -146,17 +164,19 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style rel="stylesheet/scss" lang="scss">
|
<style rel="stylesheet/scss" lang="scss">
|
||||||
.el-input__inner{
|
.el-input__inner {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login {
|
.login {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-image: url("https://open.saintic.com/api/bingPic/");
|
background-image: url("../assets/image/login-background.jpg");
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
margin: 0px auto 30px auto;
|
margin: 0px auto 30px auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -165,37 +185,44 @@ export default {
|
|||||||
|
|
||||||
.login-form {
|
.login-form {
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
background: rgba(255,255,255,0.4);
|
background: rgba(255, 255, 255, 0.4);
|
||||||
width: 400px;
|
width: 400px;
|
||||||
padding: 25px 25px 5px 25px;
|
padding: 25px 25px 5px 25px;
|
||||||
|
|
||||||
.el-input {
|
.el-input {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
|
||||||
input {
|
input {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-icon {
|
.input-icon {
|
||||||
height: 39px;
|
height: 39px;
|
||||||
width: 14px;
|
width: 14px;
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-tip {
|
.login-tip {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #bfbfbf;
|
color: #bfbfbf;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-code {
|
.login-code {
|
||||||
width: 33%;
|
width: 33%;
|
||||||
height: 38px;
|
height: 38px;
|
||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-login-footer {
|
.el-login-footer {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
@@ -208,6 +235,7 @@ export default {
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-code-img {
|
.login-code-img {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleFileUpdate"
|
@click="handleFileUpdate"
|
||||||
v-hasPermi="['system:file:edit']"
|
v-hasPermi="['sist:file:edit']"
|
||||||
>文件上传
|
>文件上传
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -118,7 +118,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
:disabled="multiple"
|
:disabled="multiple"
|
||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
v-hasPermi="['system:file:remove']"
|
v-hasPermi="['sist:file:remove']"
|
||||||
>删除
|
>删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
icon="el-icon-download"
|
icon="el-icon-download"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
v-hasPermi="['system:file:export']"
|
v-hasPermi="['sist:file:export']"
|
||||||
>导出
|
>导出
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -168,7 +168,7 @@
|
|||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['system:file:remove']"
|
v-hasPermi="['sist:file:remove']"
|
||||||
>删除
|
>删除
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
@@ -221,7 +221,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="文件上传">
|
<el-form-item label="文件上传">
|
||||||
<FileUpload v-model="addFile.url" @changeAddress="changeAddress"/>
|
<FileUpload v-model="addFile.url" @change="changeAddress"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
@@ -260,10 +260,10 @@
|
|||||||
</el-switch>
|
</el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="图片上传" v-show="!fileForm.fileType">
|
<el-form-item label="图片上传" v-show="!fileForm.fileType">
|
||||||
<ImageUpload v-model="fileForm.url" @changeAddress="changeAddress"/>
|
<ImageUpload v-model="fileForm.url" @change="changeAddress"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="文件上传" v-show="fileForm.fileType">
|
<el-form-item label="文件上传" v-show="fileForm.fileType">
|
||||||
<FileUpload v-model="fileForm.url" @changeAddress="changeAddress"/>
|
<FileUpload v-model="fileForm.url" @change="changeAddress"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|||||||
@@ -112,6 +112,12 @@
|
|||||||
<el-form-item label="英语名称" prop="englishTitle">
|
<el-form-item label="英语名称" prop="englishTitle">
|
||||||
<el-input v-model="form.englishTitle" placeholder="英语名称"/>
|
<el-input v-model="form.englishTitle" placeholder="英语名称"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="显示网站">
|
||||||
|
<el-radio-group v-model="form.displayType">
|
||||||
|
<el-radio-button v-for="dict in displayTypeOptions" :key="dict.dictValue"
|
||||||
|
:label="dict.dictValue">{{ dict.dictLabel }}</el-radio-button>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item v-show="anvTypeEdit" label="导航类型" prop="type">
|
<el-form-item v-show="anvTypeEdit" label="导航类型" prop="type">
|
||||||
<!-- <el-input v-model="form.link" placeholder="请输入导航链接"/>-->
|
<!-- <el-input v-model="form.link" placeholder="请输入导航链接"/>-->
|
||||||
<el-radio-group v-model="form.type" @change="navigationTypeChang(form.type)">
|
<el-radio-group v-model="form.type" @change="navigationTypeChang(form.type)">
|
||||||
@@ -243,6 +249,7 @@ export default {
|
|||||||
direTypeOptions: [],
|
direTypeOptions: [],
|
||||||
sistDireTypeOptions: [],
|
sistDireTypeOptions: [],
|
||||||
labDireTypeOptions: [],
|
labDireTypeOptions: [],
|
||||||
|
displayTypeOptions: [],
|
||||||
navigationType: [],
|
navigationType: [],
|
||||||
navList: [],
|
navList: [],
|
||||||
anvTypeEdit: true,
|
anvTypeEdit: true,
|
||||||
@@ -279,6 +286,9 @@ export default {
|
|||||||
this.getDicts("navigation_type").then(res => {
|
this.getDicts("navigation_type").then(res => {
|
||||||
this.navigationTypeOptions = res.data;
|
this.navigationTypeOptions = res.data;
|
||||||
})
|
})
|
||||||
|
this.getDicts("display_type").then(res => {
|
||||||
|
this.displayTypeOptions = res.data;
|
||||||
|
})
|
||||||
this.getDicts("dire_type").then(res => {
|
this.getDicts("dire_type").then(res => {
|
||||||
let direList = res.data
|
let direList = res.data
|
||||||
for (let dire of direList) {
|
for (let dire of direList) {
|
||||||
@@ -354,6 +364,7 @@ export default {
|
|||||||
sort: null,
|
sort: null,
|
||||||
refId: null,
|
refId: null,
|
||||||
enRefId: null,
|
enRefId: null,
|
||||||
|
displayType: '1',
|
||||||
};
|
};
|
||||||
this.anvTypeEdit = true
|
this.anvTypeEdit = true
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
@@ -460,10 +471,10 @@ export default {
|
|||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
//if (this.imageShow&&this.form.link){
|
if (this.imageShow&&this.form.link){
|
||||||
// this.msgError("图片不能为空,若您已上传请稍等一下!");
|
this.msgError("图片不能为空,若您已上传请稍等一下!");
|
||||||
// return
|
return
|
||||||
//}
|
}
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateNavigation(this.form).then(response => {
|
updateNavigation(this.form).then(response => {
|
||||||
this.msgSuccess("修改成功");
|
this.msgSuccess("修改成功");
|
||||||
|
|||||||
@@ -211,10 +211,10 @@
|
|||||||
</el-switch>
|
</el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="图片上传" v-show="!fileForm.fileType" >
|
<el-form-item label="图片上传" v-show="!fileForm.fileType" >
|
||||||
<ImageUpload v-model="fileForm.url" @changeAddress="changeAddress"/>
|
<ImageUpload v-model="fileForm.url" @change="changeAddress"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="文件上传" v-show="fileForm.fileType" >
|
<el-form-item label="文件上传" v-show="fileForm.fileType" >
|
||||||
<FileUpload v-model="fileForm.url" @changeAddress="changeAddress"/>
|
<FileUpload v-model="fileForm.url" @change="changeAddress"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|||||||
@@ -38,10 +38,10 @@
|
|||||||
</el-switch>
|
</el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="图片上传" v-show="!fileTypeShow">
|
<el-form-item label="图片上传" v-show="!fileTypeShow">
|
||||||
<ImageUpload v-model="value" @changeAddress="changeAddress"/>
|
<ImageUpload v-model="value" @change="changeAddress"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="文件上传" v-show="fileTypeShow">
|
<el-form-item label="文件上传" v-show="fileTypeShow">
|
||||||
<FileUpload v-model="value" @changeAddress="changeAddress"/>
|
<FileUpload v-model="value" @change="changeAddress"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user