|
|
|
@ -5,6 +5,12 @@ |
|
|
|
<el-form :inline="true" |
|
|
|
:model="dataForm" |
|
|
|
@keyup.enter.native="getDataList()"> |
|
|
|
<el-form-item label="所属机构"> |
|
|
|
<el-cascader v-model="deptIdList" |
|
|
|
:options="options" |
|
|
|
:props="{ checkStrictly: true }" |
|
|
|
clearable></el-cascader> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="dataForm.noticeTitle" |
|
|
|
placeholder="通知标题" |
|
|
|
@ -68,11 +74,11 @@ |
|
|
|
fixed="right" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
width="300"> |
|
|
|
width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button v-if="$hasPermission('news:notice:update')" |
|
|
|
type="primary" |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
@click="addOrUpdateHandle(scope.row.id)">查看</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -107,8 +113,11 @@ export default { |
|
|
|
deleteIsBatch: true |
|
|
|
}, |
|
|
|
dataForm: { |
|
|
|
noticeTitle: '' |
|
|
|
} |
|
|
|
noticeTitle: '', |
|
|
|
gridId: '' |
|
|
|
}, |
|
|
|
options: [], |
|
|
|
deptIdList: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
components: { |
|
|
|
@ -154,6 +163,26 @@ export default { |
|
|
|
return row.street |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
'deptIdList': function (val) { |
|
|
|
if (val.length !== 0) { |
|
|
|
this.dataForm.gridId = val[val.length - 1] |
|
|
|
} else { |
|
|
|
this.dataForm.gridId = '' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
created () { |
|
|
|
this.$http |
|
|
|
.get(`/sys/user/deptOptions/getByLoginUser`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.options = res.data.options |
|
|
|
}) |
|
|
|
.catch(() => { }) |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|