|
@@ -4,12 +4,12 @@
|
|
|
:inline="true"
|
|
|
:model="dataForm"
|
|
|
@keyup.enter.native="getDataList()">
|
|
|
- <el-form-item>
|
|
|
+ <el-form-item style="width: 500px">
|
|
|
<el-input
|
|
|
v-model="dataForm.key"
|
|
|
- placeholder="名称/地址/负责人/建立日期"
|
|
|
- clearable
|
|
|
- ></el-input>
|
|
|
+ placeholder="请输入名称/地址/负责人/建立日期"
|
|
|
+ clearable style="width: 500px">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button @click="getDataList()">查询</el-button>
|
|
@@ -190,10 +190,18 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- created () {
|
|
|
+ mounted () {
|
|
|
this.getDataList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 变色
|
|
|
+ tableRowClassName({row, rowIndex}) {
|
|
|
+ console.log(row);
|
|
|
+ if (rowIndex%2 === 0) {
|
|
|
+ return 'warning-row';
|
|
|
+ }
|
|
|
+ return '';
|
|
|
+ },
|
|
|
comLocation(location) {
|
|
|
let arr = location.split(",")
|
|
|
let loc = ''
|
|
@@ -552,19 +560,11 @@ export default {
|
|
|
console.log('输入不合法');
|
|
|
}).catch(() => {})
|
|
|
return false
|
|
|
- },
|
|
|
- // 变色
|
|
|
- tableRowClassName({row, rowIndex}) {
|
|
|
- console.log(row);
|
|
|
- if (rowIndex%2 === 0) {
|
|
|
- return 'warning-row';
|
|
|
- }
|
|
|
- return '';
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
-<style scoped>
|
|
|
+<style>
|
|
|
.el-table .warning-row {
|
|
|
background: #f0f9ed;
|
|
|
}
|