style:样式的修改
Showing
7 changed files
with
26 additions
and
16 deletions
... | @@ -97,16 +97,17 @@ export default { | ... | @@ -97,16 +97,17 @@ export default { |
97 | fetchData () { | 97 | fetchData () { |
98 | getJtfcPage({ ...this.queryForm, ...this.pageData }).then(res => { | 98 | getJtfcPage({ ...this.queryForm, ...this.pageData }).then(res => { |
99 | let { records, total } = res.result | 99 | let { records, total } = res.result |
100 | // this.tableData.data = records | 100 | this.tableData.data = records |
101 | this.tableData.total = total | 101 | this.tableData.total = total |
102 | }) | 102 | }) |
103 | }, | 103 | }, |
104 | handleSort (name, sort) { | 104 | handleSort (name, sort) { |
105 | console.log(name, sort); | 105 | console.log(name, sort); |
106 | }, | 106 | }, |
107 | openDialog () { | 107 | // 查看 |
108 | handleView () { | ||
108 | this.isDialog = true | 109 | this.isDialog = true |
109 | }, | 110 | } |
110 | }, | 111 | }, |
111 | }; | 112 | }; |
112 | </script> | 113 | </script> | ... | ... |
... | @@ -25,9 +25,7 @@ class data extends filter { | ... | @@ -25,9 +25,7 @@ class data extends filter { |
25 | }, | 25 | }, |
26 | { | 26 | { |
27 | label: "查询编号", | 27 | label: "查询编号", |
28 | render: (h, scope) => { | 28 | prop: "cxbh" |
29 | return <el-button type="text" onClick={() => { vm.openDialog() }}>{scope.row.cxbh}</el-button> | ||
30 | } | ||
31 | }, | 29 | }, |
32 | { | 30 | { |
33 | prop: "cxsj", | 31 | prop: "cxsj", |
... | @@ -52,10 +50,15 @@ class data extends filter { | ... | @@ -52,10 +50,15 @@ class data extends filter { |
52 | { | 50 | { |
53 | prop: "cxyt", | 51 | prop: "cxyt", |
54 | label: "查询用途", | 52 | label: "查询用途", |
55 | } | 53 | }, |
54 | { | ||
55 | label: "查询编号", | ||
56 | render: (h, scope) => { | ||
57 | return <el-button type="text" icon='el-icon-view' onClick={() => { vm.handleView() }}>查看</el-button> | ||
58 | } | ||
59 | }, | ||
56 | ] | 60 | ] |
57 | } | 61 | } |
58 | |||
59 | } | 62 | } |
60 | let datas = new data() | 63 | let datas = new data() |
61 | export { | 64 | export { | ... | ... |
... | @@ -48,12 +48,13 @@ class data extends filter { | ... | @@ -48,12 +48,13 @@ class data extends filter { |
48 | }, | 48 | }, |
49 | { | 49 | { |
50 | label: "状态", | 50 | label: "状态", |
51 | width: '90', | ||
51 | render: (h, scope) => { | 52 | render: (h, scope) => { |
52 | switch (scope.row.state) { | 53 | switch (scope.row.state) { |
53 | case '0': | 54 | case '0': |
54 | return <span>正在分发</span> | 55 | return <div class='prohibit'>正在分发</div> |
55 | case '1': | 56 | case '1': |
56 | return <span>已分发</span> | 57 | return <div class='allow'>已分发</div> |
57 | } | 58 | } |
58 | } | 59 | } |
59 | }, | 60 | }, | ... | ... |
... | @@ -48,12 +48,13 @@ class data extends filter { | ... | @@ -48,12 +48,13 @@ class data extends filter { |
48 | }, | 48 | }, |
49 | { | 49 | { |
50 | label: "状态", | 50 | label: "状态", |
51 | width: '90', | ||
51 | render: (h, scope) => { | 52 | render: (h, scope) => { |
52 | switch (scope.row.state) { | 53 | switch (scope.row.state) { |
53 | case '0': | 54 | case '0': |
54 | return <span>正在审核</span> | 55 | return <div class='prohibit'>正在审核</div> |
55 | case '1': | 56 | case '1': |
56 | return <span>已入库</span> | 57 | return <div class='allow'>已入库</div> |
57 | } | 58 | } |
58 | } | 59 | } |
59 | }, | 60 | }, | ... | ... |
... | @@ -24,16 +24,17 @@ class data extends filter { | ... | @@ -24,16 +24,17 @@ class data extends filter { |
24 | }, | 24 | }, |
25 | { | 25 | { |
26 | label: "状态", | 26 | label: "状态", |
27 | width: '120', | ||
27 | render: (h, scope) => { | 28 | render: (h, scope) => { |
28 | switch (scope.row.state) { | 29 | switch (scope.row.state) { |
29 | case '1': | 30 | case '1': |
30 | return <span>已入库未分发</span> | 31 | return <div class='allow'>已入库未分发</div> |
31 | case '2': | 32 | case '2': |
32 | return <span>已领取未使用</span> | 33 | return <div class='prohibit'>已领取未使用</div> |
33 | case '3': | 34 | case '3': |
34 | return <span>已制证</span> | 35 | return <div class='allow'>已制证</div> |
35 | case '4': | 36 | case '4': |
36 | return <span>已作废</span> | 37 | return <div class='prohibit'>已作废</div> |
37 | } | 38 | } |
38 | } | 39 | } |
39 | }, | 40 | }, | ... | ... |
-
Please register or sign in to post a comment