添加注释,删除无用代码

This commit is contained in:
mabo
2021-05-13 18:09:36 +08:00
parent 967e673647
commit a2752a731d
122 changed files with 868 additions and 1185 deletions

View File

@@ -58,9 +58,9 @@ export default {
},
data() {
return {
buttonText: this.text,
count: Number(this.countTime),
clicked: false
buttonText: this.text, // 按钮文字
count: Number(this.countTime), // 计时时间
clicked: false // 是否可点击
};
},
methods: {

View File

@@ -22,8 +22,8 @@ export default {
},
data() {
return {
selectDep: [],
department: []
selectDep: [], // 已选数据
department: [] // 列表
};
},
methods: {

View File

@@ -54,12 +54,12 @@ export default {
},
data() {
return {
depLoading: false,
departmentTitle: "",
searchKey: "",
dataDep: [],
selectDep: [],
departmentId: []
depLoading: false, // 加载状态
departmentTitle: "", // modal标题
searchKey: "", // 搜索关键词
dataDep: [], // 部门列表
selectDep: [], // 已选部门
departmentId: [] // 部门id
};
},
methods: {

View File

@@ -74,7 +74,7 @@ export default {
},
data() {
return {
editor: null,
editor: null, // 富文本编辑器初始化
data: this.value, // 富文本数据
dataEdit: "", // 编辑数据
showHTMLModal: false, // 显示html

View File

@@ -80,10 +80,10 @@ export default {
},
data() {
return {
iconModalVisible: false,
currentValue: this.value,
iconData: [],
key: "",
iconModalVisible: false, // modal显隐
currentValue: this.value, // 当前值
iconData: [], // icon列表
key: "", // 关键词
tip: "输入英文关键词搜索,比如 success"
};
},

View File

@@ -84,18 +84,18 @@
},
data() {
return {
height: 500,
userLoading: true,
userModalVisible: false,
selectUsers: [],
searchUserForm: {
height: 500, // 表格高度
userLoading: true, // 加载状态
userModalVisible: false, // modal显隐
selectUsers: [], // 已选用户
searchUserForm: { // 请求参数
username: "",
pageNumber: 1, // 当前页数
pageSize: 10, // 页面大小
sort: "createTime", // 默认排序字段
order: "desc" // 默认排序方式
},
userColumns: [
userColumns: [ // 表头
{
type: "index",
width: 60,
@@ -214,8 +214,8 @@
}
}
],
userData: [],
totalUser: 0
userData: [], // 用户数据
totalUser: 0 // 数量
};
},
methods: {

View File

@@ -138,10 +138,10 @@ export default {
},
data() {
return {
accessToken: {},
uploadFileUrl: uploadFile,
editor: null,
options: {
accessToken: {}, // 验证token
uploadFileUrl: uploadFile, // 上传地址
editor: null, // 富文本初始化
options: { // 富文本配置
theme: "snow",
modules: {
toolbar: "#toolbar"

View File

@@ -53,12 +53,12 @@ export default {
},
data() {
return {
currentValue: this.value,
tipStyle: "password-tip-none",
strengthValue: 0,
progressStatus: "normal",
strength: "无",
grade: 0
currentValue: this.value, // 当前值
tipStyle: "password-tip-none", // 强度样式
strengthValue: 0, // 强度等级
progressStatus: "normal", // 进度条状态
strength: "无", // 密码强度描述
grade: 0 // 强度等级
};
},
methods: {

View File

@@ -105,15 +105,15 @@
showLoading: true,
//展示抽屉
showDrawer: false,
selectObj: [],
searchForm: {
selectObj: [], // 选择数据
searchForm: { // 请求参数
goodsName: "",
pageNumber: 1, // 当前页数
pageSize: 10, // 页面大小
sort: "createTime", // 默认排序字段
order: "desc" // 默认排序方式
},
tableColumns: [
tableColumns: [ // 表头
{
type: "index",
width: 60,
@@ -230,8 +230,8 @@
}
}
],
tableData: [],
tableTotal: 0
tableData: [], // 表格数据
tableTotal: 0 // 总数
};
},
methods: {

View File

@@ -83,11 +83,11 @@ export default {
},
data() {
return {
accessToken: {},
currentValue: this.value,
loading: false,
viewImage: false,
uploadFileUrl: uploadFile
accessToken: {}, // 验证token
currentValue: this.value, // 当前值
loading: false, // 加载状态
viewImage: false, // 预览图片modal
uploadFileUrl: uploadFile // 上传地址
};
},
methods: {

View File

@@ -82,11 +82,11 @@ export default {
},
data() {
return {
accessToken: {},
uploadFileUrl: uploadFile,
uploadList: [],
viewImage: false,
imgUrl: ""
accessToken: {}, // 验证token
uploadFileUrl: uploadFile, // 上传地址
uploadList: [], // 上传列表
viewImage: false, // 预览modal
imgUrl: "" // 图片地址
};
},
methods: {

View File

@@ -231,8 +231,8 @@ export default {
}
}
],
userData: [],
totalUser: 0
userData: [], // 表格数据
totalUser: 0 // 总数
};
},
methods: {

View File

@@ -31,7 +31,7 @@ export default {
name:'map',
data() {
return {
showMap:false,
showMap:false, // modal显隐
mapSearch:'', // 地图搜索
map:null, // 初始化地图
autoComplete:null, // 初始化搜索方法
@@ -39,7 +39,7 @@ data() {
positionPicker:null, // 地图拖拽选点
tips:[], //搜索关键字列表
addrContent:{}, // 回显地址信息
loading:false,
loading:false, // 加载状态
};
},
watch:{