追加关于党组织的抽象类

This commit is contained in:
aixianling
2022-10-24 11:58:47 +08:00
parent bda2b10c7f
commit f178667db8
7 changed files with 85 additions and 133 deletions

View File

@@ -53,8 +53,11 @@
</el-table-column>
</ai-table>
</template>
<ai-empty>暂无换届信息,请完善基础内容后,再进行后续操作<br/><br/><br/>
<el-button size="small" type="primary" @click="toEdit(oid)">开始设置</el-button>
<ai-empty>
<div>暂无换届信息</div>
<el-row type="flex" justify="center" class="mar-t8">
<ai-highlight content="请点击【@v】完善基础内容后,再进行后续操作" value="换届设置"/>
</el-row>
</ai-empty>
<ai-dialog :visible.sync="dialogJob" title="添加本届任职人" width="720px" @closed="jobForm={}" @onConfirm="handleJobForm">
<el-form ref="jobForm" size="small" :model="jobForm" :rules="jobRules" label-width="80px">
@@ -82,12 +85,7 @@
<script>
export default {
name: "moment",
props: {
instance: Function,
permissions: Function,
dict: Object,
selected: Object,
},
inject: ['permissions', 'instance', 'dict'],
data() {
return {
detail: {},
@@ -127,10 +125,10 @@ export default {
name: [{required: true, message: "请输入姓名"}],
}
},
oid: v => v.selected.id
oid: v => v.$attrs.selected.id
},
mounted() {
this.getList(this.selected.id)
created() {
this.getList()
},
methods: {
jobEdit() {
@@ -142,8 +140,11 @@ export default {
toEdit(id) {
this.$router.push({hash: "#add", query: {id}})
},
getList(id) {
this.instance.post(`/app/apporganizationgeneralelection/queryDetailByOrganizationId?organizationId=${id}`).then(res => {
getList() {
const {oid: organizationId} = this
organizationId && this.instance.post(`/app/apporganizationgeneralelection/queryDetailByOrganizationId`, null, {
params: {organizationId}
}).then(res => {
if (res?.data) {
this.detail = res.data
}