| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <template>
- <fieldset>
- <legend>
- <el-tag type="info">按需操作</el-tag>
- </legend>
- <div class="op-header">
- <div class="left-panel">
- <el-button type="primary" icon="el-icon-plus" @click="table_add(2)">新增员工账号</el-button>
- <!-- <el-button type="primary" icon="el-icon-download" @click="table_export()">导出</el-button> -->
- </div>
- </div>
- </fieldset>
- </template>
- <script>
- export default {
- props: {
- type: { type: String, default: "1" },
- dataSelect: { type: Array, default: () => [] },
- dataSelectFull: { type: Array, default: () => [] }
- },
- data(){
- return {
- }
- },
- methods: {
- async table_batch_status(status){
- if (this.dataSelect.length == 0) {
- return this.$message.error("请选择修改数据")
- }
- let submitData = {"id":this.dataSelect,"value":status,"field":"status","type":"batch"};
- var resp = await this.$API.mStaff.batch.post(submitData);
- if (resp.code == 0) {
- return this.$message.error(resp.msg);
- }
- this.$message.success(resp.msg);
- this.$emit("success");
- },
- handleSuccess(){
- this.$emit("success");
- },
- table_add(type){
- this.$nextTick(() => {
- this.$refs.formMain.open("add")
- })
- },
- }
- }
- </script>
|