2020-10-10-x
2020-10-10
todo-list
- yy
- 耗材需求新打样list页面、edit页面各个按钮功能
record-list
还是没搞懂怎么引入antd-vue的组件,反正49版本的chrome也用不了,那就不折腾了,以后有空再来搞。
还是element-ui好用,问题是怎么调整时间框的长度,添加v-bind:style=”{width: ‘100%’}” 实现了
1
v-bind:style="{width: '100%'}"
使用element-ui的DatePicker做出来了,感觉简单多了
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22<html>
<el-date-picker
v-model="createTime"
v-on:change="createTimeChange()"
v-bind:style="{width: '100%'}"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
</html>
<script>
createTimeChange () {
let createTime = this.createTime[0] + ',' + this.createTime[1];
this.listQuery.createTime = createTime;
//this.alertFlag = true;
//this.alertMsg = this.listQuery.createTime;
},
</script>list页面的其他按钮操作功能的实现,修改删除需要用到审核状态,审核记录暂时不能做,先考虑查看按钮的功能实现,按钮统一显示出来,点击之后再进行权限判断
引入全局MessageBox和Message
1
2
3
4
5
6// main.js
import { MessageBox } from 'element-ui';
import { Message } from 'element-ui';
Vue.prototype.MessageBox = MessageBox
Vue.prototype.Message = Message暂时把保存数据做完了,开始做查看时的页面的优化,其实就这样也行,区分了填写内容,那就不做优化
现在考虑把html转化成pdf的工作,
才想起还没装excel
home-record-list
- x
reference-site-list
Vue
- 本文标题:2020-10-10-x
- 本文作者:Xplorist
- 创建时间:2020-10-10 13:30:13
- 本文链接:https://xplorist.tech/2020/10/10/3a4af2246f3a/
- 版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
评论