| | |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="数据申请" |
| | | :visible.sync="dialogInsertVisible" |
| | | width="30%" |
| | | top="35vh" |
| | | :modal="false" |
| | | :before-close="handleInsertClose" |
| | | > |
| | | <div style="width: 100%; max-height: 450px; overflow-y: auto"> |
| | | <el-form |
| | | ref="form" |
| | | :model="ruleForm" |
| | | label-width="100px" |
| | | > |
| | | <el-form-item label="审核单位"> |
| | | <div> |
| | | <ul> |
| | | <li v-for="item in ruleForm.depid"> |
| | | {{ item.name }} |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="表名"> |
| | | <div> |
| | | <ul> |
| | | <li v-for="item in ruleForm.tabs"> |
| | | {{ item.tabDesc }} |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="条件"> |
| | | <el-input |
| | | :title="ruleForm.wkt" |
| | | v-model="ruleForm.wkt" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="描述"> |
| | | <el-input |
| | | type="textarea" |
| | | placeholder="请输入内容" |
| | | v-model="ruleForm.descr" |
| | | maxlength="50" |
| | | show-word-limit |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | class="primary" |
| | | size="small" |
| | | @click="getInsertDown" |
| | | >{{ |
| | | $t("common.confirm") |
| | | }}</el-button> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="closeInsertDown" |
| | | >{{ |
| | | $t("common.cancel") |
| | | }}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <iframe |
| | | id="Iframe1" |
| | | src="" |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | getInsertDown() { |
| | | this.dialogInsertVisible = false |
| | | this.dialogVisible = true |
| | | getInsertDown(res) { |
| | | |
| | | // this.dialogInsertVisible = false |
| | | // this.dialogVisible = true |
| | | this.codeForm = res; |
| | | this.download(); |
| | | }, |
| | | handleInsertClose() { |
| | | this.$confirm("确认关闭?") |
| | |
| | | |
| | | if (data.result.length == 0 || data.result == null) { |
| | | this.insertFlag = 1 |
| | | this.dialogVisible = true |
| | | // this.dialogVisible = true |
| | | this.$bus.$emit("setDialogInsertVisible", true) |
| | | } else { |
| | | this.insertFlag = 2 |
| | | var std = [] |
| | |
| | | this.ruleForm.depname = std |
| | | this.ruleForm.wkt = decr(this.listdata.wkt) |
| | | this.ruleForm.tabs = this.option |
| | | this.dialogInsertVisible = true |
| | | // this.dialogInsertVisible = true |
| | | this.$bus.$emit("setDialogInsertVisible", this.ruleForm) |
| | | } |
| | | }, |
| | | async signGetPublicKey() { |
| | |
| | | this.$store.state.propertiesFlag = "1" |
| | | let properties = pick.id.properties |
| | | let propertyNames = pick.id.properties.propertyNames |
| | | |
| | | let obj = {} |
| | | obj["eventid"] = properties["_eventid"]._value |
| | | // |
| | |
| | | this.tableData = val |
| | | this.$refs.dialogPayChannel.doLayout() |
| | | // this.showAllImage(data.result) |
| | | }, |
| | | //格式化时间 |
| | | format(shijianchuo) { |
| | | //shijianchuo是整数,否则要parseInt转换 |
| | | var time = new Date(shijianchuo); |
| | | var y = time.getFullYear(); |
| | | var m = time.getMonth() + 1; |
| | | var d = time.getDate(); |
| | | var h = time.getHours(); |
| | | var mm = time.getMinutes(); |
| | | var s = time.getSeconds(); |
| | | return y + "-" + this.add0(m) + "-" + this.add0(d); |
| | | }, |
| | | //格式化时间 |
| | | add0(m) { |
| | | return m < 10 ? "0" + m : m; |
| | | }, |
| | | async showAllImage(res) { |
| | | for (var i in res) { |
| | |
| | | this.setTableAll() |
| | | } |
| | | }) |
| | | this.$bus.$on("setInsertDown", res => { |
| | | this.getInsertDown(res) |
| | | }) |
| | | }, |
| | | destroyed() { |
| | | this.$store.state.propertiesFlag = null |