|
@@ -0,0 +1,582 @@
|
|
|
|
+<template>
|
|
|
|
+ <div class="content-main-manage">
|
|
|
|
+ <div class="content-main">
|
|
|
|
+ <div class="content-body-wrap">
|
|
|
|
+ <div class="content-body">
|
|
|
|
+ <statistics-list :tabsInitData="tabsInitData" :tabsTitleColor="tabsTitleColor" :tabsIcon="tabsIcon"></statistics-list>
|
|
|
|
+ <div class="search-list">
|
|
|
|
+ <div class="search-left">
|
|
|
|
+ <Form class="common-form common-form-list" ref="tableParams" :model="tableParams" inline>
|
|
|
|
+ <FormItem label="" prop="roleId">
|
|
|
|
+ <Select v-model="tableParams.roleId" placeholder="指标类型">
|
|
|
|
+ <Option v-for="item in indexTypeList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
+ </Select>
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem label="" prop="businessTypeId">
|
|
|
|
+ <Select v-model="tableParams.businessTypeId" placeholder="业务类型">
|
|
|
|
+ <Option v-for="item in businessData" :value="item.id" :key="item.id">{{ item.businessTypeName }}</Option>
|
|
|
|
+ </Select>
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem label="">
|
|
|
|
+ <DatePicker type="datetimerange" :value="dateRange" format="yyyy-MM-dd HH:mm:ss" placeholder="更新时间范围" class="common-date-picker date-picker-main" :clearable="false" :editable="false" @on-change="changePicker"></DatePicker>
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem label="" prop="moduleName">
|
|
|
|
+ <Input placeholder="输入规则名称关键词查询" clearable search v-model="tableParams.moduleName" />
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem label="" prop="operationName">
|
|
|
|
+ <Input placeholder="输入字段关键词查询" clearable search v-model="tableParams.operationName" />
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem label="" >
|
|
|
|
+ <Button type="primary" class="common-btn-search" @click="searchClick">
|
|
|
|
+ <Icon type="ios-search" style="margin-right:4px;font-size: 16px"/> 筛选
|
|
|
|
+ </Button>
|
|
|
|
+ <Button type="primary" class="common-btn-search" style="margin-left:10px" @click="resetClick('tableParams')">
|
|
|
|
+ <Icon type="ios-search" style="margin-right:4px;font-size: 16px"/> 重置
|
|
|
|
+ </Button>
|
|
|
|
+ </FormItem>
|
|
|
|
+ </Form>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="btn-container">
|
|
|
|
+ <Button icon="ios-add" class="common-add-btn" @click="addClick">新增规则</Button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="manage-main-center">
|
|
|
|
+ <Table :columns="columns" :data="tableData" class="common-table app-table" no-data-text="" :row-class-name="rowClassName" :loading="loading">
|
|
|
|
+ <template slot="loading">
|
|
|
|
+ <Loading-animation></Loading-animation>
|
|
|
|
+ </template>
|
|
|
|
+ <template slot-scope="{ row }" slot="operationUser">
|
|
|
|
+ {{row.operationUser}}
|
|
|
|
+ </template>
|
|
|
|
+ <template slot-scope="{ row }" slot="action">
|
|
|
|
+ <Tooltip content="编辑" placement="top">
|
|
|
|
+ <i class="iconfont icon-bianji" style="cursor:pointer;color:#64ACFE;fontSize:20px;marginRight:6px" @click="editClick(row)"></i>
|
|
|
|
+ </Tooltip>
|
|
|
|
+ <Tooltip content="删除" placement="top">
|
|
|
|
+ <i class="iconfont icon-shanchu" style="cursor:pointer;color:#E92E2E;fontSize:20px;marginRight:6px" @click="delClick(row)"></i>
|
|
|
|
+ </Tooltip>
|
|
|
|
+ </template>
|
|
|
|
+ </Table>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="common-page">
|
|
|
|
+ <div class="common-page-total">
|
|
|
|
+ 共<span>{{tablePage}}</span>页 / <span>{{tableTotal}}</span>条数据
|
|
|
|
+ </div>
|
|
|
|
+ <Page :total="tableTotal" :current="tableParams.pageNum" :page-size="tableParams.pageSize" @on-change="changePage" @on-page-size-change="sizeChange" show-elevator />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <Modal
|
|
|
|
+ v-model="showModal"
|
|
|
|
+ :title="title"
|
|
|
|
+ width="60"
|
|
|
|
+ ref="modalGrag"
|
|
|
|
+ draggable
|
|
|
|
+ reset-drag-position
|
|
|
|
+ @on-visible-change="modalChange"
|
|
|
|
+ :mask-closable="false"
|
|
|
|
+ class-name="common-modal">
|
|
|
|
+ <div>
|
|
|
|
+ <tabs-list :currentStep="currentStep"></tabs-list>
|
|
|
|
+ <div class="modal-content" v-show="currentStep==1">
|
|
|
|
+ <div class="modal-content-top-title">基础信息</div>
|
|
|
|
+ <Form class="common-form" ref="formOption" :model="formOption" :rules="ruleValidate" :label-width="120">
|
|
|
|
+ <FormItem label="规则名称:" prop="appName">
|
|
|
|
+ <Input v-model.trim="formOption.appName" maxlength="20" show-word-limit />
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem label="指标类型:" prop="businessTypeId">
|
|
|
|
+ <Select v-model="formOption.businessTypeId" placeholder="指标类型" label-in-value @on-change="selectModalBusiness">
|
|
|
|
+ <Option v-for="item in indexTypeList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
|
+ </Select>
|
|
|
|
+ <!-- <Select v-model="formOption.businessTypeId" placeholder="指标类型" label-in-value @on-change="selectModalBusiness">
|
|
|
|
+ <Option v-for="item in indexTypeList" :value="item.id" :key="item.id">{{ item.businessTypeName }}</Option>
|
|
|
|
+ </Select> -->
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem label="规则描述:" prop="appName">
|
|
|
|
+ <Input v-model.trim="formOption.appName" type="textarea" :rows="6" maxlength="100" show-word-limit />
|
|
|
|
+ </FormItem>
|
|
|
|
+ </Form>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-content" v-show="currentStep==2">
|
|
|
|
+ <rule-step-two :businessData="businessData" v-if="showModal" ref="ruleStep2" @selectTableChange="selectTableChange"></rule-step-two>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-content" v-show="currentStep==3">
|
|
|
|
+ <rule-step-three :currentObj="formOption" v-if="showModal"></rule-step-three>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-content" v-show="currentStep==4"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <div slot="footer" class="custom-footer">
|
|
|
|
+ <Button type="primary" @click="previousStep" :style="{visibility:currentStep>1 ? 'visible': 'hidden'}">上一步</Button>
|
|
|
|
+ <Button type="primary" @click="nextStep('formOption',1)" v-show="currentStep<4">下一步</Button>
|
|
|
|
+ <Button type="primary" v-show="currentStep==4">保存</Button>
|
|
|
|
+ </div>
|
|
|
|
+ </Modal>
|
|
|
|
+ <Modal
|
|
|
|
+ v-model="modalStatus"
|
|
|
|
+ :title="commonTitle"
|
|
|
|
+ width="30"
|
|
|
|
+ ref="modalGrag"
|
|
|
|
+ draggable
|
|
|
|
+ reset-drag-position
|
|
|
|
+ :mask-closable="false"
|
|
|
|
+ class-name="common-modal">
|
|
|
|
+ <Icon type="ios-information-circle" :style="{ color: activeColor}" class="modal-icon"></Icon>
|
|
|
|
+ <span class="modal-text">{{modalTitle}}</span>
|
|
|
|
+ <div slot="footer">
|
|
|
|
+ <Button @click="commonCancel">取消</Button>
|
|
|
|
+ <Button type="primary" @click="commonOk">确定</Button>
|
|
|
|
+ </div>
|
|
|
|
+ </Modal>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+<script>
|
|
|
|
+import StatisticsList from '../../../components/StatisticsList.vue'
|
|
|
|
+import TabsList from '../../../components/TabsList.vue'
|
|
|
|
+import RuleStepTwo from './QualityRules/RuleStepTwo.vue'
|
|
|
|
+import RuleStepThree from './QualityRules/RuleStepThree.vue'
|
|
|
|
+export default {
|
|
|
|
+ name: "DataRules",
|
|
|
|
+ components: {
|
|
|
|
+ StatisticsList,TabsList,RuleStepTwo,RuleStepThree
|
|
|
|
+ },
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ tabsIcon: [
|
|
|
|
+ { imgSrc: require('@/assets/images/dataQuality1.png') },
|
|
|
|
+ { imgSrc: require('@/assets/images/dataQuality2.png') },
|
|
|
|
+ { imgSrc: require('@/assets/images/dataQuality3.png') },
|
|
|
|
+ { imgSrc: require('@/assets/images/dataQuality4.png') },
|
|
|
|
+ ],
|
|
|
|
+ tabsTitleColor:['#45F2FD', '#EBF310', '#54D593', '#FD7545'],
|
|
|
|
+ tabsInitData: [
|
|
|
|
+ { text: '准确性规则', value: 0, company: '条' },
|
|
|
|
+ { text: '及时性规则', value: 0, company: '条' },
|
|
|
|
+ { text: '一致性规则', value: 0, company: '条' },
|
|
|
|
+ { text: '完整性规则', value: 0, company: '条' }
|
|
|
|
+ ],
|
|
|
|
+ loading: true,
|
|
|
|
+ businessData: [],
|
|
|
|
+ businessModalData: [],
|
|
|
|
+ indexTypeList: [{label:"及时性",value:'及时性'}, {label:"一致性",value:'一致性'}, {label:"准确性",value:'准确性'}, {label:"完整性",value:'完整性'}],
|
|
|
|
+ dateRange: [],
|
|
|
|
+ tableParams: {
|
|
|
|
+ roleId: '',
|
|
|
|
+ beginOperateTime: '',
|
|
|
|
+ endOperateTime: '',
|
|
|
|
+ moduleName: '',
|
|
|
|
+ operationName: '',
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: 50
|
|
|
|
+ },
|
|
|
|
+ tableData: [],
|
|
|
|
+ tableTotal: 0,
|
|
|
|
+ tablePage: 0,
|
|
|
|
+ columns: [
|
|
|
|
+ {
|
|
|
|
+ title: '序号',
|
|
|
|
+ type: 'index',
|
|
|
|
+ align: 'center',
|
|
|
|
+ ellipsis: true,
|
|
|
|
+ tooltip: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '规则名称',
|
|
|
|
+ // key: 'operationUser',
|
|
|
|
+ slot: 'operationUser',
|
|
|
|
+ align: 'center',
|
|
|
|
+ // ellipsis: true,
|
|
|
|
+ // tooltip: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '规则描述',
|
|
|
|
+ key: 'roleName',
|
|
|
|
+ align: 'center',
|
|
|
|
+ ellipsis: true,
|
|
|
|
+ tooltip: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '规则类型',
|
|
|
|
+ key: 'operator',
|
|
|
|
+ align: 'center',
|
|
|
|
+ ellipsis: true,
|
|
|
|
+ tooltip: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '应用',
|
|
|
|
+ key: 'moduleName',
|
|
|
|
+ align: 'center',
|
|
|
|
+ ellipsis: true,
|
|
|
|
+ tooltip: true
|
|
|
|
+ },
|
|
|
|
+ // {
|
|
|
|
+ // title: '应用业务类型',
|
|
|
|
+ // key: 'moduleName',
|
|
|
|
+ // align: 'center',
|
|
|
|
+ // ellipsis: true,
|
|
|
|
+ // tooltip: true
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // title: '字段',
|
|
|
|
+ // key: 'moduleName',
|
|
|
|
+ // align: 'center',
|
|
|
|
+ // ellipsis: true,
|
|
|
|
+ // tooltip: true
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // title: '计算方法',
|
|
|
|
+ // key: 'moduleName',
|
|
|
|
+ // align: 'center',
|
|
|
|
+ // ellipsis: true,
|
|
|
|
+ // tooltip: true
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // title: '更新时间',
|
|
|
|
+ // key: 'operationName',
|
|
|
|
+ // align: 'center',
|
|
|
|
+ // ellipsis: true,
|
|
|
|
+ // tooltip: true
|
|
|
|
+ // },
|
|
|
|
+ {
|
|
|
|
+ title: '操作',
|
|
|
|
+ align: 'center',
|
|
|
|
+ slot: 'action',
|
|
|
|
+ width: 120,
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ roleData: [],
|
|
|
|
+ showModal: false,
|
|
|
|
+ modalStatus: false,
|
|
|
|
+ title: '新增规则',
|
|
|
|
+ commonTitle: "确认删除",
|
|
|
|
+ activeColor: '#E92E2E',
|
|
|
|
+ activeClass: '',
|
|
|
|
+ modalTitle: '',
|
|
|
|
+ currentStep: 1,
|
|
|
|
+ formOption: {appName:'',businessTypeId: '',remark: '',businessTypeName:'',fieldName:''},
|
|
|
|
+ ruleValidate: {
|
|
|
|
+ // appName: [{
|
|
|
|
+ // required: true,
|
|
|
|
+ // message: '请输入应用名称',
|
|
|
|
+ // trigger: 'blur'
|
|
|
|
+ // }],
|
|
|
|
+ businessTypeId: [{
|
|
|
|
+ required: true,
|
|
|
|
+ // type: 'number',
|
|
|
|
+ message: '请选择业务类型',
|
|
|
|
+ trigger: 'change'
|
|
|
|
+ }]
|
|
|
|
+ },
|
|
|
|
+ // columnsModal: [
|
|
|
|
+ // {
|
|
|
|
+ // title: '业务类型',
|
|
|
|
+ // key: 'businessTypeName',
|
|
|
|
+ // align: 'center',
|
|
|
|
+ // ellipsis: true,
|
|
|
|
+ // tooltip: true
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // title: '应用ID',
|
|
|
|
+ // key: 'appCode',
|
|
|
|
+ // align: 'center',
|
|
|
|
+ // ellipsis: true,
|
|
|
|
+ // tooltip: true
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // title: '应用名称',
|
|
|
|
+ // key: 'appName',
|
|
|
|
+ // align: 'center',
|
|
|
|
+ // ellipsis: true,
|
|
|
|
+ // tooltip: true
|
|
|
|
+ // },
|
|
|
|
+ // ],
|
|
|
|
+ // modalAppData: [],
|
|
|
|
+ index: 0,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
|
|
+ this.getType()
|
|
|
|
+ this.getRoleList()
|
|
|
|
+ this.getTableData()
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ changePicker (date) {
|
|
|
|
+ this.tableParams.beginOperateTime = date[0]
|
|
|
|
+ this.tableParams.endOperateTime = date[1]
|
|
|
|
+ },
|
|
|
|
+ rowClassName(row, index) {
|
|
|
|
+ if (index % 2 == 0) {
|
|
|
|
+ return "ivu-table-stripe-even";
|
|
|
|
+ } else {
|
|
|
|
+ return "ivu-table-stripe-odd";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ // 分页
|
|
|
|
+ changePage (val) {
|
|
|
|
+ this.tableParams.pageNum = val
|
|
|
|
+ this.getTableData()
|
|
|
|
+ },
|
|
|
|
+ //跳转
|
|
|
|
+ sizeChange (val) {
|
|
|
|
+ this.tableParams.pageSize = val
|
|
|
|
+ this.getTableData()
|
|
|
|
+ },
|
|
|
|
+ getType () {
|
|
|
|
+ // 业务类型数据
|
|
|
|
+ this.$get('metroapi/businessType/box').then(res=>{
|
|
|
|
+ if (res.httpCode == 1 ){
|
|
|
|
+ this.businessModalData = JSON.parse(JSON.stringify(res.data))
|
|
|
|
+ this.businessData = res.data
|
|
|
|
+ this.businessData.unshift({ id: '-1', businessTypeName: '业务类型' })
|
|
|
|
+ } else {
|
|
|
|
+ this.businessData = []
|
|
|
|
+ this.businessModalData = []
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 获取表格数据
|
|
|
|
+ getTableData () {
|
|
|
|
+ let params = JSON.parse(JSON.stringify(this.tableParams))
|
|
|
|
+ params.roleId= params.roleId == '-1'?'':params.roleId
|
|
|
|
+ this.loading = true
|
|
|
|
+ this.$get('metroapi/log/querySysLogPage', params).then(res=>{
|
|
|
|
+ this.loading = false
|
|
|
|
+ if (res.httpCode == 1 ){
|
|
|
|
+ this.tableData = res.data.data
|
|
|
|
+ this.modalAppData = res.data.data
|
|
|
|
+ this.tableTotal = res.data.count
|
|
|
|
+ if (res.data.data.length==0) {
|
|
|
|
+ this.tablePage = 0
|
|
|
|
+ } else {
|
|
|
|
+ this.tablePage = res.data.count<= 10 ? 1: Math.ceil(res.data.count/this.tableParams.pageSize)
|
|
|
|
+ }
|
|
|
|
+ if (res.data.data.length==0 && this.tableParams.pageNum>1) {
|
|
|
|
+ this.tableParams.pageNum--
|
|
|
|
+ return this.getTableData()
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ this.tableData = []
|
|
|
|
+ this.tableTotal = 0
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ searchClick () {
|
|
|
|
+ this.tableParams.pageNum = 1
|
|
|
|
+ this.getTableData()
|
|
|
|
+ },
|
|
|
|
+ resetClick (name) {
|
|
|
|
+ this.dateRange = []
|
|
|
|
+ this.tableParams.beginOperateTime = ''
|
|
|
|
+ this.tableParams.endOperateTime = ''
|
|
|
|
+ this.$refs[name].resetFields()
|
|
|
|
+ this.tableParams.pageNum = 1
|
|
|
|
+ this.getTableData()
|
|
|
|
+ },
|
|
|
|
+ getRoleList () {
|
|
|
|
+ //获取角色名称
|
|
|
|
+ // this.$get('metroapi/role/box').then(res=>{
|
|
|
|
+ // if (res.httpCode == 1 ){
|
|
|
|
+ // this.roleModalData = JSON.parse(JSON.stringify(res.data))
|
|
|
|
+ // this.indexTypeList = res.data
|
|
|
|
+ // this.indexTypeList.unshift({ value: '-1', label: '指标类型' })
|
|
|
|
+ // } else {
|
|
|
|
+ // this.indexTypeList = []
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ },
|
|
|
|
+ addClick () {
|
|
|
|
+ this.currentStep = 1
|
|
|
|
+ this.title = '新增规则'
|
|
|
|
+ this.showModal = true
|
|
|
|
+ },
|
|
|
|
+ editClick (row) {
|
|
|
|
+ console.log(this.modalAppData)
|
|
|
|
+ this.currentStep = 1
|
|
|
|
+ this.rowObj = row
|
|
|
|
+ this.formOption = JSON.parse(JSON.stringify(row));
|
|
|
|
+ // this.modalAppData[this.index]._highlight = true
|
|
|
|
+ // this.formOption.lineId = this.formOption.lineId ? String(this.formOption.lineId) : '-1'
|
|
|
|
+ // this.formOption.stationId = this.formOption.stationId ? String(this.formOption.stationId) : '-1'
|
|
|
|
+ // this.formOption.level = String(this.formOption.level)
|
|
|
|
+ // this.getStationData(this.formOption.lineId)
|
|
|
|
+ // this.levelModalData = this.getCurrentLevel()
|
|
|
|
+ this.title = '编辑规则'
|
|
|
|
+ this.showModal = true
|
|
|
|
+ },
|
|
|
|
+ delClick (row) {
|
|
|
|
+ this.rowObj = row
|
|
|
|
+ this.commonTitle = '确认删除'
|
|
|
|
+ this.activeColor = '#E92E2E'
|
|
|
|
+ this.activeClass = ''
|
|
|
|
+ this.modalTitle = '删除的同时将解绑所有运营数据,且数据不可恢复。请慎重操作。'
|
|
|
|
+ this.modalStatus = true
|
|
|
|
+ },
|
|
|
|
+ modalChange (modalStatus) {
|
|
|
|
+ if (!modalStatus) {
|
|
|
|
+ this.$refs.formOption.resetFields();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ nextStep (formName,num) {
|
|
|
|
+ if (this.currentStep ==1) {
|
|
|
|
+ this.$refs[formName].validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ this.currentStep = this.currentStep + num
|
|
|
|
+ } else {
|
|
|
|
+ this.showModal = true
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else if (this.currentStep ==2) {
|
|
|
|
+ if (this.$refs.ruleStep2.saveValid()) {
|
|
|
|
+ this.currentStep = this.currentStep + num
|
|
|
|
+ }
|
|
|
|
+ } else if (this.currentStep == 3) {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ console.log(this.currentStep)
|
|
|
|
+ },
|
|
|
|
+ previousStep () {
|
|
|
|
+ this.currentStep--
|
|
|
|
+ },
|
|
|
|
+ commonOk () {
|
|
|
|
+ let params = {
|
|
|
|
+ id: this.rowObj.id
|
|
|
|
+ }
|
|
|
|
+ this.delData(params)
|
|
|
|
+ },
|
|
|
|
+ commonCancel () {
|
|
|
|
+ this.modalStatus = false
|
|
|
|
+ },
|
|
|
|
+ // 删除接口
|
|
|
|
+ delData (params) {
|
|
|
|
+ this.$get('metroapi/equipment/delEquipmentType',params).then(res=>{
|
|
|
|
+ if (res.httpCode == 1 ){
|
|
|
|
+ this.modalStatus = false
|
|
|
|
+ this.$Message.info(res.msg)
|
|
|
|
+ this.getTableData()
|
|
|
|
+ } else {
|
|
|
|
+ this.$Message.info(res.msg)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ selectTableChange (id) {
|
|
|
|
+ this.formOption.fieldName = id
|
|
|
|
+ console.log('selectTableChange',this.formOption)
|
|
|
|
+ },
|
|
|
|
+ selectModalBusiness (option) {
|
|
|
|
+ if (option) {
|
|
|
|
+ this.formOption.businessTypeName = option.label
|
|
|
|
+ console.log('selectModalBusiness',this.formOption)
|
|
|
|
+ }
|
|
|
|
+ console.log(option)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+</script>
|
|
|
|
+<style scoped lang="stylus">
|
|
|
|
+.content-main-manage {
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ height: calc(100% - 50px);
|
|
|
|
+ width: 100%;
|
|
|
|
+}
|
|
|
|
+.content-main {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+}
|
|
|
|
+.content-body-wrap {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ background: #06214d;
|
|
|
|
+ padding: 10px;
|
|
|
|
+}
|
|
|
|
+.content-body {
|
|
|
|
+ height: 100%;
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+.search-list {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ padding: 15px 0;
|
|
|
|
+}
|
|
|
|
+.search-left {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ .ivu-select {
|
|
|
|
+ width: 150px;
|
|
|
|
+ height: 32px;
|
|
|
|
+ }
|
|
|
|
+ .ivu-select-single .ivu-select-selection {
|
|
|
|
+ height: 100%;
|
|
|
|
+ }
|
|
|
|
+ >>> .ivu-input {
|
|
|
|
+ width: 225px;
|
|
|
|
+ height: 32px;
|
|
|
|
+ }
|
|
|
|
+ >>> .ivu-date-picker-editor .ivu-input {
|
|
|
|
+ width: 315px;
|
|
|
|
+ }
|
|
|
|
+ >>> .ivu-input-prefix, >>> .ivu-input-suffix {
|
|
|
|
+ height: 32px;
|
|
|
|
+ line-height: 32px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+>>> .common-form-list .ivu-form-item {
|
|
|
|
+ margin-bottom: 0px;
|
|
|
|
+}
|
|
|
|
+.manage-main-center {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: calc(100% - 150px);
|
|
|
|
+}
|
|
|
|
+.common-table {
|
|
|
|
+ max-height: 100%;
|
|
|
|
+}
|
|
|
|
+>>> .common-table .ivu-table th {
|
|
|
|
+ height: 48px;
|
|
|
|
+ }
|
|
|
|
+ >>> .common-table .ivu-table td {
|
|
|
|
+ height: 47px;
|
|
|
|
+ }
|
|
|
|
+ >>> .common-table .ivu-spin-fix {
|
|
|
|
+ top: 48px;
|
|
|
|
+ }
|
|
|
|
+ >>> .app-table .ivu-spin-fix {
|
|
|
|
+ height: calc(100vh - 355px);
|
|
|
|
+ }
|
|
|
|
+ >>> .common-table .ivu-table-tip {
|
|
|
|
+ background: url('../../../assets/images/noData.png') no-repeat center;
|
|
|
|
+}
|
|
|
|
+>>> .common-table .ivu-table-tip table {
|
|
|
|
+ display: none;
|
|
|
|
+}
|
|
|
|
+>>> .app-table .ivu-table-tip {
|
|
|
|
+ height: calc(100vh - 355px);
|
|
|
|
+ }
|
|
|
|
+.common-page {
|
|
|
|
+ margin-top: 15px;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: flex-end;
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ right: 0;
|
|
|
|
+}
|
|
|
|
+.common-page-total {
|
|
|
|
+ color: #fff;
|
|
|
|
+ padding-right: 10px;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ span {
|
|
|
|
+ color #409EFF;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+.modal-content-top-title {
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ color: #fff;
|
|
|
|
+ padding-left: 8px;
|
|
|
|
+ border-left: 2px solid #0185EA;
|
|
|
|
+ height: 18px;
|
|
|
|
+ line-height: 18px;
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
+}
|
|
|
|
+.modal-content {
|
|
|
|
+ margin-top: 20px;
|
|
|
|
+}
|
|
|
|
+</style>
|