|
@@ -139,25 +139,40 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <!-- 省工单是否可以选择意愿是否公开 -->
|
|
|
+ <el-col v-if="isProvincePublic">
|
|
|
+ <el-form-item label="诉求人意愿是否公开" label-width="140px">
|
|
|
+ {{ state.publishDetail.isPublic ? '是' : '否' }}
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
|
|
|
- <el-form-item label="门户是否公开" prop="publishState">
|
|
|
- <el-radio-group v-model="state.ruleForm.publishState" :disabled="disabled && publishDisabled" @change="selectPublishState">
|
|
|
- <el-radio :value="false">不公开</el-radio>
|
|
|
- <el-radio :value="true">公开</el-radio>
|
|
|
+ <el-form-item label="是否公开" prop="publishState">
|
|
|
+ <el-radio-group v-model="state.ruleForm.publishState" :disabled="publishDisabled" @change="selectPublishState">
|
|
|
+ <el-radio :value="false">否</el-radio>
|
|
|
+ <el-radio :value="true">是</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <!-- <el-col :xs="24" :sm="12" :md="24" :lg="24" :xl="24" v-if="!state.ruleForm.publishState">
|
|
|
- <el-form-item label="不公开理由" prop="noPubReason" :rules="[{ required: true, message: '请填写不公开理由', trigger: 'blur' }]">
|
|
|
- <el-input
|
|
|
- type="textarea"
|
|
|
- placeholder="请填写不公开理由"
|
|
|
- :autosize="{ minRows: 6, maxRows: 10 }"
|
|
|
- v-model="state.ruleForm.noPubReason"
|
|
|
- :disabled="disabled"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>-->
|
|
|
+ <!-- 省工单是否可以选择意愿是否公开 -->
|
|
|
+ <template v-if="isProvincePublic">
|
|
|
+ <el-col v-if="!state.ruleForm.publishState">
|
|
|
+ <el-form-item label="不公开理由" prop="noPubReason" :rules="[{ required: true, message: '请填写不公开理由', trigger: 'blur' }]">
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ placeholder="请填写不公开理由"
|
|
|
+ :autosize="{ minRows: 6, maxRows: 10 }"
|
|
|
+ v-model="state.ruleForm.noPubReason"
|
|
|
+ :disabled="disabled"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col v-if="state.ruleForm.publishState">
|
|
|
+ <el-form-item label="" prop="isOpenReview" :rules="[{ required: true, message: '请填写不公开理由', trigger: 'blur' }]">
|
|
|
+ <el-checkbox v-model="state.ruleForm.isOpenReview" disabled>已开展保密审查</el-checkbox>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </template>
|
|
|
+
|
|
|
<!-- 工单标记 随手拍特殊需求 发布时必填 -->
|
|
|
<el-col v-if="isSnapshot">
|
|
|
<el-form-item label="工单标记" prop="snapshotLabel" :rules="[{ required: true, message: '请选择工单标记', trigger: 'change' }]">
|
|
@@ -260,6 +275,7 @@ const state = reactive<any>({
|
|
|
publishState: false, // 门户是否公开
|
|
|
resolve: null, // 处理结果
|
|
|
snapshotLabel: [],
|
|
|
+ isOpenReview: null, // 是否开展保密审查
|
|
|
},
|
|
|
orderDetail: {}, // 工单详情
|
|
|
publishDetail: {}, // 发布详情
|
|
@@ -279,6 +295,7 @@ const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
|
const isSnapshot = ref<boolean>(false); // 是否是随手拍
|
|
|
const snapshotLabel = ref<EmptyArrayType>([]); // 工单标记多选框
|
|
|
const publishDisabled = ref<boolean>(false); // 是否公开禁用
|
|
|
+const isProvincePublic = ref<boolean>(false); // 省工单是否可以选择意愿是否公开
|
|
|
const openDialog = async (row: any, isDisabled: boolean = false) => {
|
|
|
disabled.value = isDisabled;
|
|
|
state.loading = true;
|
|
@@ -308,6 +325,8 @@ const openDialog = async (row: any, isDisabled: boolean = false) => {
|
|
|
idNamesArray.value = res.result?.idNames ?? [];
|
|
|
netizenEvaluateType.value = res.result?.netizenEvaluateType ?? [];
|
|
|
dialogTitle.value = '工单发布';
|
|
|
+ isProvincePublic.value = res.result?.isProvincePublic;
|
|
|
+ publishDisabled.value = res.result?.isProvincePublic === false; // 诉求人意愿是否公开 否 禁用是否公开按钮
|
|
|
state.loading = false;
|
|
|
state.dialogVisible = true;
|
|
|
}
|
|
@@ -322,7 +341,7 @@ const isZGZFW = computed(() => {
|
|
|
});
|
|
|
// 选择是否公开
|
|
|
const selectPublishState = (val: any) => {
|
|
|
- console.log(val, '1');
|
|
|
+ state.ruleForm.isOpenReview = !!val;
|
|
|
};
|
|
|
// 关闭弹窗
|
|
|
const closeDialog = () => {
|