|
|
|
|
@ -28,7 +28,7 @@
|
|
|
|
|
<div v-else-if="column.type=='opt'">
|
|
|
|
|
<Button v-if="safe.status==0" ghost size="small" @click="edit(scope.row)" type="primary"
|
|
|
|
|
style="margin-left: 10px;">新增上报</Button>
|
|
|
|
|
<Button v-if="safe.status==1" ghost size="small" @click="edit(safe,true)" type="primary"
|
|
|
|
|
<Button v-if="safe.status==1||safe.status==2" ghost size="small" @click="edit(safe,true)" type="primary"
|
|
|
|
|
style="margin-left: 10px;">编辑上报</Button>
|
|
|
|
|
<Button v-if="safe.status==2" ghost size="small" @click="$refs['detailUpInfo'].getinfo(safe.id),$refs['detailUpInfo'].dialogFormVisible = true" type="primary"
|
|
|
|
|
style="margin-left: 10px;">查看上报</Button>
|
|
|
|
|
@ -82,11 +82,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div slot="footer" class="dialog-footer" v-if="!isReportSave">
|
|
|
|
|
<el-button @click="resetForm('form')">取 消</el-button>
|
|
|
|
|
<el-button type="primary" v-preventReClick @click="submitForm('form','1')">保 存</el-button>
|
|
|
|
|
<el-button type="primary" v-preventReClick @click="submitForm('form', '2')">上 报</el-button>
|
|
|
|
|
<!-- <el-button type="primary" v-preventReClick @click="submitForm('form','1')">保 存</el-button> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div slot="footer" class="dialog-footer" v-if="isReportSave">
|
|
|
|
|
<el-button @click="resetForm('form')">取 消</el-button>
|
|
|
|
|
<el-button type="primary" v-preventReClick @click="submitForm('form','1')">保 存</el-button>
|
|
|
|
|
<!-- <el-button type="primary" v-preventReClick @click="submitForm('form','1')">保 存</el-button> -->
|
|
|
|
|
<el-button type="primary" v-preventReClick @click="submitForm('form', '2')">上 报</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
@ -300,6 +301,9 @@
|
|
|
|
|
edit(obj, isnew) {
|
|
|
|
|
this.form = this.$options.data().form;
|
|
|
|
|
this.clientHeight = document.documentElement.clientHeight - 84 - 110;
|
|
|
|
|
this.$nextTick(function(){
|
|
|
|
|
this.$refs.tinymce.setContent("");
|
|
|
|
|
})
|
|
|
|
|
if (isnew) {
|
|
|
|
|
var that = this;
|
|
|
|
|
that.form.content = "";
|
|
|
|
|
@ -321,14 +325,15 @@
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (status == "2") {
|
|
|
|
|
that.form.status = status;
|
|
|
|
|
submitsave(that.form).then(response => {
|
|
|
|
|
save(that.form).then(response => {
|
|
|
|
|
//console.log(response)
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
that.load();
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
that.load();
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
save(that.form).then(response => {
|
|
|
|
|
//console.log(response)
|
|
|
|
|
|