Commit 6d835a73 authored by xd's avatar xd

修改

parent f2301172
......@@ -18,3 +18,9 @@ export function getOrgTree(data) {
data: data
})
}
export function getHistoryList() {
return request({
url: '/admin/auth/addressbook/synchronization',
method: 'get',
})
}
\ No newline at end of file
......@@ -60,7 +60,9 @@
</div>
</template>
<script>
import { getHistoryList } from "@/api/jinjian"
export default {
data() {
return {
list: {
......@@ -182,10 +184,12 @@ export default {
},
created() {},
methods: {
listPick() {},
testButtonClick() {},
pagesSizeChange() {},
pagesNowPageChange() {},
getList() {
getHistoryList().then(res => {
console.log(res,"res");
})
},
setListsHeadStyle({ row, column, rowIndex, columnIndex }) {
if (rowIndex === 0) {
return "background-color: #0B0F32; border-right: 1px solid white;color: white;";
......
......@@ -272,7 +272,7 @@
v-model="prizeList[index].startTime"
type="date"
@cancel="prizeList[index].startShow = false"
@confirm="handlePSTime(index)"
@confirm="prizeList[index].startShow = false"
@change="startTimeChange2(prizeList[index].startTime, index)"
/>
</van-popup>
......@@ -298,7 +298,7 @@
v-model="prizeList[index].endTime"
type="date"
@cancel="prizeList[index].endShow = false"
@confirm="handlePETime(index)"
@confirm="prizeList[index].endShow = false"
@change="endTimeChange2(prizeList[index].endTime, index)"
/>
</van-popup>
......@@ -406,7 +406,7 @@ export default {
fullMoney: "",
fullShow: false,
validity: "",
startTime: new Date(),
startTime: "",
startTime1: "",
startShow: false,
endTime: "",
......@@ -441,12 +441,8 @@ export default {
this.prizeList[index].startTime1 = this.timeFormat(e);
},
handlePSTime(index) {
this.prizeList[index].startShow=false
this.prizeList[index].startTime1 = this.timeFormat(this.confirmTime)
},
handlePETime(index) {
this.prizeList[index].endShow=false
this.prizeList[index].endTime1 = this.timeFormat(this.confirmTime)
this.prizeList[index].startShow=false
},
timeFormat(time) {
let year = 1900 + time.getYear();
......@@ -458,10 +454,18 @@ export default {
endTimeChange(e) {
let endTimeArr = e.getValues();
this.basicInfo.endTime1 = `${endTimeArr[0]}-${endTimeArr[1]}-${endTimeArr[2]}`;
},
handleBasicETime(value) {
this.basicInfo.endShow=false
this.basicInfo.endTime1 = this.timeFormat(value)
},
endTimeChange2(e, index) {
this.prizeList[index].endTime1 = this.timeFormat(e);
},
handlePETime(index) {
this.prizeList[index].endTime1 = this.timeFormat(this.confirmTime)
this.prizeList[index].endShow=false
},
// 数字大写转小写
numberToUpperCase(textIndex) {
let newString = "";
......@@ -544,10 +548,7 @@ export default {
this.basicInfo.startShow=false
this.basicInfo.startTime1 = this.timeFormat(value)
},
handleBasicETime(value) {
this.basicInfo.endShow=false
this.basicInfo.endTime1 = this.timeFormat(value)
},
},
mounted() {
this.pTime = this.timeFormat(this.pTime)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment