map
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 368 B |
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 323 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 453 B |
After Width: | Height: | Size: 509 B |
After Width: | Height: | Size: 264 B |
After Width: | Height: | Size: 285 B |
After Width: | Height: | Size: 418 B |
After Width: | Height: | Size: 447 B |
After Width: | Height: | Size: 185 B |
After Width: | Height: | Size: 1.2 KiB |
|
@ -7,6 +7,7 @@ import router from './router'
|
||||||
import store from './store'
|
import store from './store'
|
||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||||||
|
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
|
|
||||||
|
@ -18,3 +19,6 @@ app.use(scui);
|
||||||
|
|
||||||
//挂载app
|
//挂载app
|
||||||
app.mount('#app');
|
app.mount('#app');
|
||||||
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
||||||
|
app.component(key, component)
|
||||||
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="time" label="部门" min-width="150">
|
<el-table-column prop="time" label="部门" min-width="150">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="scope.row.id">{{scope.row.dept_.name}}</span>
|
<span v-if="scope.row.id&&scope.row.dept_">{{scope.row.dept_.name}}</span>
|
||||||
<el-cascader
|
<el-cascader
|
||||||
v-else
|
v-else
|
||||||
v-model="scope.row.dept"
|
v-model="scope.row.dept"
|
||||||
|
@ -102,23 +102,7 @@
|
||||||
},
|
},
|
||||||
userPostForm: {
|
userPostForm: {
|
||||||
title: "用户/岗位关系",
|
title: "用户/岗位关系",
|
||||||
list: [
|
list: []
|
||||||
{
|
|
||||||
id:'1001',
|
|
||||||
name: "关系1",
|
|
||||||
sort: "1",
|
|
||||||
user: "石静",
|
|
||||||
post: "岗位",
|
|
||||||
dept: "部门",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '',
|
|
||||||
sort: '',
|
|
||||||
user: '',
|
|
||||||
post: "",
|
|
||||||
dept: "",
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
job_states: { true: "在职",false: "离职"},
|
job_states: { true: "在职",false: "离职"},
|
||||||
|
@ -215,7 +199,9 @@
|
||||||
if(res.err_msg){
|
if(res.err_msg){
|
||||||
this.$message.error(res.err_msg)
|
this.$message.error(res.err_msg)
|
||||||
}else{
|
}else{
|
||||||
this.userPostForm.list=res.results;
|
this.getUserPostList();
|
||||||
|
this.$message.success("操作成功");
|
||||||
|
// this.userPostForm.list=res.results;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -230,6 +216,7 @@
|
||||||
if(res.err_msg){
|
if(res.err_msg){
|
||||||
this.$message.error(res.err_msg)
|
this.$message.error(res.err_msg)
|
||||||
}else{
|
}else{
|
||||||
|
this.getUserPostList();
|
||||||
this.$message.success("操作成功");
|
this.$message.success("操作成功");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -72,5 +72,11 @@ module.exports = defineConfig({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
pluginOptions: {
|
||||||
|
'style-resources-loader': {
|
||||||
|
preProcessor: 'sass',
|
||||||
|
patterns: []
|
||||||
|
}
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|