Commit 6d835a73 authored by xd's avatar xd

修改

parent f2301172
...@@ -18,3 +18,9 @@ export function getOrgTree(data) { ...@@ -18,3 +18,9 @@ export function getOrgTree(data) {
data: 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 @@ ...@@ -60,7 +60,9 @@
</div> </div>
</template> </template>
<script> <script>
import { getHistoryList } from "@/api/jinjian"
export default { export default {
data() { data() {
return { return {
list: { list: {
...@@ -182,10 +184,12 @@ export default { ...@@ -182,10 +184,12 @@ export default {
}, },
created() {}, created() {},
methods: { methods: {
listPick() {}, getList() {
testButtonClick() {}, getHistoryList().then(res => {
pagesSizeChange() {}, console.log(res,"res");
pagesNowPageChange() {},
})
},
setListsHeadStyle({ row, column, rowIndex, columnIndex }) { setListsHeadStyle({ row, column, rowIndex, columnIndex }) {
if (rowIndex === 0) { if (rowIndex === 0) {
return "background-color: #0B0F32; border-right: 1px solid white;color: white;"; return "background-color: #0B0F32; border-right: 1px solid white;color: white;";
......
...@@ -272,7 +272,7 @@ ...@@ -272,7 +272,7 @@
v-model="prizeList[index].startTime" v-model="prizeList[index].startTime"
type="date" type="date"
@cancel="prizeList[index].startShow = false" @cancel="prizeList[index].startShow = false"
@confirm="handlePSTime(index)" @confirm="prizeList[index].startShow = false"
@change="startTimeChange2(prizeList[index].startTime, index)" @change="startTimeChange2(prizeList[index].startTime, index)"
/> />
</van-popup> </van-popup>
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
v-model="prizeList[index].endTime" v-model="prizeList[index].endTime"
type="date" type="date"
@cancel="prizeList[index].endShow = false" @cancel="prizeList[index].endShow = false"
@confirm="handlePETime(index)" @confirm="prizeList[index].endShow = false"
@change="endTimeChange2(prizeList[index].endTime, index)" @change="endTimeChange2(prizeList[index].endTime, index)"
/> />
</van-popup> </van-popup>
...@@ -406,7 +406,7 @@ export default { ...@@ -406,7 +406,7 @@ export default {
fullMoney: "", fullMoney: "",
fullShow: false, fullShow: false,
validity: "", validity: "",
startTime: new Date(), startTime: "",
startTime1: "", startTime1: "",
startShow: false, startShow: false,
endTime: "", endTime: "",
...@@ -441,12 +441,8 @@ export default { ...@@ -441,12 +441,8 @@ export default {
this.prizeList[index].startTime1 = this.timeFormat(e); this.prizeList[index].startTime1 = this.timeFormat(e);
}, },
handlePSTime(index) { handlePSTime(index) {
this.prizeList[index].startShow=false
this.prizeList[index].startTime1 = this.timeFormat(this.confirmTime) this.prizeList[index].startTime1 = this.timeFormat(this.confirmTime)
}, this.prizeList[index].startShow=false
handlePETime(index) {
this.prizeList[index].endShow=false
this.prizeList[index].endTime1 = this.timeFormat(this.confirmTime)
}, },
timeFormat(time) { timeFormat(time) {
let year = 1900 + time.getYear(); let year = 1900 + time.getYear();
...@@ -458,10 +454,18 @@ export default { ...@@ -458,10 +454,18 @@ export default {
endTimeChange(e) { endTimeChange(e) {
let endTimeArr = e.getValues(); let endTimeArr = e.getValues();
this.basicInfo.endTime1 = `${endTimeArr[0]}-${endTimeArr[1]}-${endTimeArr[2]}`; this.basicInfo.endTime1 = `${endTimeArr[0]}-${endTimeArr[1]}-${endTimeArr[2]}`;
},
handleBasicETime(value) {
this.basicInfo.endShow=false
this.basicInfo.endTime1 = this.timeFormat(value)
}, },
endTimeChange2(e, index) { endTimeChange2(e, index) {
this.prizeList[index].endTime1 = this.timeFormat(e); this.prizeList[index].endTime1 = this.timeFormat(e);
}, },
handlePETime(index) {
this.prizeList[index].endTime1 = this.timeFormat(this.confirmTime)
this.prizeList[index].endShow=false
},
// 数字大写转小写 // 数字大写转小写
numberToUpperCase(textIndex) { numberToUpperCase(textIndex) {
let newString = ""; let newString = "";
...@@ -544,10 +548,7 @@ export default { ...@@ -544,10 +548,7 @@ export default {
this.basicInfo.startShow=false this.basicInfo.startShow=false
this.basicInfo.startTime1 = this.timeFormat(value) this.basicInfo.startTime1 = this.timeFormat(value)
}, },
handleBasicETime(value) {
this.basicInfo.endShow=false
this.basicInfo.endTime1 = this.timeFormat(value)
},
}, },
mounted() { mounted() {
this.pTime = this.timeFormat(this.pTime) 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