This commit is contained in:
yanran200730
2022-12-13 16:04:54 +08:00
parent e8ff014598
commit 01c48a1cd6
3 changed files with 80 additions and 37 deletions

View File

@@ -20,6 +20,7 @@
<div class="addressBook-left__list--wrapper"> <div class="addressBook-left__list--wrapper">
<div class="addressBook-left__list"> <div class="addressBook-left__list">
<el-tree <el-tree
v-if="isShowTree"
:filter-node-method="filterNode" :filter-node-method="filterNode"
ref="tree" ref="tree"
:props="defaultProps" :props="defaultProps"
@@ -50,10 +51,10 @@
<template slot="content"> <template slot="content">
<ai-search-bar class="search-bar"> <ai-search-bar class="search-bar">
<template #left> <template #left>
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="toAdd('')">添加成员</el-button> <!-- <el-button size="small" type="primary" icon="iconfont iconAdd" @click="toAdd('')">添加成员</el-button> -->
</template> </template>
<template slot="right"> <template slot="right">
<el-input <!-- <el-input
v-model="search.name" v-model="search.name"
size="small" size="small"
v-throttle="() => {search.current = 1, getList()}" v-throttle="() => {search.current = 1, getList()}"
@@ -61,7 +62,7 @@
clearable clearable
@clear="search.current = 1, search.name = '', getList()" @clear="search.current = 1, search.name = '', getList()"
suffix-icon="iconfont iconSearch"> suffix-icon="iconfont iconSearch">
</el-input> </el-input> -->
</template> </template>
</ai-search-bar> </ai-search-bar>
<ai-table <ai-table
@@ -75,8 +76,7 @@
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center"> <el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<div class="table-options"> <div class="table-options">
<el-button type="text" @click="toAdd(row.id)">编辑</el-button> <el-button type="text" @click="remove(row.fileId)">删除</el-button>
<el-button type="text" @click="remove(row.id)">删除</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@@ -114,6 +114,7 @@
y: '', y: '',
node: {} node: {}
}, },
isShowTree: true,
form: { form: {
folderName: '' folderName: ''
}, },
@@ -133,7 +134,7 @@
colConfigs: [ colConfigs: [
{ prop: 'fileName', label: '名称' }, { prop: 'fileName', label: '名称' },
{ prop: 'ctime', label: '文件创建时间', formart: v => v ? this.$moment(v * 1000).format('YYYY-MM-DD HH:mm:ss') : '-' }, { prop: 'ctime', label: '文件创建时间', formart: v => v ? this.$moment(v * 1000).format('YYYY-MM-DD HH:mm:ss') : '-' },
{ prop: 'departmentNames', label: '创建人' } // { prop: 'departmentNames', label: '创建人' }
], ],
defaultProps: { defaultProps: {
children: 'children', children: 'children',
@@ -189,33 +190,60 @@
this.isShow = true this.isShow = true
} else if (e === 'edit') { } else if (e === 'edit') {
this.form = { this.form = {
...item ...item,
folderName: item.fileName
} }
this.isShow = true this.isShow = true
} else if (e === 'remove') { } else if (e === 'remove') {
this.remove(item.fileId, item.spaceid) this.remove(item.fileId)
} }
}, },
onConfirm () { onConfirm () {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
this.instance.post(`/app/wxwedrive/createWedriveFloder`, null, { if (this.form.fileId) {
params: { this.instance.post(`/app/wxwedrive/fileRename`, null, {
...this.form, params: {
spaceid: this.spaceid, newName: this.form.folderName,
fatherid: this.fatherid fileid: this.form.fileId
} }
}).then(res => { }).then(res => {
this.search.spaceid = this.spaceid if (res.code == 0) {
this.search.fatherid = this.fatherid this.isShowTree = false
if (res.code == 0) { this.defaultChecked = [this.spaceid]
this.defaultChecked = [this.spaceid] this.getList()
this.getList() this.isShow = false
this.isShow = false this.$message.success('编辑成功')
this.$message.success(this.departId ? '编辑成功' : '新增成功')
} this.$nextTick(() => {
}) this.isShowTree = true
})
}
})
} else {
this.instance.post(`/app/wxwedrive/createWedriveFloder`, null, {
params: {
...this.form,
spaceid: this.spaceid,
fatherid: this.fatherid
}
}).then(res => {
this.search.spaceid = this.spaceid
this.search.fatherid = this.fatherid
if (res.code == 0) {
this.isShowTree = false
this.defaultChecked = [this.spaceid]
this.getList()
this.isShow = false
this.$message.success('新增成功')
this.$nextTick(() => {
this.isShowTree = true
})
}
})
}
} }
}) })
}, },
@@ -256,10 +284,15 @@
remove(id) { remove(id) {
this.$confirm('确定删除该数据?').then(() => { this.$confirm('确定删除该数据?').then(() => {
this.instance.post(`/app/wxwedrive/fileDelete?id=${id}`).then(res => { this.instance.post(`/app/wxwedrive/fileDelete?fileid=${id}`).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$message.success('删除成功!') this.$message.success('删除成功!')
this.isShowTree = false
this.getList() this.getList()
this.$nextTick(() => {
this.isShowTree = true
})
} }
}) })
}) })

View File

@@ -26,7 +26,7 @@
v-model="search.status" v-model="search.status"
clearable clearable
placeholder="请选择完成情况" placeholder="请选择完成情况"
:selectList="dict.getDict('ampvFilled')" :selectList="dict.getDict('hljFillStatus')"
@change="search.current = 1, getList()"> @change="search.current = 1, getList()">
</ai-select> </ai-select>
</template> </template>
@@ -37,7 +37,7 @@
placeholder="输入评分人姓名" placeholder="输入评分人姓名"
clearable clearable
v-throttle="() => {search.current = 1, getList()}" v-throttle="() => {search.current = 1, getList()}"
@clear="search.current = 1, search.title = '', getList()" @clear="search.current = 1, search.name = '', getList()"
suffix-icon="iconfont iconSearch"> suffix-icon="iconfont iconSearch">
</el-input> </el-input>
</template> </template>
@@ -83,28 +83,35 @@
name: '', name: '',
status: '' status: ''
}, },
dictList: [{
dictName: '未填写',
dictValue: '0'
}, {
dictName: '已填写',
dictValue: '1'
}],
total: 0, total: 0,
isShow: false, isShow: false,
currIndex: 0, currIndex: 0,
isLoading: false, isLoading: false,
tableData: [], tableData: [],
colConfigs: [ colConfigs: [
{prop: 'templateName', label: '参评人员', align: 'center' }, {prop: 'evaluatorsName', label: '参评人员', align: 'center' },
{prop: 'createUserName', label: '提交时间', align: 'center', width: 150 }, {prop: 'commitTime', label: '提交时间', align: 'center', width: 150 },
{prop: 'createUserName', label: '总分', align: 'center' }, {prop: 'totalScore', label: '总分', align: 'center' },
{ {
prop: 'status', prop: 'examineStatus',
align: 'center', align: 'center',
label: '审核状态', label: '审核状态',
render: (h, {row}) => { render: (h, {row}) => {
return h('span', { return h('span', {
style: { style: {
color: this.dict.getColor('ampvFilled', row.status) color: this.dict.getColor('auditStatus', row.examineStatus)
} }
}, this.dict.getLabel('ampvFilled', row.status)) }, this.dict.getLabel('auditStatus', row.examineStatus))
} }
}, },
{prop: 'createUserName', label: '审核人', align: 'center' }, {prop: 'examineUserName', label: '审核人', align: 'center' },
], ],
list: [] list: []
} }
@@ -113,9 +120,11 @@
created () { created () {
if (this.params && this.params.id) { if (this.params && this.params.id) {
this.id = this.params.id this.id = this.params.id
this.$dict.load(['ampvFilled', 'formStatus']).then(() => { this.$dict.load(['auditStatus', 'hljFillStatus']).then(() => {
this.getInfo() this.getInfo()
}) })
this.getList()
} }
}, },
@@ -135,7 +144,8 @@
getList () { getList () {
this.instance.post(`/app/appassessmentscorev2task/fillInfo`, null, { this.instance.post(`/app/appassessmentscorev2task/fillInfo`, null, {
params: { params: {
...this.search ...this.search,
taskId: this.params.id
} }
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {

View File

@@ -57,7 +57,7 @@ module.exports = {
proxy: { proxy: {
//设置代理,可解决跨5 //设置代理,可解决跨5
'/lan': { '/lan': {
target: 'http://192.168.1.105:19000', target: 'http://192.168.1.87:9000',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
//地址重写 //地址重写