Browse Source

驳回添加

release/epdc
lichao 1 year ago
parent
commit
acbd0874b7
  1. 74
      src/views/modules/events/mayor-hot-line.vue

74
src/views/modules/events/mayor-hot-line.vue

@ -27,6 +27,11 @@
@click="dialogVisible = true, selfObj = scope.row"> @click="dialogVisible = true, selfObj = scope.row">
{{ scope.row.sszt === '01' || agencyFlag == 'district' ? '分发' : '上报网格化平台' }} {{ scope.row.sszt === '01' || agencyFlag == 'district' ? '分发' : '上报网格化平台' }}
</el-button> </el-button>
<el-button type="text" size="small" class="custom-table-button-default"
@click="dialogVisibleForBoHui = true, selfObjBoHui = scope.row">
{{ '驳回' }}
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -35,6 +40,32 @@
@current-change="pageCurrentChangeHandle"> @current-change="pageCurrentChangeHandle">
</el-pagination> </el-pagination>
<el-dialog :title=" '驳回'" v-if="dialogVisibleForBoHui"
:visible.sync="dialogVisibleForBoHui" width="50%">
<el-form ref="postDataForm_fk"
label-width="120px"
label-position="right"
style="width: 620px;"
:model="dataForm"
:rules="dataRule">
<el-form-item label="驳回理由:" prop="content">
<el-input v-model="selfObjBoHui.content"
type="textarea"
:rows="6"
maxlength="1000"
show-word-limit
placeholder="请输入"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisibleForBoHui = false, selfObjBoHui.content = ''"> </el-button>
<el-button type="primary" @click="handleClickForBoHui"> </el-button>
</span>
</el-dialog>
<el-dialog :title="selfObj.sszt === '01' ? '分发' : '上报网格化平台'" v-if="dialogVisible" <el-dialog :title="selfObj.sszt === '01' ? '分发' : '上报网格化平台'" v-if="dialogVisible"
:visible.sync="dialogVisible" width="50%"> :visible.sync="dialogVisible" width="50%">
<el-form :label-width="$i18n.locale === 'en-US' ? '100px' : '80px'"> <el-form :label-width="$i18n.locale === 'en-US' ? '100px' : '80px'">
@ -96,12 +127,16 @@ export default {
}, },
options: [], options: [],
dialogVisible: false, dialogVisible: false,
dialogVisibleForBoHui: false,
dataRule: { dataRule: {
ids: [{ required: true, message: this.$t('validate.required'), trigger: 'blur' }], ids: [{ required: true, message: this.$t('validate.required'), trigger: 'blur' }],
content: [{ required: true, message: this.$t('validate.required'), trigger: 'blur' }],
}, },
selfObj: {}, selfObj: {},
selfObjBoHui: {},
dataForm: { dataForm: {
ids: [], ids: [],
content:''
}, },
gridName: null, gridName: null,
streetList: [], streetList: [],
@ -204,7 +239,44 @@ export default {
}, },
1000, 1000,
{ leading: true, trailing: false } { leading: true, trailing: false }
) ),
handleClickForBoHui: debounce(
function () {
let url = '/events/itemhotline/backHotLine'
let parm = {
id:this.selfObjBoHui.id,
cznr: this.selfObjBoHui.content
}
console.log(parm, url, 'see');
this.$http
.post(url, parm)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg);
}
this.$message({
message: this.$t('prompt.success'),
type: 'success',
duration: 500,
onClose: () => {
this.dialogVisibleForBoHui = false;
}
});
this.getDataList();
})
.catch(() => { });
},
1000,
{ leading: true, trailing: false }
)
} }
} }

Loading…
Cancel
Save