|
@@ -11,7 +11,16 @@
|
|
|
<el-button plain @click="resetSearchKey">重置</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="handleInsert">导入</el-button>
|
|
|
+ <el-upload
|
|
|
+ style="margin-top: 8px"
|
|
|
+ action=""
|
|
|
+ :on-preview="handlePreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ :before-remove="beforeRemove"
|
|
|
+ :on-exceed="handleExceed"
|
|
|
+ >
|
|
|
+ <el-button type="primary">上传文件</el-button>
|
|
|
+ </el-upload>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -42,16 +51,19 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
-<script lang="ts" scoped>
|
|
|
+<script lang="ts" setup>
|
|
|
import { ref, reactive } from 'vue'
|
|
|
import * as SalaryApi from '@/api/salary'
|
|
|
|
|
|
+const searchKey = ref('')
|
|
|
const total = ref(0)
|
|
|
const list = ref([])
|
|
|
const queryParams = reactive({
|
|
|
pageNo: 1,
|
|
|
- pageSize: 10
|
|
|
+ pageSize: 10,
|
|
|
+ isAdmin: 1
|
|
|
})
|
|
|
+const dialogFormVisible = ref(false)
|
|
|
|
|
|
// 获取工资列表
|
|
|
const salaryList = async (json) => {
|
|
@@ -59,6 +71,10 @@ const salaryList = async (json) => {
|
|
|
total.value = data.total
|
|
|
list.value = data.records
|
|
|
}
|
|
|
+
|
|
|
+const handleUpload = () => {
|
|
|
+ dialogFormVisible.value = true
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|