b0724f10 by xiaomiao
2 parents 5b0a92a6 bdde9e93
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
95 <component :is="editItem" ref="editItem" :class="{ 'editForm': $store.state.business.Edit }" 95 <component :is="editItem" ref="editItem" :class="{ 'editForm': $store.state.business.Edit }"
96 :bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bsmReport || dataReport.bsmSjsb" /> 96 :bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bsmReport || dataReport.bsmSjsb" />
97 </div> 97 </div>
98 <div class="d-center"> 98 <div class="d-center" v-if="!$store.state.business.Edit">
99 <btn nativeType="cz" @click="dialogVisible = false">取 消</btn> 99 <btn nativeType="cz" @click="dialogVisible = false">取 消</btn>
100 <btn nativeType="cx" @click="submitForm">确 定</btn> 100 <btn nativeType="cx" @click="submitForm">确 定</btn>
101 </div> 101 </div>
......
1 <template> 1 <template>
2 <div> 2 <div>
3 <el-input type="textarea" :rows="6" disabled placeholder="配置参数" v-model="resultInfo"> 3 <el-input type="textarea" :rows="6" :disabled="$store.state.business.Edit" placeholder="配置参数" v-model="resultInfo">
4 </el-input> 4 </el-input>
5 <div class="d-center" v-if="!$store.state.business.Edit">
6 <btn nativeType="cz" @click="dialogVisible = false">取 消</btn>
7 <btn nativeType="cx" @click="submitForm">确 定</btn>
8 </div>
5 </div> 9 </div>
6 </template> 10 </template>
7 <script> 11 <script>
...@@ -31,7 +35,7 @@ export default { ...@@ -31,7 +35,7 @@ export default {
31 <style scoped lang="scss"> 35 <style scoped lang="scss">
32 /* jsoneditor右上角默认有一个链接,加css去掉了 */ 36 /* jsoneditor右上角默认有一个链接,加css去掉了 */
33 /deep/.el-textarea__inner { 37 /deep/.el-textarea__inner {
34 min-height: 73vh !important; 38 min-height: 76vh !important;
35 background-color: #08346F !important; 39 background-color: #08346F !important;
36 color: #ffffff; 40 color: #ffffff;
37 border: none !important; 41 border: none !important;
......
...@@ -33,9 +33,8 @@ ...@@ -33,9 +33,8 @@
33 </div> 33 </div>
34 <!-- 列表区域 --> 34 <!-- 列表区域 -->
35 <div class="from-clues-content"> 35 <div class="from-clues-content">
36 <lb-table ref="table" :id="'mytable'" :page-size="pageData.size" :header-cell-style="headerStyle" 36 <lb-table ref="table" :id="'mytable'" :header-cell-style="headerStyle" :pagination="false"
37 :current-page.sync="pageData.current" :total="tableData.total" @size-change="handleSizeChange" 37 :column="tableData.columns" :data="tableData.data">
38 @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data">
39 </lb-table> 38 </lb-table>
40 </div> 39 </div>
41 </div> 40 </div>
...@@ -105,13 +104,7 @@ export default { ...@@ -105,13 +104,7 @@ export default {
105 } 104 }
106 ] 105 ]
107 .concat(data.columns()), 106 .concat(data.columns()),
108 data: [], 107 data: []
109 },
110 // 分页
111 pageData: {
112 total: 0,
113 pageSize: 10,
114 current: 1
115 } 108 }
116 } 109 }
117 }, 110 },
...@@ -119,6 +112,7 @@ export default { ...@@ -119,6 +112,7 @@ export default {
119 this.handleResetForm() 112 this.handleResetForm()
120 }, 113 },
121 methods: { 114 methods: {
115 handleSearch () { },
122 headerStyle ({ row, rowIndex }) { 116 headerStyle ({ row, rowIndex }) {
123 if (rowIndex == 3) { 117 if (rowIndex == 3) {
124 row[2].rowSpan = 2; 118 row[2].rowSpan = 2;
......
...@@ -34,9 +34,7 @@ ...@@ -34,9 +34,7 @@
34 </div> 34 </div>
35 <!-- 列表区域 --> 35 <!-- 列表区域 -->
36 <div class="from-clues-content"> 36 <div class="from-clues-content">
37 <lb-table ref="table" :page-size="pageData.size" :id="'mytable'" :current-page.sync="pageData.current" 37 <lb-table ref="table" :id="'mytable'" :pagination="false" :column="tableData.columns" :data="tableData.data">
38 :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
39 :column="tableData.columns" :data="tableData.data">
40 </lb-table> 38 </lb-table>
41 </div> 39 </div>
42 </div> 40 </div>
...@@ -107,12 +105,6 @@ export default { ...@@ -107,12 +105,6 @@ export default {
107 ] 105 ]
108 .concat(data.columns()), 106 .concat(data.columns()),
109 data: [], 107 data: [],
110 },
111 // 分页
112 pageData: {
113 total: 0,
114 pageSize: 10,
115 current: 1
116 } 108 }
117 }; 109 };
118 }, 110 },
...@@ -120,6 +112,7 @@ export default { ...@@ -120,6 +112,7 @@ export default {
120 this.handleResetForm() 112 this.handleResetForm()
121 }, 113 },
122 methods: { 114 methods: {
115 handleSearch () { },
123 handlesetExport2Excel (val) { 116 handlesetExport2Excel (val) {
124 setExport2Excel(val) 117 setExport2Excel(val)
125 }, 118 },
......
...@@ -33,9 +33,7 @@ ...@@ -33,9 +33,7 @@
33 </div> 33 </div>
34 <!-- 列表区域 --> 34 <!-- 列表区域 -->
35 <div class="from-clues-content"> 35 <div class="from-clues-content">
36 <lb-table ref="table" :id="'mytable'" :page-size="pageData.size" :current-page.sync="pageData.current" 36 <lb-table ref="table" :id="'mytable'" :pagination="false" :column="tableData.columns" :data="tableData.data">
37 :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
38 :column="tableData.columns" :data="tableData.data">
39 </lb-table> 37 </lb-table>
40 </div> 38 </div>
41 </div> 39 </div>
...@@ -106,19 +104,14 @@ export default { ...@@ -106,19 +104,14 @@ export default {
106 ] 104 ]
107 .concat(data.columns()), 105 .concat(data.columns()),
108 data: [], 106 data: [],
109 }, 107 }
110 // 分页
111 pageData: {
112 total: 0,
113 pageSize: 10,
114 current: 1
115 },
116 } 108 }
117 }, 109 },
118 created () { 110 created () {
119 this.handleResetForm() 111 this.handleResetForm()
120 }, 112 },
121 methods: { 113 methods: {
114 handleSearch () { },
122 handlesetExport2Excel (val) { 115 handlesetExport2Excel (val) {
123 setExport2Excel(val) 116 setExport2Excel(val)
124 }, 117 },
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
79 <!-- 引入详情组件 --> 79 <!-- 引入详情组件 -->
80 <!-- 编辑 --> 80 <!-- 编辑 -->
81 <dataDetails ref="editLog" :title="title" :visiableXml="true" /> 81 <dataDetails ref="editLog" :title="title" :visiableXml="true" />
82 </div> 82 </div>
83 </template> 83 </template>
84 <script> 84 <script>
85 // 上报报文查询 85 // 上报报文查询
...@@ -201,6 +201,11 @@ export default { ...@@ -201,6 +201,11 @@ export default {
201 handleDetail (row) { 201 handleDetail (row) {
202 this.title = row.rectypeName; 202 this.title = row.rectypeName;
203 this.$refs.editLog.isShow(row); 203 this.$refs.editLog.isShow(row);
204 if (row.exchangeState == 2) {
205 this.$store.dispatch('business/setReportLogEdit')
206 } else {
207 this.$store.dispatch('business/setEdit')
208 }
204 }, 209 },
205 // 重置 210 // 重置
206 resetForm () { 211 resetForm () {
......