Commit 2de22615 authored by zhangyichen's avatar zhangyichen

修改

parent e582b960
...@@ -17,14 +17,6 @@ export function getConfig(configId) { ...@@ -17,14 +17,6 @@ export function getConfig(configId) {
}) })
} }
// 根据参数键名查询参数值
export function getConfigKey(configKey) {
return request({
// url: '/system/config/configKey/' + configKey,
method: 'get'
})
}
// 新增参数配置 // 新增参数配置
export function addConfig(data) { export function addConfig(data) {
return request({ return request({
......
...@@ -29,7 +29,6 @@ import '@/permission' // permission control ...@@ -29,7 +29,6 @@ import '@/permission' // permission control
// mockXHR() // mockXHR()
import { includePermission } from '@/utils/common' import { includePermission } from '@/utils/common'
import { getDicts } from '@/api/system/dict/data' import { getDicts } from '@/api/system/dict/data'
import { getConfigKey } from '@/api/system/config'
import { parseTime, resetForm, addDateRange, selectDictLabel, download, handleTree, addDateRangeMothon, addDateLoginMothon } from '@/utils/common' import { parseTime, resetForm, addDateRange, selectDictLabel, download, handleTree, addDateRangeMothon, addDateLoginMothon } from '@/utils/common'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import { uploadPublic } from '@/api/fileUploadPublic' import { uploadPublic } from '@/api/fileUploadPublic'
...@@ -47,7 +46,6 @@ Viewer.setDefaults({ ...@@ -47,7 +46,6 @@ Viewer.setDefaults({
// 全局方法挂载 // 全局方法挂载
Vue.prototype.getDicts = getDicts Vue.prototype.getDicts = getDicts
Vue.prototype.getConfigKey = getConfigKey
Vue.prototype.parseTime = parseTime Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange Vue.prototype.addDateRange = addDateRange
......
...@@ -451,8 +451,6 @@ export default { ...@@ -451,8 +451,6 @@ export default {
open: false, open: false,
// 部门名称 // 部门名称
deptName: undefined, deptName: undefined,
// 默认密码
initPassword: undefined,
importLoading: false, importLoading: false,
// // 时间范围 // // 时间范围
// dateRange: ['', ''], // dateRange: ['', ''],
...@@ -591,9 +589,6 @@ export default { ...@@ -591,9 +589,6 @@ export default {
created() { created() {
this.getList() this.getList()
this.getTreeSelect() this.getTreeSelect()
this.getConfigKey('sys.user.initPassword').then(response => {
this.initPassword = response.msg
})
}, },
methods: { methods: {
changeValue() { changeValue() {
......
...@@ -451,8 +451,6 @@ export default { ...@@ -451,8 +451,6 @@ export default {
open: false, open: false,
// 部门名称 // 部门名称
deptName: undefined, deptName: undefined,
// 默认密码
initPassword: undefined,
importLoading: false, importLoading: false,
// // 时间范围 // // 时间范围
// dateRange: ['', ''], // dateRange: ['', ''],
...@@ -591,9 +589,6 @@ export default { ...@@ -591,9 +589,6 @@ export default {
created() { created() {
this.getList() this.getList()
this.getTreeSelect() this.getTreeSelect()
this.getConfigKey('sys.user.initPassword').then(response => {
this.initPassword = response.msg
})
}, },
methods: { methods: {
changeValue() { changeValue() {
......
...@@ -451,8 +451,6 @@ export default { ...@@ -451,8 +451,6 @@ export default {
open: false, open: false,
// 部门名称 // 部门名称
deptName: undefined, deptName: undefined,
// 默认密码
initPassword: undefined,
importLoading: false, importLoading: false,
// // 时间范围 // // 时间范围
// dateRange: ['', ''], // dateRange: ['', ''],
...@@ -591,9 +589,6 @@ export default { ...@@ -591,9 +589,6 @@ export default {
created() { created() {
this.getList() this.getList()
this.getTreeSelect() this.getTreeSelect()
this.getConfigKey('sys.user.initPassword').then(response => {
this.initPassword = response.msg
})
}, },
methods: { methods: {
changeValue() { changeValue() {
......
...@@ -451,8 +451,6 @@ export default { ...@@ -451,8 +451,6 @@ export default {
open: false, open: false,
// 部门名称 // 部门名称
deptName: undefined, deptName: undefined,
// 默认密码
initPassword: undefined,
importLoading: false, importLoading: false,
// // 时间范围 // // 时间范围
// dateRange: ['', ''], // dateRange: ['', ''],
...@@ -591,9 +589,6 @@ export default { ...@@ -591,9 +589,6 @@ export default {
created() { created() {
this.getList() this.getList()
this.getTreeSelect() this.getTreeSelect()
this.getConfigKey('sys.user.initPassword').then(response => {
this.initPassword = response.msg
})
}, },
methods: { methods: {
changeValue() { changeValue() {
......
...@@ -451,8 +451,6 @@ export default { ...@@ -451,8 +451,6 @@ export default {
open: false, open: false,
// 部门名称 // 部门名称
deptName: undefined, deptName: undefined,
// 默认密码
initPassword: undefined,
importLoading: false, importLoading: false,
// // 时间范围 // // 时间范围
// dateRange: ['', ''], // dateRange: ['', ''],
...@@ -591,9 +589,6 @@ export default { ...@@ -591,9 +589,6 @@ export default {
created() { created() {
this.getList() this.getList()
this.getTreeSelect() this.getTreeSelect()
this.getConfigKey('sys.user.initPassword').then(response => {
this.initPassword = response.msg
})
}, },
methods: { methods: {
changeValue() { changeValue() {
......
...@@ -84,7 +84,6 @@ ...@@ -84,7 +84,6 @@
</template>--> </template>-->
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-hasPermi="['sys:menu:update']"
size="mini" size="mini"
type="text" type="text"
style="color: #49cec9" style="color: #49cec9"
...@@ -92,7 +91,6 @@ ...@@ -92,7 +91,6 @@
>修改</el-button> >修改</el-button>
<el-switch <el-switch
v-model="scope.row.flag" v-model="scope.row.flag"
v-hasPermi="['sys:menu:toggle']"
active-value="1" active-value="1"
inactive-value="0" inactive-value="0"
@change="handleStatusChange(scope.row)" @change="handleStatusChange(scope.row)"
...@@ -104,7 +102,6 @@ ...@@ -104,7 +102,6 @@
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item> <el-dropdown-item>
<el-button <el-button
v-hasPermi="['sys:menu:delete']"
size="mini" size="mini"
type="text" type="text"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
...@@ -112,7 +109,6 @@ ...@@ -112,7 +109,6 @@
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item> <el-dropdown-item>
<el-button <el-button
v-hasPermi="['sys:menu:add']"
size="mini" size="mini"
type="text" type="text"
@click="handleAdd(scope.row)" @click="handleAdd(scope.row)"
......
...@@ -51,8 +51,9 @@ ...@@ -51,8 +51,9 @@
<!-- icon="el-icon-plus"--> <!-- icon="el-icon-plus"-->
<!-- @click="handleFormAdd"--> <!-- @click="handleFormAdd"-->
<!-- >表单页新增模板</el-button>--> <!-- >表单页新增模板</el-button>-->
<!-- v-hasPermi="['sys:user:add']"-->
<el-button <el-button
v-hasPermi="['sys:user:add']"
style="padding: 8px 7px;" style="padding: 8px 7px;"
type="primary" type="primary"
size="small" size="small"
...@@ -460,8 +461,6 @@ export default { ...@@ -460,8 +461,6 @@ export default {
open: false, open: false,
// 部门名称 // 部门名称
deptName: undefined, deptName: undefined,
// 默认密码
initPassword: undefined,
importLoading: false, importLoading: false,
// // 时间范围 // // 时间范围
// dateRange: ['', ''], // dateRange: ['', ''],
...@@ -615,9 +614,6 @@ export default { ...@@ -615,9 +614,6 @@ export default {
} }
this.getList() this.getList()
this.getTreeSelect() this.getTreeSelect()
this.getConfigKey('sys.user.initPassword').then(response => {
this.initPassword = response.msg
})
}, },
methods: { methods: {
changeValue() { changeValue() {
......
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