洪海涛 4 anni fa
parent
commit
5a293efbd7

+ 48 - 0
src/views/monthlyReport/childrenPage/editReport/components/MrTable/LinkEdit.vue

@@ -0,0 +1,48 @@
+<template>
+    <normal-dialog ref="dialogLink" is-succes :show-dialog="false" title="链接" width="500px" @succes="confirmReport">
+      <el-form class="issuse-warpper">
+        <el-form-item label="链接" label-width="40px">
+          <el-input
+            v-model="addresLink"
+            size="small"
+            placeholder="请输入链接"
+          />
+        </el-form-item>
+      </el-form>
+    </normal-dialog>
+</template>
+<script type="text/javascript">
+  import normalDialog from '@/components/dialog/normalDialog'
+
+  export default {
+    name: "LinkEdit",
+    data(){
+      return {
+        addresLink: '',
+        rowIndex: null,
+      }
+    },
+    components: { normalDialog },
+    methods: {
+      open(addresLink, rowIndex){
+        this.$refs['dialogLink'].visible = true
+        this.addresLink = `${addresLink}`
+        this.rowIndex = rowIndex
+      },
+      confirmReport() {
+        this.$emit('change', {
+          rowIndex: this.rowIndex,
+          addresLink: this.addresLink
+        })
+        setTimeout(() => {
+          this.$refs['dialogLink'].visible = false
+        }, 100)
+      }
+    }
+  }
+</script>
+<style scoped lang="less">
+  .issuse-warpper{
+
+  }
+</style>