|
|
@@ -3,14 +3,14 @@
|
|
|
<!-- <div v-if="showDialog == true" class="a-dialog" v-el-drag-dialog> -->
|
|
|
<div class="a-d-top">
|
|
|
<div class="a-d-topTit">
|
|
|
- <div style="width: 136px">模板库</div>
|
|
|
+ <div style="width: 136px">{{ lang.TemplateLibrary }}</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="input2" clearable>
|
|
|
+ <el-input :placeholder="lang.PleaseEnterContent" prefix-icon="el-icon-search" v-model="input2" clearable>
|
|
|
</el-input>
|
|
|
</div>
|
|
|
<div class="a-d-t-right">
|
|
|
- <el-button @click="open2()" type="primary" size="small" style="margin-right: 10px;">设置模板</el-button>
|
|
|
+ <el-button @click="open2()" type="primary" size="small" style="margin-right: 10px;">{{ lang.SetTemplate }}</el-button>
|
|
|
<span @click.stop="close">×</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -47,8 +47,8 @@
|
|
|
<div class="a-d-b-i-t-title">{{ item.name }}</div>
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
- <!-- <div class="a-d-b-i-top" v-if="item.uname">创建人:{{ item.uname }}</div> -->
|
|
|
- <div class="a-d-b-i-top" v-show="false">创建人:{{ item.uname }}</div>
|
|
|
+ <!-- <div class="a-d-b-i-top" v-if="item.uname">{{ lang.Creator }}:{{ item.uname }}</div> -->
|
|
|
+ <div class="a-d-b-i-top" v-show="false">{{ lang.Creator }}:{{ item.uname }}</div>
|
|
|
<!-- <el-tooltip :content="item.detail" placement="top" effect="dark"> -->
|
|
|
<div class="a-d-b-i-bottom">{{ item.detail }}</div>
|
|
|
<!-- </el-tooltip> -->
|
|
|
@@ -59,16 +59,16 @@
|
|
|
justify-content: space-around;
|
|
|
">
|
|
|
<div class="a-d-b-i-t-btn" v-if="item.userid == userid" style="margin-right: 10px;"
|
|
|
- @click="deleteA(item.id)">删除</div>
|
|
|
+ @click="deleteA(item.id)">{{ lang.Delete }}</div>
|
|
|
<div class="a-d-b-i-t-btn1" v-if="item.userid == userid" style="margin-right: 10px;"
|
|
|
- @click="open2(item.id)">修改</div>
|
|
|
+ @click="open2(item.id)">{{ lang.Edit }}</div>
|
|
|
<div class="a-d-b-i-t-btn1" @click="open(item.id)">
|
|
|
- 使用
|
|
|
+ {{ lang.Use }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-if="!searchDataList.length" style="text-align: center;">暂无内容</div>
|
|
|
+ <div v-if="!searchDataList.length" style="text-align: center;">{{ lang.NoItemsFound }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -96,10 +96,6 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- dialogTagList: [
|
|
|
- { id: '2', name: "社区模板" },
|
|
|
- { id: '1', name: "我的模板" },
|
|
|
- ],
|
|
|
tagIndex: '2',
|
|
|
searchDataList: [],
|
|
|
input2: '',
|
|
|
@@ -107,6 +103,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
+ dialogTagList() {
|
|
|
+ return [
|
|
|
+ { id: '2', name: this.lang.CommunityTemplate },
|
|
|
+ { id: '1', name: this.lang.MyTemplate },
|
|
|
+ ]
|
|
|
+ },
|
|
|
tagname() {
|
|
|
return this.dialogTagList.filter((item) => {
|
|
|
return item.id == this.tagIndex
|
|
|
@@ -147,11 +149,11 @@ export default {
|
|
|
deleteA(id) {
|
|
|
let _this = this
|
|
|
_this.$confirm(
|
|
|
- "确定删除此模板吗?",
|
|
|
- "提示",
|
|
|
+ _this.lang.deletethistemplate,
|
|
|
+ _this.lang.tip,
|
|
|
{
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
+ confirmButtonText: _this.lang.Confirm,
|
|
|
+ cancelButtonText: _this.lang.Cancel,
|
|
|
type: "warning",
|
|
|
}
|
|
|
)
|
|
|
@@ -163,11 +165,11 @@ export default {
|
|
|
_this.ajax
|
|
|
.post(_this.$store.state.api + "deleteTipsTemplateE", params)
|
|
|
.then((res) => {
|
|
|
- _this.$message.success("删除成功");
|
|
|
+ _this.$message.success(_this.lang.DeleteSuccessful);
|
|
|
_this.getList()
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
- _this.$message.error("网络不佳");
|
|
|
+ _this.$message.error(_this.lang.Poorinternetconnection);
|
|
|
console.error(err);
|
|
|
});
|
|
|
})
|
|
|
@@ -202,7 +204,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
- this.$message.error("网络不佳");
|
|
|
+ this.$message.error(this.lang.Poorinternetconnection);
|
|
|
console.error(err);
|
|
|
});
|
|
|
}
|
|
|
@@ -295,8 +297,8 @@ export default {
|
|
|
margin-right: 3px;
|
|
|
cursor: pointer; */
|
|
|
cursor: pointer;
|
|
|
- width: 136px;
|
|
|
- height: 32px;
|
|
|
+ width: 160px;
|
|
|
+ /* height: 32px; */
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
border-radius: 5px;
|
|
|
@@ -305,7 +307,7 @@ export default {
|
|
|
padding: 5px;
|
|
|
font-size: 14px;
|
|
|
font-weight: 600;
|
|
|
- line-height: 22px;
|
|
|
+ /* line-height: 22px; */
|
|
|
text-align: left;
|
|
|
margin-bottom: 20px;
|
|
|
}
|