Merge branch 'material-ui' of http://192.168.0.56:3000/bonus/bonus-ui into material-ui
This commit is contained in:
commit
2d38ccd56d
23
src/App.vue
23
src/App.vue
|
|
@ -1,33 +1,56 @@
|
|||
<template>
|
||||
<!-- 应用程序根容器 -->
|
||||
<div id="app">
|
||||
<!-- 路由视图组件,用于显示当前路由对应的组件 -->
|
||||
<router-view />
|
||||
<!-- 主题选择器组件 -->
|
||||
<theme-picker />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// 导入主题选择器组件
|
||||
import ThemePicker from "@/components/ThemePicker";
|
||||
// 导入 vuex 的 mapActions 辅助函数
|
||||
import { mapActions } from 'vuex'
|
||||
// 导入配置工具函数
|
||||
import { get } from '@/utils/config'
|
||||
// 警告通知组件(当前已注释)
|
||||
// import AlertNotification from "@/views/warning/AlertNotification.vue";
|
||||
|
||||
export default {
|
||||
// 组件名称
|
||||
name: "App",
|
||||
|
||||
// 注册子组件
|
||||
components: { ThemePicker },
|
||||
|
||||
// 组件创建时的生命周期钩子
|
||||
created() {
|
||||
// 获取系统配置信息
|
||||
get();
|
||||
},
|
||||
|
||||
// vue-meta 配置,用于动态设置页面标题
|
||||
metaInfo() {
|
||||
return {
|
||||
// 从 vuex store 中获取动态标题
|
||||
// 仅在启用动态标题功能时才使用 store 中的标题
|
||||
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
|
||||
|
||||
// 标题模板函数,用于生成最终的页面标题
|
||||
titleTemplate: title => {
|
||||
// 如果有具体页面标题,则拼接应用名称
|
||||
// 如果没有具体页面标题,则只显示应用名称
|
||||
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 隐藏主题选择器组件 */
|
||||
#app .theme-picker {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -98,8 +98,8 @@
|
|||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="250">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" plain icon="el-icon-zoom-in" @click="handleSee(scope.row)" >查看</el-button>
|
||||
<el-button size="mini" type="primary" plain icon="el-icon-edit" v-if="scope.row.repairStatusCode!='1'" @click="handleUpdate(scope.row)">维修</el-button>
|
||||
<el-button size="mini" type="danger" icon="el-icon-delete" @click="handleReject(scope.row)">驳回</el-button>
|
||||
<el-button size="mini" type="primary" plain icon="el-icon-edit" v-if="scope.row.repairStatusCode=='0'" @click="handleUpdate(scope.row)">维修</el-button>
|
||||
<el-button size="mini" type="danger" icon="el-icon-delete" v-if="scope.row.repairStatusCode=='0'" @click="handleReject(scope.row)">驳回</el-button>
|
||||
<el-button size="mini" type="success" @click="handlePrint(scope.row)">维修单</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
@ -689,7 +689,7 @@ export default {
|
|||
|
||||
//是否可用勾选框
|
||||
selectable(row) {
|
||||
if (row.repairStatusCode == "1") {
|
||||
if (row.repairStatusCode == "1" || row.repairStatusCode == "2") {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue