mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +08:00
去除所有组件的动态操作按钮,改为自定义按钮
This commit is contained in:
parent
8ec6784ce7
commit
c37f48ee90
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-button v-for="d in data" :key="d.method" type="primary" @click="Fn(d.method)">{{ d.text }}</el-button>
|
<el-button v-for="d in data" :key="d.method" type="primary" @click="Fn(d.method)">{{ d.text }}{{ d.method }}</el-button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-button v-for="d in data" :key="d.method" type="primary" @click="Fn(d.method)">{{ d.text }}</el-button>
|
<el-button v-for="d in data" :key="d.method" type="primary" @click="Fn(d.method)">{{ d.text }}{{ d.method }}</el-button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-card>
|
<el-card>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<buttons funid="hidden_check" style="margin-bottom:20px" @save="save" />
|
<el-button type="primary" @click="create">新增</el-button>
|
||||||
|
<el-button type="primary" @click="del">删除</el-button>
|
||||||
|
<el-button type="primary" @click="save">保存</el-button>
|
||||||
|
<el-button type="primary" @click="audit">提交</el-button>
|
||||||
|
<el-button type="primary" @click="unaudit">反提交</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
<el-button type="primary" @click="back">返回列表</el-button>
|
<el-button type="primary" @click="back">返回列表</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
||||||
@ -158,14 +163,12 @@
|
|||||||
<script>
|
<script>
|
||||||
import api from '../../api'
|
import api from '../../api'
|
||||||
import publicApi from '@/api/public'
|
import publicApi from '@/api/public'
|
||||||
import buttons from '@/components/formBtn'
|
|
||||||
import SelUser from '@/components/selUser'
|
import SelUser from '@/components/selUser'
|
||||||
import SelDept from '@/components/selDept'
|
import SelDept from '@/components/selDept'
|
||||||
import { parseDay } from '@/utils/index'
|
import { parseDay } from '@/utils/index'
|
||||||
export default {
|
export default {
|
||||||
name: 'HiddenCheckCreateForm',
|
name: 'HiddenCheckCreateForm',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
SelUser,
|
SelUser,
|
||||||
SelDept
|
SelDept
|
||||||
},
|
},
|
||||||
@ -258,6 +261,11 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
create() {},
|
||||||
|
del() {},
|
||||||
|
audit() {},
|
||||||
|
unaudit() {},
|
||||||
|
upload() {},
|
||||||
onSubmit() {},
|
onSubmit() {},
|
||||||
getCheckMan(data) {
|
getCheckMan(data) {
|
||||||
this.form.hidden_danger__check_man = data.sys_user__user_name
|
this.form.hidden_danger__check_man = data.sys_user__user_name
|
||||||
@ -361,6 +369,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.buttons {
|
.buttons {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin-bottom: 20px;
|
||||||
.el-button--primary {
|
.el-button--primary {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
height: 26.8px;
|
height: 26.8px;
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-card>
|
<el-card>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<buttons funid="hidden_check" style="margin-bottom:20px" @save="save" @upload="upload" />
|
<el-button type="primary" @click="create">新增</el-button>
|
||||||
|
<el-button type="primary" @click="del">删除</el-button>
|
||||||
|
<el-button type="primary" @click="save">保存</el-button>
|
||||||
|
<el-button type="primary" @click="audit">提交</el-button>
|
||||||
|
<el-button type="primary" @click="unaudit">反提交</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
<el-button type="primary" @click="back">返回列表</el-button>
|
<el-button type="primary" @click="back">返回列表</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
||||||
@ -172,7 +177,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import api from '../../api'
|
import api from '../../api'
|
||||||
import publicApi from '@/api/public'
|
import publicApi from '@/api/public'
|
||||||
import buttons from '@/components/formBtn'
|
|
||||||
import SelUser from '@/components/selUser'
|
import SelUser from '@/components/selUser'
|
||||||
import SelDept from '@/components/selDept'
|
import SelDept from '@/components/selDept'
|
||||||
import ShowImages from '@/components/show_images'
|
import ShowImages from '@/components/show_images'
|
||||||
@ -180,7 +184,6 @@ import Attach from '@/components/sys_attach'
|
|||||||
export default {
|
export default {
|
||||||
name: 'HiddenCheckAuditForm',
|
name: 'HiddenCheckAuditForm',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
SelUser,
|
SelUser,
|
||||||
SelDept,
|
SelDept,
|
||||||
ShowImages,
|
ShowImages,
|
||||||
@ -274,6 +277,10 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
create() {},
|
||||||
|
del() {},
|
||||||
|
audit() {},
|
||||||
|
unaudit() {},
|
||||||
upload() {
|
upload() {
|
||||||
this.dialogUploadVisible = true
|
this.dialogUploadVisible = true
|
||||||
},
|
},
|
||||||
@ -383,6 +390,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.buttons {
|
.buttons {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin-bottom: 20px;
|
||||||
.el-button--primary {
|
.el-button--primary {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
height: 26.8px;
|
height: 26.8px;
|
||||||
|
@ -2,7 +2,10 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div>
|
<div>
|
||||||
<buttons funid="hidden_check" @Create="editCreate" @Del="editDelete" @editSave="editSave" @upload="upload" />
|
<el-button type="primary" @click="create">新增</el-button>
|
||||||
|
<el-button type="primary" @click="del">删除</el-button>
|
||||||
|
<el-button type="primary" @click="audit">提交</el-button>
|
||||||
|
<el-button type="primary" @click="unaudit">反提交</el-button>
|
||||||
</div>
|
</div>
|
||||||
<Search funid="hidden_check" @search="search" />
|
<Search funid="hidden_check" @search="search" />
|
||||||
</div>
|
</div>
|
||||||
@ -81,14 +84,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from './api'
|
import api from './api'
|
||||||
import buttons from '@/components/Buttons'
|
|
||||||
import Search from '@/components/Search'
|
import Search from '@/components/Search'
|
||||||
import Attach from '@/components/sys_attach'
|
import Attach from '@/components/sys_attach'
|
||||||
import { parseDay } from '@/utils/index'
|
import { parseDay } from '@/utils/index'
|
||||||
export default {
|
export default {
|
||||||
name: 'HiddenCheck',
|
name: 'HiddenCheck',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
Search,
|
Search,
|
||||||
Attach
|
Attach
|
||||||
},
|
},
|
||||||
@ -253,11 +254,13 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
editCreate() {
|
create() {
|
||||||
const param = `/hidden_danger/hidden_check/create`
|
const param = `/hidden_danger/hidden_check/create`
|
||||||
this.$router.push(param)
|
this.$router.push(param)
|
||||||
},
|
},
|
||||||
Delete(row) {
|
audit() {},
|
||||||
|
unaudit() {},
|
||||||
|
del(row) {
|
||||||
this.ids = []
|
this.ids = []
|
||||||
this.ids.push(row.hidden_danger__hidden_danger_id)
|
this.ids.push(row.hidden_danger__hidden_danger_id)
|
||||||
this.editDelete()
|
this.editDelete()
|
||||||
|
@ -2,7 +2,13 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-card>
|
<el-card>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<buttons funid="hidden_check" style="margin-bottom:20px" @save="save" />
|
<el-button type="primary" @click="create">新增</el-button>
|
||||||
|
<el-button type="primary" @click="del">删除</el-button>
|
||||||
|
<el-button type="primary" @click="save">保存</el-button>
|
||||||
|
<el-button type="primary" @click="audit">提交</el-button>
|
||||||
|
<el-button type="primary" @click="unaudit">反提交</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
|
<el-button type="primary" @click="back">返回列表</el-button>
|
||||||
<el-button type="primary" @click="back">返回列表</el-button>
|
<el-button type="primary" @click="back">返回列表</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
||||||
@ -158,13 +164,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import api from '../../api'
|
import api from '../../api'
|
||||||
import publicApi from '@/api/public'
|
import publicApi from '@/api/public'
|
||||||
import buttons from '@/components/formBtn'
|
|
||||||
import SelUser from '@/components/selUser'
|
import SelUser from '@/components/selUser'
|
||||||
import SelDept from '@/components/selDept'
|
import SelDept from '@/components/selDept'
|
||||||
export default {
|
export default {
|
||||||
name: 'HiddenReformCreateForm',
|
name: 'HiddenReformCreateForm',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
SelUser,
|
SelUser,
|
||||||
SelDept
|
SelDept
|
||||||
},
|
},
|
||||||
@ -241,6 +245,11 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
create() {},
|
||||||
|
del() {},
|
||||||
|
audit() {},
|
||||||
|
unaudit() {},
|
||||||
|
upload() {},
|
||||||
onSubmit() {},
|
onSubmit() {},
|
||||||
getCheckMan(data) {
|
getCheckMan(data) {
|
||||||
this.form.hidden_danger__check_man = data.sys_user__user_name
|
this.form.hidden_danger__check_man = data.sys_user__user_name
|
||||||
@ -347,6 +356,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.buttons {
|
.buttons {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin-bottom: 20px;
|
||||||
.el-button--primary {
|
.el-button--primary {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
height: 26.8px;
|
height: 26.8px;
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-card>
|
<el-card>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<buttons funid="hidden_check" style="margin-bottom:20px" @save="save" @upload="upload" />
|
<el-button type="primary" @click="audit">提交</el-button>
|
||||||
|
<el-button type="primary" @click="unaudit">反提交</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
<el-button type="primary" @click="back">返回列表</el-button>
|
<el-button type="primary" @click="back">返回列表</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
||||||
@ -206,7 +208,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import api from '../../api'
|
import api from '../../api'
|
||||||
import publicApi from '@/api/public'
|
import publicApi from '@/api/public'
|
||||||
import buttons from '@/components/formBtn'
|
|
||||||
import SelUser from '@/components/selUser'
|
import SelUser from '@/components/selUser'
|
||||||
import SelDept from '@/components/selDept'
|
import SelDept from '@/components/selDept'
|
||||||
import ShowImages from '@/components/show_images'
|
import ShowImages from '@/components/show_images'
|
||||||
@ -214,7 +215,6 @@ import Attach from '@/components/sys_attach'
|
|||||||
export default {
|
export default {
|
||||||
name: 'HiddenReformAuditForm',
|
name: 'HiddenReformAuditForm',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
SelUser,
|
SelUser,
|
||||||
SelDept,
|
SelDept,
|
||||||
ShowImages,
|
ShowImages,
|
||||||
@ -298,6 +298,8 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
audit() {},
|
||||||
|
unaudit() {},
|
||||||
upload() {
|
upload() {
|
||||||
this.dialogUploadVisible = true
|
this.dialogUploadVisible = true
|
||||||
},
|
},
|
||||||
@ -407,6 +409,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.buttons {
|
.buttons {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin-bottom: 20px;
|
||||||
.el-button--primary {
|
.el-button--primary {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
height: 26.8px;
|
height: 26.8px;
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div>
|
<div>
|
||||||
<buttons funid="hidden_reform" @Create="editCreate" @Del="editDelete" @editSave="editSave" @upload="upload" />
|
<el-button type="primary" @click="audit">提交</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
</div>
|
</div>
|
||||||
<Search funid="hidden_reform" @search="search" />
|
<Search funid="hidden_reform" @search="search" />
|
||||||
</div>
|
</div>
|
||||||
@ -77,14 +78,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from './api'
|
import api from './api'
|
||||||
import buttons from '@/components/Buttons'
|
|
||||||
import Search from '@/components/Search'
|
import Search from '@/components/Search'
|
||||||
import Attach from '@/components/sys_attach'
|
import Attach from '@/components/sys_attach'
|
||||||
import { parseDay } from '@/utils/index'
|
import { parseDay } from '@/utils/index'
|
||||||
export default {
|
export default {
|
||||||
name: 'HiddenReform',
|
name: 'HiddenReform',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
Search,
|
Search,
|
||||||
Attach
|
Attach
|
||||||
},
|
},
|
||||||
@ -285,6 +284,7 @@ export default {
|
|||||||
editSave() {
|
editSave() {
|
||||||
console.log('editSave')
|
console.log('editSave')
|
||||||
},
|
},
|
||||||
|
audit() {},
|
||||||
upload() {
|
upload() {
|
||||||
if (this.ids.length > 1) {
|
if (this.ids.length > 1) {
|
||||||
this.$message.warning('只能选择一条数据!')
|
this.$message.warning('只能选择一条数据!')
|
||||||
|
@ -2,7 +2,13 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-card>
|
<el-card>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<buttons funid="hidden_check" style="margin-bottom:20px" @save="save" />
|
<el-button type="primary" @click="create">新增</el-button>
|
||||||
|
<el-button type="primary" @click="del">删除</el-button>
|
||||||
|
<el-button type="primary" @click="save">保存</el-button>
|
||||||
|
<el-button type="primary" @click="audit">提交</el-button>
|
||||||
|
<el-button type="primary" @click="unaudit">反提交</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
|
<el-button type="primary" @click="back">返回列表</el-button>
|
||||||
<el-button type="primary" @click="back">返回列表</el-button>
|
<el-button type="primary" @click="back">返回列表</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
||||||
@ -158,13 +164,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import api from '../../api'
|
import api from '../../api'
|
||||||
import publicApi from '@/api/public'
|
import publicApi from '@/api/public'
|
||||||
import buttons from '@/components/formBtn'
|
|
||||||
import SelUser from '@/components/selUser'
|
import SelUser from '@/components/selUser'
|
||||||
import SelDept from '@/components/selDept'
|
import SelDept from '@/components/selDept'
|
||||||
export default {
|
export default {
|
||||||
name: 'HiddenReviewCreateForm',
|
name: 'HiddenReviewCreateForm',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
SelUser,
|
SelUser,
|
||||||
SelDept
|
SelDept
|
||||||
},
|
},
|
||||||
@ -241,6 +245,11 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
create() {},
|
||||||
|
del() {},
|
||||||
|
audit() {},
|
||||||
|
unaudit() {},
|
||||||
|
upload() {},
|
||||||
onSubmit() {},
|
onSubmit() {},
|
||||||
getCheckMan(data) {
|
getCheckMan(data) {
|
||||||
this.form.hidden_danger__check_man = data.sys_user__user_name
|
this.form.hidden_danger__check_man = data.sys_user__user_name
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-card>
|
<el-card>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<buttons funid="hidden_check" style="margin-bottom:20px" @save="save" @upload="upload" />
|
<el-button type="primary" @click="audit">提交</el-button>
|
||||||
|
<el-button type="primary" @click="unaudit">反提交</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
<el-button type="primary" @click="back">返回列表</el-button>
|
<el-button type="primary" @click="back">返回列表</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
||||||
@ -246,7 +248,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import api from '../../api'
|
import api from '../../api'
|
||||||
import publicApi from '@/api/public'
|
import publicApi from '@/api/public'
|
||||||
import buttons from '@/components/formBtn'
|
|
||||||
import SelUser from '@/components/selUser'
|
import SelUser from '@/components/selUser'
|
||||||
import SelDept from '@/components/selDept'
|
import SelDept from '@/components/selDept'
|
||||||
import ShowImages from '@/components/show_images'
|
import ShowImages from '@/components/show_images'
|
||||||
@ -254,7 +255,6 @@ import Attach from '@/components/sys_attach'
|
|||||||
export default {
|
export default {
|
||||||
name: 'HiddenReviewAuditForm',
|
name: 'HiddenReviewAuditForm',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
SelUser,
|
SelUser,
|
||||||
SelDept,
|
SelDept,
|
||||||
ShowImages,
|
ShowImages,
|
||||||
@ -339,6 +339,8 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
audit() {},
|
||||||
|
unaudit() {},
|
||||||
upload() {
|
upload() {
|
||||||
this.dialogUploadVisible = true
|
this.dialogUploadVisible = true
|
||||||
},
|
},
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div>
|
<div>
|
||||||
<buttons funid="hidden_review" @Create="editCreate" @Del="editDelete" @editSave="editSave" @upload="upload" />
|
<el-button type="primary" @click="audit">提交</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
</div>
|
</div>
|
||||||
<Search funid="hidden_review" @search="search" />
|
<Search funid="hidden_review" @search="search" />
|
||||||
</div>
|
</div>
|
||||||
@ -73,14 +74,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from './api'
|
import api from './api'
|
||||||
import buttons from '@/components/Buttons'
|
|
||||||
import Search from '@/components/Search'
|
import Search from '@/components/Search'
|
||||||
import Attach from '@/components/sys_attach'
|
import Attach from '@/components/sys_attach'
|
||||||
import { parseDay } from '@/utils/index'
|
import { parseDay } from '@/utils/index'
|
||||||
export default {
|
export default {
|
||||||
name: 'HiddenReview',
|
name: 'HiddenReview',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
Search,
|
Search,
|
||||||
Attach
|
Attach
|
||||||
},
|
},
|
||||||
@ -261,6 +260,7 @@ export default {
|
|||||||
editSave() {
|
editSave() {
|
||||||
console.log('editSave')
|
console.log('editSave')
|
||||||
},
|
},
|
||||||
|
audit() {},
|
||||||
upload() {
|
upload() {
|
||||||
console.log('upload')
|
console.log('upload')
|
||||||
},
|
},
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-card>
|
<el-card>
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div>
|
<div style="margin-bottom:20px;">
|
||||||
<buttons funid="insp_item" style="margin-bottom:10px" @editCreate="editCreate" @editDelete="editDelete" />
|
<el-button type="primary" @click="editCreate">新增</el-button>
|
||||||
|
<el-button type="primary" @click="editDelete">删除</el-button>
|
||||||
|
<el-button type="primary" @click="editSave">保存</el-button>
|
||||||
|
<el-button type="primary" @click="editCopy">复制</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
|
<el-button type="primary" @click="expxls">另存数据</el-button>
|
||||||
</div>
|
</div>
|
||||||
<Search funid="insp_item" :wsql="where_sql" :wvalue="id" :wtype="where_type" @search="search" />
|
<Search funid="insp_item" :wsql="where_sql" :wvalue="id" :wtype="where_type" @search="search" />
|
||||||
</div>
|
</div>
|
||||||
@ -67,12 +72,10 @@
|
|||||||
<script>
|
<script>
|
||||||
import api from './api'
|
import api from './api'
|
||||||
import publicApi from '@/api/public'
|
import publicApi from '@/api/public'
|
||||||
import buttons from '@/components/Buttons'
|
|
||||||
import Search from '@/components/Search'
|
import Search from '@/components/Search'
|
||||||
export default {
|
export default {
|
||||||
name: 'SafeIdsp',
|
name: 'SafeIdsp',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
Search
|
Search
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -216,6 +219,10 @@ export default {
|
|||||||
this.dialogFormVisible = true
|
this.dialogFormVisible = true
|
||||||
this.form = JSON.parse(JSON.stringify(row))
|
this.form = JSON.parse(JSON.stringify(row))
|
||||||
},
|
},
|
||||||
|
editSave() {},
|
||||||
|
editCopy() {},
|
||||||
|
upload() {},
|
||||||
|
expxls() {},
|
||||||
Delete(row) {
|
Delete(row) {
|
||||||
this.ids = []
|
this.ids = []
|
||||||
this.ids.push(row.insp_item__insp_item_id)
|
this.ids.push(row.insp_item__insp_item_id)
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div>
|
<div>
|
||||||
<buttons funid="insp_name" @editCreate="editCreate" @editDelete="editDelete" @editSave="editSave" @upload="upload" />
|
<el-button type="primary" @click="editCreate">新增</el-button>
|
||||||
|
<el-button type="primary" @click="editDelete">删除</el-button>
|
||||||
|
<el-button type="primary" @click="editSave">保存</el-button>
|
||||||
|
<el-button type="primary" @click="editCopy">复制</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
|
<el-button type="primary" @click="expxls">另存数据</el-button>
|
||||||
</div>
|
</div>
|
||||||
<!-- <Search funid="insp_name" @search="search" /> -->
|
<!-- <Search funid="insp_name" @search="search" /> -->
|
||||||
</div>
|
</div>
|
||||||
@ -87,13 +92,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from './api'
|
import api from './api'
|
||||||
import buttons from '@/components/Buttons'
|
|
||||||
import Search from '@/components/Search'
|
import Search from '@/components/Search'
|
||||||
import InspItem from './components/insp_item'
|
import InspItem from './components/insp_item'
|
||||||
export default {
|
export default {
|
||||||
name: 'SafeIdsp',
|
name: 'SafeIdsp',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
Search,
|
Search,
|
||||||
InspItem
|
InspItem
|
||||||
},
|
},
|
||||||
@ -207,6 +210,8 @@ export default {
|
|||||||
this.dialogFormVisible = true
|
this.dialogFormVisible = true
|
||||||
this.form = JSON.parse(JSON.stringify(row))
|
this.form = JSON.parse(JSON.stringify(row))
|
||||||
},
|
},
|
||||||
|
editCopy() {},
|
||||||
|
expxls() {},
|
||||||
Delete(row) {
|
Delete(row) {
|
||||||
this.ids = []
|
this.ids = []
|
||||||
this.ids.push(row.insp_name__insp_name_id)
|
this.ids.push(row.insp_name__insp_name_id)
|
||||||
|
@ -86,14 +86,16 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
const validateUsername = (rule, value, callback) => {
|
const validateUsername = (rule, value, callback) => {
|
||||||
if (!validUsername(value)) {
|
if (!validUsername(value)) {
|
||||||
callback(new Error('Please enter the correct user name'))
|
callback(new Error('请输入正确的用户名'))
|
||||||
} else {
|
} else {
|
||||||
callback()
|
callback()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const validatePassword = (rule, value, callback) => {
|
const validatePassword = (rule, value, callback) => {
|
||||||
if (value.length < 3) {
|
if (!value) {
|
||||||
callback(new Error('The password can not be less than 6 digits'))
|
callback(new Error('请输入密码'))
|
||||||
|
} else if (value.length < 3) {
|
||||||
|
callback(new Error('密码不能少于3位'))
|
||||||
} else {
|
} else {
|
||||||
callback()
|
callback()
|
||||||
}
|
}
|
||||||
@ -131,6 +133,9 @@ export default {
|
|||||||
// window.addEventListener('storage', this.afterQRScan)
|
// window.addEventListener('storage', this.afterQRScan)
|
||||||
this.loginForm.username = localStorage.getItem('UserName')
|
this.loginForm.username = localStorage.getItem('UserName')
|
||||||
this.loginForm.password = localStorage.getItem('Password')
|
this.loginForm.password = localStorage.getItem('Password')
|
||||||
|
if (this.loginForm.username && this.loginForm.password) {
|
||||||
|
this.checked = true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.loginForm.username === '') {
|
if (this.loginForm.username === '') {
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-card>
|
<el-card>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<buttons funid="safe_insp" style="margin-bottom:20px" @save="save" />
|
<el-button type="primary" @click="create">新增</el-button>
|
||||||
|
<el-button type="primary" @click="del">删除</el-button>
|
||||||
|
<el-button type="primary" @click="save">保存</el-button>
|
||||||
|
<el-button type="primary" @click="audit">提交</el-button>
|
||||||
|
<el-button type="primary" @click="unaudit">反提交</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
<el-button type="primary" @click="back">返回列表</el-button>
|
<el-button type="primary" @click="back">返回列表</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
||||||
@ -122,14 +127,12 @@
|
|||||||
<script>
|
<script>
|
||||||
import api from '../../api'
|
import api from '../../api'
|
||||||
import publicApi from '@/api/public'
|
import publicApi from '@/api/public'
|
||||||
import buttons from '@/components/formBtn'
|
|
||||||
import InspDet from '../insp_det'
|
import InspDet from '../insp_det'
|
||||||
import SelUser from '@/components/selUser'
|
import SelUser from '@/components/selUser'
|
||||||
import InspName from '../inspName'
|
import InspName from '../inspName'
|
||||||
export default {
|
export default {
|
||||||
name: 'EditForm',
|
name: 'EditForm',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
SelUser,
|
SelUser,
|
||||||
InspDet,
|
InspDet,
|
||||||
InspName
|
InspName
|
||||||
@ -234,6 +237,11 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
create() {},
|
||||||
|
del() {},
|
||||||
|
audit() {},
|
||||||
|
unaudit() {},
|
||||||
|
upload() {},
|
||||||
onSubmit() {},
|
onSubmit() {},
|
||||||
updateUser(data) {
|
updateUser(data) {
|
||||||
this.form.safe_insp__insp_man = data.sys_user__user_name
|
this.form.safe_insp__insp_man = data.sys_user__user_name
|
||||||
@ -286,6 +294,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.buttons {
|
.buttons {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin-bottom:20px;
|
||||||
.el-button--primary {
|
.el-button--primary {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
height: 26.8px;
|
height: 26.8px;
|
||||||
|
@ -2,8 +2,12 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div>
|
<div class="buttons">
|
||||||
<buttons funid="insp_det" style="margin-bottom:10px" @Create="editCreate" @Del="editDelete" @upload="upload" />
|
<el-button type="primary" @click="editCreate">新增</el-button>
|
||||||
|
<el-button type="primary" @click="editDelete">删除</el-button>
|
||||||
|
<el-button type="primary" @click="editCopy">复制</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
|
<el-button type="primary" @click="expxls">另存数据</el-button>
|
||||||
</div>
|
</div>
|
||||||
<Search funid="insp_det" :wsql="where_sql" :wvalue="where_value" :wtype="where_type" @search="search" />
|
<Search funid="insp_det" :wsql="where_sql" :wvalue="where_value" :wtype="where_type" @search="search" />
|
||||||
</div>
|
</div>
|
||||||
@ -98,13 +102,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import api from './api'
|
import api from './api'
|
||||||
import publicApi from '@/api/public'
|
import publicApi from '@/api/public'
|
||||||
import buttons from '@/components/Buttons'
|
|
||||||
import Search from '@/components/Search'
|
import Search from '@/components/Search'
|
||||||
import Attach from '@/components/sys_attach'
|
import Attach from '@/components/sys_attach'
|
||||||
export default {
|
export default {
|
||||||
name: 'SafeIdsp',
|
name: 'SafeIdsp',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
Search,
|
Search,
|
||||||
Attach
|
Attach
|
||||||
},
|
},
|
||||||
@ -237,6 +239,8 @@ export default {
|
|||||||
this.whereSql = sql
|
this.whereSql = sql
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
editCopy() {},
|
||||||
|
expxls() {},
|
||||||
upload() {
|
upload() {
|
||||||
if (this.ids.length > 1) {
|
if (this.ids.length > 1) {
|
||||||
this.$message.warning('只能选择一条数据!')
|
this.$message.warning('只能选择一条数据!')
|
||||||
@ -344,4 +348,7 @@ export default {
|
|||||||
.el-card {
|
.el-card {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
.buttons {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div>
|
<div>
|
||||||
<buttons funid="insp_det" @editCreate="editCreate" @editDelete="editDelete" @editSave="editSave" @upload="upload" />
|
<el-button type="primary" @click="editCreate">新增</el-button>
|
||||||
|
<el-button type="primary" @click="editDelete">删除</el-button>
|
||||||
|
<el-button type="primary" @click="editSave">保存</el-button>
|
||||||
|
<el-button type="primary" @click="editCopy">复制</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
|
<el-button type="primary" @click="expxls">另存数据</el-button>
|
||||||
</div>
|
</div>
|
||||||
<Search funid="safe_insp" @search="search" />
|
<Search funid="safe_insp" @search="search" />
|
||||||
</div>
|
</div>
|
||||||
@ -66,13 +71,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from './api'
|
import api from './api'
|
||||||
import buttons from '@/components/Buttons'
|
|
||||||
import Search from '@/components/Search'
|
import Search from '@/components/Search'
|
||||||
import { parseDay } from '@/utils/index'
|
import { parseDay } from '@/utils/index'
|
||||||
export default {
|
export default {
|
||||||
name: 'SafeIdsp',
|
name: 'SafeIdsp',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
Search
|
Search
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -103,7 +106,6 @@ export default {
|
|||||||
}, {
|
}, {
|
||||||
prop: 'safe_insp__insp_name',
|
prop: 'safe_insp__insp_name',
|
||||||
label: '巡检名称',
|
label: '巡检名称',
|
||||||
width: '250px',
|
|
||||||
show: true
|
show: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -319,6 +321,8 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
editCopy() {},
|
||||||
|
expxls() {},
|
||||||
Delete(row) {
|
Delete(row) {
|
||||||
this.ids = []
|
this.ids = []
|
||||||
this.ids.push(row.sys_dept__dept_id)
|
this.ids.push(row.sys_dept__dept_id)
|
||||||
|
@ -2,17 +2,20 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div>
|
<div>
|
||||||
<buttons funid="sys_dept" @editCreate="editCreate" @editDelete="editDelete" @editSave="editSave" @upload="upload" />
|
<el-button type="primary" @click="editCreate">新增</el-button>
|
||||||
|
<el-button type="primary" @click="editDelete">删除</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
</div>
|
</div>
|
||||||
<Search funid="sys_dept" @search="search" />
|
<Search funid="sys_dept" @search="search" />
|
||||||
</div>
|
</div>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="5">
|
<el-col :span="3" class="tree">
|
||||||
<el-card>
|
<el-card>
|
||||||
|
<div class="tree_title">安全组织架构</div>
|
||||||
<el-tree :data="treeData" default-expand-all :props="defaultProps" @node-click="handleNodeClick" />
|
<el-tree :data="treeData" default-expand-all :props="defaultProps" @node-click="handleNodeClick" />
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="19">
|
<el-col :span="21">
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-table
|
<el-table
|
||||||
ref="deptTable"
|
ref="deptTable"
|
||||||
@ -99,13 +102,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from './api'
|
import api from './api'
|
||||||
import buttons from '@/components/Buttons'
|
|
||||||
import Search from '@/components/Search'
|
import Search from '@/components/Search'
|
||||||
import AdutiDept from './components/auditDept'
|
import AdutiDept from './components/auditDept'
|
||||||
export default {
|
export default {
|
||||||
name: 'Guide',
|
name: 'Guide',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
Search,
|
Search,
|
||||||
AdutiDept
|
AdutiDept
|
||||||
},
|
},
|
||||||
@ -421,4 +422,20 @@ export default {
|
|||||||
overflow-x:auto;
|
overflow-x:auto;
|
||||||
overflow-y:auto;
|
overflow-y:auto;
|
||||||
}
|
}
|
||||||
|
.tree{
|
||||||
|
::v-deep .el-card__body {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tree_title{
|
||||||
|
width: 100%;
|
||||||
|
height: 30px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
padding: 2px;
|
||||||
|
line-height: 30px;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: bold;
|
||||||
|
background-color: #42b983;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -2,12 +2,14 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div>
|
<div>
|
||||||
<buttons funid="sys_dept" @editCreate="editCreate" @editDelete="editDelete" @editSave="editSave" @upload="upload" />
|
<el-button type="primary" @click="editCreate">新增</el-button>
|
||||||
|
<el-button type="primary" @click="editDelete">删除</el-button>
|
||||||
|
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||||
</div>
|
</div>
|
||||||
<Search funid="sys_user" @search="search" />
|
<Search funid="sys_user" @search="search" />
|
||||||
</div>
|
</div>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="3">
|
<el-col :span="3" class="tree">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div class="tree_title">安全组织架构</div>
|
<div class="tree_title">安全组织架构</div>
|
||||||
<el-tree :data="treeData" default-expand-all :props="defaultProps" @node-click="handleNodeClick" />
|
<el-tree :data="treeData" default-expand-all :props="defaultProps" @node-click="handleNodeClick" />
|
||||||
@ -117,14 +119,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from './api'
|
import api from './api'
|
||||||
import buttons from '@/components/Buttons'
|
|
||||||
import Search from '@/components/Search'
|
import Search from '@/components/Search'
|
||||||
import AdutiUser from './components/auditUser'
|
import AdutiUser from './components/auditUser'
|
||||||
import Attach from '@/components/sys_attach'
|
import Attach from '@/components/sys_attach'
|
||||||
export default {
|
export default {
|
||||||
name: 'User',
|
name: 'User',
|
||||||
components: {
|
components: {
|
||||||
buttons,
|
|
||||||
Search,
|
Search,
|
||||||
AdutiUser,
|
AdutiUser,
|
||||||
Attach
|
Attach
|
||||||
@ -463,8 +463,10 @@ export default {
|
|||||||
.el-card {
|
.el-card {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
::v-deep .el-card__body {
|
.tree{
|
||||||
padding: 0px;
|
::v-deep .el-card__body {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.tree_title{
|
.tree_title{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user