feat:中心日志
Showing
3 changed files
with
43 additions
and
4 deletions
src/views/zxrz/components/detailDialog.vue
0 → 100644
1 | <template> | ||
2 | <!-- 编辑 --> | ||
3 | <dialogBox title="操作内容" @closeDialog="closeDialog" @submitForm="handleSubmit" v-model="myValue"> | ||
4 | <p>2222222222222222222222</p> | ||
5 | </dialogBox> | ||
6 | </template> | ||
7 | |||
8 | <script> | ||
9 | export default { | ||
10 | props: { | ||
11 | value: { type: Boolean, default: false }, | ||
12 | }, | ||
13 | data () { | ||
14 | return { | ||
15 | myValue: this.value, | ||
16 | } | ||
17 | }, | ||
18 | watch: { | ||
19 | value (val) { | ||
20 | this.myValue = val | ||
21 | } | ||
22 | }, | ||
23 | methods: { | ||
24 | closeDialog () { | ||
25 | this.$emit('input', false) | ||
26 | }, | ||
27 | handleSubmit () { | ||
28 | this.$emit('input', false) | ||
29 | } | ||
30 | } | ||
31 | } | ||
32 | </script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -45,6 +45,7 @@ | ... | @@ -45,6 +45,7 @@ |
45 | :data="tableData.data"> | 45 | :data="tableData.data"> |
46 | </lb-table> | 46 | </lb-table> |
47 | </div> | 47 | </div> |
48 | <detailDialog v-model="isShow" /> | ||
48 | </div> | 49 | </div> |
49 | </template> | 50 | </template> |
50 | <script> | 51 | <script> |
... | @@ -53,11 +54,18 @@ | ... | @@ -53,11 +54,18 @@ |
53 | import data from "./data" | 54 | import data from "./data" |
54 | // 引入列表混入方法 | 55 | // 引入列表混入方法 |
55 | import tableMixin from '@/mixins/tableMixin.js' | 56 | import tableMixin from '@/mixins/tableMixin.js' |
57 | // 引入详情 | ||
58 | import detailDialog from './components/detailDialog.vue' | ||
56 | export default { | 59 | export default { |
57 | name: "zxrz", | 60 | name: "zxrz", |
58 | mixins: [tableMixin], | 61 | mixins: [tableMixin], |
62 | // 注册组件 | ||
63 | components: { | ||
64 | detailDialog | ||
65 | }, | ||
59 | data () { | 66 | data () { |
60 | return { | 67 | return { |
68 | isShow: false, | ||
61 | // 开始结束日期限制 | 69 | // 开始结束日期限制 |
62 | pickerOptionsStart: { | 70 | pickerOptionsStart: { |
63 | disabledDate: (time) => { | 71 | disabledDate: (time) => { |
... | @@ -120,8 +128,6 @@ export default { | ... | @@ -120,8 +128,6 @@ export default { |
120 | <el-button | 128 | <el-button |
121 | type="text" | 129 | type="text" |
122 | size="mini" | 130 | size="mini" |
123 | icon="el-icon-edit" | ||
124 | style="margin-left: 10px" | ||
125 | onClick={() => { this.handleDetails(scope.row) }} | 131 | onClick={() => { this.handleDetails(scope.row) }} |
126 | > | 132 | > |
127 | 详情 | 133 | 详情 |
... | @@ -132,7 +138,7 @@ export default { | ... | @@ -132,7 +138,7 @@ export default { |
132 | } | 138 | } |
133 | ]), | 139 | ]), |
134 | // 列表 | 140 | // 列表 |
135 | data: [] | 141 | data: [{}] |
136 | }, | 142 | }, |
137 | // 分页 | 143 | // 分页 |
138 | pageData: { | 144 | pageData: { |
... | @@ -150,6 +156,7 @@ export default { | ... | @@ -150,6 +156,7 @@ export default { |
150 | async featchData () { | 156 | async featchData () { |
151 | }, | 157 | }, |
152 | handleDetails (row) { | 158 | handleDetails (row) { |
159 | this.isShow = true | ||
153 | } | 160 | } |
154 | } | 161 | } |
155 | } | 162 | } | ... | ... |
-
Please register or sign in to post a comment