Browse Source

vue-bus插件提交

master
DESKTOP-5DIJMF9\admin 4 months ago
parent
commit
bd8dc5ab54
  1. 1
      lms/nladmin-ui/package.json
  2. 3
      lms/nladmin-ui/src/main.js
  3. 10
      lms/nladmin-ui/src/views/wms/basedata/master/faultdevice/index.vue

1
lms/nladmin-ui/package.json

@ -119,6 +119,7 @@
"serve-static": "^1.13.2",
"svg-sprite-loader": "4.1.3",
"svgo": "1.2.0",
"vue-bus": "^1.2.1",
"vue-template-compiler": "2.6.10"
},
"engines": {

3
lms/nladmin-ui/src/main.js

@ -45,7 +45,7 @@ import request from '@/utils/request' // 实现 form generator 使用自己定
import { addDateRange, handleTree, parseTime, resetForm, selectDictLabel, selectDictLabels, flexWidth } from '@/utils/nladmin'
import { getValueByCode } from '@/api/system/param'
import VueBus from 'vue-bus'
LogicFlow.use(Menu)
Vue.component('tinymce', Tinymce)
@ -67,6 +67,7 @@ Vue.use(VueHighlightJS)
Vue.use(mavonEditor)
Vue.use(permission)
Vue.use(dict)
Vue.use(VueBus)
// 全局设置控件样式https://codeantenna.com/a/0IN5FMJk5h
Element.Table.props.border = { type: Boolean, default: true }
Element.TableColumn.props.align = { type: String, default: 'center' }

10
lms/nladmin-ui/src/views/wms/basedata/master/faultdevice/index.vue

@ -117,7 +117,7 @@
<el-table-column prop="update_name" label="修改者" />
<el-table-column prop="update_time" label="修改时间" width="150" />
<el-table-column
v-permission="['admin','customerbase:edit','customerbase:del']"
v-permission="['admin','faultdevice:edit','faultdevice:del']"
label="操作"
width="150px"
align="center"
@ -126,7 +126,7 @@
<udOperation
:data="scope.row"
:permission="permission"
:disabled-dle="true"
:is-visiable-del="false"
/>
</template>
</el-table-column>
@ -178,7 +178,11 @@ export default {
},
data() {
return {
permission: {},
permission: {
add: ['admin', 'faultdevice:add'],
edit: ['admin', 'faultdevice:edit'],
del: ['admin', 'faultdevice:del']
},
syncLoading: false,
rules: {
}

Loading…
Cancel
Save