Commit 3a987a90 authored by Mac's avatar Mac

1

parent 99c46c24
/**
* 所有跟用户相关的接口(TODO:DEMO USER)
*/
import { HttpResponse } from '@/@types'
import Axios from './axios'
/**
* @interface loginParams -登录参数
* @property {string} grant_type -授权类型
* @property {string} email -邮箱
* @property {string} password -用户密码
*/
interface msg {
Enable: number
}
/**
* @example Axios.get(`https://xxx.com}`)
* @todo Get the exchange rate of the current currency
*/
class customerService {
// 获取客户字段列表
static async getCustomerFiledList(data: msg): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerFiledList', {
method: 'post',
responseType: 'json',
data
})
}
}
export default customerService
\ No newline at end of file
......@@ -16,8 +16,8 @@
<tr v-if="data && data.length==0">
<td :colspan="8" align="center">暂无数据</td>
</tr>
<!-- <tr v-for="(item,index) in todos" :key="index">
<td><span>{{item.content}}</span></td>
<tr v-for="(item,index) in data" :key="index">
<td><span>{{item.Name}}</span></td>
<td>
<span v-if="item.IsSystem!=1">{{item.TypeName}}</span>
<span v-if="item.IsSystem==1">系统字段</span>
......@@ -44,20 +44,54 @@
<td>
<i class="iconfont icon-weiyi" style="font-size: 14px;color: #777;"></i>
</td>
</tr> -->
</tr>
</table>
</div>
</template>
<script lang="ts">
import { defineComponent, ref, reactive ,computed} from 'vue'
import { defineComponent, ref, reactive, onMounted } from 'vue'
import { Todo, Meta } from '@/components/models'
import customerService from '@/api/customer'
export default defineComponent({
setup() {
const data = []
const data = [{
DeptId: 0,
DeptName: "-",
Digits: 0,
Enable: 1,
Id: 21,
InputType: "2",
IsDefault: 0,
IsLock: 0,
IsSystem: 0,
Name: "姓名",
Options: "[\r\n {\r\n \"Id\": 0,\r\n \"Name\": \"\"\r\n }\r\n]",
OptionsList: [{ Id: 0, Name: "" }],
Required: 1,
Sort: 1,
Type: 1,
TypeName: "单行文本",
UpdateBy: 1,
UpdateByName: "管理员",
UpdateTime: "2021-09-28 11:06:00",
WordNum: 11,
}];
const changePage = () => {
customerService.getCustomerFiledList({ Enable: -1 }).then((res) => {
console.log(res)
})
}
onMounted(() => {
changePage()
})
return {
data
data,
changePage
}
}
})
......@@ -82,6 +116,7 @@
text-align: center;
height: 40px;
}
.customerField .payTable tr td {
font-size: 13px;
text-align: center;
......
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