Commit c413900f by zhaoxiqing

gsb

parent a174098c
...@@ -79,7 +79,7 @@ class EtemplateCtl extends CtlBase { ...@@ -79,7 +79,7 @@ class EtemplateCtl extends CtlBase {
fileName: "二维码-" + moment().format("YYYYMMDD") + ".csv", fileName: "二维码-" + moment().format("YYYYMMDD") + ".csv",
rows: page.rows, rows: page.rows,
opts: { opts: {
fields: ['id', 'ecompany.name', 'nameA', 'qrcodeurl'], fields: ['id', 'ecompany.name', 'nameA', 'qrcodeurl','begUrl'],
unwind: ['ecompany'], unwind: ['ecompany'],
excelStrings: true, excelStrings: true,
unwindBlank: true unwindBlank: true
...@@ -88,7 +88,8 @@ class EtemplateCtl extends CtlBase { ...@@ -88,7 +88,8 @@ class EtemplateCtl extends CtlBase {
"id": "编号", "id": "编号",
'ecompany.name': "公司名", 'ecompany.name': "公司名",
'nameA': "签约主体", 'nameA': "签约主体",
'qrcodeurl': "二维码" 'qrcodeurl': "二维码",
'begUrl':"签约地址"
}, },
}; };
await this.excelClient.exportCsv(req, res, csvobj); await this.excelClient.exportCsv(req, res, csvobj);
...@@ -178,12 +179,12 @@ class EtemplateCtl extends CtlBase { ...@@ -178,12 +179,12 @@ class EtemplateCtl extends CtlBase {
fileName: "二维码-" + moment().format("YYYYMMDD") + ".csv", fileName: "二维码-" + moment().format("YYYYMMDD") + ".csv",
rows: page.rows, rows: page.rows,
opts: { opts: {
fields: ['id', 'ecompany.name', 'nameA', 'qrcodeurl'], fields: ['id', 'ecompany.name', 'nameA', 'qrcodeurl','begUrl'],
unwind: ['ecompany'], unwind: ['ecompany'],
excelStrings: true, excelStrings: true,
unwindBlank: true unwindBlank: true
}, },
headers: {'id': '编号', 'ecompany.name': "公司名", 'nameA': "签约主体", 'qrcodeurl': "二维码"}, headers: {'id': '编号', 'ecompany.name': "公司名", 'nameA': "签约主体", 'qrcodeurl': "二维码", 'begUrl':"签约地址"},
}; };
await this.excelClient.exportCsv(req, res, csvobj); await this.excelClient.exportCsv(req, res, csvobj);
} catch (e) { } catch (e) {
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div style="float:left;margin-top:5px;"> <div style="float:left;margin-top:5px;">
<el-button @click="resetSearch()" style="float:right;width:68px;height:36px;background-color: #54C4A7;color: #FFFFFF;font-size: 14px;padding-top:10px;" >重置</el-button> <el-button @click="resetSearch()" style="float:right;width:68px;height:36px;background-color: #54C4A7;color: #FFFFFF;font-size: 14px;padding-top:10px;" >重置</el-button>
<el-button @click="opSearch" style="float:right;width:68px;height:36px;background-color: #54C4A7;color: #FFFFFF;font-size: 14px;padding-top:10px;margin-right: 10px;" >搜索</el-button> <el-button @click="opSearch" style="float:right;width:68px;height:36px;background-color: #54C4A7;color: #FFFFFF;font-size: 14px;padding-top:10px;margin-right: 10px;" >搜索</el-button>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<el-button v-if="addAuth" @click="openEdit()" style="float:right;width:100px;height:36px;color: #FFFFFF;font-weight: 400;border-radius: 4px;font-size: 14px;background-color: #59C1A6;padding-top:11px">新增模板</el-button> <el-button v-if="addAuth" @click="openEdit()" style="float:right;width:100px;height:36px;color: #FFFFFF;font-weight: 400;border-radius: 4px;font-size: 14px;background-color: #59C1A6;padding-top:11px">新增模板</el-button>
</div> </div>
<div> <div>
<el-table <el-table
stripe stripe
fix="true" fix="true"
:data="search.list" :data="search.list"
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
<el-table-column prop="name" label="模板名称" :formatter="onColFormater" align="center" ></el-table-column> <el-table-column prop="name" label="模板名称" :formatter="onColFormater" align="center" ></el-table-column>
<el-table-column prop="ecompany.name" label="公司名称" :formatter="onColFormater" align="center" ></el-table-column> <el-table-column prop="ecompany.name" label="公司名称" :formatter="onColFormater" align="center" ></el-table-column>
<el-table-column prop="nameA" label="签约主体" :formatter="onColFormater" align="center" ></el-table-column> <el-table-column prop="nameA" label="签约主体" :formatter="onColFormater" align="center" ></el-table-column>
<el-table-column prop="begUrl" label="签约地址" :formatter="onColFormater" align="center" ></el-table-column>
<el-table-column label="二维码" > <el-table-column label="二维码" >
<template slot-scope="scope" > <template slot-scope="scope" >
<a v-if="scope.row.qrcodeurl" :href="scope.row.qrcodeurl" target="_blank" style="text-decoration: none;color:#59C1A6;font-size: 14px;">二维码</a> <a v-if="scope.row.qrcodeurl" :href="scope.row.qrcodeurl" target="_blank" style="text-decoration: none;color:#59C1A6;font-size: 14px;">二维码</a>
...@@ -69,13 +70,13 @@ ...@@ -69,13 +70,13 @@
<a v-if="scope.row.filepath" :href="scope.row.filepath" target="_blank" style="text-decoration: none;color:#59C1A6;font-size: 14px;">查看</a> <a v-if="scope.row.filepath" :href="scope.row.filepath" target="_blank" style="text-decoration: none;color:#59C1A6;font-size: 14px;">查看</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="filekey" label="模板key" :formatter="onColFormater" align="center" show-overflow-tooltip></el-table-column> <el-table-column prop="filekey" label="模板key" :formatter="onColFormater" align="center" show-overflow-tooltip></el-table-column>
<el-table-column prop="created_at" label="创建日期" :formatter="onColFormater" align="center" ></el-table-column> <el-table-column prop="created_at" label="创建日期" :formatter="onColFormater" align="center" ></el-table-column>
<el-table-column prop="updated_at" label="修改日期" :formatter="onColFormater" align="center" ></el-table-column> <!-- <el-table-column prop="updated_at" label="修改日期" :formatter="onColFormater" align="center" ></el-table-column>-->
<el-table-column label="操作" align="center" > <el-table-column label="操作" align="center" >
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="updAuth" href="javascript:;" @click="openEdit(scope.row.id)" style="text-decoration: none;color:#59C1A6;font-size: 14px;">修改</a> <a v-if="updAuth" href="javascript:;" @click="openEdit(scope.row.id)" style="text-decoration: none;color:#59C1A6;font-size: 14px;">修改</a>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -132,7 +133,7 @@ ...@@ -132,7 +133,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="签约主体:" prop="nameA" > <el-form-item label="签约主体:" prop="nameA" >
<el-input v-model="etemplate.nameA" placeholder="请输入签约主体" maxlength="50" style="width:468px;" clearable ></el-input> <el-input v-model="etemplate.nameA" placeholder="请输入签约主体" maxlength="50" style="width:468px;" clearable ></el-input>
</el-form-item> </el-form-item>
...@@ -154,4 +155,4 @@ ...@@ -154,4 +155,4 @@
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</gsb-pcpage> </gsb-pcpage>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment