Browse Source

管理PC端和兽医PC端根据路由跳转

master
王妍洁 1 month ago
parent
commit
b7425c51cf
  1. 18
      chenhai-ui/src/api/vet/qualification.js
  2. 43
      chenhai-ui/src/layout/components/Navbar.vue
  3. 14
      chenhai-ui/src/permission.js
  4. 31
      chenhai-ui/src/router/index.js
  5. 10
      chenhai-ui/src/store/modules/user.js
  6. 18
      chenhai-ui/src/views/gld.vue
  7. 1499
      chenhai-ui/src/views/index.vue
  8. 1107
      chenhai-ui/src/views/indexGld.vue
  9. 7
      chenhai-ui/src/views/login.vue
  10. 20
      chenhai-ui/src/views/loginGld.vue
  11. 206
      chenhai-ui/src/views/syd.vue
  12. 156
      chenhai-ui/src/views/vet/article/index.vue
  13. 2
      chenhai-ui/src/views/vet/certificate/index.vue
  14. 2
      chenhai-ui/src/views/vet/info/index.vue
  15. 2
      chenhai-ui/src/views/vet/notification/index.vue
  16. 2
      chenhai-ui/src/views/vet/review/index.vue

18
chenhai-ui/src/api/vet/qualification.js

@ -1,5 +1,23 @@
import request from '@/utils/request'
// 兽医资质提交审核
export function submitAuditQualification(qualificationId) {
return request({
url: '/vet/qualification/submitAudit/' + qualificationId,
method: 'post',
data: data
})
}
// 审核
export function auditQualification(data) {
return request({
url: ' /vet/qualification/audit',
method: 'post',
data: data
})
}
// 查询兽医资质列表
export function listQualification(query) {
return request({

43
chenhai-ui/src/layout/components/Navbar.vue

@ -9,24 +9,24 @@
<top-bar id="topbar-container" class="topbar-container" />
</template>
<div class="right-menu">
<template v-if="device!=='mobile'">
<search id="header-search" class="right-menu-item" />
<!-- <template v-if="device!=='mobile'">-->
<!-- <search id="header-search" class="right-menu-item" />-->
<el-tooltip content="源码地址" effect="dark" placement="bottom">
<ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" />
</el-tooltip>
<!-- <el-tooltip content="源码地址" effect="dark" placement="bottom">-->
<!-- <ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" />-->
<!-- </el-tooltip>-->
<el-tooltip content="文档地址" effect="dark" placement="bottom">
<ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" />
</el-tooltip>
<!-- <el-tooltip content="文档地址" effect="dark" placement="bottom">-->
<!-- <ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" />-->
<!-- </el-tooltip>-->
<screenfull id="screenfull" class="right-menu-item hover-effect" />
<!-- <screenfull id="screenfull" class="right-menu-item hover-effect" />-->
<el-tooltip content="布局大小" effect="dark" placement="bottom">
<size-select id="size-select" class="right-menu-item hover-effect" />
</el-tooltip>
<!-- <el-tooltip content="布局大小" effect="dark" placement="bottom">-->
<!-- <size-select id="size-select" class="right-menu-item hover-effect" />-->
<!-- </el-tooltip>-->
</template>
<!-- </template>-->
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="hover">
<div class="avatar-wrapper">
@ -81,7 +81,7 @@ export default {
'sidebar',
'avatar',
'device',
'nickName'
'nickName',
]),
setting: {
get() {
@ -99,6 +99,11 @@ export default {
}
}
},
created() {
console.log(111,this.$store.state.user.roles[0])
},
methods: {
toggleSideBar() {
this.$store.dispatch('app/toggleSideBar')
@ -112,10 +117,16 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const userRole = this.$store.state.user.roles[0];
this.$store.dispatch('LogOut').then(() => {
location.href = '/index'
if (userRole === 'vetnotshenhe') {
location.href = '/login';
} else {
location.href = '/loginGld';
}
}).catch(() => {
})
}).catch(() => {})
})
}
}
}

14
chenhai-ui/src/permission.js

@ -20,14 +20,14 @@ router.beforeEach((to, from, next) => {
if (getToken()) {
to.meta.title && store.dispatch('settings/setTitle', to.meta.title)
/* has token*/
if (to.path === '/login') {
next({ path: '/' })
if (to.path === '/login' || to.path === '/loginGld') {
next({ path: '/index' })
NProgress.done()
}
else if (to.path === '/loginGld') {
next({ path: '/indexGld' })
NProgress.done()
} else if (isWhiteList(to.path)) {
// else if (to.path === '/loginGld') {
// next({ path: '/indexGld' })
// NProgress.done()
else if (isWhiteList(to.path)) {
next()
} else {
if (store.getters.roles.length === 0) {
@ -43,7 +43,7 @@ router.beforeEach((to, from, next) => {
}).catch(err => {
store.dispatch('LogOut').then(() => {
Message.error(err)
next({ path: '/' })
next({path: '/'})
})
})
} else {

31
chenhai-ui/src/router/index.js

@ -69,7 +69,7 @@ export const constantRoutes = [
component: () => import('@/views/error/401'),
hidden: true
},
// 管理员首页
// 首页
{
path: '/',
component: Layout,
@ -79,25 +79,24 @@ export const constantRoutes = [
path: 'indexGld',
component: () => import('@/views/indexGld'),
name: 'IndexGld',
meta: { title: '管理员首页', icon: 'dashboard', affix: true }
meta: { title: '首页', icon: 'dashboard', affix: true, requiresAuth: true}
}
]
},
// 兽医首页
{
path: '',
component: Layout,
redirect: 'index',
children: [
{
path: 'index',
component: () => import('@/views/index'),
name: 'Index',
meta: { title: '兽医首页', icon: 'dashboard', affix: true }
}
]
},
// {
// path: '/',
// component: Layout,
// redirect: 'index',
// children: [
// {
// path: 'index',
// component: () => import('@/views/index'),
// name: 'Index',
// meta: { title: '兽医首页', icon: 'dashboard', affix: true}
// }
// ]
// },
{
path: '/user',
component: Layout,

10
chenhai-ui/src/store/modules/user.js

@ -94,11 +94,11 @@ const user = {
commit('SET_NICK_NAME', user.nickName)
commit('SET_AVATAR', avatar)
/* 初始密码提示 */
if(res.isDefaultModifyPwd) {
MessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
router.push({ name: 'Profile', params: { activeTab: 'resetPwd' } })
}).catch(() => {})
}
// if(res.isDefaultModifyPwd) {
// MessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
// router.push({ name: 'Profile', params: { activeTab: 'resetPwd' } })
// }).catch(() => {})
// }
/* 过期密码提示 */
if(!res.isDefaultModifyPwd && res.isPasswordExpired) {
MessageBox.confirm('您的密码已过期,请尽快修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {

18
chenhai-ui/src/views/gld.vue

@ -0,0 +1,18 @@
<template>
<h1 class="admin-title">管理端</h1>
</template>
<script>
export default {
name: "Gld",
props: {
},
}
</script>
<style scoped>
.admin-title {
text-align: center;
color: #42B983;
}
</style>

1499
chenhai-ui/src/views/index.vue
File diff suppressed because it is too large
View File

1107
chenhai-ui/src/views/indexGld.vue
File diff suppressed because it is too large
View File

7
chenhai-ui/src/views/login.vue

@ -31,7 +31,7 @@
</div>
<!-- 注册弹窗 -->
<el-dialog :title="欢迎注册" :visible.sync="open" width="500px" append-to-body class="register-dialog">
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body class="register-dialog">
<el-form ref="registerForm" :model="registerForm" :rules="registerRules">
<el-form-item prop="phone">
<el-input
@ -204,7 +204,8 @@ export default {
}
}
return {
title: process.env.VUE_APP_TITLE,
// title: process.env.VUE_APP_TITLE,
title: "欢迎注册",
//
open: false,
// codeUrl: "",
@ -303,7 +304,7 @@ export default {
Cookies.remove('rememberMe')
}
this.$store.dispatch("Login", this.loginForm).then(() => {
this.$router.push({path: this.redirect || "/"}).catch(() => {
this.$router.push({path: this.redirect || "/indexGld"}).catch(() => {
})
}).catch(() => {
this.loginloading = false

20
chenhai-ui/src/views/loginGld.vue

@ -15,7 +15,7 @@
<h3 class="title">"与牧同行"管理端</h3>
<div class="slogan">
<div class="icon-info">
<svg t="1767603518204" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13872" width="20" height="20"><path d="M191.90624 190.952007l641.318274 0 0 448.933639L191.90624 639.885646 191.90624 190.952007 191.90624 190.952007zM868.691283 61.809741 156.493705 61.809741c-50.994418 0-92.339058 41.434691-92.339058 92.553952l0 520.745175c0 51.116191 41.336454 92.553952 92.339058 92.553952l223.89428 0 0 127.747499L222.537887 895.41032c-17.569144 0-31.81152 14.246469-31.81152 31.807427 0 17.569144 14.242376 31.815613 31.81152 31.815613L800.750915 959.033359c17.569144 0 31.815613-14.246469 31.815613-31.815613 0-17.560958-14.246469-31.807427-31.815613-31.807427L641.028167 895.41032 641.028167 767.663844l227.66414 0c50.998511 0 92.342128-41.437761 92.342128-92.553952L961.034435 154.363693C961.033411 103.252619 919.689794 61.809741 868.691283 61.809741L868.691283 61.809741zM898.61071 704.558597 127.961882 704.558597 127.961882 127.477346l770.647805 0L898.609687 704.558597 898.61071 704.558597zM898.61071 704.558597" fill="#CDCDCD" p-id="13873"></path></svg><path d="M384 768v42.666667h-42.325333C318.08 810.666667 298.666667 830.08 298.666667 853.674667c0 22.912 18.773333 42.325333 42.325333 42.325333h341.973333A42.666667 42.666667 0 0 0 725.333333 852.992 43.093333 43.093333 0 0 0 682.325333 810.666667H640v-42.666667h213.333333a85.333333 85.333333 0 0 0 85.333334-85.333333V213.333333a85.333333 85.333333 0 0 0-85.333334-85.333333H170.666667a85.333333 85.333333 0 0 0-85.333334 85.333333v469.333334a85.333333 85.333333 0 0 0 85.333334 85.333333h213.333333z m469.333333-85.333333H170.666667V213.333333h682.666666v469.333334z" p-id="12221" fill="#CDCDCD"></path></svg><path d="M191.90624 190.952007l641.318274 0 0 448.933639L191.90624 639.885646 191.90624 190.952007 191.90624 190.952007zM868.691283 61.809741 156.493705 61.809741c-50.994418 0-92.339058 41.434691-92.339058 92.553952l0 520.745175c0 51.116191 41.336454 92.553952 92.339058 92.553952l223.89428 0 0 127.747499L222.537887 895.41032c-17.569144 0-31.81152 14.246469-31.81152 31.807427 0 17.569144 14.242376 31.815613 31.81152 31.815613L800.750915 959.033359c17.569144 0 31.815613-14.246469 31.815613-31.815613 0-17.560958-14.246469-31.807427-31.815613-31.807427L641.028167 895.41032 641.028167 767.663844l227.66414 0c50.998511 0 92.342128-41.437761 92.342128-92.553952L961.034435 154.363693C961.033411 103.252619 919.689794 61.809741 868.691283 61.809741L868.691283 61.809741zM898.61071 704.558597 127.961882 704.558597 127.961882 127.477346l770.647805 0L898.609687 704.558597 898.61071 704.558597zM898.61071 704.558597" fill="#CDCDCD" p-id="7961"></path></svg>
<svg t="1767603518204" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13872" width="20" height="20"><path d="M191.90624 190.952007l641.318274 0 0 448.933639L191.90624 639.885646 191.90624 190.952007 191.90624 190.952007zM868.691283 61.809741 156.493705 61.809741c-50.994418 0-92.339058 41.434691-92.339058 92.553952l0 520.745175c0 51.116191 41.336454 92.553952 92.339058 92.553952l223.89428 0 0 127.747499L222.537887 895.41032c-17.569144 0-31.81152 14.246469-31.81152 31.807427 0 17.569144 14.242376 31.815613 31.81152 31.815613L800.750915 959.033359c17.569144 0 31.815613-14.246469 31.815613-31.815613 0-17.560958-14.246469-31.807427-31.815613-31.807427L641.028167 895.41032 641.028167 767.663844l227.66414 0c50.998511 0 92.342128-41.437761 92.342128-92.553952L961.034435 154.363693C961.033411 103.252619 919.689794 61.809741 868.691283 61.809741L868.691283 61.809741zM898.61071 704.558597 127.961882 704.558597 127.961882 127.477346l770.647805 0L898.609687 704.558597 898.61071 704.558597zM898.61071 704.558597" fill="#CDCDCD" p-id="13873"></path></svg><path d="M384 768v42.666667h-42.325333C318.08 810.666667 298.666667 830.08 298.666667 853.674667c0 22.912 18.773333 42.325333 42.325333 42.325333h341.973333A42.666667 42.666667 0 0 0 725.333333 852.992 43.093333 43.093333 0 0 0 682.325333 810.666667H640v-42.666667h213.333333a85.333333 85.333333 0 0 0 85.333334-85.333333V213.333333a85.333333 85.333333 0 0 0-85.333334-85.333333H170.666667a85.333333 85.333333 0 0 0-85.333334 85.333333v469.333334a85.333333 85.333333 0 0 0 85.333334 85.333333h213.333333z m469.333333-85.333333H170.666667V213.333333h682.666666v469.333334z" p-id="12221" fill="#CDCDCD"></path><path d="M191.90624 190.952007l641.318274 0 0 448.933639L191.90624 639.885646 191.90624 190.952007 191.90624 190.952007zM868.691283 61.809741 156.493705 61.809741c-50.994418 0-92.339058 41.434691-92.339058 92.553952l0 520.745175c0 51.116191 41.336454 92.553952 92.339058 92.553952l223.89428 0 0 127.747499L222.537887 895.41032c-17.569144 0-31.81152 14.246469-31.81152 31.807427 0 17.569144 14.242376 31.815613 31.81152 31.815613L800.750915 959.033359c17.569144 0 31.815613-14.246469 31.815613-31.815613 0-17.560958-14.246469-31.807427-31.815613-31.807427L641.028167 895.41032 641.028167 767.663844l227.66414 0c50.998511 0 92.342128-41.437761 92.342128-92.553952L961.034435 154.363693C961.033411 103.252619 919.689794 61.809741 868.691283 61.809741L868.691283 61.809741zM898.61071 704.558597 127.961882 704.558597 127.961882 127.477346l770.647805 0L898.609687 704.558597 898.61071 704.558597zM898.61071 704.558597" fill="#CDCDCD" p-id="7961"></path>
<div class="icon-text">一站通登筑牢账号防线</div>
</div>
<div class="icon-info">
@ -164,9 +164,9 @@ export default {
// })
// },
getCookie() {
const username = Cookies.get("username ")
const password = Cookies.get("password")
const rememberMe = Cookies.get('rememberMe')
const username = Cookies.get("gld_username")
const password = Cookies.get("gld_password")
const rememberMe = Cookies.get('gld_rememberMe')
this.loginForm = {
username : username === undefined ? this.loginForm.username : username ,
password: password === undefined ? this.loginForm.password : decrypt(password),
@ -178,13 +178,13 @@ export default {
if (valid) {
this.loading = true
if (this.loginForm.rememberMe) {
Cookies.set("username", this.loginForm.username , { expires: 30 })
Cookies.set("password", encrypt(this.loginForm.password), { expires: 30 })
Cookies.set('rememberMe', this.loginForm.rememberMe, { expires: 30 })
Cookies.set("gld_username", this.loginForm.username , { expires: 30 })
Cookies.set("gld_password", encrypt(this.loginForm.password), { expires: 30 })
Cookies.set('gld_rememberMe', this.loginForm.rememberMe, { expires: 30 })
} else {
Cookies.remove("username")
Cookies.remove("password")
Cookies.remove('rememberMe')
Cookies.remove("gld_username")
Cookies.remove("gld_password")
Cookies.remove('gld_rememberMe')
}
this.$store.dispatch("LoginGld", this.loginForm).then(() => {
this.$router.push({ path: this.redirect || '/indexGld' }).catch(()=>{})

206
chenhai-ui/src/views/syd.vue

@ -0,0 +1,206 @@
<template>
<h1 class="vetnotshenhe-title">兽医端</h1>
<!-- <div class="app-container">-->
<!-- <el-dialog :title="title" :visible.sync="flag" width="800px" append-to-body>-->
<!-- &lt;!&ndash; 步骤指示器 &ndash;&gt;-->
<!-- <el-steps :active="activeStep" finish-status="success" simple style="margin-bottom: 20px;">-->
<!-- <el-step title="选择经营范围"></el-step>-->
<!-- <el-step title="上传资质"></el-step>-->
<!-- <el-step title="提交审核"></el-step>-->
<!-- </el-steps>-->
<!-- &lt;!&ndash; 步骤1选择经营范围 &ndash;&gt;-->
<!-- <div v-if="activeStep === 0">-->
<!-- <el-form ref="scopeForm" :model="form" label-width="100px">-->
<!-- <el-form-item label="真实姓名" prop="realName" :rules="[{ required: true, message: '请输入真实姓名', trigger: 'blur' }]">-->
<!-- <el-input v-model="form.realName" placeholder="请输入您的真实姓名" />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="身份证号" prop="idCard" :rules="[{ required: true, message: '请输入身份证号', trigger: 'blur' }]">-->
<!-- <el-input v-model="form.idCard" placeholder="请输入身份证号" />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="资质类型" prop="qualificationType" :rules="[{ required: true, message: '请选择资质类型', trigger: 'change' }]">-->
<!-- <el-select v-model="form.qualificationType" placeholder="请选择资质类型" style="width: 100%;">-->
<!-- <el-option label="执业兽医" value="执业兽医" />-->
<!-- <el-option label="官方兽医" value="官方兽医" />-->
<!-- <el-option label="乡村兽医" value="乡村兽医" />-->
<!-- <el-option label="畜牧师" value="畜牧师" />-->
<!-- <el-option label="其他" value="其他" />-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="证书编号" prop="certificateNo" :rules="[{ required: true, message: '请输入证书编号', trigger: 'blur' }]">-->
<!-- <el-input v-model="form.certificateNo" placeholder="请输入证书编号" />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="经营范围" prop="scopeIds" :rules="[{ required: true, message: '请选择至少一个经营范围', trigger: 'change' }]">-->
<!-- <el-select-->
<!-- v-model="selectedScopes"-->
<!-- multiple-->
<!-- placeholder="请选择经营范围"-->
<!-- style="width: 100%;"-->
<!-- @change="handleScopeChange"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="scope in scopeOptions"-->
<!-- :key="scope.value"-->
<!-- :label="scope.label"-->
<!-- :value="scope.value"-->
<!-- />-->
<!-- </el-select>-->
<!-- <div style="color: #909399; font-size: 12px; margin-top: 5px;">-->
<!-- 已选择{{ selectedScopes.length }} -->
<!-- <span v-if="selectedScopes.length > 0" style="color: #f56c6c; margin-left: 10px;">-->
<!-- 请根据经营范围准备相应资质文件-->
<!-- </span>-->
<!-- </div>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<!-- </div>-->
<!-- &lt;!&ndash; 步骤2上传资质 &ndash;&gt;-->
<!-- <div v-if="activeStep === 1">-->
<!-- <div style="margin-bottom: 15px; color: #606266;">-->
<!-- <div>已选择经营范围</div>-->
<!-- <el-tag-->
<!-- v-for="scope in selectedScopes"-->
<!-- :key="scope"-->
<!-- type="info"-->
<!-- style="margin-right: 5px; margin-top: 5px;"-->
<!-- >-->
<!-- {{ getScopeName(scope) }}-->
<!-- </el-tag>-->
<!-- </div>-->
<!-- <div style="margin-bottom: 15px; color: #f56c6c; font-size: 14px;">-->
<!-- <i class="el-icon-warning"></i>-->
<!-- 根据您选择的经营范围需要上传以下资质文件-->
<!-- </div>-->
<!-- <div style="margin-bottom: 20px;">-->
<!-- <div v-for="scope in selectedScopes" :key="scope" style="margin-bottom: 10px;">-->
<!-- <div style="font-weight: bold; margin-bottom: 5px;">{{ getScopeName(scope) }}</div>-->
<!-- <div style="color: #606266; font-size: 13px; padding-left: 10px;">-->
<!-- {{ getRequiredQualifications(scope) }}-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <el-form>-->
<!-- <el-form-item label="资质文件" required>-->
<!-- <el-upload-->
<!-- ref="upload"-->
<!-- action="#"-->
<!-- :multiple="true"-->
<!-- :file-list="fileList"-->
<!-- :auto-upload="false"-->
<!-- :on-change="handleFileChange"-->
<!-- :on-remove="handleRemove"-->
<!-- >-->
<!-- <el-button type="primary">选择文件</el-button>-->
<!-- <div slot="tip" class="el-upload__tip">-->
<!-- 请上传清晰的资质文件照片或扫描件支持JPGPNGPDF格式-->
<!-- </div>-->
<!-- </el-upload>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<!-- </div>-->
<!-- &lt;!&ndash; 步骤3确认提交 &ndash;&gt;-->
<!-- <div v-if="activeStep === 2">-->
<!-- <div style="text-align: center; margin-bottom: 30px;">-->
<!-- <i class="el-icon-circle-check" style="font-size: 60px; color: #67C23A;"></i>-->
<!-- <div style="margin-top: 15px; font-size: 16px; color: #303133;">-->
<!-- 请确认信息无误后提交审核-->
<!-- </div>-->
<!-- </div>-->
<!-- <div style="background: #f8f9fa; padding: 15px; border-radius: 4px; margin-bottom: 20px;">-->
<!-- <div style="margin-bottom: 8px;"><strong>基本信息</strong></div>-->
<!-- <div style="margin-bottom: 5px;">真实姓名{{ form.realName }}</div>-->
<!-- <div style="margin-bottom: 5px;">身份证号{{ form.idCard }}</div>-->
<!-- <div style="margin-bottom: 5px;">资质类型{{ form.qualificationType }}</div>-->
<!-- <div>证书编号{{ form.certificateNo }}</div>-->
<!-- </div>-->
<!-- <div style="background: #f8f9fa; padding: 15px; border-radius: 4px; margin-bottom: 20px;">-->
<!-- <div style="margin-bottom: 8px;"><strong>经营范围</strong></div>-->
<!-- <div>-->
<!-- <el-tag-->
<!-- v-for="scope in selectedScopes"-->
<!-- :key="scope"-->
<!-- type="info"-->
<!-- style="margin-right: 5px; margin-bottom: 5px;"-->
<!-- >-->
<!-- {{ getScopeName(scope) }}-->
<!-- </el-tag>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div style="background: #f8f9fa; padding: 15px; border-radius: 4px; margin-bottom: 20px;">-->
<!-- <div style="margin-bottom: 8px;"><strong>上传文件</strong></div>-->
<!-- <div v-if="fileList.length > 0">-->
<!-- <div v-for="(file, index) in fileList" :key="index" style="margin-bottom: 5px;">-->
<!-- {{ file.name }}-->
<!-- </div>-->
<!-- </div>-->
<!-- <div v-else style="color: #909399;">暂无文件</div>-->
<!-- </div>-->
<!-- </div>-->
<!-- &lt;!&ndash; 操作按钮 &ndash;&gt;-->
<!-- <div slot="footer" class="dialog-footer">-->
<!-- <div v-if="activeStep > 0" style="float: left;">-->
<!-- <el-button @click="prevStep">上一步</el-button>-->
<!-- </div>-->
<!-- <div v-if="activeStep < 2">-->
<!-- <el-button @click="closeDialog">稍后填写</el-button>-->
<!-- <el-button type="primary" @click="nextStep">-->
<!-- {{ activeStep === 1 ? '下一步' : '下一步' }}-->
<!-- </el-button>-->
<!-- </div>-->
<!-- <div v-if="activeStep === 2">-->
<!-- <el-button @click="prevStep">上一步</el-button>-->
<!-- <el-button type="primary" @click="submitQualification" :loading="loading">-->
<!-- 提交审核-->
<!-- </el-button>-->
<!-- </div>-->
<!-- </div>-->
<!-- </el-dialog>-->
<!-- </div>-->
</template>
<script>
export default {
name: "Syd",
data() {
return {
title: "兽医资质审核",
flag: true,
dialogVisible: false,
activeStep: 0,
form: {
realName: "",
idCard: "",
qualificationType: "",
certificateNo: ""
},
selectedScopes: [],
scopeOptions: []
}
}
}
</script>
<style scoped lang="scss">
.vetnotshenhe-title {
text-align: center;
color: #42B983;
}
</style>

156
chenhai-ui/src/views/vet/article/index.vue

@ -9,46 +9,46 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="作者" prop="vetId">
<el-input
v-model="queryParams.vetId"
placeholder="请输入作者"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="兽医姓名" prop="vetName">
<el-input
v-model="queryParams.vetName"
placeholder="请输入兽医姓名"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="兽医头像" prop="vetAvatar">
<el-input
v-model="queryParams.vetAvatar"
placeholder="请输入兽医头像"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="兽医职称" prop="vetTitle">
<el-input
v-model="queryParams.vetTitle"
placeholder="请输入兽医职称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="分类ID" prop="categoryId">
<el-input
v-model="queryParams.categoryId"
placeholder="请输入分类ID"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="作者" prop="vetId">-->
<!-- <el-input-->
<!-- v-model="queryParams.vetId"-->
<!-- placeholder="请输入作者"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="兽医姓名" prop="vetName">-->
<!-- <el-input-->
<!-- v-model="queryParams.vetName"-->
<!-- placeholder="请输入兽医姓名"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="兽医头像" prop="vetAvatar">-->
<!-- <el-input-->
<!-- v-model="queryParams.vetAvatar"-->
<!-- placeholder="请输入兽医头像"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="兽医职称" prop="vetTitle">-->
<!-- <el-input-->
<!-- v-model="queryParams.vetTitle"-->
<!-- placeholder="请输入兽医职称"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="分类ID" prop="categoryId">-->
<!-- <el-input-->
<!-- v-model="queryParams.categoryId"-->
<!-- placeholder="请输入分类ID"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<el-form-item label="分类名称" prop="categoryName">
<el-input
v-model="queryParams.categoryName"
@ -151,7 +151,7 @@
<el-table v-loading="loading" :data="articleList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="主键ID" align="center" prop="id" />
<!-- <el-table-column label="主键ID" align="center" prop="id" />-->
<el-table-column label="文章标题" align="center" prop="title" />
<el-table-column label="文章内容" align="center" prop="content" />
<el-table-column label="文章摘要" align="center" prop="summary" />
@ -161,11 +161,11 @@
</template>
</el-table-column>
<el-table-column label="文章图片" align="center" prop="images" />
<el-table-column label="作者" align="center" prop="vetId" />
<el-table-column label="兽医姓名" align="center" prop="vetName" />
<el-table-column label="兽医头像" align="center" prop="vetAvatar" />
<el-table-column label="兽医职称" align="center" prop="vetTitle" />
<el-table-column label="分类ID" align="center" prop="categoryId" />
<!-- <el-table-column label="作者" align="center" prop="vetId" />-->
<!-- <el-table-column label="兽医姓名" align="center" prop="vetName" />-->
<!-- <el-table-column label="兽医头像" align="center" prop="vetAvatar" />-->
<!-- <el-table-column label="兽医职称" align="center" prop="vetTitle" />-->
<!-- <el-table-column label="分类ID" align="center" prop="categoryId" />-->
<el-table-column label="分类名称" align="center" prop="categoryName" />
<el-table-column label="标签" align="center" prop="tags" />
<el-table-column label="是否置顶" align="center" prop="isTop" />
@ -178,21 +178,25 @@
<span>{{ parseTime(scope.row.publishTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="180">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
style="color: #42B983"
class = "article-btn alter-btn"
@click="handleUpdate(scope.row)"
v-hasPermi="['vet:article:edit']"
v-hasPermi="['vet:info:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
style="color: #f28888"
class = "article-btn delete-btn"
@click="handleDelete(scope.row)"
v-hasPermi="['vet:article:remove']"
v-hasPermi="['vet:info:remove']"
>删除</el-button>
</template>
</el-table-column>
@ -224,21 +228,21 @@
<el-form-item label="文章图片" prop="images">
<el-input v-model="form.images" type="textarea" placeholder="请输入内容" />
</el-form-item>
<el-form-item label="作者" prop="vetId">
<el-input v-model="form.vetId" placeholder="请输入作者" />
</el-form-item>
<el-form-item label="兽医姓名" prop="vetName">
<el-input v-model="form.vetName" placeholder="请输入兽医姓名" />
</el-form-item>
<el-form-item label="兽医头像" prop="vetAvatar">
<el-input v-model="form.vetAvatar" placeholder="请输入兽医头像" />
</el-form-item>
<el-form-item label="兽医职称" prop="vetTitle">
<el-input v-model="form.vetTitle" placeholder="请输入兽医职称" />
</el-form-item>
<el-form-item label="分类ID" prop="categoryId">
<el-input v-model="form.categoryId" placeholder="请输入分类ID" />
</el-form-item>
<!-- <el-form-item label="作者" prop="vetId">-->
<!-- <el-input v-model="form.vetId" placeholder="请输入作者" />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="兽医姓名" prop="vetName">-->
<!-- <el-input v-model="form.vetName" placeholder="请输入兽医姓名" />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="兽医头像" prop="vetAvatar">-->
<!-- <el-input v-model="form.vetAvatar" placeholder="请输入兽医头像" />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="兽医职称" prop="vetTitle">-->
<!-- <el-input v-model="form.vetTitle" placeholder="请输入兽医职称" />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="分类ID" prop="categoryId">-->
<!-- <el-input v-model="form.categoryId" placeholder="请输入分类ID" />-->
<!-- </el-form-item>-->
<el-form-item label="分类名称" prop="categoryName">
<el-input v-model="form.categoryName" placeholder="请输入分类名称" />
</el-form-item>
@ -456,3 +460,27 @@ export default {
}
}
</script>
<style scoped lang="scss">
/* 操作按钮样式 */
.article-btn {
padding: 6px 10px;
border-radius: 4px;
margin: 0 10px;
transition: all 0.3s ease;
}
.alter-btn:hover{
background-color: rgb(230, 255, 238);
transform: translateY(-1px);
}
.delete-btn:hover {
background-color: rgba(245, 108, 108, 0.1);
transform: translateY(-1px);
}
</style>

2
chenhai-ui/src/views/vet/certificate/index.vue

@ -149,7 +149,7 @@
<span>{{ parseTime(scope.row.lastRemindTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="180">
<template slot-scope="scope">
<el-button
size="mini"

2
chenhai-ui/src/views/vet/info/index.vue

@ -223,7 +223,7 @@
</el-dialog>
<!-- 详情对话框 -->
<el-dialog :title="title" :visible.sync="flag" width="1400px" append-to-body>
<el-dialog :title="title" :visible.sync="flag" width="1000px" append-to-body>
<Certificate :form-list="form" :certificateList="certificateList"></Certificate>
</el-dialog>
</div>

2
chenhai-ui/src/views/vet/notification/index.vue

@ -116,7 +116,7 @@
<span>{{ parseTime(scope.row.readTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="180">
<template slot-scope="scope">
<el-button
size="mini"

2
chenhai-ui/src/views/vet/review/index.vue

@ -129,7 +129,7 @@
<span>{{ parseTime(scope.row.replyTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="180">
<template slot-scope="scope">
<el-button
size="mini"

Loading…
Cancel
Save