9fa6ead7 by 任超

style:监管

1 parent e349040a
......@@ -24,6 +24,11 @@ Vue.prototype.$endLoading = endLoadingSubCount
import { theme } from "@/directive/theme.js"
Vue.directive("theme", theme)
Vue.directive('fo', {
inserted (el, binding, vnode) {
el.querySelector('input').focus()
}
})
import './image/icons' // icon
import store from './store'
import router from './router'
......
......@@ -344,8 +344,7 @@ aside {
.prohibit .suspend {
position: relative;
margin: 0 auto;
text-align: left;
padding-left: 13px;
text-align: center;
}
.allow {
......@@ -360,42 +359,6 @@ aside {
color: $yellow;
}
.allow::before {
content: '';
position: absolute;
left: 5px;
top: 45%;
background-color: $green;
display: inline-block; // 此句为css样式展示重点🏁
width: 5px;
height: 5px;
border-radius: 50%;
}
.prohibit::before {
content: '';
position: absolute;
left: 5px;
top: 45%;
background-color: $pink;
display: inline-block; // 此句为css样式展示重点🏁
width: 5px;
height: 5px;
border-radius: 50%;
}
.suspend::before {
content: '';
position: absolute;
left: 5px;
top: 45%;
background-color: $yellow;
display: inline-block; // 此句为css样式展示重点🏁
width: 5px;
height: 5px;
border-radius: 50%;
}
//错误日志样式 后期超优化
.item-cwnr {
white-space: pre-wrap;
......
......@@ -16,15 +16,15 @@
</el-col>
</el-row>
</el-form>
<lb-table :column="column" :heightNum="420" :key="key" :expand-row-keys="keyList" row-key="bsmDict"
:tree-props="{ children: 'children' }" :pagination="false" :data="tableData">
<lb-table :column="column" class="loadingtext" :heightNum="420" :key="key" :expand-row-keys="keyList"
row-key="bsmDict" :tree-props="{ children: 'children' }" :pagination="false" :data="tableData">
</lb-table>
</dialogBox>
</template>
<script>
import { getUuid, judgeSort, realMove, findParents, removeTreeListItem } from '@/utils/operation'
import { editDictNode } from '@/api/user'
import { editDictNode, getChildDictList } from '@/api/user'
export default {
props: {
value: { type: Boolean, default: false },
......@@ -177,9 +177,23 @@ export default {
value (val) {
this.myValue = val
},
'details.bsmDict': {
handler: function (newValue) {
if (!this.value) return
this.$startLoading();
getChildDictList(newValue).then(res => {
this.$endLoading();
let { result } = res
this.tableData = result ? result : []
this.tableData.forEach((item, index) => {
item.index = index + 1
})
})
},
immediate: true
},
details: {
handler: function (newValue) {
this.tableData = judgeSort(_.cloneDeep(newValue.dataList))
if (newValue.isenable == 2) {
this.column = this.columns.slice(0, 6)
} else {
......@@ -317,6 +331,17 @@ export default {
<style rel="stylesheet/scss" lang="scss" scoped>
/deep/.el-radio {
margin-right: 5px !important;
display: flex;
}
/deep/.el-radio__label {
display: block;
}
/deep/.el-radio-group {
display: flex;
align-items: center;
justify-content: center;
}
</style>
......
......@@ -52,7 +52,7 @@ export default {
return {
isDialog: false,
details: {
dataList: [],
bsmDict: '',
isenable: 1,
rowData: {}
},
......@@ -107,11 +107,8 @@ export default {
editClick (row, val) {
this.details.rowData = row
this.details.isenable = val
getChildDictList(row.bsmDict).then(res => {
this.details.bsmDict = row.bsmDict
this.isDialog = true
let { result } = res
this.details.dataList = result ? result : []
})
}
}
};
......