Browse Source

分类首页

shibei_prod
jiangyy 4 years ago
parent
commit
756abbbe00
  1. 80
      src/assets/scss/modules/management/categoryMain.scss
  2. 202
      src/views/modules/base/category/addCategory.vue
  3. 282
      src/views/modules/base/category/main.vue
  4. 187
      src/views/modules/base/resi.vue

80
src/assets/scss/modules/management/categoryMain.scss

@ -4,8 +4,8 @@
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
border-radius: 5px; border-radius: 5px;
padding: 35px 0; padding: 35px 0 15px;
}
.div_tip { .div_tip {
font-size: 24px; font-size: 24px;
font-family: PingFang SC; font-family: PingFang SC;
@ -13,10 +13,14 @@
color: #333333; color: #333333;
margin-left: 42px; margin-left: 42px;
} }
.div_room_bar { .div_list {
box-sizing: border-box; box-sizing: border-box;
margin-top: 5px; margin-top: 5px;
height: calc(100vh - 230px); height: calc(100vh - 210px);
}
.div_all_list {
height: calc(100vh - 260px);
} }
.div_room { .div_room {
@ -34,10 +38,12 @@
background: #ffffff; background: #ffffff;
box-shadow: 0px 0px 17px 3px #eaeaea; box-shadow: 0px 0px 17px 3px #eaeaea;
border-radius: 6px; border-radius: 6px;
margin-top: 30px; margin: 15px 25px 15px 0;
display: flex; display: flex;
position: relative;
.item_category { .item_category {
width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 17px 16px; padding: 17px 16px;
@ -47,24 +53,54 @@
} }
.item_content { .item_content {
margin-left: 16px; margin-left: 16px;
width: 100%;
text-align: left; text-align: left;
display: flex;
flex-direction: column;
justify-content: flex-start;
.item_count { .item_count {
margin-top: 29px;
font-size: 28px; font-size: 28px;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
color: #333333; color: #333333;
} }
.item_row2 {
margin-top: 21px;
display: flex;
justify-content: space-between;
.row_left {
font-size: 20px;
font-family: PingFang SC;
font-weight: 500;
color: #202020;
}
.row_right {
margin: 5px 10px 0 0;
font-size: 16px;
font-family: PingFang SC;
font-weight: 500;
text-decoration: underline;
color: #00a7a9;
cursor: pointer;
}
}
}
> span {
margin-left: 16px;
font-size: 24px;
} }
} }
.item_add { .item_add {
cursor: pointer;
font-size: 24px; font-size: 24px;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
line-height: 350px;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 17px 16px; padding: 17px 16px;
@ -79,10 +115,28 @@
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
line-height: 350px;
margin-left: 16px; margin-left: 16px;
} }
} }
.icon_circle {
cursor: pointer;
position: absolute;
top: -10px;
right: -10px;
height: 23px;
width: 23px;
background-color: #ffffff;
border-radius: 50%;
border: 1px solid #a5a5a5;
}
.icon_sel {
cursor: pointer;
background-color: #6bb9f8;
border: 1px solid #6bb9f8;
}
} }
} }
@ -90,4 +144,14 @@
content: ''; content: '';
flex: 1; flex: 1;
} }
.div_btn {
margin-top: 15px;
display: flex;
width: 100%;
justify-content: center;
.btn_right {
margin-left: 50px;
}
} }

202
src/views/modules/base/category/addCategory.vue

@ -0,0 +1,202 @@
<template>
<div>
<div class="div_tip">
全部类别
</div>
<div class="div_list div_all_list">
<el-scrollbar style="height:100%">
<div class="div_room">
<div v-for="(item,index) in defaultList"
:key="index"
class="item"
@click="handelSelCategory(index)">
<div v-if="item.selected"
class="icon_circle icon_sel">
<!-- <icon name="el-icon-check"
scale="20"></icon> -->
<i class="el-icon-check"
style="font-size: 17px; color: #5d5d5d ;margin-left:1px;margin-top:2px" />
</div>
<div v-if="!item.selected"
class="icon_circle"></div>
<div class="item_category">
<img :src="item.managementIcon"
alt />
<span>{{item.label}}</span>
</div>
</div>
</div>
</el-scrollbar>
</div>
<div class="div_btn">
<el-button type="warning"
@click="handleCancle">取消</el-button>
<el-button type="primary"
class="btn_right"
@click="handleConfirm">确定</el-button>
</div>
</div>
</template>
<script>
import { mapGetters } from "vuex";
import { Loading } from 'element-ui'; //Loading
import { requestPost } from "@/js/dai/request";
let loading;//
export default {
data () {
return {
defaultList: [],
addList: []
}
},
async mounted () {
},
methods: {
async initData () {
await this.getDefaultCategoryList()
this.addList = [...this.categoryList]
this.addList.pop()
},
//
async getDefaultCategoryList () {
const url = "/oper/customize/icindividualcategorymanage/individualcategoryalllist"
// const url = "http://yapi.elinkservice.cn/mock/245/oper/customize/icindividualcategorymanage/individualcategoryalllist"
let params = {}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
// this.defaultList = []
this.defaultList = [...data]
} else {
this.$message.error(msg)
}
},
handelSelCategory (index) {
let obj = JSON.parse(JSON.stringify(this.defaultList[index]))
if (!obj.selected) {//
this.addList.push(obj)
} else {//
for (let itemIndex in this.addList) {
// debugger
let tempObj = this.addList[itemIndex]
if (obj.columnName === tempObj.columnName) {
this.addList.splice(itemIndex, 1);
break
}
}
this.addList.forEach(element => {
console.log(element.label)
});
}
obj.selected = !obj.selected
this.$set(this.defaultList, index, obj)
},
async handleConfirm () {
this.addList.forEach((element, index) => {
element.sort = index
element.columnId = element.id
});
const url = "/oper/customize/icindividualcategorymanage/editindividualcategory"
const { data, code, msg } = await requestPost(url, this.addList)
if (code === 0) {
this.$emit('handleConfirm')
} else {
this.$message.error(msg)
}
},
handleCancle () {
this.$emit('handleCancle')
},
//
startLoading () {
loading = Loading.service({
lock: true, //
text: '正在加载……', //
background: 'rgba(0,0,0,.7)' //
});
},
//
endLoading () {
//clearTimeout(timer);
if (loading) {
loading.close();
}
},
},
props: {
categoryList: {
type: Array,
default () {
return []
}
}
},
computed: {
// selectWidth () {
// let width = this.selHouseName.length * 200
// console.log(width)
// return width + 'px';
// },
mapHeight () {
return this.clientHeight - 120;
},
...mapGetters(["clientHeight"])
},
components: {},
}
</script>
<style
lang="scss"
src="@/assets/scss/modules/management/categoryMain.scss"
scoped
></style>
<style lang=scss >
.el-scrollbar__wrap {
overflow-x: hidden !important;
}
</style>

282
src/views/modules/base/category/main.vue

@ -1,19 +1,20 @@
<template> <template>
<div class="div_main"> <div class="div_main">
<div v-if="!showAddForm">
<div class="div_tip"> <div class="div_tip">
类别信息 类别信息
</div> </div>
<div class="div_room_bar"> <div class="div_list">
<el-scrollbar style="height:100%"> <el-scrollbar style="height:100%">
<div class="div_room"> <div class="div_room">
<div v-for="(item,index) in categoryList" <div v-for="(item,index) in categoryList"
:key="index" :key="index"
class="item" class="item">
@click="handleClickRoom(index)">
<div v-if="index==(categoryList.length-1)" <div v-if="index==(categoryList.length-1)"
class="item_add"> class="item_add"
@click="handleAddCategory">
<img :src="item.managementIcon" <img :src="item.managementIcon"
alt /> alt />
@ -27,9 +28,14 @@
<div class="item_content"> <div class="item_content">
<div class="item_count">{{item.count}}</div> <div class="item_count">{{item.count}}</div>
<div class="item_name">{{item.columnName}}</div>
<div class="item_row2">
<div class="row_left">{{item.label}}</div>
<div class="row_right"
@click="toPersonList(item)">管理</div>
</div> </div>
<span>{{item.label}}</span> </div>
</div> </div>
</div> </div>
@ -38,13 +44,21 @@
</el-scrollbar> </el-scrollbar>
</div> </div>
</div> </div>
<add-category v-if="showAddForm"
ref="ref_add"
:categoryList="categoryList"
@handleCancle="handleCancle"
@handleConfirm="handleConfirm"></add-category>
</div>
</template> </template>
<script> <script>
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import nextTick from 'dai-js/tools/nextTick'
import { Loading } from 'element-ui'; //Loading import { Loading } from 'element-ui'; //Loading
import { requestPost } from "@/js/dai/request"; import { requestPost } from "@/js/dai/request";
import addCategory from "./addCategory";
let loading;// let loading;//
@ -52,33 +66,8 @@ export default {
data () { data () {
return { return {
//id categoryList: [],
neighborHoodId: '', showAddForm: false,
neighborHoodName: '',
buildingArray: [],//
selBuildingId: '',
selBuildingName: '',
roomArray: [],
selHouseId: '',
selHouseName: '',
selHouseIndex: 0,
userArray: [],
selUserName: '',
selUserId: '',
orgData: {},//
orgId: '',
orgLevel: '',
//
runNum: 0,
runAgencyArray: [],
categoryList: []
} }
}, },
async mounted () { async mounted () {
@ -107,134 +96,33 @@ export default {
} }
}, },
// async handleAddCategory () {
handleClickRoom (index) { this.showAddForm = true
this.selHouseIndex = index await nextTick(200)
this.selHouseId = this.roomArray[index].houseId
this.selHouseName = this.roomArray[index].houseName
// this.$emit('refreshInfoList', this.selHouseId, 'room') this.$refs['ref_add'].initData()
}, },
handleConfirm () {
this.showAddForm = false
// this.getCategoryList()
handleClickUser (userId) {
this.$emit('toSubAgency', 'people', userId, "")
}, },
//infolist
async loadList () {
handleCancle () {
this.showAddForm = false
}, },
// toPersonList (item) {
async loadBuilding () { this.$router.push({
const url = "/gov/org/agency/baseinfofamilybuilding" path: "/main/base-resi",
// const url = "http://yapi.elinkservice.cn/mock/245/gov/org/agency/baseinfofamilybuilding" query: {
let params = { columnName: item.columnName
neighborHoodId: this.neighborHoodId
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.buildingArray = data
this.buildingArray.forEach(item => {
if (!this.buildingArray[0].buildingName) {
item.buildingName = '楼'
}
});
if (this.buildingArray.length > 0) {
this.selBuildingId = this.buildingArray[0].buildingId
this.selBuildingName = this.buildingArray[0].buildingName
} else {
this.selBuildingId = ''
this.selBuildingName = ''
}
} else {
this.$message.error(msg)
} }
})
}, },
//
async loadRoom () {
const url = "/gov/org/ichouse/houselist"
// const url = "http://yapi.elinkservice.cn/mock/245/gov/org/ichouse/houselist"
let params = {
buildingId: this.selBuildingId
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.roomArray = data
if (this.roomArray.length > 0) {
this.roomArray.forEach(roomItem => {
let iconArrayShow = JSON.parse(JSON.stringify(roomItem.categoryList))
let iconArray = []
if (iconArrayShow.length > 0) {
if (iconArrayShow[0].isSpecial === '1') {//
roomItem.isParty = true
roomItem.partyUrl = iconArrayShow[0].iconUrl
iconArrayShow.shift();//
} else {
roomItem.isParty = false
}
}
if (iconArrayShow.length > 4) {//
for (let i = 0; i < 4; i++) {
iconArray.push(iconArrayShow[i])
}
} else {
iconArray = iconArrayShow
}
this.$nextTick(() => {
// ref_tree ref value node-key
roomItem.iconArrayShow = iconArray
});
roomItem.showAllUser = false
});
}
} else {
this.$message.error(msg)
}
},
//
async loadUser (houseId, index) {
const url = "/epmetuser/icresiuser/getpeoplebyroom"
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icresiuser/getpeoplebyroom"
let params = {
homeId: houseId
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.userArray = data
if (this.userArray.length === 0) {
this.$message.warning('该房间下没有住户')
}
} else {
this.$message.error(msg)
}
},
// //
startLoading () { startLoading () {
loading = Loading.service({ loading = Loading.service({
@ -268,22 +156,11 @@ export default {
return this.clientHeight - 120; return this.clientHeight - 120;
}, },
// zoom: {
// get () {
// //zoom
// if (this.clientHeight < 900) {
// return 2.3
// } else {
// return 2.8
// }
// },
// set (value) {
// }
// },
...mapGetters(["clientHeight"]) ...mapGetters(["clientHeight"])
}, },
components: {}, components: { addCategory },
} }
</script> </script>
@ -294,87 +171,6 @@ export default {
scoped scoped
></style> ></style>
<style lang=scss scoped>
.customer_select {
/* 未选中任何选项的时候 placeholder的样式 需要先选中父元素 增加权重 */
/deep/ input::-webkit-input-placeholder {
color: #fff;
}
/deep/ input::-moz-input-placeholder {
color: #fff;
}
/deep/ input::-ms-input-placeholder {
color: #fff;
}
/* 修改的是el-input的样式 */
/* 一种方法是设置最里层el-input__inner的背景色 外层的两级父元素设置为透明色 */
/* 另一种方法是从el-select到el-input__inenr的背景色都设置为需要的颜色 */
/deep/ .el-select,
/deep/ .el-input,
/deep/ .el-input__inner {
background-color: #08164d00;
color: #fff;
border: 0px;
border-radius: 0px;
text-align: left;
font-size: 22px;
font-family: PingFang SC;
font-weight: 800;
color: #ffffff;
display: flex;
}
/* el-input聚焦的时候 外层的border会有一个样式 */
/deep/ .el-select .el-input.is-focus .el-input__inner {
border: 0px;
}
/* 修改的是el-input上下的小图标的颜色 */
/deep/ .el-select .el-input .el-select__caret::before {
color: #fff;
content: "";
background: url("../../../../assets/img/xiala.png") center center no-repeat;
position: absolute;
width: 100%;
height: 100%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* 修改总体选项的样式 最外层 */
/deep/ .el-select-dropdown {
background-color: #08164d;
margin: 0px;
border: 0px;
border-radius: 0px;
}
/* 修改选项整体的样式 */
/deep/ .el-select-dropdown__list {
padding: 6px 0 20px 0;
}
/* 修改单个的选项的样式 */
/deep/ .el-select-dropdown__item {
background-color: transparent;
color: #fff;
}
/* item选项的hover样式 */
/deep/ .el-select-dropdown__item.hover,
/deep/ .el-select-dropdown__item:hover {
color: #409eff;
}
/* 修改的是下拉框选项内容上方的尖角 */
/deep/ .el-popper .popper__arrow,
.el-popper .popper__arrow::after {
display: none;
}
}
</style>
<style lang=scss > <style lang=scss >
.el-scrollbar__wrap { .el-scrollbar__wrap {
overflow-x: hidden !important; overflow-x: hidden !important;

187
src/views/modules/base/resi.vue

@ -1,18 +1,21 @@
<template> <template>
<div v-if="pageLoading" class="resi-container"> <div v-if="pageLoading"
<resi-search class="resi-container">
v-if="searchList.length > 0" <resi-search v-if="searchList.length > 0"
ref="resiSearch" ref="resiSearch"
:form-list="searchList" :form-list="searchList"
@search="handleSearch" @search="handleSearch" />
/>
<el-card class="resi-card-table"> <el-card class="resi-card-table">
<div class="resi-row-btn"> <div class="resi-row-btn">
<el-button type="success" size="small" @click="handleAdd">新增</el-button> <el-button type="success"
<el-button type="warning" size="small" :loading="exportBtn" @click="handleExport">{{exportBtnTitle}}</el-button> size="small"
@click="handleAdd">新增</el-button>
<el-button type="warning"
size="small"
:loading="exportBtn"
@click="handleExport">{{exportBtnTitle}}</el-button>
<!-- <el-button type="primary" size="small">下载人口模板</el-button> --> <!-- <el-button type="primary" size="small">下载人口模板</el-button> -->
<el-upload <el-upload ref="upload"
ref="upload"
class="upload-demo" class="upload-demo"
action="uploadUlr" action="uploadUlr"
:limit="1" :limit="1"
@ -22,159 +25,136 @@
:on-progress="handleProgress" :on-progress="handleProgress"
:on-success="handleExcelSuccess" :on-success="handleExcelSuccess"
:before-upload="beforeExcelUpload" :before-upload="beforeExcelUpload"
:http-request="uploadHttpRequest" :http-request="uploadHttpRequest">
> <el-button type="danger"
<el-button type="danger" size="small" :loading="importLoading">{{importBtnTitle}}</el-button> size="small"
:loading="importLoading">{{importBtnTitle}}</el-button>
</el-upload> </el-upload>
</div> </div>
<el-table <el-table :data="tableData"
:data="tableData"
v-loading="tableLoading" v-loading="tableLoading"
border border
style="width: 100%" style="width: 100%"
class="resi-table" class="resi-table">
> <el-table-column label="序号"
<el-table-column label="序号" type="index" align="center" width="50"> type="index"
align="center"
width="50">
</el-table-column> </el-table-column>
<el-table-column <el-table-column v-for="item in tableHeader"
v-for="item in tableHeader"
:key="item.columnName" :key="item.columnName"
:prop="item.columnName" :prop="item.columnName"
:label="item.label" :label="item.label"
align="center" align="center"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
:width="item.itemType === 'radio' ? computedWidth(item.label) : 180" :width="item.itemType === 'radio' ? computedWidth(item.label) : 180">
>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ handleFilterSpan(scope.row, item) }}</span> <span>{{ handleFilterSpan(scope.row, item) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" align="center" width="120"> <el-table-column fixed="right"
label="操作"
align="center"
width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button @click="handleLook(scope.row)"
@click="handleLook(scope.row)"
type="text" type="text"
size="small" size="small"
class="btn-color-look" class="btn-color-look">查看</el-button>
>查看</el-button
>
<template v-if="filterEdit(scope.row.ORG_ID)"> <template v-if="filterEdit(scope.row.ORG_ID)">
<el-button <el-button @click="handleEdit(scope.row)"
@click="handleEdit(scope.row)"
type="text" type="text"
size="small" size="small"
class="btn-color-edit" class="btn-color-edit">编辑</el-button>
>编辑</el-button <el-popconfirm title="删除之后无法回复,确认删除?"
> @onConfirm="handleDel(scope.row)">
<el-popconfirm <el-button slot="reference"
title="删除之后无法回复,确认删除?"
@onConfirm="handleDel(scope.row)"
>
<el-button
slot="reference"
type="text" type="text"
size="small" size="small"
class="btn-color-del" class="btn-color-del">删除</el-button>
>删除</el-button
>
</el-popconfirm> </el-popconfirm>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div> <div>
<el-pagination <el-pagination @size-change="handleSizeChange"
@size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-sizes="[20, 50, 100, 200]" :page-sizes="[20, 50, 100, 200]"
:page-size="pageSize" :page-size="pageSize"
layout="sizes, prev, pager, next" layout="sizes, prev, pager, next"
:total="total" :total="total">
>
</el-pagination> </el-pagination>
</div> </div>
</el-card> </el-card>
<el-dialog <el-dialog :title="formName"
:title="formName"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="80%" width="80%"
append-to-body append-to-body
:close-on-click-modal="false" :close-on-click-modal="false"
:before-close="handlerCancle" :before-close="handlerCancle">
> <resi-form v-if="dialogVisible"
<resi-form
v-if="dialogVisible"
ref="baseForm" ref="baseForm"
:fixed="true" :fixed="true"
:form-list="formList" :form-list="formList"
@changegroup="handleChangeGroup" @changegroup="handleChangeGroup" />
/> <div v-if="dialogVisible"
<div v-if="dialogVisible" class="resi-other"> class="resi-other">
<div class="resi-other-title">其他</div> <div class="resi-other-title">其他</div>
<div class="tabs-other-info"> <div class="tabs-other-info">
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName"
<el-tab-pane @tab-click="handleClick">
v-for="item in tabsList" <el-tab-pane v-for="item in tabsList"
:key="item.columnName" :key="item.columnName"
:label="item.label" :label="item.label"
:name="'group' + item.groupId" :name="'group' + item.groupId">
> <resi-form :ref="'group' + item.groupId"
<resi-form
:ref="'group' + item.groupId"
:columns="3" :columns="3"
:support-add="item.supportAdd" :support-add="item.supportAdd"
:form-id="item.columnName" :form-id="item.columnName"
:form-list="item.itemList" :form-list="item.itemList" />
/>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
</div> </div>
<div class="resi-btns"> <div class="resi-btns">
<el-button size="small" @click="handlerCancle">取消</el-button> <el-button size="small"
<el-button @click="handlerCancle">取消</el-button>
type="primary" <el-button type="primary"
size="small" size="small"
:loading="btnLoading" :loading="btnLoading"
@click="handleSUbmit" @click="handleSUbmit">提交</el-button>
>提交</el-button
>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog <el-dialog :title="formName"
:title="formName"
:visible.sync="dialogEditVisible" :visible.sync="dialogEditVisible"
width="80%" width="80%"
append-to-body append-to-body
:close-on-click-modal="false" :close-on-click-modal="false"
:before-close="handlerEditCancle" :before-close="handlerEditCancle">
> <edit-resi v-if="dialogEditVisible"
<edit-resi
v-if="dialogEditVisible"
ref="baseForm" ref="baseForm"
:disabled="disabled" :disabled="disabled"
:form-info="editForm" :form-info="editForm"
:fixed="true" :fixed="true"
:form-list="formList" :form-list="formList"
:agency-id="editAgencyId" :agency-id="editAgencyId"
@changegroup="handleChangeGroup" @changegroup="handleChangeGroup" />
/> <div v-if="dialogEditVisible"
<div v-if="dialogEditVisible" class="resi-other"> class="resi-other">
<div class="resi-other-title">其他</div> <div class="resi-other-title">其他</div>
<div class="tabs-other-info"> <div class="tabs-other-info">
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName"
<el-tab-pane @tab-click="handleClick">
v-for="item in tabsList" <el-tab-pane v-for="item in tabsList"
:key="item.columnName" :key="item.columnName"
:label="item.label" :label="item.label"
:name="'group' + item.groupId" :name="'group' + item.groupId">
> <edit-resi :ref="'group' + item.groupId"
<edit-resi
:ref="'group' + item.groupId"
:columns="3" :columns="3"
:support-add="item.supportAdd" :support-add="item.supportAdd"
:form-id="item.columnName" :form-id="item.columnName"
@ -182,22 +162,19 @@
:form-list="item.itemList" :form-list="item.itemList"
:disabled="disabled" :disabled="disabled"
:label-width="'140px'" :label-width="'140px'"
:agency-id="editAgencyId" :agency-id="editAgencyId" />
/>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
</div> </div>
<div class="resi-btns"> <div class="resi-btns">
<el-button size="small" @click="handlerEditCancle">取消</el-button> <el-button size="small"
<el-button @click="handlerEditCancle">取消</el-button>
v-if="!disabled" <el-button v-if="!disabled"
type="primary" type="primary"
size="small" size="small"
:loading="btnLoading" :loading="btnLoading"
@click="handleEditSUbmit" @click="handleEditSUbmit">提交</el-button>
>提交</el-button
>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -246,10 +223,28 @@ export default {
formName: '', formName: '',
formList: [], formList: [],
tableHeader: [], tableHeader: [],
tabsList: [] tabsList: [],
defaultCategotyKey: ''
} }
}, },
props: {
},
activated () {
if (this.$route.query) {
let query = this.$route.query
this.defaultCategotyKey = query.columnName
}
},
async created () { async created () {
if (this.$route.query) {
let query = this.$route.query
this.defaultCategotyKey = query.columnName
}
await this.getSearchList() await this.getSearchList()
// await this.getFormList() // await this.getFormList()
await this.getTableHeader() await this.getTableHeader()
@ -867,12 +862,12 @@ export default {
// height: 12px; // height: 12px;
color: rgba(30, 122, 254, 1); color: rgba(30, 122, 254, 1);
line-height: 20px; line-height: 20px;
background: rgba(30, 122, 254, .2); background: rgba(30, 122, 254, 0.2);
// border-radius: 50%; // border-radius: 50%;
} }
::v-deep .el-tabs__item.is-active { ::v-deep .el-tabs__item.is-active {
color: #fff; color: #fff;
background: linear-gradient(90deg, #1A5AFD, #26C4FF); background: linear-gradient(90deg, #1a5afd, #26c4ff);
} }
} }
.resi-container .resi-card-table { .resi-container .resi-card-table {

Loading…
Cancel
Save