|
|
@@ -84,6 +84,21 @@
|
|
|
:disabled="item.disabled"
|
|
|
/>
|
|
|
</template>
|
|
|
+
|
|
|
+ <!-- 发布单位 -->
|
|
|
+ <template v-if="item.type === 'publishingUnit'">
|
|
|
+ <el-tree-select
|
|
|
+ v-model="formData[item.prop]"
|
|
|
+ :data="treeData"
|
|
|
+ :render-after-expand="false"
|
|
|
+ :disabled="item.disabled"
|
|
|
+ node-key="id"
|
|
|
+ filterable
|
|
|
+ :placeholder="item.placeholder"
|
|
|
+ style="width: 100%"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+
|
|
|
<!-- 发布状态 -->
|
|
|
<template v-if="item.type === 'releaseStatus'">
|
|
|
<el-select
|
|
|
@@ -143,10 +158,10 @@
|
|
|
</div>
|
|
|
<template #footer>
|
|
|
<span class="dialog-footer">
|
|
|
- <el-button type="primary" v-show="dialogLook == false" @click="handleConfirmClick(ruleFormRef, '3')"
|
|
|
+ <el-button type="primary" v-show="dialogLook == false" @click="handleConfirmClick(ruleFormRef, '1')"
|
|
|
>保存</el-button
|
|
|
>
|
|
|
- <el-button type="primary" v-show="dialogLook == false" @click="handleConfirmClick(ruleFormRef, '1')"
|
|
|
+ <el-button type="primary" v-show="dialogLook == false" @click="handleConfirmClick(ruleFormRef, '2')"
|
|
|
>提交</el-button
|
|
|
>
|
|
|
<el-button @click="handleExcel(ruleFormRef)">返回</el-button>
|
|
|
@@ -231,11 +246,14 @@ async function setDialogVisible(isNew: boolean = true, check: boolean = false) {
|
|
|
initialForm[m.prop] = '张浩楠';
|
|
|
}
|
|
|
if (m.prop === 'publishingUnit') {
|
|
|
- initialForm[m.prop] = '交通运输部海事局';
|
|
|
+ initialForm[m.prop] = '100';
|
|
|
}
|
|
|
if (m.prop === 'addDate') {
|
|
|
initialForm[m.prop] = nowStr;
|
|
|
}
|
|
|
+ if (m.prop === 'releaseStatus') {
|
|
|
+ initialForm[m.prop] = '1';
|
|
|
+ }
|
|
|
});
|
|
|
formData.value = JSON.parse(JSON.stringify(initialForm));
|
|
|
await nextTick();
|
|
|
@@ -252,7 +270,7 @@ function handleConfirmClick(formEl: FormInstance | undefined, status: string) {
|
|
|
if (valid) {
|
|
|
dialogVisible.value = false;
|
|
|
// 可用状态 编辑始终 都是可用
|
|
|
- if (formData.value.releaseStatus != 1) {
|
|
|
+ if (formData.value.releaseStatus != '2') {
|
|
|
formData.value.releaseStatus == status;
|
|
|
}
|
|
|
|