Commit de25e559 authored by 罗超's avatar 罗超

客户操作

parent 8b4792ef
......@@ -29,7 +29,7 @@
<div class="flex-center">
<q-icon name="work" color="primary" v-if="item.Type == '1'" />
<q-icon name="person" color="accent" v-if="item.Type == '2'" />
<span class="q-ml-sm">{{ item.Name }}</span>
<span class="q-ml-sm">{{ item.DeptName }}</span>
</div>
<q-icon name="cancel" @click="delItem(item.Id, index)"></q-icon>
</div>
......@@ -40,7 +40,7 @@
<q-card-actions align="right" class="bg-white text-teal">
<q-btn flat label="取消" v-close-popup />
<q-btn color="primary" @click="goback" flat label="确定" />
<q-btn color="primary" @click="goback" unelevated label="确定" />
</q-card-actions>
</q-card>
</q-dialog>
......@@ -56,7 +56,7 @@
}
interface SelectParams {
Id: string
Name: string
DeptName: string
Type: number
}
export default {
......@@ -153,7 +153,7 @@
flag = false
} else {
ticketArr.value = JSON.parse(JSON.stringify(props.defaultArray))
console.log('默认值',ticketArr.value)
console.log('默认值',ticketArr.value)
}
}
......@@ -181,7 +181,7 @@
if (flag == true) {
selectArray.value.push({
Id: j[props.nodeKey],
Name: j.DeptName,
DeptName: j.DeptName,
Type: j.DataType
})
} else {
......
......@@ -283,7 +283,6 @@
}
]
const init = () => {
console.log('init', props.defaultData)
if (props.defaultData && props.defaultData.length > 0) {
addMsg.value = []
props.defaultData.map((e: any) => {
......@@ -410,7 +409,6 @@
IsCustom: 2
}
filedList.value.unshift(obj2)
console.log('标签', filedList.value)
})
}
const deleteadd = index => {
......@@ -463,7 +461,6 @@
let find2: any = addMsg.value.find(e => {
return e.Id == 17
})
console.log('生日2', find2)
if (find2) {
filedList.value.map(_e => {
if (_e.Id == 17) {
......@@ -568,7 +565,6 @@
const newVal=JSON.parse(JSON.stringify(val))
const s= dayjs(newVal[0]).format(format)
const e= dayjs(newVal[1]).format(format)
console.log(570,val,s,e)
addMsg.value[y].StartValue = s
addMsg.value[y].EndValue = e
}
......
......@@ -36,14 +36,14 @@
v-if="x.Id.slice(0, 1) == '1'"
text-color="white"
icon="work"
:label="x.Name"
:label="x.DeptName"
></q-chip>
<q-chip
color="primary"
v-if="x.Id.slice(0, 1) == '2'"
text-color="white"
icon="person"
:label="x.Name"
:label="x.DeptName"
></q-chip>
</div>
</div>
......
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