6144d539 by 任超

style:字典

1 parent cbde7505
......@@ -87,7 +87,7 @@
<p class="label-detail">(MJDW)</p>
</span>
<el-select :disabled="$store.state.business.Edit" v-model="ruleForm.MJDW" placeholder="面积单位">
<el-option v-for="item in dictData['A7']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
<el-option v-for="item in dicData['A7']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
</el-option>
</el-select>
</el-form-item>
......@@ -317,7 +317,7 @@
<p class="label-detail">(ZT)</p>
</span>
<el-select :disabled="$store.state.business.Edit" v-model="ruleForm.ZT" placeholder="状态">
<el-option v-for="item in dictData['A11']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
<el-option v-for="item in dicData['A11']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
</el-option>
</el-select>
</el-form-item>
......@@ -418,15 +418,15 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="ZH">
<span slot="label">
组: <br />
<p class="label-detail">(ZH)</p>
</span>
<el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ZH" placeholder="组">
</el-input>
</el-form-item>
span="8">
<el-form-item prop="ZH">
<span slot="label">
组: <br />
<p class="label-detail">(ZH)</p>
</span>
<el-input :disabled="$store.state.business.Edit" v-model="ruleForm.ZH" placeholder="组">
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
......@@ -500,7 +500,6 @@ export default {
try {
let { result: res } = await business.kttZdjbxxDetail(this.bsmSjsb)
this.ruleForm = res
this.featchRule()
} catch (error) {
this.$refs.msg.messageShow()
}
......
<template>
<!-- 编辑 -->
<el-dialog :close-on-click-modal="false" top="0" custom-class="dialogBox editDialogBox mainCenter"
:visible.sync="dialogVisible" width="75%">
:visible.sync="dialogVisible" width="80%">
<div slot="title" class="dialog_title" ref="dialogTitle">
<b>{{ title || '标题' }}</b>
</div>
......@@ -90,7 +90,8 @@
</el-tab-pane>
</el-tabs>
<div class="edit-content">
<component :is="editItem" ref="editItem" :class="{ 'editForm': $store.state.business.Edit }" :bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bizmsgid"/>
<component :is="editItem" ref="editItem" :class="{ 'editForm': $store.state.business.Edit }" :bsmYwsjb="bsmYwsjb"
:bsmSjsb="dataReport.bizmsgid" />
</div>
<div slot="footer" class="dialog_footer" ref="dialogFooter">
<div class="dialog_button">
......@@ -152,9 +153,9 @@ export default {
this.dataReport = item;
this.dialogVisible = true
//获取表头列表
getDetail({bizmsgid: this.dataReport.bizmsgid}).then(res => {
if(res.code == 200){
this.headerList = res.result
getDetail({ bizmsgid: this.dataReport.bizmsgid }).then(res => {
if (res.code == 200) {
this.headerList = res.result
}
})
},
......
......@@ -10,7 +10,7 @@ const getters = {
addRoutes: state => state.permission.addRoutes,
// business
rules: state => state.business.rules,
dictData: state => state.dict.dictData,
dicData: state => state.dict.dicData,
Edit: state => state.business.Edit,
businessInfo: state => state.dictionaries.businessInfo
}
......
import { getAllDict } from '@/api/user'
const state = {
dictData: {},
dicData: {},
addDict: false,
}
const mutations = {
SET_DATA: (state, data) => {
state.addDict = true
state.dictData = data
state.dicData = data
},
RESET_DICT: (state) => {
state.addDict = false
......
......@@ -362,11 +362,13 @@ aside {
position: absolute;
content: '';
display: block;
width: 5px;
height: 5px;
width: 8px;
height: 8px;
left: -15px;
top: 5px;
background: #00FAA8;
border-radius: 50%;
margin-right: 6px;
border: 5px solid rgba(0, 250, 168, 0.3);
}
//错误日志样式 后期超优化
......
......@@ -37,7 +37,7 @@ class data extends filter {
<div>
{
scope.row.jcjg
? <span>通过</span>
? <span class='adopt'>通过</span>
: <span>通过1</span>
}
</div>
......
......@@ -184,7 +184,7 @@ export default {
}
]),
// 表格列表数据
data: [{}]
data: [{ jcjg: 1 }]
},
// 分页
pageData: {
......