| | |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog :before-close="closeCopyTem" :close-on-click-modal="false" :close-on-press-escape="false" |
| | | :visible.sync="isShowCopyTem" :title="title" width="35%"> |
| | | :visible.sync="isShowCopyTem" :title="title" width="35%" :modal-append-to-body="false"> |
| | | <el-form ref="copyForm" :model="copyForm" :rules="copyFormRules" label-position="right" label-width="80px"> |
| | | <el-form-item label="模版编号" prop="number"> |
| | | <el-input v-model="copyForm.number" clearable size="small"></el-input> |
| | |
| | | type: "text", |
| | | clickFun: (row) => { |
| | | this.title = "编辑"; |
| | | this.copyForm = row; |
| | | this.copyForm = this.HaveJson(row); |
| | | this.isShowCopyTem = true; |
| | | }, |
| | | showHide: (row) => { |
| | |
| | | delete params.id; |
| | | addStandardTemplate(params) |
| | | .then((res) => { |
| | | if (res.code == 201) return; |
| | | this.isShowCopyTem = false; |
| | | this.submitCopyInfoLoading = false; |
| | | this.$message.success("新增成功"); |
| | |
| | | params.thing = this.copyForm.thing ? this.copyForm.thing : ""; |
| | | upStandardTemplate(params) |
| | | .then((res) => { |
| | | if (res.code == 201) return; |
| | | this.isShowCopyTem = false; |
| | | this.submitCopyInfoLoading = false; |
| | | this.$message.success("修改成功"); |
| | |
| | | case "复制模版": |
| | | copyStandardTemplate(params) |
| | | .then((res) => { |
| | | if (res.code == 201) return; |
| | | this.isShowCopyTem = false; |
| | | this.submitCopyInfoLoading = false; |
| | | this.$message.success("复制成功"); |
| | |
| | | }) |
| | | .then(() => { |
| | | delStandardTemplate({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refreshTable("page"); |
| | | }); |
| | |
| | | thing: JSON.stringify(data), |
| | | name: luckysheet.getWorkbookName(["name"]), |
| | | }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.loading = false; |
| | | this.$message.success("已保存"); |
| | | this.isShow = false; |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | /* >>>.el-dialog__wrapper { |
| | | z-index: 100 !important; |
| | | } */ |
| | | |
| | | .search { |
| | | background-color: #fff; |
| | | height: 80px; |