Commit 63509351 authored by 李苏's avatar 李苏 💬

界面

parent 6507c7db
...@@ -34,10 +34,11 @@ ...@@ -34,10 +34,11 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="发布部门" ref="bmid" prop="bmid"> <el-form-item label="发布部门" ref="bmid" prop="bmid">
<el-select :disabled="readonly" style="width: 100%;" :filterable='true' v-model="form.bmid" placeholder="请选择"> <!-- <el-select :disabled="readonly" style="width: 100%;" :filterable='true' v-model="form.bmid" placeholder="请选择">
<el-option :key="index" v-for="(item,index) in bmList" :label="item.bmmc" :value="item.id"> <el-option :key="index" v-for="(item,index) in bmList" :label="item.bmmc" :value="item.id">
</el-option> </el-option>
</el-select> </el-select> -->
<RelSelect src='kzzx/bm/query' :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -64,7 +65,6 @@ ...@@ -64,7 +65,6 @@
mixins: [editMixin], mixins: [editMixin],
/* 存放index页面传递的额外参数*/ /* 存放index页面传递的额外参数*/
mounted() { mounted() {
console.log(this.$router)
this.systemType = JSON.parse(JSON.stringify(this.app.systemType)) this.systemType = JSON.parse(JSON.stringify(this.app.systemType))
}, },
/* 组件名称*/ /* 组件名称*/
......
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
<div class="min_full" style="calc(60vh - 42px)"> <div class="min_full" style="calc(60vh - 42px)">
<!-- 按钮操作--> <!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
<PrintButton :app='app'></PrintButton> <PrintButton :app='this'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton> <ViewButton ref="view" :app='this'></ViewButton>
<AddButton ref="add" :app='app'></AddButton> <AddButton ref="add" :app='this'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='this'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='this'></EditButton>
<FieldButton :app='app'></FieldButton> <FieldButton :app='this'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='this'></ExcelButton>
<AttachFileButton :app='app' ></AttachFileButton> <AttachFileButton :app='this' ></AttachFileButton>
</el-row> </el-row>
<!-- 表格--> <!-- 表格-->
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager @getData='getData' :ref="'TablePager'" :app='this' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/--> <!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
</TablePager> </TablePager>
...@@ -30,14 +30,15 @@ ...@@ -30,14 +30,15 @@
doDeleteDtl doDeleteDtl
} from "@/api/basicData/securityDocumentManagement.js"; } from "@/api/basicData/securityDocumentManagement.js";
/* edit页面*/ /* edit页面*/
import Edit from './lessEdit' import Edit from './lessEdit.vue'
console.log(Edit,'lessEdit')
import {tableMixin} from 'common' import {tableMixin} from 'common'
export default { export default {
mixins: [tableMixin], mixins: [tableMixin],
name: 'securityDocumentManagementDtl', name: 'securityDocumentManagementDtl',
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
}, },
data() { data() {
return { return {
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
this.systemType = JSON.parse(JSON.stringify(this.app.systemType)) this.systemType = JSON.parse(JSON.stringify(this.app.systemType))
}, },
/* 组件名称*/ /* 组件名称*/
name: 'appVersionEdit', name: 'mainEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/ /* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() { data() {
......
...@@ -33,18 +33,18 @@ ...@@ -33,18 +33,18 @@
</div> </div>
<!-- 按钮操作--> <!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
<PrintButton :app='app'></PrintButton> <PrintButton :app='this'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton> <ViewButton ref="view" :app='this'></ViewButton>
<AddButton ref="add" :app='this'></AddButton> <AddButton ref="add" :app='this'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='this'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='this'></EditButton>
<FieldButton :app='app'></FieldButton> <FieldButton :app='this'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='this'></ExcelButton>
<WorkFlowButton :app='app'></WorkFlowButton> <WorkFlowButton :app='this'></WorkFlowButton>
</el-row> </el-row>
<!-- 表格--> <!-- 表格-->
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager @getData='getData' :ref="'TablePager'" :app='this' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/--> <!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
</TablePager> </TablePager>
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
} from "@/api/basicData/securityDocumentManagement.js"; } from "@/api/basicData/securityDocumentManagement.js";
/* edit页面*/ /* edit页面*/
import Edit from './mainEdit.vue' import Edit from './mainEdit.vue'
console.log(Edit,'mainEdit')
import {tableMixin} from 'common' import {tableMixin} from 'common'
export default { export default {
mixins: [tableMixin], mixins: [tableMixin],
......
...@@ -11,35 +11,11 @@ ...@@ -11,35 +11,11 @@
<el-col :span="6" class="search-col"> <el-col :span="6" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">检查内容:</span> <span class="search-span">检查内容:</span>
<el-input size="small" class="search-input"></el-input> <el-input v-model="queryParams.jcnr" size="small" class="search-input"></el-input>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<!-- 测试 --> <!-- 测试 -->
<el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">用户:</span>
<el-input v-model="queryParams.usercx" size="small" class="search-input"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">电话:</span>
<el-input v-model="queryParams.phone" size="small" class="search-input"></el-input>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<el-checkbox true-label='Y' false-label='' v-model="queryParams.login">显示登录用户</el-checkbox>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<el-checkbox true-label='' false-label='N' v-model="queryParams.tybz">显示所有用户</el-checkbox>
</div>
</el-col>
</el-row>
</div> </div>
...@@ -60,15 +36,6 @@ ...@@ -60,15 +36,6 @@
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
<template slot="tabCustom">
<el-table-column label="启用/停用" width="90" header-align="center" >
<template slot-scope="scope">
<el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;"
active-color="#13ce66" inactive-color="#eee">
</el-switch>
</template>
</el-table-column>
</template>
</TablePager> </TablePager>
</div> </div>
...@@ -80,17 +47,13 @@ ...@@ -80,17 +47,13 @@
<script> <script>
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
QueryUser, bzflQuery,
QueryApptype, yhglAdd,
AddUser, yhglDelete,
DeleteUser, yhglUpdate,
UpdateUser, yhglQuery
QtUser, } from "@/api/dangerManagement/maintenanceDg.js"
QueryBm,
Setcanlogin,
ResetPassword
} from "common/src/api/system/dmgSystem.js";
/* edit页面*/ /* edit页面*/
import Edit from './edit' import Edit from './edit'
import { import {
...@@ -112,22 +75,11 @@ ...@@ -112,22 +75,11 @@
DialogName: '', DialogName: '',
type: '', type: '',
DialogTitle: '', DialogTitle: '',
powerList: [{
name: '分配'
}, {
name: '复制'
}, {
name: '查看'
}],
/* 基础url*/ /* 基础url*/
baseUrl: 'kzzx/user', baseUrl: 'aqgl/jcsj/aqwdml',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
bmid:'', jcnr:''
usercx: '',
phone:'',
login:'Y',
tybz:''
}, },
/* 树的标题 */ /* 树的标题 */
treeTitle: '隐患检查标准分类', treeTitle: '隐患检查标准分类',
...@@ -172,40 +124,20 @@ ...@@ -172,40 +124,20 @@
return nTy return nTy
}, },
/* 基础查询*/ /* 基础查询*/
query: QueryUser, query: yhglQuery,
/* 基础增*/ /* 基础增*/
apiAdd: AddUser, apiAdd: yhglAdd,
/* 基础更新*/ /* 基础更新*/
apiUpdate: UpdateUser, apiUpdate: yhglUpdate,
/* 删除操作*/ /* 删除操作*/
apiDelete: DeleteUser, apiDelete: yhglDelete,
/* treeQuery */ /* treeQuery */
apiTreeQuery: QueryBm, apiTreeQuery: bzflQuery,
/* 初始化赋值操作*/ /* 初始化赋值操作*/
init() { init() {
}, },
/* 启用停用*/ /* 启用停用*/
setEnable(id) {
this.$confirm('是否启用/停用该角色, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let params = {
id: id
}
QtUser(params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.$refs['TablePager'].reLoad()
} else {
this.$error(res.message || '操作失败')
}
})
})
}
}, },
......
<template> <template>
<div style="padding: 10px;"> <div style="padding: 10px;">
<!-- 测试--> <!-- 测试-->
<RelSelect v-model='test' ></RelSelect> <RelSelect :hasValue='true' :optionsData='optionsData' src='kzzx/bm/query' :match="{value:'id',label:'bmmc'}" v-model='test' ></RelSelect>
<el-input v-model='test' ></el-input> <el-input v-model='test' ></el-input>
<h1> <h1>
SVG SVG
...@@ -21,11 +21,11 @@ ...@@ -21,11 +21,11 @@
<script> <script>
export default { export default {
mounted() { mounted() {
/* 计算需要时间 ms*/ /* 计算需要时间 ms*/
let usetime=300*10 let usetime=300*10
let settime=0 let settime=0
setInterval(()=>{ setInterval(()=>{
console.log(settime)
if(settime<usetime){ if(settime<usetime){
this.x++ this.x++
settime=settime+10 settime=settime+10
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
}, },
data(){ data(){
return{ return{
optionsData:[{label:123,value:1230},{label:113,value:1130}],
test:'', test:'',
x:10, x:10,
y:10, y:10,
...@@ -57,7 +58,6 @@ ...@@ -57,7 +58,6 @@
}else{ }else{
this.newArr.push(arr) this.newArr.push(arr)
} }
console.log(this.newArr)
} }
} }
} }
......
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