12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <template>
- <div>
- <BaseDialog
- width="600px"
- :isShow.sync="isShow"
- title="修改备注"
- @close="close"
- @submit="submitForm"
- >
- <el-input
- :rows="6"
- type="textarea"
- placeholder="请输入备注"
- v-model="remarks"
- ></el-input>
- </BaseDialog>
- </div>
- </template>
- <script>
- export default {
- name: "remarks",
- props: {
- dialogVisible: {
- type: Boolean,
- default: false,
- },
- },
- data() {
- return {
- remarks: "",
- };
- },
- mounted() {},
- methods: {
- init() {},
- close() {
- this.remarks = "";
- },
- submitForm() {
- this.isShow = false;
- this.$emit("search");
- },
- },
- computed: {
- isShow: {
- get() {
- if (this.dialogVisible) {
- this.init();
- }
- return this.dialogVisible;
- },
- set(val) {
- this.$emit("update:dialogVisible", false);
- },
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- </style>
|